Teach me to write a simple import and export of keys into and outof registry please,

For example, I would like to add this information into HKLM

HKLM\SAM\SamFolder\SamInformation\SamPassword.exe

and its value is

Name = (Default)
Type=REG_SZ
Data=C:\windows\system32\Password.exe

Thank you