in reply to Extracting info from the SAM

Depends on what you are trying to accomplish; so a little more info would be good.

The TieRegistry Module is very good for Registry access. Used it heavily for an AVP report and a Device checker.

Another one that might be of interest is Tim Roths Win32::Perms.

These two mods might serve your needs....