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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov edx, dword [0x14000663c]
mov ebx, ecx
cmp ecx, 1
jle 0x1400011db
nop
mov rax, qword [rdi + 8]
add rdi, 8
cmp word [rax], 0x2d
jne 0x1400011db
movzx eax, word [rax + 2]
sub eax, 0x63
je 0x1400011b4
sub eax, 1
je 0x140001186
sub eax, 4
je 0x14000120e
cmp eax, 1
jne 0x1400011fe
mov dword [0x140006638], eax
jmp 0x1400011d0
dec ebx
cmp ebx, 1
jle 0x1400011fe
mov rcx, qword [rdi + 8]
add rdi, 8
cmp word [rcx], 0x2d
je 0x1400011fe
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
mov dword [0x14000663c], eax
mov edx, eax
test eax, eax
je 0x1400011fe
jmp 0x1400011d0
dec ebx
cmp ebx, 1
jle 0x1400011fe
mov rax, qword [rdi + 8]
add rdi, 8
cmp word [rax], 0x2d
je 0x1400011fe
mov qword [0x140006640], rax
dec ebx
cmp ebx, 1
jg 0x140001150
cmp dword [0x140006638], 0
je 0x1400011e8
test edx, edx
jne 0x1400011fe
cmp qword [0x140006640], 0
jne 0x14000121b
lea rcx, [0x1400045e0]
call fcn.140001010
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140001230
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 [0x140006008]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, 0xffffffffffffffff
xor r14d, r14d
mov qword [rsp + 0x40], r14
mov rdi, rbx
mov rbp, rbx
call fcn.1400014d0
test eax, eax
je 0x140001473
xorps xmm0, xmm0
lea rcx, [rsp + 0x70]
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
je 0x1400012a0
mov rcx, rbx
jmp 0x140001476
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
je 0x1400012bc
mov rcx, rbx
jmp 0x140001476
mov rdi, qword [rsp + 0x40]
test rdi, rdi
jne 0x1400012ce
mov rcx, rbx
jmp 0x140001476
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 rsi, rax
test rax, rax
je 0x14000147c
mov r9, rdi
lea r8, str..pipe_wspipe_spoolss
mov edx, 0x104
mov rcx, rax
call fcn.140001070
mov edx, 1
lea rcx, [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x14000134b
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000147c
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rcx, str.D:_A_OICI_GA___WD_
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
mov rcx, rsi
test eax, eax
jne 0x140001376
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000147c
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 dword [rsp + 0x20], 0x800
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rdi, rax
mov rcx, rsi
cmp rax, rbx
jne 0x1400013bf
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000147c
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rdi, rdi
je 0x14000147c
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbp, rax
mov rcx, rdi
test rax, rax
je 0x14000141d
xorps xmm0, xmm0
mov qword [rsp + 0x48], r14
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x60], rax
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140001425
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140001425
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000148a
mov r9, qword [rsp + 0x40]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r8, [0x140001720]
xor edx, edx
mov dword [rsp + 0x20], r14d
xor ecx, ecx
mov dword [rsp + 0x68], r14d
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140001459
mov rbx, r14
jmp 0x140001473
mov edx, 0x1388
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140001473
mov rcx, rdi
call fcn.140001940
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140001493
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140001d30
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