Function at 0x10031220
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8b0
mov eax, dword [0x10275598]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x1009ca44
push esi
mov dword [ebp - 0x8b0], eax
call fcn.10083313
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100312ac
push 0x400
lea eax, [ebp - 0x804]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x804]
push 0x5c
push eax
call fcn.10081f90
mov ecx, esi
add esp, 8
lea edx, [eax + 1]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10031282
sub ecx, edi
lea eax, [ecx + 1]
push eax
push esi
push edx
call fcn.100820d0
lea eax, [ebp - 0x804]
push 0x1009ca44
push eax
call fcn.10083313
add esp, 0x14
mov ebx, eax
push 4
lea eax, [ebp - 0x404]
mov dword [ebp - 0x8a8], 0
push eax
lea eax, [ebp - 0x8ac]
mov dword [ebp - 0x8ac], 0
push eax
mov dword [ebp - 0x8a4], 0x67452301
mov dword [ebp - 0x8a0], 0xefcdab89
mov dword [ebp - 0x89c], 0x98badcfe
mov dword [ebp - 0x898], 0x10325476
mov dword [ebp - 0x404], 0x69757865
call fcn.10031160
add esp, 0xc
test ebx, ebx
je 0x1003135f
push ebx
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.100834f6
add esp, 0x10
test eax, eax
je 0x1003135f
nop dword [eax]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x8ac]
push eax
call fcn.10031160
push ebx
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.100834f6
add esp, 0x1c
test eax, eax
jne 0x10031330
push 4
lea eax, [ebp - 0x404]
mov dword [ebp - 0x404], 0x69757865
push eax
lea eax, [ebp - 0x8ac]
push eax
call fcn.10031160
mov edx, dword [ebp - 0x8ac]
mov ecx, 0x78
mov eax, dword [ebp - 0x8a8]
mov dword [ebp - 0x80c], edx
mov dword [ebp - 0x808], eax
mov eax, 0x38
shr edx, 3
and edx, 0x3f
sub eax, edx
sub ecx, edx
cmp edx, 0x38
cmovae eax, ecx
push eax
lea eax, [ebp - 0x8ac]
push 0x10275138
push eax
call fcn.10031160
add esp, 0x18
lea edx, [ebp - 0x892]
xor esi, esi
nop dword [eax]
movzx ecx, byte [edx + 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 6]
shl ecx, 8
or ecx, eax
mov dword [ebp + esi*4 - 0x844], ecx
inc esi
cmp esi, 0xe
jb 0x100313d0
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x8a4]
push eax
call fcn.100315f0
movzx eax, byte [ebp - 0x8a4]
mov byte [ebp - 0x854], al
movzx eax, byte [ebp - 0x8a3]
mov byte [ebp - 0x853], al
movzx eax, byte [ebp - 0x8a2]
mov byte [ebp - 0x852], al
movzx eax, byte [ebp - 0x8a1]
mov byte [ebp - 0x851], al
movzx eax, byte [ebp - 0x8a0]
mov byte [ebp - 0x850], al
movzx eax, byte [ebp - 0x89f]
mov byte [ebp - 0x84f], al
movzx eax, byte [ebp - 0x89e]
mov byte [ebp - 0x84e], al
movzx eax, byte [ebp - 0x89d]
mov esi, dword [ebp - 0x8b0]
mov byte [ebp - 0x84d], al
movzx eax, byte [ebp - 0x89c]
mov byte [ebp - 0x84c], al
movzx eax, byte [ebp - 0x89b]
mov byte [ebp - 0x84b], al
movzx eax, byte [ebp - 0x89a]
mov byte [ebp - 0x84a], al
movzx eax, byte [ebp - 0x899]
mov byte [ebp - 0x849], al
movzx eax, byte [ebp - 0x898]
mov byte [ebp - 0x848], al
movzx eax, byte [ebp - 0x897]
mov byte [ebp - 0x847], al
movzx eax, byte [ebp - 0x896]
mov byte [ebp - 0x846], al
movzx eax, byte [ebp - 0x895]
mov byte [ebp - 0x845], al
lea eax, [esi + 1]
push eax
call fcn.10083005
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x8b0], edi
test edi, edi
jne 0x1003152b
push str.malloc_failed._n
push 2
call fcn.100830d8
add esp, 4
push eax
call fcn.10031d40
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10081098
mov esp, ebp
pop ebp
ret
lea eax, [esi + 1]
push eax
push 0
push edi
call fcn.10081e30
add esp, 0xc
cmp esi, 0x10
jne 0x10031572
mov esi, 4
nop dword [eax]
nop dword [eax + eax]
movzx eax, byte [ebp + esi - 0x854]
push eax
push 0x1009ca58
push edi
call fcn.10031d70
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0xc
jl 0x10031550
jmp 0x100315a0
cmp esi, 0x20
jne 0x100315c4
xor esi, esi
nop dword [eax]
movzx eax, byte [ebp + esi - 0x854]
push eax
push 0x1009ca58
push edi
call fcn.10031d70
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x10
jl 0x10031580
test ebx, ebx
je 0x100315ad
push ebx
call fcn.100831d2
add esp, 4
mov eax, dword [ebp - 0x8b0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10081098
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x100315d1
push ebx
call fcn.100831d2
add esp, 4
push edi
call fcn.10083000
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.10081098
mov esp, ebp
pop ebp
ret