Function at 0x4096f0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x2c
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SystemWPAPnP
push reloc.WS2_32.dll_bind
mov byte [esp + 0x1f], bl
call ebp
test eax, eax
jne 0x409723
push str.RegOpenKey_sucess_n
jmp 0x409728
push str.RegOpenKey_failure_n
call fcn.0044ee3f
mov eax, dword [esp + 0x10]
add esp, 4
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push ebx
push str.seed
push eax
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40975f
push str.RegQueryValue_sucess_n
jmp 0x409764
push str.RegQueryValue_failure_n
call fcn.0044ee3f
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
je 0x40977b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
push ecx
push str.Seed_x_n
call fcn.0044ee3f
push str.Hello__World_n
call fcn.0044ee3f
add esp, 0xc
push ebx
push 1
push ebx
push ebx
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4097b2
push str.CryptAcquireContext_complete.__n
jmp 0x4097b7
push str.Acquisition_of_context_failed.
call fcn.0044ee3f
mov ecx, dword [esp + 0x24]
add esp, 4
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4097e1
push str.An_empty_hash_object_has_been_created.__n
jmp 0x4097e6
push str.Error_during_CryptBeginHash__n
call fcn.0044ee3f
mov ecx, dword [esp + 0x18]
mov dl, byte [esp + 0xf]
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebx
push 4
lea eax, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], dl
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
call esi
test eax, eax
je 0x409823
push str.The_data_has_been_hashed.__n
jmp 0x409828
push str.Error_during_CPHashData__n
call fcn.0044ee3f
mov eax, dword [esp + 0x1c]
add esp, 4
push ebx
push 4
lea edx, [esp + 0x28]
push edx
push eax
call esi
test eax, eax
je 0x40984a
push str.The_data_has_been_hashed.__n
jmp 0x40984f
push str.Error_during_CPHashData__n
call fcn.0044ee3f
mov eax, dword [esp + 0x1c]
add esp, 4
push ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
push 2
push eax
mov dword [esp + 0x30], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x409882
push str.The_hash_has_been_retrieved.__n
jmp 0x409887
push str.Error_during_CPGetHashParam__n
call fcn.0044ee3f
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, ebx
je 0x4098af
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x4098af
push str.Error_during_CryptDestroyHash
call fcn.0044ee3f
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4098d0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x4098d0
push str.Error_during_CryptReleaseContext
call fcn.0044ee3f
add esp, 4
push str.Hash:
call fcn.0044ee3f
add esp, 4
xor esi, esi
nop
movzx ecx, byte [esp + esi + 0x28]
push ecx
push 0x47c118
call fcn.0044ee3f
add esp, 8
inc esi
cmp esi, 0x10
jb 0x4098e0
push str._nCreate_md5_hash_completed_without_error.__n
call fcn.0044ee3f
add esp, 4
lea edx, [esp + 0x10]
push edx
push 0x20006
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.WS2_32.dll_bind
call ebp
test eax, eax
jne 0x409928
push str.RegOpenKey_sucess_n
jmp 0x40992d
push str.RegOpenKey_failure_n
call fcn.0044ee3f
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 4
push 0x10
lea eax, [esp + 0x2c]
push eax
push 3
push ebx
push str.PrivateHash
push ecx
mov dword [esp + 0x34], 4
call esi
test eax, eax
jne 0x409964
push str.RegSetValueEx_sucess_n
jmp 0x409969
push str.RegSetValueEx_failure_n
call fcn.0044ee3f
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
je 0x409980
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
push edx
push 0x20006
push ebx
push str.SoftwareMicrosoftDriver_Signing
push reloc.WS2_32.dll_bind
call ebp
test eax, eax
jne 0x4099a2
push str.RegOpenKey_sucess_n
jmp 0x4099a7
push str.RegOpenKey_failure_n
call fcn.0044ee3f
mov ecx, dword [esp + 0x14]
add esp, 4
push 1
lea eax, [esp + 0x13]
push eax
push 3
push ebx
push 0x47c054
push ecx
call esi
test eax, eax
pop esi
jne 0x4099d1
push str.RegSetValueEx_sucess_n
jmp 0x4099d6
push str.RegSetValueEx_failure_n
call fcn.0044ee3f
mov eax, dword [esp + 0x10]
add esp, 4
pop ebp
cmp eax, ebx
pop ebx
je 0x4099ef
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 0x2c
ret