Function at 0x8c7a90
Capabilities:
Get file size
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Parse pe header
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov ebp, ecx
jne 0x8c7ab6
pop edi
mov dword [ebp + 0x44], 1
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 8
cmp byte [eax], bl
jne 0x8c7acd
pop edi
mov dword [ebp + 0x44], 2
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 8
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
jne 0x8c7b02
pop edi
mov dword [ebp + 0x44], 3
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 8
push ebx
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp + 0x24], eax
jne 0x8c7b2c
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
mov dword [ebp + 0x44], 0x21
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 8
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x8c7b3f
push eax
call fcn.00858882
add esp, 4
mov dword [ebp + 4], ebx
mov eax, dword [ebp + 0x24]
push eax
call fcn.00859c55
add esp, 4
cmp eax, ebx
mov dword [ebp + 4], eax
jne 0x8c7b6c
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
mov dword [ebp + 0x44], 4
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 8
mov edx, dword [ebp + 0x24]
lea ecx, [esp + 0x10]
push ebx
push ecx
push edx
push eax
push esi
call dword [sym.imp.kernel32.dll_ReadFile]
mov ecx, dword [ebp + 0x24]
mov eax, dword [esp + 0x10]
cmp eax, ecx
je 0x8c7ba3
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
mov dword [ebp + 0x44], 5
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 8
mov eax, dword [ebp + 4]
mov byte [ebp + 0x1d], bl
cmp word [eax], 0x5a4d
jne 0x8c7bf2
mov edx, dword [eax + 0x3c]
add edx, eax
cmp dword [edx], 0x4550
jne 0x8c7bf2
mov esi, dword [edx + 0x98]
mov edx, dword [edx + 0x9c]
cmp esi, ebx
je 0x8c7bf2
cmp edx, ebx
je 0x8c7bf2
sub ecx, edx
mov byte [ebp + 0x1d], 1
mov dword [ebp + 0x24], ecx
mov dl, byte [eax + esi - 1]
lea ecx, [eax + esi - 1]
cmp dl, bl
jne 0x8c7bf2
mov edi, dword [ebp + 0x24]
dec edi
dec ecx
mov dword [ebp + 0x24], edi
cmp byte [ecx], bl
je 0x8c7be6
mov ecx, dword [ebp + 0x24]
lea edx, [ebp + 0x28]
mov edi, edx
lea esi, [eax + ecx - 0x10]
mov ebx, dword [eax + ecx - 0x10]
mov dword [edi], ebx
mov ebx, dword [esi + 4]
mov dword [edi + 4], ebx
mov ebx, dword [esi + 8]
mov dword [edi + 8], ebx
mov esi, dword [esi + 0xc]
mov dword [edi + 0xc], esi
mov esi, dword [edx]
cmp esi, 0x32812622
jne 0x8c7c92
cmp dword [ebp + 0x34], 0x32812621
jne 0x8c7c92
mov edx, dword [ebp + 0x2c]
mov esi, dword [ebp + 0x30]
xor ebx, ebx
mov byte [ebp + 0x1c], 1
lea esi, [esi + edx + 0x10]
mov dword [ebp + 0x38], edx
sub ecx, esi
mov dword [ebp + 0x20], esi
mov dword [ebp + 8], ecx
mov cl, byte [ebp + 0x1d]
cmp cl, bl
je 0x8c7cb0
cmp word [eax], 0x5a4d
jne 0x8c7cb0
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x8c7c6b
mov dword [esi + 0x9c], ebx
mov dword [esi + 0x98], ebx
mov edx, dword [ebp + 8]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [ebp + 4]
push ecx
push edx
push eax
call fcn.008c79a0
add esp, 0x10
test eax, eax
je 0x8c7cb0
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x58], ecx
jmp 0x8c7cb0
xor eax, eax
xor ebx, ebx
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov ecx, dword [ebp + 0x24]
mov byte [ebp + 0x1c], bl
mov dword [ebp + 0x20], ebx
mov dword [ebp + 8], ecx
mov dword [ebp + 0x38], ebx
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
cmp edx, eax
jae 0x8c7cc9
mov byte [ebp + 0x1c], bl
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0x38], ebx
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp byte [ebp + 0x1c], bl
jne 0x8c7cec
pop edi
mov dword [ebp + 0x44], 6
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 8
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x30]
cmp eax, ebx
mov dword [ebp + 0x18], ecx
je 0x8c7d05
push eax
call fcn.00858882
add esp, 4
mov dword [ebp + 0x14], ebx
mov edx, dword [ebp + 0x18]
push edx
call fcn.00859c55
add esp, 4
cmp eax, ebx
mov dword [ebp + 0x14], eax
jne 0x8c7d2b
pop edi
mov dword [ebp + 0x44], 7
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 8
mov esi, dword [ebp + 4]
mov edx, dword [ebp + 0x38]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
add esi, edx
add esi, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [ebp], ebx
jne 0x8c7d7b
push 0xf0000000
push 1
push 0xa38458
push ebx
push ebp
call dword [sym.imp.advapi32.dll_CryptAcquireContextA]
test eax, eax
jne 0x8c7d7b
pop edi
mov dword [ebp + 0x44], 8
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 8
mov eax, dword [ebp + 0x10]
lea edi, [ebp + 0x10]
cmp eax, ebx
je 0x8c7d8e
push eax
call dword [sym.imp.advapi32.dll_CryptDestroyKey]
mov dword [edi], ebx
mov ecx, dword [0xa39540]
mov edx, dword [ebp]
mov esi, dword [sym.imp.advapi32.dll_CryptImportKey]
push edi
push ebx
push ebx
push ecx
push 0xa394ec
push edx
call esi
test eax, eax
jne 0x8c7e0e
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x57
jne 0x8c7dfb
push 0xf0000000
push 1
push 0xa38458
push ebx
push ebp
call dword [sym.imp.advapi32.dll_CryptAcquireContextA]
test eax, eax
jne 0x8c7de3
pop edi
mov dword [ebp + 0x44], 0x62
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 8
mov eax, dword [0xa39540]
mov ecx, dword [ebp]
push edi
push ebx
push ebx
push eax
push 0xa394ec
push ecx
call esi
test eax, eax
jne 0x8c7e0e
pop edi
mov dword [ebp + 0x44], 9
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 8
mov eax, dword [ebp + 0xc]
lea esi, [ebp + 0xc]
cmp eax, ebx
je 0x8c7e21
push eax
call dword [sym.imp.advapi32.dll_CryptDestroyHash]
mov dword [esi], ebx
mov edx, dword [ebp]
push esi
push ebx
push ebx
push 0x8003
push edx
call dword [sym.imp.advapi32.dll_CryptCreateHash]
test eax, eax
jne 0x8c7e4a
pop edi
mov dword [ebp + 0x44], 0xa
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 8
mov eax, dword [ebp + 0x38]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 4]
add eax, edx
mov edx, dword [esi]
push ebx
push eax
push ecx
push edx
call dword [sym.imp.advapi32.dll_CryptHashData]
test eax, eax
jne 0x8c7e78
pop edi
mov dword [ebp + 0x44], 0xb
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 8
mov eax, dword [edi]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push ebx
push ebx
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.advapi32.dll_CryptVerifySignatureA]
test eax, eax
jne 0x8c7ef5
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x57
jne 0x8c7ee2
push 0xf0000000
push 1
push 0xa38458
push ebx
push ebp
call dword [sym.imp.advapi32.dll_CryptAcquireContextA]
test eax, eax
jne 0x8c7ec8
pop edi
mov dword [ebp + 0x44], 0x80
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 8
mov ecx, dword [edi]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push ebx
push ebx
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
call dword [sym.imp.advapi32.dll_CryptVerifySignatureA]
test eax, eax
jne 0x8c7ef5
pop edi
mov dword [ebp + 0x44], 0xc
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 8
cmp byte [esp + 0x28], bl
je 0x8c7f40
mov esi, dword [esp + 0x24]
push 0x5c
push esi
call fcn.00868e50
add esp, 8
cmp eax, ebx
je 0x8c7f11
inc eax
jmp 0x8c7f13
mov eax, esi
mov edx, dword [ebp + 0x38]
mov ecx, dword [ebp + 4]
push edx
mov edx, dword [ebp + 8]
add ecx, edx
push ecx
push eax
call fcn.0085a1fe
add esp, 0xc
test eax, eax
je 0x8c7f40
pop edi
mov dword [ebp + 0x44], 0xd
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 8
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x8c7f53
push eax
call fcn.00858882
add esp, 4
mov dword [ebp + 4], ebx
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret 8