Function at 0x4091d0
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]
push edi
lea eax, [esp + 0x10]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SystemWPAPnP
push reloc.WS2_32.dll_bind
mov byte [esp + 0x23], bl
call ebp
test eax, eax
jne 0x409204
push str.RegOpenKey_sucess_n
jmp 0x409209
push str.RegOpenKey_failure_n
call fcn.0044ee3f
mov eax, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push ebx
push str.seed
mov edi, 4
push eax
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409241
push str.RegQueryValue_sucess_n
jmp 0x409246
push str.RegQueryValue_failure_n
call fcn.0044ee3f
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
je 0x40925d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
push ecx
push str.Seed_x_n
call fcn.0044ee3f
add esp, 8
push ebx
push 1
push ebx
push ebx
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x40928a
push str.CryptAcquireContext_complete.__n
jmp 0x40928f
push str.Acquisition_of_context_failed.
call fcn.0044ee3f
mov ecx, dword [esp + 0x28]
add esp, 4
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4092b9
push str.An_empty_hash_object_has_been_created.__n
jmp 0x4092be
push str.Error_during_CryptBeginHash__n
call fcn.0044ee3f
mov ecx, dword [esp + 0x1c]
mov dl, byte [esp + 0x13]
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebx
push edi
lea eax, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], dl
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], bl
call esi
test eax, eax
je 0x4092fa
push str.The_data_has_been_hashed.__n
jmp 0x4092ff
push str.Error_during_CPHashData__n
call fcn.0044ee3f
mov eax, dword [esp + 0x20]
add esp, 4
push ebx
push edi
lea edx, [esp + 0x2c]
push edx
push eax
call esi
test eax, eax
je 0x409320
push str.The_data_has_been_hashed.__n
jmp 0x409325
push str.Error_during_CPHashData__n
call fcn.0044ee3f
mov eax, dword [esp + 0x20]
add esp, 4
push ebx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
push 2
push eax
mov dword [esp + 0x34], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x409358
push str.The_hash_has_been_retrieved.__n
jmp 0x40935d
push str.Error_during_CPGetHashParam__n
call fcn.0044ee3f
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebx
je 0x409385
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x409385
push str.Error_during_CryptDestroyHash
call fcn.0044ee3f
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4093a6
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x4093a6
push str.Error_during_CryptReleaseContext
call fcn.0044ee3f
add esp, 4
push str.Hash:
call fcn.0044ee3f
add esp, 4
xor esi, esi
movzx ecx, byte [esp + esi + 0x2c]
push ecx
push 0x47c118
call fcn.0044ee3f
add esp, 8
inc esi
cmp esi, 0x10
jb 0x4093b5
push str._nCreate_md5_hash_completed_without_error.__n
call fcn.0044ee3f
add esp, 4
lea edx, [esp + 0x14]
push edx
push 0x20006
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.WS2_32.dll_bind
call ebp
test eax, eax
jne 0x4093fd
push str.RegOpenKey_sucess_n
jmp 0x409402
push str.RegOpenKey_failure_n
call fcn.0044ee3f
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 4
push 0x10
lea eax, [esp + 0x30]
push eax
push 3
push ebx
push str.PrivateHash
push ecx
mov dword [esp + 0x38], edi
call esi
test eax, eax
jne 0x409435
push str.RegSetValueEx_sucess_n
jmp 0x40943a
push str.RegSetValueEx_failure_n
call fcn.0044ee3f
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
cmp eax, ebx
je 0x409453
push eax
call edi
lea edx, [esp + 0x14]
push edx
push 0x20006
push ebx
push str.SoftwareMicrosoftDriver_Signing
push reloc.WS2_32.dll_accept
call ebp
test eax, eax
jne 0x409475
push str.RegOpenKey_sucess_n
jmp 0x40947a
push str.RegOpenKey_failure_n
call fcn.0044ee3f
mov ecx, dword [esp + 0x18]
add esp, 4
push 1
lea eax, [esp + 0x17]
push eax
push 3
push ebx
push 0x47c054
push ecx
call esi
test eax, eax
jne 0x4094a3
push str.RegSetValueEx_sucess_n
jmp 0x4094a8
push str.RegSetValueEx_failure_n
call fcn.0044ee3f
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
je 0x4094bb
push eax
call edi
lea edx, [esp + 0x14]
push edx
push 0x20006
push ebx
push str.SoftwareMicrosoftDriver_Signing
push reloc.WS2_32.dll_bind
call ebp
test eax, eax
jne 0x4094dd
push str.RegOpenKey_sucess_n
jmp 0x4094e2
push str.RegOpenKey_failure_n
call fcn.0044ee3f
mov ecx, dword [esp + 0x18]
add esp, 4
push 1
lea eax, [esp + 0x17]
push eax
push 3
push ebx
push 0x47c054
push ecx
call esi
test eax, eax
pop esi
jne 0x40950c
push str.RegSetValueEx_sucess_n
jmp 0x409511
push str.RegSetValueEx_failure_n
call fcn.0044ee3f
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
je 0x409524
push eax
call edi
pop edi
pop ebp
mov al, 1
pop ebx
add esp, 0x2c
ret