Function at 0x140001210
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rdi, rdx
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 1
jle 0x14000114d
mov r8, qword [rdi + 8]
lea rdx, [rdi + 8]
cmp word [r8], 0x2d
jne 0x14000114d
movzx ecx, word [r8 + 2]
sub ecx, 0x63
je 0x14000111b
sub ecx, 1
je 0x1400010ca
cmp ecx, 5
jne 0x140001183
mov dword [0x140006670], 1
jmp 0x14000113e
dec ebx
mov rdi, rdx
cmp ebx, 1
jle 0x1400011a2
mov rcx, qword [rdx + 8]
cmp word [rcx], 0x2d
je 0x1400011a2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
mov dword [0x140006674], eax
test eax, eax
jne 0x14000113e
mov rdx, qword [rdi + 8]
lea rcx, [0x1400045d0]
call fcn.140001010
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
dec ebx
mov rdi, rdx
cmp ebx, 1
jle 0x1400011be
mov rax, qword [rdx + 8]
cmp word [rax], 0x2d
je 0x1400011be
mov qword [0x140006678], rax
add rdi, 8
dec ebx
cmp ebx, 1
jg 0x140001093
cmp dword [0x140006670], 0
je 0x1400011da
cmp dword [0x140006674], 0
je 0x1400011da
lea rcx, str.err5._n
call fcn.140001010
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rdx, r8
lea rcx, str.err4:__ls_n
call fcn.140001010
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.err2:__d_n
call fcn.140001010
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.err3:__c_n
call fcn.140001010
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp qword [0x140006678], 0
jne 0x140001200
lea rcx, str.err6_n
call fcn.140001010
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140001210
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xc0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor r14d, r14d
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x40], r14
mov rsi, rbx
call fcn.140001510
lea rdx, str.SeImpersonatePrivilege
test eax, eax
jne 0x140001272
lea rcx, str.err7:__ws_n
call fcn.140001010
jmp 0x1400014b5
lea rcx, str._ws_n
call fcn.140001010
xorps xmm0, xmm0
lea rcx, [rsp + 0x70]
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x1400014a9
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x1400014a9
cmp qword [rsp + 0x40], r14
je 0x1400014a9
xorps xmm0, xmm0
xor eax, eax
mov ecx, 0x208
mov qword [rsp + 0xa8], rax
movups xmmword [rsp + 0x88], xmm0
mov qword [rsp + 0x80], rax
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x14000132d
mov edx, 1
lea rcx, [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x14000133e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.err17:__d_n
call fcn.140001010
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, str.err8._n
call fcn.140001010
jmp 0x1400014be
lea rax, [rsp + 0x70]
mov r9d, 0xa
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], r14d
mov edx, 0x40000003
mov dword [rsp + 0x28], 0x800
mov rcx, rbp
mov dword [rsp + 0x20], 0x800
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rdi, rax
cmp rax, rbx
jne 0x14000138d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.err19:__d_n
jmp 0x14000131f
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rdi, rdi
je 0x14000132d
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
test rax, rax
jne 0x1400013bf
lea rbx, str.err20:__d_n
jmp 0x1400013f8
xorps xmm0, xmm0
mov qword [rsp + 0x48], r14
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x60], rbx
mov rcx, rdi
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140001422
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140001422
lea rbx, str.err21:__d_n
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140001010
lea rcx, str.err9._n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400014cc
mov r9, qword [rsp + 0x40]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r8, [0x1400017e0]
xor edx, edx
mov dword [rsp + 0x20], r14d
xor ecx, ecx
mov dword [rsp + 0x68], r14d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x140001479
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.err22:__d_n
call fcn.140001010
lea rcx, str.err10._n
call fcn.140001010
mov rcx, rdi
jmp 0x1400014b8
mov edx, 0x1388
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000149c
lea rcx, str.err11._n
call fcn.140001010
mov rcx, rdi
jmp 0x1400014b8
mov rcx, rdi
call fcn.1400019d0
mov rcx, rdi
jmp 0x1400014b8
lea rcx, str.err7._n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x1400014d5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140001e50
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret