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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d3c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4a8800]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
push 0x1f4
mov dword [ebp - 0x2c], 0x10
call fcn.0045bf7a
push 0x1f4
mov esi, eax
push 0
push esi
call fcn.0045c460
add esp, 0x10
lea eax, [ebp - 0x28]
push 0xf0000000
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4388ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.CryptAcquireContext_failed:__d_n
call fcn.00460b88
add esp, 8
mov dword [ebx], esi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
jmp 0x438a52
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x438929
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.CryptCreateHash_failed:__d_n
call fcn.00460b88
add esp, 8
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x4388d4
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
push 0
push dword [ebp + 0x1c]
cmovae eax, dword [ebp + 0xc]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x438976
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.CryptHashData_failed:__d_n
call fcn.00460b88
add esp, 8
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x4388d4
push 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
push 2
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x4389d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.CryptGetHashParam_failed:__d_n
call fcn.00460b88
add esp, 8
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebx], esi
lea ecx, [ebp + 0xc]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
call fcn.00421320
jmp 0x438a63
xor ecx, ecx
cmp dword [ebp - 0x2c], ecx
jbe 0x438a0b
movzx eax, byte [ebp + ecx - 0x20]
shr eax, 4
movzx eax, byte [eax + str.0123456789abcdef]
mov byte [esi + ecx*2], al
movzx eax, byte [ebp + ecx - 0x20]
and eax, 0xf
movzx eax, byte [eax + str.0123456789abcdef]
mov byte [esi + ecx*2 + 1], al
inc ecx
cmp ecx, dword [ebp - 0x2c]
jb 0x4389e0
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [esi], 0
jne 0x438a39
xor ecx, ecx
jmp 0x438a49
mov ecx, esi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x438a40
sub ecx, edx
push ecx
push esi
mov ecx, edi
call fcn.00421650
cmp dword [ebp + 0x20], 0x10
jb 0x438a63
push dword [ebp + 0xc]
call fcn.0045a050
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret 0x20