Function at 0x401000
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, 0x28
mov eax, dword [esp + 0x2c]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov byte [esp + 0x30], al
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, 5
jle 0x401213
lea eax, [esp + 0x3c]
push eax
push 0x20019
push 0
push str.SystemWPAPnP
push 0x80000002
call edi
test eax, eax
je 0x401053
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push 0
push str.seed
push eax
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401089
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x401098
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0
push 1
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
call esi
test eax, eax
jne 0x4010ce
push 8
push 1
push eax
lea edx, [esp + 0x24]
push eax
push edx
call esi
test eax, eax
jne 0x4010ce
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4010f7
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret
mov ecx, dword [esp + 0x10]
mov dl, byte [esp + 0x38]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 0x10]
push 4
push eax
push ecx
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], 0
mov byte [esp + 0x1f], 0
call esi
test eax, eax
jne 0x401134
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x20]
push 4
push edx
push eax
call esi
test eax, eax
jne 0x401154
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push 2
push eax
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x401185
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4011a4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x4011a4
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4011c5
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x4011c5
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret
lea ecx, [esp + 0x3c]
push ecx
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push 0x80000002
call edi
test eax, eax
je 0x4011ed
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x24]
push 0x10
push edx
push 3
push 0
push str.PrivateHash
push eax
call ebp
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x401213
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x3c]
push ecx
push 0x20006
push 0
push str.SoftwareMicrosoftDriver_Signing
push 0x80000001
call edi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x401251
lea edx, [esp + 0x20]
push 4
push edx
push 4
push 0
push str.Policy
push eax
call ebp
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x3c]
push ecx
push 0x20006
push 0
push str.SoftwareMicrosoftDriver_Signing
push 0x80000002
call edi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40128f
lea edx, [esp + 0x38]
push 1
push edx
push 3
push 0
push str.Policy
push eax
call ebp
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x28
ret