Function at 0x18008c4a0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Get common file path
Read file on windows
Read pipe

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1f8]
sub rsp, 0x2f8
cmp qword [rdx + 0x18], 0x10
mov rdi, rdx
mov rsi, rcx
mov rbx, rdx
jb 0x18008c4cb
mov rbx, qword [rdx]
lea rcx, [rbp + 0xf0]
call fcn.1800a74e0
xorps xmm0, xmm0
lea rdx, [rbp + 0x70]
xorps xmm1, xmm1
mov ecx, 0x80
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm1
movups xmmword [rbp + 0x80], xmm1
movups xmmword [rbp + 0x90], xmm1
movups xmmword [rbp + 0xa0], xmm1
movups xmmword [rbp + 0xb0], xmm1
movups xmmword [rbp + 0xc0], xmm1
movups xmmword [rbp + 0xd0], xmm1
movups xmmword [rbp + 0xe0], xmm1
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
cmp byte [rbx + rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x18008c550
lea rcx, [rcx*2 + 2]
call fcn.1800b7f04
xor r15d, r15d
mov r14, rax
test rax, rax
je 0x18008c7e2
mov rdx, rax
sub rdx, rbx
nop dword [rax]
movzx ecx, byte [rbx]
mov byte [rdx + rbx], cl
lea rbx, [rbx + 1]
test cl, cl
jne 0x18008c580
xorps xmm1, xmm1
mov dword [rbp + 0x230], r15d
xorps xmm0, xmm0
mov qword [rbp + 0x238], r15
movups xmmword [rsp + 0x70], xmm0
xor eax, eax
mov dword [rsp + 0x78], 1
xor r9d, r9d
mov qword [rsp + 0x70], r15
lea r8, [rsp + 0x68]
mov qword [rbp + 0x240], r15
lea rdx, [rbp + 0x240]
mov dword [rsp + 0x68], 0x18
lea rcx, [rbp + 0x238]
mov dword [rbp - 0x80], 0x68
movups xmmword [rbp - 0x78], xmm1
mov qword [rsp + 0x60], rax
movups xmmword [rbp - 0x68], xmm1
movups xmmword [rbp - 0x58], xmm1
movups xmmword [rbp - 0x48], xmm1
movups xmmword [rbp - 0x38], xmm1
movups xmmword [rbp - 0x28], xmm1
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreatePipe]
mov rcx, qword [rbp + 0x238]
xor r8d, r8d
mov ebx, eax
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test ebx, ebx
je 0x18008c7d4
mov rax, qword [rbp + 0x240]
lea rcx, [rbp + 0x248]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x28], rax
mov word [rbp - 0x40], r15w
mov dword [rbp - 0x44], 0x101
mov qword [rbp + 0x248], r15
call qword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x80]
mov rdx, r14
mov qword [rsp + 0x40], rax
xor ecx, ecx
lea rax, [rbp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rbp + 0x248]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
test ebx, ebx
je 0x18008c7d4
nop dword [rax]
mov rcx, qword [rsp + 0x50]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x18008c6fa
mov rcx, qword [rbp + 0x238]
lea rax, [rbp + 0x230]
mov qword [rsp + 0x28], r15
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [rbp + 0x230], r15d
je 0x18008c7a2
mov rcx, qword [rbp + 0x238]
lea rax, [rbp + 0x230]
mov qword [rsp + 0x28], r15
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x18008c6b0
cmp dword [rbp + 0x230], r15d
je 0x18008c6b0
mov rcx, qword [rbp + 0x238]
lea r9, [rbp + 0x230]
mov r8d, 0x7f
mov qword [rsp + 0x20], r15
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18008c6b0
mov eax, dword [rbp + 0x230]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x100]
mov byte [rbp + rax - 0x10], r15b
call fcn.1800a84c0
mov rcx, qword [rbp + 0x238]
lea rax, [rbp + 0x230]
mov qword [rsp + 0x28], r15
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x18008c724
jmp 0x18008c6b0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x240]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18008c7da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r14
call fcn.1800b7ef0
mov rcx, qword [rbp + 0x178]
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 0xf
mov byte [rsi], r15b
test cl, 2
jne 0x18008c82a
mov rax, qword [rbp + 0x148]
mov r8, qword [rax]
test r8, r8
je 0x18008c82a
cmp r8, qword [rbp + 0x170]
mov rax, qword [rbp + 0x128]
cmovb r8, qword [rbp + 0x170]
mov rdx, qword [rax]
sub r8, rdx
jmp 0x18008c858
test cl, 4
jne 0x18008c860
mov rax, qword [rbp + 0x140]
mov rcx, qword [rax]
test rcx, rcx
je 0x18008c860
mov rax, qword [rbp + 0x120]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x158]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
mov rcx, rsi
call fcn.1800a7f50
lea rcx, [rbp + 0xf0]
call fcn.18008c8d0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x18008c8a2
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x18008c89d
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18008c8c4
mov rcx, r8
call fcn.1800afef0
mov qword [rdi + 0x10], r15
mov rax, rsi
mov qword [rdi + 0x18], 0xf
mov byte [rdi], r15b
add rsp, 0x2f8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1800bb0c0
int3