Function at 0x100fc5f0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10156518
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x101a5034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x44], 0xc
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 1
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x100fc69a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_create_pipe__error___d
push 1
push 0x2a9
push 0x10177ce0
push 0x10177d94
call fcn.10142a80
add esp, 0x18
mov byte [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002d10
mov al, byte [ebp - 0x10]
jmp 0x100fc87e
push 0
push 1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [ebp - 0x8c], 0
push 0x40
push 0
lea ecx, [ebp - 0x88]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x8c], 0x44
mov dword [ebp - 0x60], 0x101
xor edx, edx
mov word [ebp - 0x5c], dx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x54], eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x50], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x60]
or ecx, 0x100
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x30], 0
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x8c]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.1004abb0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100fc784
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10177d64
push 1
push 0x2ba
push 0x10177e20
push 0x10177dc4
call fcn.10142a80
add esp, 0x18
mov byte [ebp - 0xf], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002d10
mov al, byte [ebp - 0xf]
jmp 0x100fc87e
mov edx, 1
test edx, edx
je 0x100fc828
push 0x64
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100fc7a6
jmp 0x100fc828
mov ecx, dword [ebp + 0x20]
movzx edx, byte [ecx]
test edx, edx
je 0x100fc823
push str.bIsKillProcess__true
push 1
push 0x2c6
push 0x10177e60
push str.OSExecuteWaitKillSignal
call fcn.10142a80
add esp, 0x14
mov dword [ebp - 0x20], 0x10177ea0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x14]
mov al, byte [edx]
mov byte [ebp - 0xd], al
add dword [ebp - 0x14], 1
cmp byte [ebp - 0xd], 0
jne 0x100fc7e4
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x38]
mov dword [ebp - 0x34], ecx
push 0
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 1
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x100fc784
cmp dword [ebp - 0x1c], 0
je 0x100fc838
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
je 0x100fc848
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], 0
je 0x100fc858
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 0
je 0x100fc868
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0xe], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002d10
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret