Function at 0x406410
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Create thread
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x14b4
call fcn.0042eb80
mov eax, dword [0x442754]
xor eax, esp
mov dword [esp + 0x14b0], eax
push ebx
push esi
push edi
mov edi, dword [0x45f540]
xor eax, eax
xor ebx, ebx
push 0x40
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x48]
push ebx
push eax
mov esi, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x4c], ebx
call fcn.00421fd0
add esp, 0xc
xor eax, eax
push ebx
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x48], 1
mov dword [esp + 0x40], 0xc
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4064e5
mov ecx, dword [str.CreatePipe_Failed.]
mov dword [edi], ecx
mov edx, dword [0x43a938]
mov dword [edi + 4], edx
mov eax, dword [0x43a93c]
mov dword [edi + 8], eax
mov ecx, dword [0x43a940]
mov dword [edi + 0xc], ecx
mov dx, word [0x43a944]
mov word [edi + 0x10], dx
mov al, byte [0x43a946]
mov byte [edi + 0x12], al
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4066fd
mov eax, dword [esp + 0x18]
push 5
xor ecx, ecx
push str.nohup
push esi
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x78], 0x101
mov word [esp + 0x7c], cx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
mov byte [esp + 0x1f], bl
call fcn.0041e157
add esp, 0xc
test eax, eax
jne 0x406583
mov eax, esi
mov byte [esp + 0x13], 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406530
sub eax, edx
add eax, 0xfffffffa
push eax
call fcn.0041c606
mov edi, eax
mov eax, esi
add esp, 4
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406550
sub eax, edx
add eax, 0xfffffffa
push eax
lea edx, [esi + 6]
push edx
push edi
call fcn.0041e1b0
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406570
sub eax, edx
mov byte [eax + edi - 6], bl
mov esi, edi
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x44]
push ecx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push esi
push str.cmd__c
push 2
call fcn.00402eb0
add esp, 0xc
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x406606
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess
lea edx, [esp + 0xc0]
push 0x400
push edx
call fcn.0041d516
lea eax, [esp + 0xc8]
add esp, 0x10
lea edx, [eax + 1]
jmp 0x4065e0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4065e0
sub eax, edx
push eax
lea eax, [esp + 0xbc]
push eax
push edi
call fcn.00420fc0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
jmp 0x4066fd
cmp byte [esp + 0x13], bl
je 0x40661e
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4066f0
mov edx, dword [esp + 0x14]
push 5
push str.ping
push esi
mov dword [esp + 0x94], edx
mov dword [esp + 0xb8], edi
mov dword [esp + 0xbc], 0x100000
call fcn.0041e2d4
add esp, 0xc
test eax, eax
jne 0x4066ae
push 0xfff
lea eax, [esp + 0x4bd]
push ebx
push eax
mov byte [esp + 0x4c4], bl
call fcn.00421fd0
add esp, 0xc
push 0x2ee0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0x1000
lea edx, [esp + 0x4c4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x4b8]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4066a2
jmp 0x4066f0
lea edx, [esp + 0x3c]
push edx
push ebx
lea eax, [esp + 0x90]
push eax
push 0x40a630
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x20]
push 0x1770
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x4066f0
cmp eax, 0x102
jne 0x4066f0
mov edx, dword [esp + 0x20]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0x20]
push ecx
call edi
mov edx, dword [esp + 0x18]
push edx
call edi
mov eax, dword [esp + 0x14]
push eax
call edi
push esi
call fcn.0041ba30
mov ecx, dword [esp + 0x14c0]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret