Function at 0x140004460
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 [0x140028010]
xor rax, rsp
mov qword [rbp + 0x17], rax
xorps xmm0, xmm0
mov qword [rsp + 0xf0], r12
xor ebx, ebx
mov qword [rbp - 0x49], rdx
mov r14d, ebx
mov qword [rbp - 0x41], rcx
movups xmmword [rbp - 0x19], xmm0
mov r15, rdx
mov rsi, 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 r12, rax
test rax, rax
je 0x14000477b
lea r8, [rbp - 0x29]
mov rcx, rax
lea edx, [rbx + 0x18]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140004765
mov rcx, qword [rbp - 0x29]
lea rax, [rbp - 0x39]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [rbx + 3]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140004745
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140004745
mov ecx, dword [rbp - 0x39]
call fcn.14000c014
mov r15, rax
test rax, rax
je 0x140004724
mov r9d, dword [rbp - 0x39]
lea rax, [rbp - 0x39]
mov rcx, qword [rbp - 0x29]
lea edx, [rbx + 3]
mov r8, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400046f8
mov ecx, 0x1000
mov dword [rbp - 0x39], 0x1000
call fcn.14000c014
mov r14, rax
test rax, rax
je 0x1400046cc
lea r9, [rbp - 0x21]
mov byte [rax], bl
mov r8d, 0x800
lea rdx, [rbp - 0x19]
xor ecx, ecx
mov edi, ebx
call qword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
test eax, eax
js 0x14000469e
mov esi, ebx
cmp dword [r15], ebx
jbe 0x14000466c
mov qword [rsp + 0xa0], r13
nop word [rax + rax]
mov eax, esi
lea r8, [rbp - 0x31]
lea rcx, [rax + rax*2]
lea r13, [r15 + rcx*4]
mov rcx, qword [rbp - 0x21]
lea rdx, [r13 + 4]
call qword [sym.imp.ADVAPI32.dll_LsaLookupPrivilegeName]
test eax, eax
js 0x140004648
mov r9, qword [rbp - 0x31]
mov edx, dword [rbp - 0x39]
mov eax, edx
sub eax, edi
movzx ecx, word [r9]
add ecx, 0xe
cmp eax, ecx
jae 0x140004605
lea eax, [rdx + rdx]
mov rcx, r14
mov edx, eax
mov dword [rbp - 0x39], eax
call fcn.14000c01c
test rax, rax
je 0x14000465f
mov edx, dword [rbp - 0x39]
mov r14, rax
mov r9, qword [rbp - 0x31]
mov eax, dword [r13 + 0xc]
lea r8, str._wZ:_d_
mov ecx, edi
sub edx, edi
add rcx, r14
mov dword [rsp + 0x20], eax
call fcn.1400043f0
cmp eax, 0xffffffff
jne 0x14000462c
mov ebx, 0x54f
jmp 0x14000462e
add edi, eax
mov rcx, qword [rbp - 0x31]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140004652
mov ecx, eax
call qword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
mov ebx, eax
inc esi
cmp esi, dword [r15]
jb 0x1400045b0
jmp 0x140004664
mov ebx, 0xe
mov r13, qword [rsp + 0xa0]
lea rcx, [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_LsaClose]
mov rsi, qword [rbp - 0x41]
mov rcx, r15
call fcn.14000c000
mov rcx, qword [rbp - 0x29]
mov r15, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004786
mov ecx, eax
call qword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
mov rcx, r15
mov ebx, eax
call fcn.14000c000
mov rcx, qword [rbp - 0x29]
mov r15, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004786
mov edi, dword [rbp - 0x39]
mov rcx, r15
mov ebx, 0xe
call fcn.14000c000
mov rcx, qword [rbp - 0x29]
mov r15, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004786
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [rbp - 0x39]
mov rcx, r15
mov ebx, eax
call fcn.14000c000
mov rcx, qword [rbp - 0x29]
mov r15, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004786
mov rcx, qword [rbp - 0x29]
mov ebx, 0xe
mov r15, qword [rbp - 0x49]
mov edi, dword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004786
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x29]
mov ebx, eax
mov edi, dword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004786
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [rbp - 0x39]
mov rcx, r12
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004786
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [rbp - 0x39]
mov ebx, eax
mov r12, qword [rsp + 0xf0]
test ebx, ebx
jne 0x14000479a
mov qword [rsi], r14
mov dword [r15], edi
jmp 0x1400047a2
mov rcx, r14
call fcn.14000c000
mov eax, ebx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140007c70
add rsp, 0xa8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret