Function at 0x140001130
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r8d, dword [0x14000763c]
mov rdi, rdx
mov ebx, ecx
cmp ecx, 1
jle 0x140001225
mov rdx, qword [rdi + 8]
add rdi, 8
cmp word [rdx], 0x2d
jne 0x140001225
movzx ecx, word [rdx + 2]
sub ecx, 0x63
je 0x1400011fe
sub ecx, 1
je 0x140001195
sub ecx, 4
je 0x140001245
cmp ecx, 1
jne 0x14000123c
mov dword [0x140007638], ecx
jmp 0x14000121a
dec ebx
mov rsi, rdi
cmp ebx, 1
jle 0x140001263
mov rcx, qword [rdi + 8]
add rdi, 8
cmp word [rcx], 0x2d
je 0x140001263
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
mov dword [0x14000763c], eax
mov r8d, eax
test eax, eax
jne 0x14000121a
mov rdx, qword [rsi + 8]
lea rcx, [0x1400045b0]
call fcn.140001010
lea rcx, str._ndayu_v_ws__by__itm4n__n_n
call fcn.140001010
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
dec ebx
cmp ebx, 1
jle 0x140001274
mov rax, qword [rdi + 8]
add rdi, 8
cmp word [rax], 0x2d
je 0x140001274
mov qword [0x140007640], rax
dec ebx
cmp ebx, 1
jg 0x140001154
cmp dword [0x140007638], 0
je 0x140001285
test r8d, r8d
je 0x140001285
lea rcx, str.____More_than_one_interaction_mode_was_specified._n
jmp 0x1400011e4
lea rcx, str.____Invalid_argument:__ls_n
jmp 0x1400011d8
lea rcx, str._ndayu_v_ws__by__itm4n__n_n
call fcn.140001010
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rcx, str.____Missing_value_for_option:__d_n
call fcn.140001010
jmp 0x1400011dd
lea rcx, str.____Missing_value_for_option:__c_n
call fcn.140001010
jmp 0x1400011dd
cmp qword [0x140007640], 0
jne 0x14000129b
lea rcx, str.____Please_specify_a_command_to_execute_n
jmp 0x1400011e4
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400012b0
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 [0x140007008]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor r14d, r14d
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], r14
mov rsi, rdi
call fcn.140001610
lea rdx, str.SeImpersonatePrivilege
test eax, eax
jne 0x140001312
lea rcx, str.____A_privilege_is_missing:__ws_n
call fcn.140001010
jmp 0x1400015b7
lea rcx, str.___Found_privilege:__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 0x1400015ab
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x1400015ab
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x1400015ab
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 0x1400013e7
mov r9, rbx
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 0x1400013f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.InitializeSecurityDescriptor___failed._Error:__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.____Failed_to_create_a_named_pipe._n
call fcn.140001010
jmp 0x1400015c0
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]
test eax, eax
jne 0x140001426
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ConvertStringSecurityDescriptorToSecurityDescriptor___failed._Error:__d_n
jmp 0x1400013d9
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 rbx, rax
cmp rax, rsi
jne 0x140001478
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateNamedPipe___failed._Error:__d_n
jmp 0x1400013d9
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x1400013e7
xorps xmm0, xmm0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
movups xmmword [rsp + 0x48], xmm0
lea edx, [r9 + 1]
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
test rax, rax
jne 0x1400014ba
lea rdi, str.CreateEvent___failed._Error:__d_n
jmp 0x1400014ee
xorps xmm0, xmm0
mov qword [rsp + 0x60], rdi
lea rdx, [rsp + 0x48]
mov rcx, rbx
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140001518
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140001518
lea rdi, str.ConnectNamedPipe___failed._Error:__d_n
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
call fcn.140001010
lea rcx, str.____Failed_to_connect_the_named_pipe._n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400015ce
lea rcx, str.___Named_pipe_listening..._n
call fcn.140001010
mov r9, qword [rsp + 0x40]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r8, [0x1400018a0]
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 0x14000157b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateThread___failed._Error:__d_n
call fcn.140001010
lea rcx, str.____Failed_to_trigger_the_Spooler_service._n
call fcn.140001010
mov rcx, rbx
jmp 0x1400015ba
mov edx, 0x1388
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000159e
lea rcx, str.____Operation_failed_or_timed_out._n
call fcn.140001010
mov rcx, rbx
jmp 0x1400015ba
mov rcx, rbx
call fcn.140001ac0
mov rcx, rbx
jmp 0x1400015ba
lea rcx, str.____Failed_to_generate_a_name_for_the_pipe._n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x1400015d7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140001fa0
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