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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ba4f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
lea ecx, [ebp - 0x3c]
call fcn.10006cd0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x17c]
call fcn.10006cd0
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x10005dc5
push 0x10208940
lea ecx, [ebp - 0x134]
call fcn.10005bc0
push 0x1022edcc
lea ecx, [ebp - 0x134]
push ecx
call fcn.1019239e
nop
mov edx, dword [ebp + 0x18]
add edx, dword [ebp + 0x1c]
mov dword [ebp - 0xd0], edx
lea ecx, [ebp - 0x30]
call fcn.10006cd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.10006cd0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.10006830
cmp eax, dword [ebp - 0xd0]
jge 0x100061c8
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x8003
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x10005e47
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
push str.Failed_to_create_hash_object.
lea ecx, [ebp - 0x140]
call fcn.10005bc0
push 0x1022edcc
lea eax, [ebp - 0x140]
push eax
call fcn.1019239e
nop
lea ecx, [ebp - 0x24]
call fcn.10006850
movzx ecx, al
test ecx, ecx
jne 0x10005ecf
lea ecx, [ebp - 0x24]
call fcn.10006830
mov dword [ebp - 0xd4], eax
lea ecx, [ebp - 0x24]
call fcn.10006990
mov dword [ebp - 0xd8], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x40], edx
push 0
mov eax, dword [ebp - 0xd4]
push eax
mov ecx, dword [ebp - 0xd8]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x10005ecf
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
push 0x1020898c
lea ecx, [ebp - 0x14c]
call fcn.10005bc0
push 0x1022edcc
lea edx, [ebp - 0x14c]
push edx
call fcn.1019239e
nop
lea ecx, [ebp - 0x3c]
call fcn.100069b0
nop
lea eax, [ebp - 0xfc]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.10006d30
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x54], edx
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.10006d80
mov ecx, dword [eax]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x3c]
call fcn.100068d0
mov ecx, dword [eax]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x5c]
push eax
lea ecx, [ebp - 0xdc]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.10007410
nop
mov ecx, dword [ebp + 8]
call fcn.10006850
movzx edx, al
test edx, edx
jne 0x10005fc7
lea eax, [ebp - 0xe0]
push eax
mov ecx, dword [ebp + 8]
call fcn.10006890
mov ecx, dword [eax]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x70], edx
lea eax, [ebp - 0xe4]
push eax
mov ecx, dword [ebp + 8]
call fcn.10006910
mov ecx, dword [eax]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x74], edx
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x3c]
call fcn.100068d0
mov ecx, dword [eax]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x74]
push edx
mov eax, dword [ebp - 0x78]
push eax
lea ecx, [ebp - 0xec]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.10007410
nop
lea ecx, [ebp - 0x3c]
call fcn.10006830
mov dword [ebp - 0x7c], eax
lea ecx, [ebp - 0x3c]
call fcn.10006990
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x84], edx
push 0
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x84]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1000603a
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
push str.Failed_to_hash_data.
lea ecx, [ebp - 0x158]
call fcn.10005bc0
push 0x1022edcc
lea edx, [ebp - 0x158]
push edx
call fcn.1019239e
nop
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x88], 4
push 0
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x100060a1
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
push str.Failed_to_get_hash_length.
lea ecx, [ebp - 0x164]
call fcn.10005bc0
push 0x1022edcc
lea edx, [ebp - 0x164]
push edx
call fcn.1019239e
nop
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.10006b00
nop
lea ecx, [ebp - 0x24]
call fcn.10006990
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x90], ecx
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x8c]
push eax
push 2
mov ecx, dword [ebp - 0x90]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1000611e
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
push str.Failed_to_get_hash_value.
lea ecx, [ebp - 0x170]
call fcn.10005bc0
push 0x1022edcc
lea ecx, [ebp - 0x170]
push ecx
call fcn.1019239e
nop
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x24]
call fcn.100068d0
mov ecx, dword [eax]
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0xa4], edx
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x24]
call fcn.10006950
mov ecx, dword [eax]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0xa8], edx
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x30]
call fcn.100068d0
mov ecx, dword [eax]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
mov eax, dword [ebp - 0xac]
push eax
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x30]
call fcn.10007410
nop
jmp 0x10005de9
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x30]
call fcn.10006950
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0x104]
push edx
mov ecx, dword [ebp - 0xb0]
call fcn.10006800
mov eax, dword [eax]
mov dword [ebp - 0xb4], eax
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0x30]
call fcn.10006950
mov edx, dword [eax]
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0xb8]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.100074d0
nop
lea edx, [ebp - 0x10c]
push edx
lea ecx, [ebp - 0x30]
call fcn.10006950
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0xbc]
call fcn.10006800
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp + 0x1c]
push edx
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0xc0]
call fcn.10006800
mov ecx, dword [eax]
mov dword [ebp - 0xc8], ecx
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x30]
call fcn.10006950
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0xc4]
call fcn.10006800
mov edx, dword [eax]
mov dword [ebp - 0xcc], edx
mov eax, dword [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0xcc]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.100074d0
nop
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.10006b20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.10006b20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x17c]
call fcn.10006b20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.10006b20
nop
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret