Function at 0x5e69c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [0x5e63f8]
mov eax, 0x1c
call fcn.0040e3f4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 0x1c
call fcn.00408424
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], 0x19770605
mov edi, ebx
mov esi, edi
cmp word [esi], 0x5a4d
je 0x5e6a24
mov edx, dword [0x5e63f8]
mov eax, dword [ebp - 8]
call fcn.0040e408
mov eax, 0x5e6c20
call fcn.005e64b0
jmp 0x5e6c09
mov eax, dword [esi + 0x3c]
lea ebx, [edi + eax]
cmp dword [ebx], 0x4550
je 0x5e6a4f
mov edx, dword [0x5e63f8]
mov eax, dword [ebp - 8]
call fcn.0040e408
mov eax, 0x5e6c90
call fcn.005e64b0
jmp 0x5e6c09
cmp word [ebx + 4], 0x14c
je 0x5e6a74
mov edx, dword [0x5e63f8]
mov eax, dword [ebp - 8]
call fcn.0040e408
mov eax, 0x5e6cfc
call fcn.005e64b0
jmp 0x5e6c09
push 0x40
push 0x3000
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [ebx + 0x34]
push eax
call sub.kernel32.dll_VirtualAlloc
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x5e6aaf
push 0x40
push 0x2000
mov eax, dword [ebx + 0x50]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x5e6ad5
mov edx, dword [0x5e63f8]
mov eax, dword [ebp - 8]
call fcn.0040e408
mov eax, 0x5e6d34
call fcn.005e64b0
jmp 0x5e6c09
push 0x40
push 0x1000
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_VirtualAlloc
push 0x40
push 0x1000
mov eax, dword [ebx + 0x54]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_VirtualAlloc
mov eax, dword [esi + 0x3c]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
lea eax, [edx + eax]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov edx, dword [ebx + 0x54]
push esi
mov ecx, edx
mov edx, eax
pop eax
call fcn.004078a0
mov eax, dword [esi + 0x3c]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
lea eax, [edx + eax]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 8]
mov ecx, eax
mov edx, ebx
mov eax, edi
call fcn.005e64b8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
sub eax, dword [ebx + 0x34]
test eax, eax
je 0x5e6b66
mov edx, dword [ebp - 8]
xchg edx, eax
call fcn.005e6744
mov eax, dword [ebp - 8]
call fcn.005e6554
test al, al
jne 0x5e6b7f
lea eax, [ebp - 8]
call fcn.005e6e80
jmp 0x5e6c09
mov eax, dword [ebp - 8]
call fcn.005e68d8
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x5e6c03
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
lea ebx, [edx + eax]
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0
je 0x5e6bf2
xor eax, eax
push ebp
push 0x5e6be6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call ebx
test eax, eax
jne 0x5e6bdc
lea eax, [ebp - 8]
call fcn.005e6e80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5e6c09
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5e6bfc
lea eax, [ebp - 8]
call fcn.005e6e80
jmp 0x5e6c09
mov eax, dword [ebp - 8]
mov byte [eax + 0x14], 1
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret