Function at 0x10089529
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push esi
or eax, 0xffffffff
mov dword [ebp - 0x38], edx
xor ebx, ebx
mov dword [ebp - 8], eax
push edi
push 0xc
push 1
mov esi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_calloc]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1008989e
mov edx, esi
mov ecx, edi
call fcn.1002c12c
test eax, eax
jne 0x1008989e
push 0x2e
push dword [edi]
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x100895ac
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1008959e
sub ecx, edx
cmp ecx, 4
jbe 0x100895b1
mov ebx, 0x10023eac
mov esi, 0x104
mov edx, esi
lea ecx, [ebp - 0x34]
call fcn.10064c43
test eax, eax
je 0x1008989e
lea eax, [ebp - 0x28]
mov dword [ebp - 4], esi
push eax
push dword [ebp - 0x34]
push esi
push ebx
push dword [edi]
push 0
call dword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_SearchPathA]
mov esi, eax
test esi, esi
je 0x1008989e
cmp esi, dword [ebp - 4]
ja 0x100895b6
mov esi, dword [edi + 4]
xor edx, edx
xor ebx, ebx
cmp dword [esi], edx
je 0x1008961c
mov eax, esi
test edx, edx
je 0x10089613
mov ecx, dword [eax]
lea eax, [ecx + 1]
mov dword [ebp - 4], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10089606
sub ecx, dword [ebp - 4]
inc ebx
add ebx, ecx
inc edx
lea eax, [esi + edx*4]
cmp dword [eax], 0
jne 0x100895fa
lea edx, [ebx + 1]
lea ecx, [ebp - 0x24]
call fcn.10064c43
test eax, eax
je 0x1008989e
mov eax, dword [edi + 4]
xor ebx, ebx
cmp dword [eax], ebx
je 0x100896e4
xor esi, esi
test ebx, ebx
jne 0x100896af
push 0x2f
push dword [esi + eax]
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strchr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10089671
mov eax, dword [edi + 4]
push 0x5c
push dword [eax]
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strchr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10089671
mov eax, dword [edi + 4]
mov esi, dword [eax]
jmp 0x10089672
inc esi
push 0x20
push esi
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strchr]
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x1008968e
mov dl, 0x22
lea ecx, [ebp - 0x24]
call fcn.10064d2d
push 0x1000000
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.10064cb5
cmp dword [ebp - 4], 0
je 0x100896cc
mov dl, 0x22
lea ecx, [ebp - 0x24]
call fcn.10064d2d
jmp 0x100896cc
mov dl, 0x20
lea ecx, [ebp - 0x24]
call fcn.10064d2d
mov edx, dword [edi + 4]
lea ecx, [ebp - 0x24]
push 0x1000000
mov edx, dword [edx + esi]
call fcn.10064cb5
mov eax, dword [edi + 4]
inc ebx
mov esi, ebx
shl esi, 2
cmp dword [esi + eax], 0
jne 0x1008963e
cmp ebx, 1
jg 0x1008971f
push 0x20
push dword [ebp - 0x28]
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strchr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10089701
mov dl, 0x22
lea ecx, [ebp - 0x24]
call fcn.10064d2d
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
push 0x1000000
call fcn.10064cb5
test esi, esi
je 0x1008971f
mov dl, 0x22
lea ecx, [ebp - 0x24]
call fcn.10064d2d
xor ebx, ebx
mov dword [ebp - 0x44], 0xc
push ebx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x3c], 1
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x40], ebx
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_CreatePipe]
test eax, eax
je 0x1008989e
push ebx
push 1
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_SetHandleInformation]
test eax, eax
je 0x1008989e
push ebx
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_CreatePipe]
test eax, eax
je 0x1008989e
push ebx
push 1
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_SetHandleInformation]
test eax, eax
je 0x1008989e
push 2
push 1
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetStdHandle]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
push eax
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_DuplicateHandle]
test eax, eax
je 0x1008989e
push 0x44
pop esi
push esi
lea eax, [ebp - 0x98]
push ebx
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], eax
xor eax, eax
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], esi
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x24]
mov dword [ebp - 0x6c], 0x101
push dword [ebp - 0x34]
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessA]
test eax, eax
je 0x1008989e
mov ecx, dword [ebp - 0x54]
call fcn.100894de
push dword [ebp - 0x54]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
push dword [ebp - 0x50]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__open_osfhandle]
mov ecx, dword [ebp + 8]
push 1
push dword [ebp - 0x10]
mov dword [ecx], eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__open_osfhandle]
mov ecx, dword [ebp - 0x38]
add esp, 0x10
push dword [ebp - 0x4c]
mov dword [ecx], eax
push ebx
push 0x400
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
test eax, eax
je 0x1008989e
mov ecx, dword [ebp + 0xc]
push dword [ebp - 8]
mov dword [ecx], eax
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea ecx, [ebp - 0x24]
call fcn.10064c22
lea ecx, [ebp - 0x34]
call fcn.10064c22
mov ecx, edi
call fcn.1002c271
xor eax, eax
jmp 0x10089901
or esi, 0xffffffff
cmp dword [ebp - 0xc], esi
je 0x100898af
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp dword [ebp - 8], esi
je 0x100898bd
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp dword [ebp - 0x14], esi
je 0x100898cb
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp dword [ebp - 0x10], esi
je 0x100898d9
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp dword [ebp - 0x18], esi
je 0x100898e7
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea ecx, [ebp - 0x24]
call fcn.10064c22
lea ecx, [ebp - 0x34]
call fcn.10064c22
mov ecx, edi
call fcn.1002c271
push 0xffffffffffffffe7
pop eax
pop edi
pop esi
pop ebx
leave
ret 8