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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c00a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
lea ecx, [ebp - 0x3c]
call fcn.10007570
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xf4]
call fcn.10007570
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 0x100068e5
push 0x1020ff20
lea ecx, [ebp - 0xac]
call fcn.10006700
push 0x102371d4
lea ecx, [ebp - 0xac]
push ecx
call fcn.10197eae
nop
mov edx, dword [ebp + 0x18]
add edx, dword [ebp + 0x1c]
mov dword [ebp - 0x40], edx
lea ecx, [ebp - 0x30]
call fcn.10007570
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.10007570
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.10007130
cmp eax, dword [ebp - 0x40]
jge 0x10006bdd
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 0x10006961
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 - 0xb8]
call fcn.10006700
push 0x102371d4
lea eax, [ebp - 0xb8]
push eax
call fcn.10197eae
nop
lea ecx, [ebp - 0x24]
call fcn.10007150
movzx ecx, al
test ecx, ecx
jne 0x100069cb
push 0
lea ecx, [ebp - 0x24]
call fcn.10007130
push eax
lea ecx, [ebp - 0x24]
call fcn.10007290
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x100069cb
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 0x1020ff6c
lea ecx, [ebp - 0xc4]
call fcn.10006700
push 0x102371d4
lea edx, [ebp - 0xc4]
push edx
call fcn.10197eae
nop
lea ecx, [ebp - 0x3c]
call fcn.100072b0
nop
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x3c]
call fcn.100071d0
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
lea edx, [ebp - 0x9c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.100075c0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.10007600
mov edx, dword [eax]
push edx
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.10007c40
nop
mov ecx, dword [ebp + 8]
call fcn.10007150
movzx edx, al
test edx, edx
jne 0x10006a6c
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x3c]
call fcn.100071d0
mov ecx, dword [eax]
mov dword [ebp - 0x48], ecx
lea edx, [ebp - 0x5c]
push edx
mov ecx, dword [ebp + 8]
call fcn.10007190
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10007210
mov edx, dword [eax]
push edx
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.10007c40
nop
push 0
lea ecx, [ebp - 0x3c]
call fcn.10007130
push eax
lea ecx, [ebp - 0x3c]
call fcn.10007290
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x10006ac7
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 - 0xd0]
call fcn.10006700
push 0x102371d4
lea edx, [ebp - 0xd0]
push edx
call fcn.10197eae
nop
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x4c], 4
push 0
lea eax, [ebp - 0x4c]
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 0x10006b28
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 - 0xdc]
call fcn.10006700
push 0x102371d4
lea edx, [ebp - 0xdc]
push edx
call fcn.10197eae
nop
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.100073d0
nop
push 0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x24]
call fcn.10007290
push eax
push 2
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x10006b8d
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_value.
lea ecx, [ebp - 0xe8]
call fcn.10006700
push 0x102371d4
lea edx, [ebp - 0xe8]
push edx
call fcn.10197eae
nop
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x30]
call fcn.100071d0
mov edx, dword [eax]
mov dword [ebp - 0x50], edx
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x24]
call fcn.100071d0
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x70]
push edx
lea ecx, [ebp - 0x24]
call fcn.10007250
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
lea edx, [ebp - 0x74]
push edx
lea ecx, [ebp - 0x30]
call fcn.10007c40
nop
jmp 0x10006906
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0x78]
push edx
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x30]
call fcn.10007250
mov ecx, eax
call fcn.10007100
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x80]
push edx
lea ecx, [ebp - 0x30]
call fcn.10007250
mov eax, dword [eax]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.10007d00
nop
mov ecx, dword [ebp + 0x1c]
push ecx
lea edx, [ebp - 0x84]
push edx
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x30]
call fcn.10007250
mov ecx, eax
call fcn.10007100
mov ecx, eax
call fcn.10007100
mov eax, dword [eax]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x30]
call fcn.10007250
mov ecx, eax
call fcn.10007100
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.10007d00
nop
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.100073f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.100073f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xf4]
call fcn.100073f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.100073f0
nop
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret