Function at 0x1400110d2
Capabilities:
Get token privileges

Disassembly:
jmp 0x14001bbf0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x500
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xd4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x528]
mov rax, qword [0x140039018]
xor rax, rbp
mov qword [rbp + 0x4c8], rax
lea rcx, [0x140041018]
call fcn.140011956
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov dword [rbp + 0x64], 0
mov qword [rbp + 0x88], 0
mov dword [rbp + 0xa8], 0
lea rax, [rbp + 0xac]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rax, [rbp + 0xd8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rbp + 0x108], 0
lea rax, [rbp + 0x24]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x24]
xor r8d, r8d
mov edx, 3
mov rcx, qword [rbp + 0x4f8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14001bd34
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14001bd34
lea rdx, str.GetTokenInformation
lea rcx, [rbp + 0x2a8]
call fcn.14001143d
nop
lea rdx, str.c_impersonate::token_check_privilege
lea rcx, [rbp + 0x2e8]
call fcn.1400113d4
lea r9, [rbp + 0x2a8]
lea r8, [rbp + 0x2e8]
mov edx, 0xc
lea rcx, [0x140039450]
call fcn.1400118cf
nop
lea rcx, [rbp + 0x2a8]
call fcn.1400111d1
jmp 0x14001c06d
mov eax, dword [rbp + 0x24]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x14001bd5a
jmp 0x14001c06d
lea rax, [rbp + 0x24]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x24]
mov r8, qword [rbp + 0x88]
mov edx, 3
mov rcx, qword [rbp + 0x4f8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14001bddc
lea rdx, str.GetTokenInformation
lea rcx, [rbp + 0x318]
call fcn.14001143d
nop
lea rdx, str.c_impersonate::token_check_privilege
lea rcx, [rbp + 0x358]
call fcn.1400113d4
lea r9, [rbp + 0x318]
lea r8, [rbp + 0x358]
mov edx, 0xc
lea rcx, [0x140039450]
call fcn.1400118cf
nop
lea rcx, [rbp + 0x318]
call fcn.1400111d1
jmp 0x14001c06d
mov dword [rbp + 0x44], 0
jmp 0x14001bded
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
mov rax, qword [rbp + 0x88]
mov eax, dword [rax]
cmp dword [rbp + 0x44], eax
jae 0x14001c06d
mov eax, dword [rbp + 0x44]
imul rax, rax, 0xc
lea rcx, [rbp + 0xa8]
mov rdx, qword [rbp + 0x88]
mov rdi, rcx
lea rsi, [rdx + rax + 4]
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov dword [rbp + 0x64], 0
lea r9, [rbp + 0x64]
xor r8d, r8d
lea rdx, [rbp + 0xa8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
jne 0x14001bea7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14001bea7
lea rdx, str.LookupPrivilegeName
lea rcx, [rbp + 0x388]
call fcn.14001143d
nop
lea rdx, str.c_impersonate::token_check_privilege
lea rcx, [rbp + 0x3c8]
call fcn.1400113d4
lea r9, [rbp + 0x388]
lea r8, [rbp + 0x3c8]
mov edx, 0xc
lea rcx, [0x140039450]
call fcn.1400118cf
nop
lea rcx, [rbp + 0x388]
call fcn.1400111d1
jmp 0x14001c06d
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
shl rax, 1
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0x108], rax
cmp qword [rbp + 0x108], 0
je 0x14001c068
lea r9, [rbp + 0x64]
mov r8, qword [rbp + 0x108]
lea rdx, [rbp + 0xa8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
je 0x14001c008
mov rdx, qword [rbp + 0x500]
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x14001c006
cmp dword [rbp + 0x508], 0
je 0x14001bffd
mov r8d, 0x10
xor edx, edx
lea rcx, [rbp + 0xd8]
call fcn.14001173a
mov dword [rbp + 0xd8], 1
mov eax, 0xc
imul rax, rax, 0
mov rcx, qword [rbp + 0xa8]
mov qword [rbp + rax + 0xdc], rcx
mov eax, 0xc
imul rax, rax, 0
mov dword [rbp + rax + 0xe4], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rbp + 0xd8]
xor edx, edx
mov rcx, qword [rbp + 0x4f8]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x14001bfa8
mov dword [rbp + 4], 1
jmp 0x14001bffb
lea rdx, str.AdjustTokenPrivileges
lea rcx, [rbp + 0x3f8]
call fcn.14001143d
nop
lea rdx, str.c_impersonate::token_check_privilege
lea rcx, [rbp + 0x438]
call fcn.1400113d4
lea r9, [rbp + 0x3f8]
lea r8, [rbp + 0x438]
mov edx, 0xc
lea rcx, [0x140039450]
call fcn.1400118cf
nop
lea rcx, [rbp + 0x3f8]
call fcn.1400111d1
jmp 0x14001c004
mov dword [rbp + 4], 1
jmp 0x14001c06d
jmp 0x14001c05b
lea rdx, str.LookupPrivilegeName
lea rcx, [rbp + 0x468]
call fcn.14001143d
nop
lea rdx, str.c_impersonate::token_check_privilege
lea rcx, [rbp + 0x4a8]
call fcn.1400113d4
lea r9, [rbp + 0x468]
lea r8, [rbp + 0x4a8]
mov edx, 0xc
lea rcx, [0x140039450]
call fcn.1400118cf
nop
lea rcx, [rbp + 0x468]
call fcn.1400111d1
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14001bde5
cmp qword [rbp + 0x88], 0
je 0x14001c084
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002eb78]
call fcn.1400117cb
mov eax, edi
mov rcx, qword [rbp + 0x4c8]
xor rcx, rbp
call fcn.1400114b0
lea rsp, [rbp + 0x4d0]
pop rdi
pop rsi
pop rbp
ret