Function at 0x100ff640
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 0x1015ab08
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x101ac034]
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 0x100ff6ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_create_pipe__error___d
push 1
push 0x2da
push 0x1017db50
push 0x1017dc04
call fcn.10146290
add esp, 0x18
mov byte [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10003e00
mov al, byte [ebp - 0x10]
jmp 0x100ff8ce
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.1004a5e0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100ff7d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1017dbd4
push 1
push 0x2eb
push 0x1017dc90
push 0x1017dc34
call fcn.10146290
add esp, 0x18
mov byte [ebp - 0xf], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10003e00
mov al, byte [ebp - 0xf]
jmp 0x100ff8ce
mov edx, 1
test edx, edx
je 0x100ff878
push 0x64
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100ff7f6
jmp 0x100ff878
mov ecx, dword [ebp + 0x20]
movzx edx, byte [ecx]
test edx, edx
je 0x100ff873
push str.bIsKillProcess__true
push 1
push 0x2f7
push 0x1017dcd0
push str.OSExecuteWaitKillSignal
call fcn.10146290
add esp, 0x14
mov dword [ebp - 0x20], 0x1017dd10
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 0x100ff834
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 0x100ff7d4
cmp dword [ebp - 0x1c], 0
je 0x100ff888
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
je 0x100ff898
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], 0
je 0x100ff8a8
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 0
je 0x100ff8b8
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.10003e00
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret