Function at 0x14001155f
Capabilities:
Get token privileges

Disassembly:
jmp 0x140014390
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 [0x140028040]
xor rax, rbp
mov qword [rbp + 0x200], rax
lea rcx, [0x14002e1bb]
call fcn.1400115a5
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 0x14001441f
mov rax, qword [rbp + 0x230]
mov qword [rbp + 0x28], rax
jmp 0x140014459
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 0x140014459
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenProcessToken___failed._Error:__d_n
call fcn.14001104b
jmp 0x140014720
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 0x1400144a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400144a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetTokenInformation___failed._Error:__d_n
call fcn.14001104b
jmp 0x140014720
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 0x1400144c5
jmp 0x140014720
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 0x140014507
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetTokenInformation___failed._Error:__d_n
call fcn.14001104b
jmp 0x140014720
mov dword [rbp + 0xa4], 0
jmp 0x140014521
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 0x140014720
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 0x1400145a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400145a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LookupPrivilegeName___failed._Error:__d_n
call fcn.14001104b
jmp 0x140014720
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 0x140014600
jmp 0x140014720
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 0x14001463f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LookupPrivilegeName___failed._Error:__d_n
call fcn.14001104b
jmp 0x140014720
mov rdx, qword [rbp + 0x238]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x140014706
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.14001143d
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 0x1400146ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.AdjustTokenPrivileges___failed._Error:__d_n
call fcn.14001104b
jmp 0x140014720
mov dword [rbp + 4], 1
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ucrtbased.dll_free]
cmp dword [rbp + 4], 0
je 0x14001471b
jmp 0x140014720
jmp 0x140014513
cmp qword [rbp + 0x28], 0
je 0x140014731
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0x68], 0
je 0x140014742
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, [0x140023030]
call fcn.1400114c9
mov eax, edi
mov rcx, qword [rbp + 0x200]
xor rcx, rbp
call fcn.1400112a3
lea rsp, [rbp + 0x210]
pop rdi
pop rsi
pop rbp
ret