Function at 0x1400014c4
Capabilities:
Get token privileges

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140009008]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r14d, r14d
or rsi, 0xffffffffffffffff
and dword [rbp - 0x40], r14d
mov r15, rdx
mov qword [rbp - 0x38], rsi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x38]
lea edx, [rsi + 0x29]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14000152d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenProcessAToken___failed._Error:__d_n
jmp 0x1400016df
mov r9d, dword [rbp - 0x40]
lea rax, [rbp - 0x40]
mov rcx, qword [rbp - 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edi, [r8 + 3]
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14000156e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14000156e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetTokenInformaAtion___failed._Error:__d_n
jmp 0x1400016df
mov ecx, dword [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400016e6
mov r9d, dword [rbp - 0x40]
lea rax, [rbp - 0x40]
mov rcx, qword [rbp - 0x38]
mov r8, rbx
mov edx, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400015b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetTokenInfoArmation___failed._Error:__d_n
jmp 0x1400016df
xor edi, edi
cmp dword [rbx], edi
jbe 0x1400016e6
and dword [rbp - 0x3c], 0
lea rcx, [rdi + rdi*2]
movsd xmm0, qword [rbx + rcx*4 + 4]
lea r9, [rbp - 0x3c]
mov eax, dword [rbx + rcx*4 + 0xc]
lea rdx, [rbp - 0x30]
xor ecx, ecx
movsd qword [rbp - 0x30], xmm0
xor r8d, r8d
mov dword [rbp - 0x28], eax
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
jne 0x1400015ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400016b4
mov eax, dword [rbp - 0x3c]
inc eax
mov ecx, eax
mov dword [rbp - 0x3c], eax
mov eax, 2
mul rcx
cmovo rax, rsi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400016e6
lea r9, [rbp - 0x3c]
mov r8, rax
lea rdx, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
je 0x1400016d2
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140001697
mov rax, qword [rbp - 0x30]
lea r8, [rbp - 0x20]
and qword [rsp + 0x28], 0
mov r9d, 0x10
mov rcx, qword [rbp - 0x38]
xor edx, edx
and qword [rsp + 0x20], 0
mov qword [rbp - 0x1c], rax
mov dword [rbp - 0x20], 1
mov dword [rbp - 0x14], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1400016c3
mov r14d, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r14d, r14d
jne 0x1400016e6
inc edi
cmp edi, dword [rbx]
jae 0x1400016e6
or rsi, 0xffffffffffffffff
jmp 0x1400015bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.LookupPriAvilegeName___failed._Error:__d_n
jmp 0x1400016df
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.AdjustATokenPrivileges___failed._Error:__d_n
jmp 0x1400016df
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.LookupPrivilegeAName___failed._Error:__d_n
mov edx, eax
call fcn.140001008
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1400016f5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140001703
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, r14d
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140002bf0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret