Function at 0x18008d140
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 [0x18012a010]
xor rax, rsp
mov qword [rbp + 0x220], rax
cmp qword [rdx + 0x18], 0x10
mov rdi, rdx
mov rsi, rcx
mov rbx, rdx
jb 0x18008d17f
mov rbx, qword [rdx]
xor edx, edx
lea rcx, [rbp + 0x20]
mov r8d, 0xf8
call fcn.1800d2e20
lea rcx, [rbp + 0x20]
call fcn.1800c1fa0
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 0x18008d230
inc rcx
mov eax, 2
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.1800d7fd4
xor r15d, r15d
mov r14, rax
test rax, rax
je 0x18008d4b3
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 0x18008d270
xorps xmm1, xmm1
mov dword [rbp + 0x10], r15d
xorps xmm0, xmm0
mov qword [rsp + 0x50], r15
movups xmmword [rbp - 0x78], xmm0
xor eax, eax
mov dword [rbp - 0x70], 1
xor r9d, r9d
mov qword [rbp - 0x78], r15
lea r8, [rbp - 0x80]
mov qword [rsp + 0x58], r15
lea rdx, [rsp + 0x58]
mov dword [rbp - 0x80], 0x18
lea rcx, [rsp + 0x50]
mov dword [rbp - 0x60], 0x68
movups xmmword [rbp - 0x58], xmm1
mov qword [rsp + 0x78], 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 [rsp + 0x68], 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 0x18008d4a5
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, [rsp + 0x68]
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 0x18008d4a5
nop word [rax + rax]
mov rcx, qword [rsp + 0x68]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x18008d3d2
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 0x18008d477
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 0x18008d390
cmp dword [rbp + 0x10], r15d
je 0x18008d390
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 0x18008d390
mov eax, dword [rbp + 0x10]
cmp rax, 0x80
jae 0x18008d59c
lea rdx, [rbp + 0x120]
mov byte [rbp + rax + 0x120], r15b
lea rcx, [rbp + 0x30]
call fcn.1800c33a0
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 0x18008d3f7
jmp 0x18008d390
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
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 0x18008d4ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r14
call fcn.1800d7fc0
mov rcx, qword [rbp + 0xa8]
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 0xf
mov byte [rsi], r15b
test cl, 2
jne 0x18008d4f5
mov rax, qword [rbp + 0x78]
mov r8, qword [rax]
test r8, r8
je 0x18008d4f5
cmp r8, qword [rbp + 0xa0]
mov rax, qword [rbp + 0x58]
cmovb r8, qword [rbp + 0xa0]
mov rdx, qword [rax]
sub r8, rdx
jmp 0x18008d51d
test cl, 4
jne 0x18008d525
mov rax, qword [rbp + 0x70]
mov rcx, qword [rax]
test rcx, rcx
je 0x18008d525
mov rax, qword [rbp + 0x50]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x88]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
mov rcx, rsi
call fcn.1800c2b50
lea rcx, [rbp + 0x20]
call fcn.18008d5b0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x18008d564
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x18008d55f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18008d5a2
mov rcx, r8
call fcn.1800cf9b0
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.1800cf6f0
mov rbx, qword [rsp + 0x370]
add rsp, 0x330
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1800cf81c
int3
call fcn.1800dec10
int3