Function at 0x1000c29d
Capabilities:
Connect pipe
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
mov eax, dword [0x1004d0e0]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
push 0x44
lea eax, [esp + 0x4c]
mov ebx, ecx
push 0
push eax
call fcn.100255c0
xor eax, eax
mov dword [esp + 0x24], 0xc
lea edi, [esp + 0x44]
add esp, 0xc
stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ecx
push ecx
stosd dword es:[edi], eax
push ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
inc eax
push eax
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x34], eax
xor eax, eax
push 0x104
push eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0xc0]
push eax
mov dword [esp + 0xb8], 0x5c2e5c5c
mov dword [esp + 0xbc], 0x45504950
mov dword [esp + 0xc0], 0x64255c
call fcn.100255c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x18]
xor esi, esi
push eax
push esi
mov eax, 0x1000
push eax
push eax
push 0xff
push esi
push 0x40000003
lea eax, [esp + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea edi, [ebx + 0x100c]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x1000c3a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor eax, eax
inc eax
jmp 0x1000c531
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000c3d1
call edi
mov ecx, eax
cmp ecx, 0x3e5
je 0x1000c3d1
push 2
jmp 0x1000c526
push esi
push 0x40000000
push 3
lea eax, [esp + 0x24]
push eax
push esi
push 0xc0000000
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx + 0x1010], eax
cmp eax, 0xffffffff
jne 0x1000c406
call edi
push 3
jmp 0x1000c524
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
lea esi, [ebx + 0x100c]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1000c42c
call edi
push 4
jmp 0x1000c524
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test eax, eax
jne 0x1000c457
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x1000c51a
push 0
mov byte [ebx + 9], 1
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
lea ecx, [ebx + 0x101c]
call fcn.10011adc
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
mov dword [esp + 0x48], 0x44
mov word [esp + 0x78], ax
mov eax, dword [ebx + 0x1010]
push 0xfffffffffffffff6
mov dword [esp + 0x78], 0x101
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x94]
push eax
call fcn.1000c5be
cmp dword [eax + 0x14], 8
jb 0x1000c4bd
mov eax, dword [eax]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x4c]
push ecx
xor ecx, ecx
push ecx
push ecx
push 0x20
push 1
push ecx
push ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [esp + 0x94]
mov esi, eax
call fcn.1001340c
test esi, esi
je 0x1000c520
push dword [esp + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [esp + 0x40]
mov ecx, ebx
mov dword [ebx + 0x1018], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x1014], eax
mov byte [ebx + 8], 1
call fcn.1000c6aa
xor ebx, ebx
jmp 0x1000c597
call edi
push 5
jmp 0x1000c524
call edi
push 7
mov ecx, eax
pop eax
mov dword [esp + 0x10], eax
lea edi, [ebx + 0x100c]
push ecx
push eax
mov ecx, ebx
call fcn.1000c8ad
mov eax, dword [ebx + 0x1010]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x1000c555
push eax
call esi
or dword [ebx + 0x1010], 0xffffffff
cmp dword [edi], 0xffffffff
je 0x1000c561
push dword [edi]
call esi
or dword [edi], 0xffffffff
cmp byte [ebx + 9], 0
je 0x1000c571
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov byte [ebx + 9], 0
mov eax, dword [ebx + 0x1014]
test eax, eax
je 0x1000c593
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebx + 0x1014]
call esi
and dword [ebx + 0x1014], 0
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x34], 0
je 0x1000c5a4
push dword [esp + 0x34]
call esi
mov ecx, dword [esp + 0x1c4]
test ebx, ebx
pop edi
pop esi
sete al
pop ebx
xor ecx, esp
call fcn.1002211a
mov esp, ebp
pop ebp
ret