Function at 0x14006fc60
Capabilities:
Get token privileges

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1405c7418]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov qword [rsp + 0x58], rcx
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
lea r8, [rsp + 0x50]
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14006feed
mov rcx, qword [rsp + 0x30]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14006fcd8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x30]
xor r8d, r8d
lea edx, [r8 + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x14006fd43
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x14006ff73
mov rcx, qword [rsp + 0x30]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14006fd22
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14006ffe5
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 3]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14006fd75
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140070057
mov ecx, dword [rsp + 0x38]
call fcn.1400b5f7c
mov rbx, rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
test rax, rax
je 0x1400700c9
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x38]
mov r8, rbx
mov edx, 3
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14006fe7b
mov edx, edi
mov r8d, dword [rbx]
test r8d, r8d
je 0x14006fdf5
lea rcx, [rbx + 8]
mov rax, qword [rsp + 0x50]
mov r9d, dword [rsp + 0x54]
nop
cmp dword [rcx - 4], eax
jne 0x14006fdea
cmp dword [rcx], r9d
je 0x14006fe4b
inc edx
add rcx, 0xc
cmp edx, r8d
jb 0x14006fde0
mov rcx, rbx
call fcn.1400b5f68
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov rcx, qword [rsp + 0x30]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14006fe21
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], rdi
xor al, al
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400ab7b0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov rcx, rbx
call fcn.1400b5f68
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov rcx, qword [rsp + 0x30]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14006fe77
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], rdi
mov al, 1
jmp 0x14006fe23
lea rdx, str.RunTime::Access::privilegeExist
lea rcx, [rsp + 0x60]
call fcn.140005380
nop
lea rcx, [rbp - 0x40]
call fcn.140005740
nop
mov r9d, 0x858
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.1400057f0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rbp - 0x60]
call fcn.140005740
nop
lea r8, str.Unable_to_get_token_privileges
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1400034a0
nop
mov rcx, rax
call fcn.1400083b0
mov rcx, rax
mov r8, rdi
mov edx, ebx
call fcn.14001f0f0
nop
lea rdx, [0x140411b98]
lea rcx, [rsp + 0x60]
call fcn.140005380
nop
lea rcx, [rbp + 0x30]
call fcn.140005740
nop
mov r9d, 0x83f
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.1400057f0
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea r8, [rsp + 0x58]
lea rdx, str.The_privilege___s__is_not_found
lea rcx, [rbp - 0x80]
call fcn.1400048b0
mov rbx, rax
lea rcx, [rbp - 0x60]
call fcn.140005740
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.1400033e0
nop
mov rcx, rax
call fcn.1400083b0
mov r8, rsi
mov edx, edi
mov rcx, rax
call fcn.14001f0f0
nop
lea rdx, [0x140411c00]
lea rcx, [rsp + 0x60]
call fcn.140005380
nop
lea rcx, [rbp - 0x40]
call fcn.140005740
nop
mov r9d, 0x844
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.1400057f0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rbp - 0x60]
call fcn.140005740
nop
lea r8, [0x140411c20]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1400034a0
nop
mov rcx, rax
call fcn.1400083b0
mov r8, rdi
mov edx, ebx
mov rcx, rax
call fcn.14001f0f0
nop
lea rdx, [0x140411c60]
lea rcx, [rsp + 0x60]
call fcn.140005380
nop
lea rcx, [rbp - 0x40]
call fcn.140005740
nop
mov r9d, 0x848
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.1400057f0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rbp - 0x60]
call fcn.140005740
nop
lea r8, [0x140411c80]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1400034a0
nop
mov rcx, rax
call fcn.1400083b0
mov r8, rdi
mov edx, ebx
mov rcx, rax
call fcn.14001f0f0
nop
lea rdx, [0x140411cc0]
lea rcx, [rsp + 0x60]
call fcn.140005380
nop
lea rcx, [rbp - 0x40]
call fcn.140005740
nop
mov r9d, 0x84e
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.1400057f0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rbp - 0x60]
call fcn.140005740
nop
lea r8, [0x140411ce0]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1400034a0
nop
mov rcx, rax
call fcn.1400083b0
mov r8, rdi
mov edx, ebx
mov rcx, rax
call fcn.14001f0f0
nop
lea rdx, [0x140411d20]
lea rcx, [rsp + 0x60]
call fcn.140005380
nop
lea rcx, [rbp - 0x40]
call fcn.140005740
nop
mov r9d, 0x854
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.1400057f0
mov rdi, rax
lea r8, [rsp + 0x38]
lea rdx, str.Unable_to_allocate_memory_for_token_privileges___d__bytes
lea rcx, [rbp - 0x60]
call fcn.1400046f0
mov rbx, rax
lea rcx, [rbp - 0x80]
call fcn.140005740
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.1400033e0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.14001d280
lea rdx, [0x1405c2328]
lea rcx, [rbp - 0x20]
call fcn.1400ac6bc
int3