Function at 0x43f790
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x430
mov edx, dword [0x487264]
mov eax, dword [str.0123456789abcdef]
mov ecx, dword [0x487260]
push ebp
push esi
push edi
xor ebp, ebp
push 0xf0000000
mov dword [esp + 0x24], edx
push 1
mov dword [esp + 0x20], eax
mov eax, dword [0x487268]
mov dword [esp + 0x24], ecx
mov cl, byte [0x48726c]
push ebp
lea edx, [esp + 0x1c]
push ebp
push edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], eax
mov byte [esp + 0x3c], cl
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x43f824
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x448]
push str.CryptAcquireContext_failed:_error__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x430
ret
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x43f877
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x448]
push str.CryptAcquireContext_failed:_error__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x430
ret
mov edx, dword [esp + 0x440]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x3c]
mov esi, ecx
push esi
push eax
push edx
call fcn.00406f80
mov edx, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0x3c]
push 0
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x43f8f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x448]
push str.CryptHashData_failed:_error__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x430
ret
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push 0
lea ecx, [esp + 0x30]
push eax
push ecx
push 2
push edx
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x43f95c
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x444]
xor ecx, ecx
xor esi, esi
test ebp, ebp
jle 0x43f951
xor eax, eax
add ecx, 2
mov al, byte [esp + esi + 0x2c]
mov edx, eax
and eax, 0xf
shr edx, 4
mov al, byte [esp + eax + 0x18]
inc esi
mov dl, byte [esp + edx + 0x18]
cmp esi, ebp
mov byte [edi + ecx - 2], dl
mov byte [edi + ecx - 1], al
jl 0x43f92b
mov byte [ecx + edi], 0
mov ebp, 1
jmp 0x43f979
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x444]
push eax
push str.CryptGetHashParam_failed:_error__d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x10]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x430
ret