Function at 0x18008ccd0
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 0x18008ccfb
mov rbx, qword [rdx]
lea rcx, [rbp + 0xf0]
call fcn.1800be520
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 0x18008cd80
lea rcx, [rcx*2 + 2]
call fcn.1800d3ef4
xor r15d, r15d
mov r14, rax
test rax, rax
je 0x18008d012
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 0x18008cdb0
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 0x18008d004
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 0x18008d004
nop dword [rax]
mov rcx, qword [rsp + 0x50]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x18008cf2a
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 0x18008cfd2
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 0x18008cee0
cmp dword [rbp + 0x230], r15d
je 0x18008cee0
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 0x18008cee0
mov eax, dword [rbp + 0x230]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x100]
mov byte [rbp + rax - 0x10], r15b
call fcn.1800bf5a0
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 0x18008cf54
jmp 0x18008cee0
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 0x18008d00a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r14
call fcn.1800d3ee0
mov rcx, qword [rbp + 0x178]
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 0xf
mov byte [rsi], r15b
test cl, 2
jne 0x18008d05a
mov rax, qword [rbp + 0x148]
mov r8, qword [rax]
test r8, r8
je 0x18008d05a
cmp r8, qword [rbp + 0x170]
mov rax, qword [rbp + 0x128]
cmovb r8, qword [rbp + 0x170]
mov rdx, qword [rax]
sub r8, rdx
jmp 0x18008d088
test cl, 4
jne 0x18008d090
mov rax, qword [rbp + 0x140]
mov rcx, qword [rax]
test rcx, rcx
je 0x18008d090
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.1800bef90
lea rcx, [rbp + 0xf0]
call fcn.18008d100
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x18008d0d2
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x18008d0cd
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18008d0f4
mov rcx, r8
call fcn.1800cb8d0
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.1800dab30
int3