Function at 0x1000f940
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Create two anonymous pipes
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
push eax
mov dword [ebp - 0x30], ebx
call fcn.1000da70
xor esi, esi
push 0x100022dc
push 0x100012f0
mov dword [ebp - 4], esi
mov dword [ebx], 0x10003cb4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], ecx
xor edx, edx
mov dword [ebp - 0x24], ecx
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x70]
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x1c], edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x18], edx
mov ecx, 0x40
lea edi, [ebp - 0x177]
mov byte [ebp - 0x178], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [ebx + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x18], esi
mov dword [edi], esi
lea esi, [ebx + 0x1c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x2c], 0xc
mov dword [esi], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x2c]
push edx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1000fa29
mov edi, dword [edi]
test edi, edi
je 0x1000fa16
push edi
call dword [ebp - 0x10]
mov esi, dword [esi]
test esi, esi
je 0x1000fbb0
push esi
call dword [ebp - 0x10]
jmp 0x1000fbb0
lea ecx, [ebp - 0x2c]
push 0
lea edi, [ebx + 0x14]
push ecx
lea eax, [ebx + 0x18]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1000fa5f
mov edi, dword [edi]
test edi, edi
je 0x1000fa4b
push edi
call dword [ebp - 0x10]
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x1000fbb0
push eax
call dword [ebp - 0x10]
jmp 0x1000fbb0
xor edx, edx
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x74]
mov dword [ebp - 0x20], edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x74]
mov dword [ebp - 0x18], edx
push eax
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, dword [ebx + 0x18]
mov esi, dword [esi]
lea edx, [ebp - 0x178]
push 0x104
push edx
mov dword [ebp - 0x74], 0x44
mov word [ebp - 0x44], 0
mov dword [ebp - 0x48], 0x101
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x100022d4
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x178]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x178]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x100022d0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x74]
lea edx, [ebp - 0x178]
push ecx
push 0
push 0
push 0x20
push 1
push 0
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1000fb59
mov eax, dword [ebx + 0x10]
mov esi, dword [ebp - 0x10]
push eax
call esi
mov ecx, dword [ebx + 0x14]
push ecx
call esi
mov edx, dword [ebx + 0x18]
push edx
call esi
mov eax, dword [ebx + 0x1c]
push eax
call esi
jmp 0x1000fbb0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
lea eax, [ebp + 0xb]
mov dword [ebx + 0x20], ecx
push 1
push eax
mov ecx, ebx
mov dword [ebx + 0x24], edx
mov byte [ebp + 0xb], 0x80
call fcn.1000daf0
mov ecx, ebx
call fcn.1000db60
push 0
push 0
push 0
push ebx
push 0x1000fd30
push 0
push 0
call fcn.10011e60
push 0
push 0
push 0
push ebx
push 0x1000fe10
push 0
push 0
mov dword [ebx + 0x28], eax
call fcn.10011e60
add esp, 0x38
mov dword [ebx + 0x2c], eax
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4