Function at 0x1400014f0
Capabilities:
Get token privileges

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 3]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14000157f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14000157f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Failed_to_retrieve_token_privileges._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001c50
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001e20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x1400015ed
mov ecx, dword [rsp + 0x30]
call fcn.140001f14
mov r14, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov r8, r14
mov edx, 3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140001618
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Failed_to_retrieve_token_privileges._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001c50
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001e20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, r14
call fcn.140001ed0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140001eb0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rdx, str.Privileges_after_elevation:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001c50
mov rcx, rax
lea rdx, [0x140001e20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor r13d, r13d
mov ebp, r13d
cmp dword [r14], r13d
jbe 0x1400015e5
lea r15, str.SeBackupPrivilege
lea r12, str.SeRestorePrivilege
nop dword [rax]
nop dword [rax + rax]
mov eax, ebp
lea rcx, [rax + rax*2]
movsd xmm0, qword [r14 + rcx*4 + 4]
movsd qword [rsp + 0x38], xmm0
mov eax, dword [r14 + rcx*4 + 0xc]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x34], r13d
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x140001862
xorps xmm0, xmm0
mov edi, eax
movdqu xmmword [rsp + 0x48], xmm0
mov rsi, r13
mov qword [rsp + 0x58], r13
add rdi, rdi
cmp rdi, 0x1000
jb 0x1400016ea
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x140001879
call fcn.140001ed8
test rax, rax
je 0x140001872
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1400016ff
test rdi, rdi
je 0x1400016fc
mov rcx, rdi
call fcn.140001ed8
mov rbx, rax
jmp 0x1400016ff
mov rbx, r13
mov qword [rsp + 0x48], rbx
lea rsi, [rbx + rdi]
mov qword [rsp + 0x58], rsi
mov r8, rdi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x50], rsi
lea r9, [rsp + 0x34]
mov r8, rbx
lea rdx, [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
je 0x140001828
lea rdx, [0x1400035fc]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140001a30
mov rcx, rax
mov rdx, rbx
call fcn.140001a30
test byte [rsp + 0x40], 2
je 0x140001774
lea rdx, str.__Enabled_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140001a30
lea rdx, [0x140001c10]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rax, r13
nop dword [rax + rax]
movzx ecx, word [rbx + rax*2]
cmp cx, word [r15 + rax*2]
jne 0x1400017d5
movzx ecx, word [rbx + rax*2 + 2]
cmp cx, word [r15 + rax*2 + 2]
jne 0x1400017d5
add rax, 2
cmp rax, 0x12
jne 0x140001790
lea rdx, str._____This_privilege_allows_backup_access_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140001a30
mov rcx, rax
lea rdx, [0x140001c10]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, 0xffffffffffffffff
nop dword [rax]
movzx eax, word [rbx + rcx*2 + 2]
cmp ax, word [r12 + rcx*2 + 2]
jne 0x140001828
add rcx, 2
cmp rcx, 0x13
je 0x140001804
movzx eax, word [rbx + rcx*2]
cmp ax, word [r12 + rcx*2]
jne 0x140001828
jmp 0x1400017e0
lea rdx, str._____This_privilege_allows_restore_access_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140001a30
mov rcx, rax
lea rdx, [0x140001c10]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
test rbx, rbx
je 0x140001862
sub rsi, rbx
sar rsi, 1
add rsi, rsi
mov rax, rbx
cmp rsi, 0x1000
jb 0x140001857
add rsi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001872
mov rdx, rsi
mov rcx, rbx
call fcn.140001ed0
inc ebp
cmp ebp, dword [r14]
jae 0x1400015e5
jmp 0x140001660
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001100
int3