Function at 0x18008ca00
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:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x180126010]
xor rax, rsp
mov qword [rbp + 0x220], rax
cmp qword [rdx + 0x18], 0x10
mov rdi, rdx
mov rsi, rcx
mov rbx, rdx
jb 0x18008ca3f
mov rbx, qword [rdx]
xor edx, edx
lea rcx, [rbp + 0x20]
mov r8d, 0xf8
call fcn.1800d0180
lea rcx, [rbp + 0x20]
call fcn.1800bef30
xorps xmm0, xmm0
lea rdx, [rbp + 0x1a0]
xorps xmm1, xmm1
mov ecx, 0x80
movups xmmword [rbp + 0x120], xmm0
movups xmmword [rbp + 0x130], xmm0
movups xmmword [rbp + 0x140], xmm0
movups xmmword [rbp + 0x150], xmm0
movups xmmword [rbp + 0x160], xmm0
movups xmmword [rbp + 0x170], xmm0
movups xmmword [rbp + 0x180], xmm0
movups xmmword [rbp + 0x190], xmm0
movups xmmword [rbp + 0x1a0], xmm1
movups xmmword [rbp + 0x1b0], xmm1
movups xmmword [rbp + 0x1c0], xmm1
movups xmmword [rbp + 0x1d0], xmm1
movups xmmword [rbp + 0x1e0], xmm1
movups xmmword [rbp + 0x1f0], xmm1
movups xmmword [rbp + 0x200], xmm1
movups xmmword [rbp + 0x210], xmm1
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov r8, 0xffffffffffffffff
mov rcx, r8
nop dword [rax + rax]
inc rcx
cmp byte [rbx + rcx], 0
jne 0x18008caf0
inc rcx
mov eax, 2
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.1800d5574
xor r15d, r15d
mov r14, rax
test rax, rax
je 0x18008cd70
mov rdx, rax
sub rdx, rbx
nop word [rax + rax]
movzx ecx, byte [rbx]
mov byte [rdx + rbx], cl
lea rbx, [rbx + 1]
test cl, cl
jne 0x18008cb30
xorps xmm1, xmm1
mov dword [rbp + 0x10], r15d
xorps xmm0, xmm0
mov qword [rsp + 0x50], 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 [rsp + 0x58], r15
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x68], 0x18
lea rcx, [rsp + 0x50]
mov dword [rbp - 0x60], 0x68
movups xmmword [rbp - 0x58], xmm1
mov qword [rbp - 0x70], rax
movups xmmword [rbp - 0x48], xmm1
movups xmmword [rbp - 0x38], xmm1
movups xmmword [rbp - 0x28], xmm1
movups xmmword [rbp - 0x18], xmm1
movups xmmword [rbp - 8], xmm1
movups xmmword [rbp - 0x80], xmm0
call qword [sym.imp.KERNEL32.dll_CreatePipe]
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov ebx, eax
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test ebx, ebx
je 0x18008cd62
mov rax, qword [rsp + 0x58]
lea rcx, [rsp + 0x60]
mov qword [rbp], rax
mov qword [rbp - 8], rax
mov word [rbp - 0x20], r15w
mov dword [rbp - 0x24], 0x101
mov qword [rsp + 0x60], r15
call qword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
lea rax, [rbp - 0x80]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x60]
mov rdx, r14
mov qword [rsp + 0x40], rax
xor ecx, ecx
lea rax, [rbp + 0x1a0]
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 [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
test ebx, ebx
je 0x18008cd62
nop dword [rax + rax]
mov rcx, qword [rbp - 0x80]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x18008cc91
mov rcx, qword [rsp + 0x50]
lea rax, [rbp + 0x10]
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 + 0x10], r15d
je 0x18008cd36
mov rcx, qword [rsp + 0x50]
lea rax, [rbp + 0x10]
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 0x18008cc50
cmp dword [rbp + 0x10], r15d
je 0x18008cc50
mov rcx, qword [rsp + 0x50]
lea r9, [rbp + 0x10]
mov r8d, 0x7f
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0x120]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18008cc50
mov eax, dword [rbp + 0x10]
cmp rax, 0x80
jae 0x18008ce75
lea rdx, [rbp + 0x120]
mov byte [rbp + rax + 0x120], r15b
lea rcx, [rbp + 0x30]
call fcn.1800c0380
mov rcx, qword [rsp + 0x50]
lea rax, [rbp + 0x10]
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 0x18008ccb6
jmp 0x18008cc50
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18008cd68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r14
call fcn.1800d5560
mov rcx, qword [rbp + 0xa8]
xorps xmm0, xmm0
mov eax, ecx
mov qword [rsi], r15
and al, 0x22
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 0xf
movups xmmword [rsp + 0x68], xmm0
cmp al, 2
je 0x18008cdbd
mov rax, qword [rbp + 0x78]
mov r8, qword [rax]
test r8, r8
je 0x18008cdbd
cmp r8, qword [rbp + 0xa0]
mov rax, qword [rbp + 0x58]
cmovb r8, qword [rbp + 0xa0]
mov rdx, qword [rax]
sub r8, rdx
jmp 0x18008cdf1
test cl, 4
jne 0x18008cde7
mov rax, qword [rbp + 0x70]
mov rcx, qword [rax]
test rcx, rcx
je 0x18008cde7
mov rax, qword [rbp + 0x50]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x88]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x18008cdf1
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x18008cdfe
mov rcx, rsi
call fcn.1800bfba0
lea rcx, [rbp + 0x20]
call fcn.18008ce90
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x18008ce3d
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x18008ce38
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18008ce7b
mov rcx, r8
call fcn.1800cd2cc
mov qword [rdi + 0x10], r15
mov rax, rsi
mov qword [rdi + 0x18], 0xf
mov byte [rdi], r15b
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1800cd010
mov rbx, qword [rsp + 0x370]
add rsp, 0x330
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1800cd138
int3
call fcn.1800dc358
int3