Function at 0x4ce174
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create reverse shell
Create two anonymous pipes
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
add esp, 0xfffffe40
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c0], ebx
mov dword [ebp - 0x1bc], ebx
mov dword [ebp - 0x1b8], ebx
mov dword [ebp - 0x1b4], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040573c
mov eax, dword [ebp + 0xc]
call fcn.0040573c
xor eax, eax
push ebp
push 0x4ce653
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 9], 0
je 0x4ce1d9
mov eax, dword [0x892f24]
mov eax, dword [eax]
call fcn.0049463c
mov dword [ebp - 0x5c], 0xc
mov dword [ebp - 0x54], 0xffffffff
xor eax, eax
mov dword [ebp - 0x58], eax
push 0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_CreatePipe
push 0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_CreatePipe
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x1e], al
xor eax, eax
push ebp
push 0x4ce5d7
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040d398
fstp qword [ebp - 0x50]
wait
mov byte [ebp - 0x22], 0
lea eax, [ebp - 0xa0]
xor ecx, ecx
mov edx, 0x44
call fcn.00403464
mov dword [ebp - 0xa0], 0x44
mov dword [ebp - 0x74], 0x101
mov word [ebp - 0x70], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 8]
call fcn.0040b168
mov edx, dword [ebp - 0x38]
mov eax, 0x4ce66c
call fcn.00405890
test eax, eax
jle 0x4ce29a
lea eax, [ebp - 0x38]
mov edx, 0x4ce678
call fcn.00405324
mov eax, dword [ebp + 0xc]
call fcn.0040554c
test eax, eax
jle 0x4ce2b1
lea eax, [ebp - 0x38]
mov edx, dword [ebp + 0xc]
call fcn.00405324
cmp byte [ebp - 0x1e], 0
je 0x4ce366
jmp 0x4ce356
lea eax, [ebp - 0x1b0]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403464
xor eax, eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 4]
call fcn.0040554c
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0xff
jle 0x4ce2f2
mov dword [ebp - 0x40], 0xff
lea eax, [ebp - 0x1b4]
push eax
mov ecx, dword [ebp - 0x40]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004057ac
mov eax, dword [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x1b0]
mov edx, 0xff
call fcn.004c1f3c
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x1b0]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x1d], al
lea eax, [ebp - 4]
mov ecx, dword [ebp - 0x40]
mov edx, 1
call fcn.004057ec
mov eax, dword [ebp - 4]
call fcn.0040554c
test eax, eax
jg 0x4ce2c0
lea edx, [ebp - 0x1b8]
mov eax, dword [ebp - 0x38]
call fcn.0040a048
mov edx, dword [ebp - 0x1b8]
mov eax, 0x4ce684
call fcn.00405890
test eax, eax
jg 0x4ce3b6
lea edx, [ebp - 0x1bc]
mov eax, dword [ebp - 0x38]
call fcn.0040a048
mov edx, dword [ebp - 0x1bc]
mov eax, 0x4ce694
call fcn.00405890
test eax, eax
jg 0x4ce3b6
mov eax, dword [ebp + 0xc]
call fcn.0040554c
test eax, eax
jle 0x4ce3f2
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0x38]
call fcn.0040574c
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040574c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x1f], al
jmp 0x4ce425
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xa0]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040574c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x1f], al
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp byte [ebp - 0x1f], 0
jne 0x4ce446
mov eax, dword [ebp + 8]
call fcn.0040528c
call fcn.00404cd4
jmp 0x4ce618
xor eax, eax
push ebp
push 0x4ce5ae
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
call fcn.0040528c
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0xff
lea eax, [ebp - 0x1b0]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_PeekNamedPipe
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x20], al
cmp byte [ebp - 0x20], 0
je 0x4ce4fa
cmp byte [ebp - 0x20], 0
je 0x4ce4a2
cmp dword [ebp - 0x30], 0
jbe 0x4ce4a2
mov byte [ebp - 0x21], 1
jmp 0x4ce4fa
cmp byte [ebp - 0x20], 0
je 0x4ce460
cmp dword [ebp - 0x30], 0
jne 0x4ce460
push 0x64
call sub.kernel32.dll_Sleep_1
call fcn.0040d398
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call fcn.0049b738
push edx
push eax
mov eax, dword [ebp + 0x10]
cdq
cmp edx, dword [esp + 4]
jne 0x4ce4e1
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4ce460
jmp 0x4ce4e9
pop edx
pop eax
jge 0x4ce460
mov byte [ebp - 0x22], 1
lea eax, [ebp - 0x3c]
mov edx, 0x4ce6a4
call fcn.00405554
cmp byte [ebp - 0x21], 0
je 0x4ce526
push 0
lea eax, [ebp - 0x2c]
push eax
push 0xff
lea eax, [ebp - 0x1b0]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x1f], al
jmp 0x4ce52f
xor eax, eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x1f], 0
cmp dword [ebp - 0x2c], 0
jbe 0x4ce564
mov eax, dword [ebp - 0x2c]
mov byte [ebp + eax - 0x1b0], 0
lea eax, [ebp - 0x1c0]
lea edx, [ebp - 0x1b0]
mov ecx, pe_nt_image_headers32
call fcn.004054fc
mov edx, dword [ebp - 0x1c0]
lea eax, [ebp - 0x3c]
call fcn.00405554
cmp byte [ebp - 0x1f], 0
je 0x4ce574
cmp dword [ebp - 0x2c], 0
jne 0x4ce45c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce5b5
cmp byte [ebp - 0x22], 0
je 0x4ce595
push 0
mov eax, dword [ebp - 0xb0]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0xac]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0xb0]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce65a
lea eax, [ebp - 0x1c0]
mov edx, 4
call fcn.004052b0
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004052b0
lea eax, [ebp - 4]
call fcn.0040528c
lea eax, [ebp + 0xc]
call fcn.0040528c
ret