Function at 0x329d8d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
mov esi, 0x325148
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
mov esi, 0x325140
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push ebx
movsb byte es:[edi], byte [esi]
push ebx
push 0x3c
push dword [ebp + 8]
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 8], ebx
call edi
cmp eax, 0xffffffff
je 0x329f95
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x329f95
cmp dword [ebp - 4], 4
jne 0x329f95
mov eax, dword [ebp - 0x10]
push ebx
add eax, 4
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call edi
cmp eax, 0xffffffff
je 0x329f95
push ebx
lea eax, [ebp - 4]
push eax
push 0x14
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x329f95
cmp dword [ebp - 4], 0x14
jne 0x329f95
cmp word [ebp - 0x32], bx
je 0x329f95
mov eax, 0x14c
cmp word [ebp - 0x34], ax
jne 0x329f95
push ebx
lea eax, [ebp - 4]
push eax
mov edi, pe_nt_image_headers32
push edi
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x329f95
cmp dword [ebp - 4], edi
jne 0x329f95
lea eax, [edi + 0x2b]
cmp word [ebp - 0x114], ax
jne 0x329f95
movzx edi, word [ebp - 0x32]
mov eax, dword [ebp - 0xf8]
imul edi, edi, 0x28
mov ecx, dword [ebp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ecx], eax
cmp edi, ebx
je 0x329ed1
lea eax, [edi + 1]
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp + 0x18], eax
jmp 0x329ed4
mov dword [ebp + 0x18], ebx
cmp dword [ebp + 0x18], ebx
je 0x329f95
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
push ebx
push ebx
lea eax, [ecx + eax + 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x329f77
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0x18]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x329f77
cmp dword [ebp - 4], edi
jne 0x329f77
movzx ecx, word [ebp - 0x32]
cmp ecx, ebx
jbe 0x329f77
mov eax, dword [ebp + 0x18]
add eax, 0x14
mov dword [ebp - 0xc], ecx
push 2
lea esi, [eax - 0x14]
pop ecx
lea edi, [ebp - 0x20]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x329f3e
mov ecx, dword [eax - 8]
sub ecx, dword [eax]
mov edx, dword [ebp + 0xc]
jmp 0x329f60
test byte [ebp - 0x22], 1
jne 0x329f69
push 2
pop ecx
lea edi, [ebp - 0x18]
lea esi, [eax - 0x14]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x329f69
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov ecx, dword [eax - 4]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 8], 1
mov dword [edx], ecx
add eax, 0x28
dec dword [ebp - 0xc]
jne 0x329f25
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push dword [ebp + 0x18]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x329f95
push dword [ebp + 0x18]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x329fa9
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret