Function at 0x403f7c
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
and dword [ebp - 0x18], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 0x3c]
add esi, ebx
cmp dword [esi], 0x4550
push edi
je 0x403fc4
movzx eax, byte [ebx + 0xa]
and eax, 0x11
cmp ax, 0x111
je 0x403fc4
mov esi, 0x405010
push 0x4010c8
mov eax, esi
call fcn.004048c9
push 0x401300
jmp 0x40421f
push 0x40
push 0x1000
push dword [esi + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
mov dword [ebp - 0xc], edi
jne 0x404023
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0x401310
lea eax, [ebp - 0x43c]
call fcn.004048e4
push 0xa
mov eax, esi
lea ecx, [ebp - 0x43c]
call fcn.0040482c
mov esi, 0x405010
push 0x4010c8
mov eax, esi
call fcn.004048c9
lea eax, [ebp - 0x43c]
push eax
jmp 0x40421f
mov edx, dword [esi + 0x54]
push ebx
call fcn.00404933
movzx eax, word [esi + 0x14]
pop ecx
movzx ecx, word [esi + 6]
test ecx, ecx
lea eax, [eax + esi + 0x18]
jbe 0x404073
lea ebx, [eax + 0xc]
lea edi, [eax + 0x14]
lea esi, [eax + 0x10]
mov dword [ebp - 8], ecx
mov eax, dword [edi]
test eax, eax
je 0x404062
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
add eax, ecx
push eax
mov eax, dword [ebx]
add eax, dword [ebp - 0xc]
call fcn.00404933
pop ecx
add esi, 0x28
add edi, 0x28
add ebx, 0x28
dec dword [ebp - 8]
jne 0x404049
mov edi, dword [ebp - 0xc]
mov esi, dword [edi + 0x3c]
add esi, edi
call fcn.00403ec1
sub eax, dword [0x40500c]
cmp eax, 0x7fff
jbe 0x404091
xor eax, eax
jmp 0x404120
mov ecx, dword [esi + 0xa4]
test ecx, ecx
mov dword [ebp - 0x10], ecx
je 0x404103
mov eax, dword [esi + 0xa0]
mov edx, edi
sub edx, dword [esi + 0x34]
add eax, edi
test ecx, ecx
jbe 0x404103
mov ebx, dword [eax + 4]
sub ebx, 8
mov dword [ebp - 8], ebx
mov ebx, dword [eax]
mov dword [ebp - 0x14], ebx
lea ebx, [eax + 8]
mov dword [ebp + 8], ebx
je 0x4040f8
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
movzx ecx, cx
mov ebx, ecx
shr ebx, 0xc
je 0x4040e7
cmp ebx, 3
jne 0x404125
and ecx, 0xfff
add ecx, dword [ebp - 0x14]
add ecx, edi
add dword [ecx], edx
sub dword [ebp - 8], 2
add dword [ebp + 8], 2
cmp dword [ebp - 8], 0
ja 0x4040c5
mov ecx, dword [ebp - 0x10]
sub ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
jne 0x4040af
cmp dword [esi + 0x84], 0
je 0x40411a
mov ebx, dword [esi + 0x80]
add ebx, edi
jne 0x4041e1
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret
mov esi, 0x405010
push 0x4010c8
mov eax, esi
call fcn.004048c9
push 0x401324
jmp 0x40421f
lea esi, [eax + edi]
call fcn.00403ec1
sub eax, dword [0x40500c]
cmp eax, 0x7fff
ja 0x40408a
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp - 8], eax
je 0x4041f1
mov esi, dword [ebx]
add esi, edi
mov edi, dword [ebx + 0x10]
add edi, dword [ebp - 0xc]
jmp 0x4041d5
and dword [ebp - 0x10], 0
and dword [ebp - 0x14], 0
mov ecx, 0x80000000
mov edx, eax
and edx, ecx
cmp edx, ecx
je 0x4041ad
mov ecx, dword [ebp - 0xc]
lea eax, [eax + ecx + 2]
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.00404901
mov ecx, dword [ebp - 0x14]
mov word [ebp - 0x20], ax
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
jmp 0x4041b3
movzx ecx, word [esi]
mov eax, dword [ebp - 0x10]
and dword [ebp + 8], 0
lea edx, [ebp + 8]
push edx
push ecx
push eax
push dword [ebp - 8]
call dword [section..data]
mov eax, dword [ebp + 8]
test eax, eax
je 0x404209
mov dword [edi], eax
add esi, 4
add edi, 4
mov eax, dword [esi]
test eax, eax
jne 0x404177
mov edi, dword [ebp - 0xc]
add ebx, 0x14
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x404140
jmp 0x40411a
mov esi, 0x405010
push 0x4010c8
mov eax, esi
call fcn.004048c9
push 0x401334
jmp 0x40421f
mov esi, 0x405010
push 0x4010c8
mov eax, esi
call fcn.004048c9
push 0x401344
call fcn.00404890
jmp 0x40411d