Function at 0x14001154b
Capabilities:
Get token privileges

Disassembly:
jmp 0x140014360
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x240
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x268]
mov rax, qword [0x140027018]
xor rax, rbp
mov qword [rbp + 0x200], rax
lea rcx, [0x14002d1bc]
call fcn.14001158c
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0xffffffffffffffff
mov dword [rbp + 0x44], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x88], 0
cmp qword [rbp + 0x230], 0
je 0x1400143ef
mov rax, qword [rbp + 0x230]
mov qword [rbp + 0x28], rax
jmp 0x140014429
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x28]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140014429
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenProcessToken___failed._Error:__d_n
call fcn.14001104b
jmp 0x1400146f0
lea rax, [rbp + 0x44]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x44]
xor r8d, r8d
mov edx, 3
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140014475
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140014475
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetTokenInformation___failed._Error:__d_n
call fcn.14001104b
jmp 0x1400146f0
mov eax, dword [rbp + 0x44]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x140014495
jmp 0x1400146f0
lea rax, [rbp + 0x44]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x44]
mov r8, qword [rbp + 0x68]
mov edx, 3
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400144d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetTokenInformation___failed._Error:__d_n
call fcn.14001104b
jmp 0x1400146f0
mov dword [rbp + 0xa4], 0
jmp 0x1400144f1
mov eax, dword [rbp + 0xa4]
inc eax
mov dword [rbp + 0xa4], eax
mov rax, qword [rbp + 0x68]
mov eax, dword [rax]
cmp dword [rbp + 0xa4], eax
jae 0x1400146f0
mov eax, dword [rbp + 0xa4]
imul rax, rax, 0xc
lea rcx, [rbp + 0xc8]
mov rdx, qword [rbp + 0x68]
mov rdi, rcx
lea rsi, [rdx + rax + 4]
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov dword [rbp + 0xf4], 0
lea r9, [rbp + 0xf4]
xor r8d, r8d
lea rdx, [rbp + 0xc8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
jne 0x140014577
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140014577
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LookupPrivilegeName___failed._Error:__d_n
call fcn.14001104b
jmp 0x1400146f0
mov eax, dword [rbp + 0xf4]
inc eax
mov dword [rbp + 0xf4], eax
mov eax, dword [rbp + 0xf4]
mov qword [rbp + 0x1f8], rax
mov eax, 2
mov rcx, qword [rbp + 0x1f8]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x1400145d0
jmp 0x1400146f0
lea r9, [rbp + 0xf4]
mov r8, qword [rbp + 0x88]
lea rdx, [rbp + 0xc8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
jne 0x14001460f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LookupPrivilegeName___failed._Error:__d_n
call fcn.14001104b
jmp 0x1400146f0
mov rdx, qword [rbp + 0x238]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x1400146d6
lea rax, [rbp + 0x118]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov r8d, 0x10
xor edx, edx
lea rcx, [rbp + 0x118]
call fcn.140011429
mov dword [rbp + 0x118], 1
mov eax, 0xc
imul rax, rax, 0
mov rcx, qword [rbp + 0xc8]
mov qword [rbp + rax + 0x11c], rcx
mov eax, 0xc
imul rax, rax, 0
mov dword [rbp + rax + 0x124], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rbp + 0x118]
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1400146cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.AdjustTokenPrivileges___failed._Error:__d_n
call fcn.14001104b
jmp 0x1400146f0
mov dword [rbp + 4], 1
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ucrtbased.dll_free]
cmp dword [rbp + 4], 0
je 0x1400146eb
jmp 0x1400146f0
jmp 0x1400144e3
cmp qword [rbp + 0x28], 0
je 0x140014701
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0x68], 0
je 0x140014712
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ucrtbased.dll_free]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x140021ff0]
call fcn.1400114b5
mov eax, edi
mov rcx, qword [rbp + 0x200]
xor rcx, rbp
call fcn.140011299
lea rsp, [rbp + 0x210]
pop rdi
pop rsi
pop rbp
ret