Function at 0x1006a470
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 [0x1017455c]
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.10116880
add esp, 0xc
xor edi, edi
cmp dword [ebp + 8], 1
mov dword [esp + 0x24], ebx
jne 0x1006a4ec
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push str.SystemWPAPnP
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x1006a646
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 0x1006a550
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1006a646
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 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 esi
test eax, eax
jne 0x1006a766
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
je 0x1006a751
cmp eax, 0x8009001d
jne 0x1006aa90
push 0x103
lea edx, [esp + 0x265]
push ebx
push edx
mov byte [esp + 0x26c], bl
call fcn.10116880
push 0x103
lea eax, [esp + 0x169]
push ebx
push eax
mov byte [esp + 0x170], bl
call fcn.10116880
add esp, 0x18
call fcn.1004f190
test eax, eax
je 0x1006a5e4
lea ecx, [esp + 0x24]
push ecx
call fcn.1004f240
add esp, 4
mov edi, 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.10049c40
push str.wbem
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.10044cc0
add esp, 8
test eax, eax
jne 0x1006a65f
cmp edi, ebx
je 0x1006a646
mov ecx, dword [esp + 0x24]
push ecx
call fcn.1004f2c0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x360]
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0x260]
push edx
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x158]
call fcn.10049c40
push str..._syswow64
lea ecx, [esp + 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x158]
push ebx
push edx
call fcn.10044cc0
add esp, 8
test eax, eax
jne 0x1006a6b4
cmp edi, ebx
je 0x1006a646
mov eax, dword [esp + 0x24]
push eax
jmp 0x1006a63e
push ebx
push ebx
lea ecx, [esp + 0x58]
push ecx
mov edx, str.rsaenh.dll
lea ecx, [esp + 0x164]
call fcn.10048680
push ebx
push ebx
lea edx, [esp + 0x58]
push edx
mov edx, str.psapi.dll
lea ecx, [esp + 0x164]
mov dword [esp + 0x44], eax
call fcn.10048680
push ebx
mov dword [esp + 0x30], eax
push ebx
lea eax, [esp + 0x58]
push eax
mov edx, str.userenv.dll
lea ecx, [esp + 0x164]
call fcn.10048680
mov dword [esp + 0x30], eax
cmp edi, ebx
je 0x1006a719
mov ecx, dword [esp + 0x24]
push ecx
call fcn.1004f2c0
add esp, 4
push ebx
push 1
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
call esi
cmp eax, ebx
jne 0x1006a766
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1006aa02
push 8
push 1
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, ebx
je 0x1006aa02
jmp 0x1006a766
push 8
push 1
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
call esi
test eax, eax
je 0x1006a646
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push ebx
test eax, eax
jne 0x1006a792
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x1006aa02
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x17]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 4
lea eax, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x30], bl
mov byte [esp + 0x31], dl
mov byte [esp + 0x32], bl
mov byte [esp + 0x33], bl
call esi
mov edx, dword [esp + 0x1c]
test eax, eax
je 0x1006a815
push ebx
push 4
lea ecx, [esp + 0x44]
push ecx
push edx
call esi
test eax, eax
jne 0x1006a7ed
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 0x1006aa02
mov ecx, dword [esp + 0x1c]
push ebx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x48]
push eax
push 2
push ecx
mov dword [esp + 0x3c], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1006a82d
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]
jmp 0x1006aa02
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]
lea eax, [esp + 0x14]
push eax
push 0x20006
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
jne 0x1006a893
mov edx, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x44]
push ecx
push 3
push ebx
push str.PrivateHash
push edx
call edi
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.1004f190
test eax, eax
je 0x1006a8da
lea ecx, [esp + 0x14]
push ecx
push 0xf013f
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10062150
test eax, eax
jne 0x1006a8da
mov eax, dword [esp + 0x14]
push 0x10
lea edx, [esp + 0x44]
push edx
push 3
push ebx
push str.PrivateHash
push eax
call edi
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 closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x1006a923
mov ecx, dword [esp + 0x14]
push 1
lea eax, [esp + 0x17]
push eax
push 3
push ebx
push str.Policy
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.1004f190
test eax, eax
je 0x1006a96a
lea eax, [esp + 0x14]
push eax
push 0xf013f
push str.SoftwareMicrosoftDriver_Signing
push closesocket
call fcn.10062150
test eax, eax
jne 0x1006a96a
mov edx, dword [esp + 0x14]
push 1
lea ecx, [esp + 0x17]
push ecx
push 3
push ebx
push str.Policy
push edx
call edi
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
push ecx
push 0x20006
push ebx
push str.SoftwareMicrosoftDriver_Signing
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x1006a9b3
mov eax, dword [esp + 0x14]
push 1
lea edx, [esp + 0x17]
push edx
push 3
push ebx
push str.Policy
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.1004f190
test eax, eax
je 0x1006a9fa
lea edx, [esp + 0x14]
push edx
push 0xf013f
push str.SoftwareMicrosoftDriver_Signing
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10062150
test eax, eax
jne 0x1006a9fa
mov ecx, dword [esp + 0x14]
push 1
lea eax, [esp + 0x17]
push eax
push 3
push ebx
push str.Policy
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x34], 1
mov edi, dword [esp + 0x38]
cmp edi, ebx
jne 0x1006aa16
cmp dword [esp + 0x2c], ebx
jne 0x1006aa16
cmp dword [esp + 0x30], ebx
je 0x1006aa90
xor esi, esi
call fcn.1004f190
test eax, eax
je 0x1006aa30
lea eax, [esp + 0x24]
push eax
call fcn.1004f240
add esp, 4
mov esi, eax
cmp edi, ebx
je 0x1006aa49
push 1
mov ecx, str.rsaenh.dll
lea ebx, [esp + 0x54]
call fcn.10048370
add esp, 4
xor ebx, ebx
cmp dword [esp + 0x2c], ebx
je 0x1006aa64
push 1
mov ecx, str.psapi.dll
lea ebx, [esp + 0x54]
call fcn.10048370
add esp, 4
xor ebx, ebx
cmp dword [esp + 0x30], ebx
je 0x1006aa7f
push 1
mov ecx, str.userenv.dll
lea ebx, [esp + 0x54]
call fcn.10048370
add esp, 4
xor ebx, ebx
cmp esi, ebx
je 0x1006aa90
mov ecx, dword [esp + 0x24]
push ecx
call fcn.1004f2c0
add esp, 4
mov ecx, dword [esp + 0x36c]
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret 4