Function at 0x401460
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Get file size
Read file on windows
Resolve function by parsing pe exports
Resume thread
Suspend thread
Terminate process
Use process replacement
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x514
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x510], eax
push ebx
xor ebx, ebx
push esi
push edi
push 0x20a
push ebx
lea eax, [esp + 0x310]
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x1f], bl
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.004012f0
push 0x20a
push ebx
lea ecx, [esp + 0x100]
push ecx
call fcn.004012f0
push 0x104
lea edx, [esp + 0xfc]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4014f3
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [esp + 0x14]
mov ecx, 0x5c
cmp word [esp + eax*2 + 0xf8], cx
je 0x40151d
cmp eax, ebx
je 0x4015db
dec eax
cmp word [esp + eax*2 + 0xf8], cx
jne 0x401506
mov dword [esp + 0x14], eax
push 0x401078
lea eax, [esp + eax*2 + 0xfe]
push eax
call fcn.004012c0
push ebx
push 0x20
push 3
push ebx
push 3
push 0x80000000
lea ecx, [esp + 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40158a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x208
ja 0x40157d
push ebx
lea edx, [esp + 0x18]
push edx
push edi
lea eax, [esp + 0x314]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x40157f
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jne 0x4015e6
push 0x58
push ebx
lea ecx, [esp + 0x60]
push ecx
call fcn.004012f0
lea eax, [esp + 0x58]
lea edx, [esp + 0x308]
push eax
mov dword [esp + 0x5c], 0x58
mov dword [esp + 0x68], 0x401094
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], 0x104
mov dword [esp + 0x90], 0x80000
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
jne 0x4015e6
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x44
push ebx
lea ecx, [esp + 0xb8]
push ecx
call fcn.004012f0
push 0x10
push ebx
lea edx, [esp + 0x24]
push edx
call fcn.004012f0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xb4]
push ecx
push ebx
push ebx
push 4
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x32c]
push edx
mov dword [esp + 0xd8], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40193e
push 0x4010d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x4010e0
push esi
call edi
push 0x4010ec
push esi
mov dword [esp + 0x34], eax
call edi
push 0x4010f8
mov esi, eax
push 0x401108
mov dword [esp + 0x5c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
cmp dword [esp + 0x2c], 0
mov ebx, eax
je 0x401918
test esi, esi
je 0x401918
test ebx, ebx
je 0x401918
mov eax, dword [esp + 0x1c]
push 0x40
push 0x3000
push 0x100
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov dword [esp + 0x30], esi
push 0
test esi, esi
jne 0x4016df
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
push 0x401118
push 0x401124
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0x100
push 0x401370
push esi
push edx
call edi
push 0x402004
push ebx
add esi, 0x41
push esi
call fcn.00401440
mov eax, dword [esp + 0x1c]
push 0
push 5
push 0x402004
push esi
push eax
call edi
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea edx, [esp + 0x48]
push edx
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [esp + 0x34], 0
je 0x401786
cmp dword [esp + 0x18], 0
je 0x4017e0
mov edx, dword [esp + 0x20]
push edx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea eax, [esp + 0x110]
push eax
call esi
cmp eax, 0xffffffff
je 0x401897
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
push 0
push 1
lea eax, [esp + 0x1b]
push eax
push esi
push ecx
mov byte [esp + 0x27], 0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4017ca
mov edx, dword [esp + 0x30]
push 0x402004
push edx
push esi
call fcn.00401440
mov eax, dword [esp + 0x1c]
push 5
push 0x402004
push esi
push eax
call fcn.00401310
cmp byte [esp + 0x13], 0xe8
jne 0x4017d9
mov dword [esp + 0x34], 1
cmp dword [esp + 0x18], 0
jne 0x401833
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x1c]
push 0
push 1
lea ecx, [esp + 0x1b]
push ecx
push esi
push edx
mov byte [esp + 0x27], 0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x401824
mov eax, dword [esp + 0x30]
push 0x402004
push eax
push esi
call fcn.00401440
mov ecx, dword [esp + 0x1c]
push 5
push 0x402004
push esi
push ecx
call fcn.00401310
cmp byte [esp + 0x13], 0xe8
jne 0x401833
mov dword [esp + 0x18], 1
mov edx, dword [esp + 0x20]
push edx
call edi
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea ecx, [esp + 0x38]
push ecx
call ebx
mov edx, dword [esp + 0x38]
sub edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
sbb eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x44]
push ecx
push eax
push edx
call fcn.00401960
test edx, edx
ja 0x401888
jb 0x401735
cmp eax, 0x3c
jbe 0x401735
mov edx, dword [esp + 0x20]
push edx
call edi
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
push 4
push 0x40114c
push 0x401168
push 0
call edi
cmp eax, 6
jne 0x40177d
push 0
push 0x20
push 2
push 0
push 1
push 0xc0000000
lea ecx, [esp + 0x110]
push ecx
call esi
mov esi, eax
push 0
cmp esi, 0xffffffff
jne 0x4018ee
push 0x401118
push 0x4011fc
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x310]
push eax
call fcn.00401280
add eax, eax
push eax
lea ecx, [esp + 0x314]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
jmp 0x401777
mov eax, dword [esp + 0x1c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push 0x401118
push 0x401230
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40177d
push ebx
push 0x401118
push 0x40125c
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40177f