Function at 0x140001eac
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov ebx, 3
mov r14, rdx
mov edi, ecx
cmp ecx, ebx
jl 0x1400021aa
call fcn.1400015ac
xor r12d, r12d
test al, al
je 0x1400021aa
lea r13d, [rbx - 2]
mov r15b, r12b
cmp edi, ebx
jle 0x140001fa3
lea rsi, [r14 + 0x18]
mov rcx, qword [rsi]
lea rdx, str._AutoExit
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
mov rcx, qword [rsi]
lea rdx, str._RootProcessId:
test eax, eax
movzx r15d, r15b
mov r8d, 0xe
cmove r15d, r13d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x140001f94
mov rcx, qword [rsi]
lea rdx, [rbp - 0x29]
add rcx, 0x1e
xor r8d, r8d
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
mov rdx, qword [rbp - 0x29]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], r12w
jne 0x140001f61
test rcx, rcx
jne 0x1400021aa
mov r8d, eax
xor edx, edx
mov ecx, 0x101000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x140007890], rax
test rax, rax
je 0x1400021aa
add ebx, r13d
add rsi, 8
cmp ebx, edi
jl 0x140001f12
mov r8, qword [r14 + 0x10]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rdi, rax
test rax, rax
je 0x1400021aa
lea rcx, [rbp - 1]
call fcn.140001ca8
test eax, eax
je 0x1400021aa
mov rcx, qword [r14 + 8]
lea rax, [rbp - 1]
mov qword [rsp + 0x38], rax
mov r9d, r13d
mov eax, 0x1000
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], eax
mov edx, 0x40000003
mov r8d, 0xe
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400021aa
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x1400021aa
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
test rax, rax
jne 0x14000219b
mov eax, 0x80004005
jmp 0x1400021ad
xorps xmm0, xmm0
mov qword [rbp - 0x21], r12
mov rcx, rdi
mov qword [rbp - 9], rdi
movdqu xmmword [rbp - 0x19], xmm0
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rdx, [rbp - 0x21]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14000216e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x14000216e
cmp eax, 0x3e5
jne 0x1400021ad
cmp byte [0x140007898], r12b
jne 0x140002140
mov rdx, qword [0x140007890]
mov rax, rdx
mov qword [rbp + 0x1f], rdx
neg rax
mov qword [rbp + 0x17], rdi
lea rdx, [rbp + 0x17]
sbb ecx, ecx
xor eax, eax
neg ecx
mov qword [rbp + 0x27], rax
add ecx, r13d
or r9d, 0xffffffff
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x14000214b
cmp eax, r13d
jne 0x1400021aa
mov rcx, qword [0x140007890]
lea rdx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400021aa
cmp dword [rbp - 0x29], 0x103
je 0x14000212b
mov rcx, qword [0x140007890]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, r12
mov al, r13b
mov qword [0x140007890], rdx
mov byte [0x140007898], al
jmp 0x140002138
mov rdx, qword [0x140007890]
mov al, byte [0x140007898]
test al, al
je 0x1400020ae
mov byte [0x140007899], r13b
xor eax, eax
jmp 0x1400021ad
mov rdx, rdi
mov rcx, rbx
call fcn.140001a64
test al, al
je 0x1400021aa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x14000219b
mov rdx, rdi
mov rcx, rbx
call fcn.140001a64
test al, al
je 0x1400021aa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test r15b, r15b
je 0x14000219b
mov byte [0x140007899], r13b
cmp byte [0x140007899], r12b
je 0x140002050
jmp 0x140002147
or eax, 0xffffffff
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140003050
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret