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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101807f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push esi
xor eax, eax
mov dword [ebp - 0x24], edx
xor esi, esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
push 0xf0000000
push 1
push eax
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x10006853
push ebx
push edi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
xor edi, edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10006841
cmp edi, ebx
je 0x1000661c
push 0
mov eax, ebx
sub eax, edi
push eax
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1000686e
mov edx, dword [ebp - 0x34]
cmp esi, edx
cmovne edx, esi
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x34], edx
cmp dword [esi + 0x14], 0xf
mov eax, dword [esi + 0x10]
jbe 0x10006639
mov ecx, dword [esi]
add eax, ecx
jmp 0x1000663d
add eax, esi
mov ecx, esi
sub eax, ecx
push eax
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.10006ed0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x10006665
sub eax, ecx
push eax
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x38]
call fcn.10006ed0
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
push 0
sub eax, ecx
mov dword [ebp - 0x20], ecx
push eax
push ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1000686e
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], 4
push eax
push 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x10006826
mov esi, dword [ebp - 0x18]
mov ecx, ebx
sub ecx, edi
cmp esi, ecx
jae 0x100066c0
lea ebx, [edi + esi]
jmp 0x100066f3
jbe 0x100066f6
mov eax, dword [ebp - 0x1c]
sub eax, edi
cmp esi, eax
jbe 0x100066e3
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.100070d0
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
jmp 0x100066f6
sub esi, ecx
push esi
push 0
push ebx
call fcn.10157f20
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x40], ebx
push 0
lea eax, [ebp - 0x18]
push eax
push edi
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 0x10]
test eax, eax
je 0x1000680e
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, ebx
lea ecx, [ebp - 0x50]
sub eax, edi
push eax
push edi
push dword [ebp - 0x4c]
call fcn.10006ed0
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
sub eax, esi
cmp eax, 0x10
jge 0x1000673f
mov esi, dword [ebp - 0x20]
jmp 0x100065e1
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ebx, dword [ebp - 0x50]
add esi, 8
mov ecx, dword [ebp + 8]
push esi
push ebx
call fcn.10006d40
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + 0x10]
push eax
push esi
call fcn.10006d40
test edi, edi
je 0x10006798
mov ecx, dword [ebp - 0x1c]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x1000678e
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000689d
push ecx
push edi
call fcn.10154c15
add esp, 8
test ebx, ebx
je 0x100067c9
mov ecx, dword [ebp - 0x48]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x100067bf
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000689d
push ecx
push ebx
call fcn.10154c15
add esp, 8
mov esi, dword [ebp - 0x20]
pop edi
pop ebx
test esi, esi
je 0x100067ff
mov ecx, dword [ebp - 0x30]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x100067f5
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000689d
push ecx
push esi
call fcn.10154c15
add esp, 8
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push str.Failed_to_get_hash_value.
jmp 0x10006887
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push str.Failed_to_get_hash_length.
jmp 0x10006887
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push str.Failed_to_create_hash_object.
jmp 0x10006887
push str.Failed_to_acquire_cryptographic_context.
lea ecx, [ebp - 0x50]
call fcn.10006400
push 0x101e19b8
lea eax, [ebp - 0x50]
push eax
call fcn.1015821e
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push str.Failed_to_hash_data.
lea ecx, [ebp - 0x68]
call fcn.10006400
push 0x101e19b8
lea eax, [ebp - 0x68]
push eax
call fcn.1015821e
call fcn.1015ff88
int3