Function at 0x989380
Capabilities:
Create new key via cryptacquirecontext
Get common file path
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x364
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
xor ebx, ebx
push esi
push edi
push 0x103
lea eax, [esp + 0x55]
push ebx
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x2c], bl
mov word [esp + 0x2d], bx
mov byte [esp + 0x2f], bl
mov byte [esp + 0x1f], bl
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x5c], bl
call fcn.00a7ffb0
add esp, 0xc
xor esi, esi
cmp dword [ebp + 8], 1
mov dword [esp + 0x24], ebx
jne 0x9893fc
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push str.SystemWPAPnP
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, ebx
jne 0x989553
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x40]
push eax
push ebx
push ebx
push str.seed
push ecx
mov dword [esp + 0x40], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x989460
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x989553
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push ebx
push 1
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x989688
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
je 0x989673
cmp eax, 0x8009001d
jne 0x9899b2
push 0x103
lea edx, [esp + 0x265]
push ebx
push edx
mov byte [esp + 0x26c], bl
call fcn.00a7ffb0
push 0x103
lea eax, [esp + 0x169]
push ebx
push eax
mov byte [esp + 0x170], bl
call fcn.00a7ffb0
add esp, 0x18
call fcn.00968110
test eax, eax
je 0x9894f4
lea ecx, [esp + 0x24]
push ecx
call fcn.009681c0
add esp, 4
mov esi, eax
push 0x104
lea edx, [esp + 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x50]
call fcn.00960910
push str.wbem
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor ecx, ecx
lea edi, [esp + 0x50]
call fcn.0095a6d0
test eax, eax
jne 0x98956c
cmp esi, ebx
je 0x989553
mov eax, dword [esp + 0x24]
push eax
call fcn.00968240
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x360]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x260]
push ecx
lea edx, [esp + 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x158]
call fcn.00960910
push str..._syswow64
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor ecx, ecx
lea edi, [esp + 0x158]
call fcn.0095a6d0
test eax, eax
jne 0x9895be
cmp esi, ebx
je 0x989553
mov ecx, dword [esp + 0x24]
push ecx
jmp 0x98954b
push ebx
push ebx
push ebx
lea edx, [esp + 0x5c]
push edx
push str.rsaenh.dll
lea eax, [esp + 0x16c]
push eax
xor edx, edx
xor ecx, ecx
call fcn.0095f0f0
push ebx
push ebx
push ebx
lea ecx, [esp + 0x5c]
push ecx
push str.psapi.dll
lea edx, [esp + 0x16c]
push edx
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x50], eax
call fcn.0095f0f0
push ebx
push ebx
push ebx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x5c]
push eax
push str.userenv.dll
lea ecx, [esp + 0x16c]
push ecx
xor edx, edx
xor ecx, ecx
call fcn.0095f0f0
mov dword [esp + 0x30], eax
cmp esi, ebx
je 0x989635
mov edx, dword [esp + 0x24]
push edx
call fcn.00968240
add esp, 4
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push ebx
push 1
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, ebx
jne 0x989688
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x989924
push 8
push 1
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
call esi
cmp eax, ebx
je 0x989924
jmp 0x989688
push 8
push 1
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
call edi
test eax, eax
je 0x989553
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push ebx
test eax, eax
jne 0x9896b4
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x989924
mov edx, dword [esp + 0x20]
mov al, byte [esp + 0x17]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 4
lea ecx, [esp + 0x28]
push ecx
push edx
mov byte [esp + 0x30], bl
mov byte [esp + 0x31], al
mov byte [esp + 0x32], bl
mov byte [esp + 0x33], bl
call esi
test eax, eax
mov eax, dword [esp + 0x1c]
je 0x989737
push ebx
push 4
lea edx, [esp + 0x44]
push edx
push eax
call esi
test eax, eax
jne 0x98970f
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [esp + 0x18]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x989924
mov edx, dword [esp + 0x1c]
push ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
push ecx
push 2
push edx
mov dword [esp + 0x3c], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x98974f
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 0x18]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x989924
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x18]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [esp + 0x14]
push ecx
push 0x20006
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp edi, ebx
jne 0x9897b5
mov eax, dword [esp + 0x14]
push 0x10
lea edx, [esp + 0x44]
push edx
push 3
push ebx
push str.PrivateHash
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00968110
test eax, eax
je 0x9897fc
lea edx, [esp + 0x14]
push edx
push 0xf013f
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push 0x80000002
call fcn.0097eda0
test eax, eax
jne 0x9897fc
mov ecx, dword [esp + 0x14]
push 0x10
lea eax, [esp + 0x44]
push eax
push 3
push ebx
push str.PrivateHash
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x14]
push eax
push 0x20006
push ebx
push str.SoftwareMicrosoftDriver_Signing
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, ebx
jne 0x989845
mov edx, dword [esp + 0x14]
push 1
lea ecx, [esp + 0x17]
push ecx
push 3
push ebx
push str.Policy
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00968110
test eax, eax
je 0x98988c
lea ecx, [esp + 0x14]
push ecx
push 0xf013f
push str.SoftwareMicrosoftDriver_Signing
push 0x80000001
call fcn.0097eda0
test eax, eax
jne 0x98988c
mov eax, dword [esp + 0x14]
push 1
lea edx, [esp + 0x17]
push edx
push 3
push ebx
push str.Policy
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x14]
push edx
push 0x20006
push ebx
push str.SoftwareMicrosoftDriver_Signing
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, ebx
jne 0x9898d5
mov ecx, dword [esp + 0x14]
push 1
lea eax, [esp + 0x17]
push eax
push 3
push ebx
push str.Policy
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00968110
test eax, eax
je 0x98991c
lea eax, [esp + 0x14]
push eax
push 0xf013f
push str.SoftwareMicrosoftDriver_Signing
push 0x80000002
call fcn.0097eda0
test eax, eax
jne 0x98991c
mov edx, dword [esp + 0x14]
push 1
lea ecx, [esp + 0x17]
push ecx
push 3
push ebx
push str.Policy
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x34], 1
mov edi, dword [esp + 0x38]
cmp edi, ebx
jne 0x989938
cmp dword [esp + 0x2c], ebx
jne 0x989938
cmp dword [esp + 0x30], ebx
je 0x9899b2
xor esi, esi
call fcn.00968110
test eax, eax
je 0x989952
lea ecx, [esp + 0x24]
push ecx
call fcn.009681c0
add esp, 4
mov esi, eax
cmp edi, ebx
je 0x98996b
push 1
mov ecx, str.rsaenh.dll
lea ebx, [esp + 0x54]
call fcn.0095eb80
add esp, 4
xor ebx, ebx
cmp dword [esp + 0x2c], ebx
je 0x989986
push 1
mov ecx, str.psapi.dll
lea ebx, [esp + 0x54]
call fcn.0095eb80
add esp, 4
xor ebx, ebx
cmp dword [esp + 0x30], ebx
je 0x9899a1
push 1
mov ecx, str.userenv.dll
lea ebx, [esp + 0x54]
call fcn.0095eb80
add esp, 4
xor ebx, ebx
cmp esi, ebx
je 0x9899b2
mov edx, dword [esp + 0x24]
push edx
call fcn.00968240
add esp, 4
mov ecx, dword [esp + 0x36c]
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret 4