Function at 0x14001173f
Capabilities:
Get token privileges

Disassembly:
jmp 0x140016190
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 [0x14002c028]
xor rax, rbp
mov qword [rbp + 0x200], rax
lea rcx, [0x140032045]
call fcn.140011794
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 0x14001621f
mov rax, qword [rbp + 0x230]
mov qword [rbp + 0x28], rax
jmp 0x140016259
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 0x140016259
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenProcessToken___failed._Error:__d_n
call fcn.140011050
jmp 0x140016520
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 0x1400162a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400162a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetTokenInformation___failed._Error:__d_n
call fcn.140011050
jmp 0x140016520
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 0x1400162c5
jmp 0x140016520
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 0x140016307
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetTokenInformation___failed._Error:__d_n
call fcn.140011050
jmp 0x140016520
mov dword [rbp + 0xa4], 0
jmp 0x140016321
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 0x140016520
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 0x1400163a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400163a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LookupPrivilegeName___failed._Error:__d_n
call fcn.140011050
jmp 0x140016520
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 0x140016400
jmp 0x140016520
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 0x14001643f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LookupPrivilegeName___failed._Error:__d_n
call fcn.140011050
jmp 0x140016520
mov rdx, qword [rbp + 0x238]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x140016506
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.1400115aa
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 0x1400164ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.AdjustTokenPrivileges___failed._Error:__d_n
call fcn.140011050
jmp 0x140016520
mov dword [rbp + 4], 1
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ucrtbased.dll_free]
cmp dword [rbp + 4], 0
je 0x14001651b
jmp 0x140016520
jmp 0x140016313
cmp qword [rbp + 0x28], 0
je 0x140016531
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0x68], 0
je 0x140016542
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, [0x140026290]
call fcn.14001165e
mov eax, edi
mov rcx, qword [rbp + 0x200]
xor rcx, rbp
call fcn.140011398
lea rsp, [rbp + 0x210]
pop rdi
pop rsi
pop rbp
ret