Function at 0x402060
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x3c
mov eax, dword [0x44d660]
xor eax, esp
mov dword [esp + 0x38], eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SYSTEMWPAPnP
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ecx
call edi
test eax, eax
je 0x4020ba
push str.DisableSign_Open_SYSTEMWPAPnP_failed__r_n
push 0x44f378
call fcn.00409510
add esp, 8
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00425494
add esp, 0x3c
ret
push ebx
push ebp
push esi
push str.DisableSign_Begin_Change__Reg_Key__r_n
push 0x44f378
call fcn.00409510
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 8
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x38]
push edx
push 0
push 0
push str.seed
push eax
mov dword [esp + 0x30], 4
call ebx
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
push 0xf0000000
push 1
push 0
push 0
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
push 4
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 0
call ebp
mov edx, dword [esp + 0x14]
push 0
push 4
lea ecx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x40]
push ecx
push 2
push edx
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 0x24]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea edx, [esp + 0x10]
push edx
push 0x2001f
push 0
push str.SOFTWAREMicrosoftDriver_Signing
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], 4
call edi
lea eax, [esp + 0x28]
push eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
add ecx, 8
push ecx
push 0
push 0
push str.Policy
push edx
call ebx
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
lea eax, [esp + 0x20]
push eax
push 3
push 0
push str.Policy
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call esi
lea eax, [esp + 0x10]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftNon_Driver_Signing
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov edx, dword [esp + 0x10]
push 1
lea ecx, [esp + 0x20]
push ecx
push 3
push 0
push str.Policy
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call esi
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], 0x10
mov dword [esp + 0x44], 3
call edi
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x14]
add eax, 0xc
push eax
lea ecx, [esp + 0x38]
push ecx
push 0
push str.PrivateHash
push edx
call ebx
mov ecx, dword [esp + 0x10]
push 0x10
lea eax, [esp + 0x3c]
push eax
push 3
push 0
push str.PrivateHash
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call esi
mov ecx, dword [esp + 0x48]
pop esi
pop ebp
pop ebx
pop edi
mov eax, 1
xor ecx, esp
call fcn.00425494
add esp, 0x3c
ret