Function at 0x4011c0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Create thread
Create two anonymous pipes
Execute shell command and capture output
Terminate process
Terminate thread

Disassembly:
sub esp, 0x198
mov ecx, dword [esp + 0x19c]
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0xa4]
push 0x104
push eax
push 1
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor ebp, ebp
push ebp
push ebp
push 1
push ebp
call esi
push ebp
push ebp
push 1
push ebp
mov dword [0x4030a4], eax
call esi
push 0x118
mov dword [0x4030a0], eax
mov dword [esp + 0x30], 0xc
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], 1
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call sub.MSVCRT.dll_malloc
mov ebx, eax
lea edi, [esp + 0xa8]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
lea edx, [ebx + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
lea ecx, [esp + 0x30]
push ecx
push edx
push ebx
call esi
lea ecx, [esp + 0x2c]
lea eax, [ebx + 4]
push ebp
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
call esi
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x48], ebp
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebp
mov word [esp + 0x74], bp
mov dword [esp + 0x78], ebp
mov word [esp + 0x76], bp
mov dword [esp + 0x70], 0x101
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebp
push 1
lea ecx, [esp + 0x8c]
push 2
push ecx
mov dword [esp + 0x8c], eax
call esi
mov edx, dword [esp + 0x20]
push eax
push edx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edi, str.cmd.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x44]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x98]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x88]
push ecx
push edx
push ebp
push ebp
push ebp
push 1
push ebp
push ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401366
mov ecx, dword [esp + 0x8c]
mov edi, dword [esp + 0x88]
push ecx
call esi
jmp 0x40136a
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
push ebp
push ebx
push 0x4014c0
mov dword [ebx + 8], edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebp
push eax
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call edi
cmp eax, ebp
mov dword [ebx + 0xc], eax
jne 0x4013ba
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_TerminateThread]
call fcn.00401880
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x198
ret 0x10
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push ebp
push ebx
push 0x4015c0
push ebp
push edx
call edi
cmp eax, ebp
mov dword [ebx + 0x10], eax
jne 0x4013fc
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_TerminateThread]
call fcn.00401880
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x198
ret 0x10
mov eax, dword [ebx + 0xc]
push 0xffffffffffffffff
mov dword [esp + 0x3c], eax
mov ecx, dword [ebx + 0x10]
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], ecx
mov edx, dword [ebx + 8]
push ebp
push eax
push 3
mov dword [esp + 0x50], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, ebp
je 0x401454
dec eax
je 0x401441
dec eax
jne 0x40146b
mov ecx, dword [ebx + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
push ecx
call edi
mov edx, dword [ebx + 0xc]
push ebp
push edx
call edi
jmp 0x40146b
mov eax, dword [ebx + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebx + 8]
push 1
push ecx
jmp 0x401465
mov edx, dword [ebx + 0xc]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebx + 8]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push ecx
call edi
mov edx, dword [ebx]
push edx
call esi
mov eax, dword [ebx + 4]
push eax
call edi
mov ecx, dword [ebx + 4]
push ecx
call esi
mov edx, dword [ebx + 0xc]
push edx
call esi
mov eax, dword [ebx + 0x10]
push eax
call esi
mov ecx, dword [ebx + 8]
push ecx
call esi
cmp ebx, ebp
je 0x4014a6
push ebx
call sub.MSVCRT.dll_free
add esp, 4
call fcn.00401880
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x198
ret 0x10