Function at 0x140002170
Capabilities:
Create thread

Disassembly:
push rbp
sub rsp, 0x90
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbp, rdx
xor ecx, ecx
lea rdx, str.SeImpersonatePrivilege
call fcn.140002480
test eax, eax
je 0x1400023ec
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x80], r15
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
xor edx, edx
lea rcx, [0x140026e90]
mov r8d, 0x200
mov rsi, rax
call fcn.140003b50
lea rax, [rsp + 0x70]
mov r9d, 0x100
lea r8, [0x140026e90]
mov qword [rsp + 0x20], rax
mov edx, 2
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetUserObjectInformationW]
xor edx, edx
lea rcx, [0x140026e90]
mov r8d, 0x60000
call qword [sym.imp.USER32.dll_OpenWindowStationW]
mov rcx, rax
mov r14, rax
call qword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
jne 0x140002244
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Error_SetProcessWindowStation:_d_n
call fcn.140001010
mov r9d, 0x60081
lea rcx, str.default
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_OpenDesktopW]
mov rbx, rax
test rax, rax
jne 0x140002278
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Error_open_Desktop:_d_n
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
jne 0x140002299
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Error_SetProcessWindowStation2:_d_n
call fcn.140001010
xor r15d, r15d
mov dword [rsp + 0x68], 0
lea rax, [rsp + 0x60]
mov word [rsp + 0x6c], 0x100
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x48], r15d
xor r9d, r9d
mov dword [rsp + 0x40], r15d
xor r8d, r8d
mov dword [rsp + 0x38], r15d
mov dl, 1
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
mov qword [rsp + 0x60], r15
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, r15d
mov rcx, rsi
test eax, eax
cmovne rdi, qword [rsp + 0x60]
mov rdx, rdi
call fcn.140001070
mov rsi, qword [rsp + 0xb0]
test eax, eax
jne 0x140002321
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Error_add_Ace_Station:_d_n
call fcn.140001010
mov rdx, rdi
mov rcx, rbx
call fcn.140001470
mov rdi, qword [rsp + 0xb8]
test eax, eax
jne 0x14000234c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Error_add_Ace_desktop:_d_n
call fcn.140001010
mov rcx, r14
call qword [sym.imp.USER32.dll_CloseWindowStation]
mov rcx, rbx
call qword [sym.imp.USER32.dll_CloseDesktop]
movzx ebx, byte [0x140026e74]
mov r14, qword [rsp + 0x88]
nop dword [rax]
lea rcx, str.___Creating_Pipe_Server_thread.._n
mov dword [rsp + 0x70], r15d
call fcn.140001010
lea rax, [rsp + 0x70]
mov r9, rbp
mov qword [rsp + 0x28], rax
lea r8, [0x140001830]
xor edx, edx
mov dword [rsp + 0x20], r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400023c2
lea rcx, str.____Named_pipe_didnt_received_any_connect_request._Exiting_...__n
call fcn.1400017d0
test bl, bl
jne 0x140002370
mov r15, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400025c0
add rsp, 0x90
pop rbp
ret
lea rdx, str.SeImpersonatePrivilege
lea rcx, str.____A_privilege_is_missing:__ws._Exiting_..._n
call fcn.1400017d0
mov ecx, 0xffffffff
call fcn.14000b10c
int3