Function at 0x1400110c3
Capabilities:
Get token privileges

Disassembly:
jmp 0x14001bc80
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 [0x140038040]
xor rax, rbp
mov qword [rbp + 0x4c8], rax
lea rcx, [0x140040015]
call fcn.140011933
nop
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 0x14001bdc6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14001bdc6
lea rdx, str.GetTokenInformation
lea rcx, [rbp + 0x2a8]
call fcn.14001141f
nop
lea rdx, str.c_impersonate::token_check_privilege
lea rcx, [rbp + 0x2e8]
call fcn.1400113b6
lea r9, [rbp + 0x2a8]
lea r8, [rbp + 0x2e8]
mov edx, 0xc
lea rcx, [0x1400384e0]
call fcn.1400118b1
nop
lea rcx, [rbp + 0x2a8]
call fcn.1400111b8
nop
jmp 0x14001c105
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 0x14001bdec
jmp 0x14001c105
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 0x14001be6f
lea rdx, str.GetTokenInformation
lea rcx, [rbp + 0x318]
call fcn.14001141f
nop
lea rdx, str.c_impersonate::token_check_privilege
lea rcx, [rbp + 0x358]
call fcn.1400113b6
lea r9, [rbp + 0x318]
lea r8, [rbp + 0x358]
mov edx, 0xc
lea rcx, [0x1400384e0]
call fcn.1400118b1
nop
lea rcx, [rbp + 0x318]
call fcn.1400111b8
nop
jmp 0x14001c105
mov dword [rbp + 0x44], 0
jmp 0x14001be80
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 0x14001c105
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 0x14001bf3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14001bf3b
lea rdx, str.LookupPrivilegeName
lea rcx, [rbp + 0x388]
call fcn.14001141f
nop
lea rdx, str.c_impersonate::token_check_privilege
lea rcx, [rbp + 0x3c8]
call fcn.1400113b6
lea r9, [rbp + 0x388]
lea r8, [rbp + 0x3c8]
mov edx, 0xc
lea rcx, [0x1400384e0]
call fcn.1400118b1
nop
lea rcx, [rbp + 0x388]
call fcn.1400111b8
nop
jmp 0x14001c105
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 0x14001c100
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 0x14001c09e
mov rdx, qword [rbp + 0x500]
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x14001c09c
cmp dword [rbp + 0x508], 0
je 0x14001c093
mov r8d, 0x10
xor edx, edx
lea rcx, [rbp + 0xd8]
call fcn.140011726
nop
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 0x14001c03d
mov dword [rbp + 4], 1
jmp 0x14001c091
lea rdx, str.AdjustTokenPrivileges
lea rcx, [rbp + 0x3f8]
call fcn.14001141f
nop
lea rdx, str.c_impersonate::token_check_privilege
lea rcx, [rbp + 0x438]
call fcn.1400113b6
lea r9, [rbp + 0x3f8]
lea r8, [rbp + 0x438]
mov edx, 0xc
lea rcx, [0x1400384e0]
call fcn.1400118b1
nop
lea rcx, [rbp + 0x3f8]
call fcn.1400111b8
nop
jmp 0x14001c09a
mov dword [rbp + 4], 1
jmp 0x14001c105
jmp 0x14001c0f2
lea rdx, str.LookupPrivilegeName
lea rcx, [rbp + 0x468]
call fcn.14001141f
nop
lea rdx, str.c_impersonate::token_check_privilege
lea rcx, [rbp + 0x4a8]
call fcn.1400113b6
lea r9, [rbp + 0x468]
lea r8, [rbp + 0x4a8]
mov edx, 0xc
lea rcx, [0x1400384e0]
call fcn.1400118b1
nop
lea rcx, [rbp + 0x468]
call fcn.1400111b8
nop
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
jmp 0x14001be78
cmp qword [rbp + 0x88], 0
je 0x14001c11d
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002ebd0]
call fcn.1400117b7
mov eax, edi
mov rcx, qword [rbp + 0x4c8]
xor rcx, rbp
call fcn.140011497
lea rsp, [rbp + 0x4d0]
pop rdi
pop rsi
pop rbp
ret