Function at 0x140005b90
Capabilities:
Get token privileges

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xa8
mov rax, qword [0x14002a040]
xor rax, rsp
mov qword [rbp + 0x17], rax
xorps xmm0, xmm0
mov qword [rsp + 0xa0], r13
xor edi, edi
mov qword [rbp - 0x41], rdx
mov r15d, edi
mov qword [rbp - 0x49], rcx
movups xmmword [rbp - 0x19], xmm0
mov r14, rdx
mov rbx, rcx
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x400
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r13, rax
test rax, rax
je 0x140005e3a
lea r8, [rbp - 0x29]
mov rcx, rax
lea edx, [rdi + 0x18]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140005e24
mov rcx, qword [rbp - 0x29]
lea rax, [rbp - 0x39]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0xf0], r12
lea edx, [rdi + 3]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140005dfc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140005dfc
mov ecx, dword [rbp - 0x39]
call fcn.14000de0c
mov r12, rax
test rax, rax
je 0x140005df5
mov r9d, dword [rbp - 0x39]
lea rax, [rbp - 0x39]
mov rcx, qword [rbp - 0x29]
lea edx, [rdi + 3]
mov r8, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140005de0
mov ecx, 0x1000
mov dword [rbp - 0x39], 0x1000
call fcn.14000de0c
mov r15, rax
test rax, rax
je 0x140005dce
mov esi, edi
lea r9, [rbp - 0x21]
mov r8d, 0x800
mov byte [rax], sil
lea rdx, [rbp - 0x19]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
test eax, eax
js 0x140005dba
mov r14d, edi
cmp dword [r12], edi
jbe 0x140005da2
nop dword [rax + rax]
mov eax, r14d
lea r8, [rbp - 0x31]
lea rcx, [rax + rax*2]
lea rbx, [r12 + rcx*4]
mov rcx, qword [rbp - 0x21]
lea rdx, [rbx + 4]
call qword [sym.imp.ADVAPI32.dll_LsaLookupPrivilegeName]
test eax, eax
js 0x140005d80
mov r9, qword [rbp - 0x31]
mov edx, dword [rbp - 0x39]
mov eax, edx
sub eax, esi
movzx ecx, word [r9]
add ecx, 0xe
cmp eax, ecx
jae 0x140005d36
lea eax, [rdx + rdx]
mov rcx, r15
mov edx, eax
mov dword [rbp - 0x39], eax
call fcn.14000de14
test rax, rax
je 0x140005d99
mov edx, dword [rbp - 0x39]
mov r15, rax
mov r9, qword [rbp - 0x31]
mov eax, dword [rbx + 0xc]
lea r8, str._wZ:_d_
mov ecx, esi
sub edx, esi
add rcx, r15
mov dword [rsp + 0x20], eax
call fcn.140005b20
mov rcx, qword [rbp - 0x31]
cmp eax, 0xffffffff
mov ebx, eax
mov eax, 0x54f
cmove edi, eax
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp ebx, 0xffffffff
lea eax, [rbx + rsi]
cmovne esi, eax
jmp 0x140005d8a
mov ecx, eax
call qword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
mov edi, eax
inc r14d
cmp r14d, dword [r12]
jb 0x140005ce0
jmp 0x140005d9e
mov edi, 0xe
mov rbx, qword [rbp - 0x49]
lea rcx, [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_LsaClose]
mov r14, qword [rbp - 0x41]
mov rcx, r12
call fcn.14000ddf8
jmp 0x140005e07
mov ecx, eax
call qword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
mov rcx, r12
mov edi, eax
call fcn.14000ddf8
jmp 0x140005e07
mov esi, dword [rbp - 0x39]
mov rcx, r12
mov edi, 0xe
call fcn.14000ddf8
jmp 0x140005e07
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [rbp - 0x39]
mov rcx, r12
mov edi, eax
call fcn.14000ddf8
jmp 0x140005e07
mov edi, 0xe
jmp 0x140005e04
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, dword [rbp - 0x39]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0xf0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005e45
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [rbp - 0x39]
mov rcx, r13
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005e45
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [rbp - 0x39]
mov edi, eax
mov r13, qword [rsp + 0xa0]
test edi, edi
jne 0x140005e59
mov qword [rbx], r15
mov dword [r14], esi
jmp 0x140005e61
mov rcx, r15
call fcn.14000ddf8
mov eax, edi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400092d0
add rsp, 0xa8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret