Function at 0x1401454d0
Capabilities:
Get token privileges

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x238
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rcx, [rsp + 0x188]
call fcn.1400150f0
nop
mov dword [rsp + 0x3c], 0
lea rax, str.GetTokenInfo
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 3
mov rax, qword [rsp + 0x248]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x7a
je 0x1401455ed
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x1a8]
call fcn.140147e20
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x188]
call fcn.14001e690
lea rcx, [rsp + 0x1a8]
call fcn.140015480
lea rcx, [rsp + 0x188]
call fcn.140016520
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.140017fc0
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0xb8]
call fcn.140048710
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0xc8]
call fcn.140017fc0
lea r9, [rsp + 0xa8]
lea r8, [rsp + 0xb8]
lea rdx, [rsp + 0xc8]
lea rcx, [0x1403152f0]
call fcn.140102cc0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, str.GetTokenInformation_2
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x3c]
mov ecx, eax
call fcn.140222dcc
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x3c]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.140223e30
cmp qword [rsp + 0x58], 0
jne 0x140145653
mov rax, qword [rsp + 0x248]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.out_of_memory_
call fcn.140102b40
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x3c]
mov r8, qword [rsp + 0x58]
mov edx, 3
mov rax, qword [rsp + 0x248]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x14014572f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x1c8]
call fcn.140147e20
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x188]
call fcn.14001e690
lea rcx, [rsp + 0x1c8]
call fcn.140015480
lea rcx, [rsp + 0x188]
call fcn.140016520
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.140017fc0
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0xe8]
call fcn.140048710
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0xf8]
call fcn.140017fc0
lea r9, [rsp + 0xd8]
lea r8, [rsp + 0xe8]
lea rdx, [rsp + 0xf8]
lea rcx, [0x140315338]
call fcn.140102cc0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x34], 0
jmp 0x14014574d
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
cmp dword [rsp + 0x34], eax
jae 0x14014592a
mov ecx, 0x100
call fcn.140222dcc
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x40], 0x100
mov eax, dword [rsp + 0x40]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140223e30
lea rax, str.LookupPrivilegeName
mov qword [rsp + 0x48], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rsp + 0x34]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 4]
lea r9, [rsp + 0x40]
mov r8, qword [rsp + 0x60]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x1401458c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x1e8]
call fcn.140147e20
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x188]
call fcn.14001e690
lea rcx, [rsp + 0x1e8]
call fcn.140015480
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x108]
call fcn.140048710
lea rcx, [rsp + 0x188]
call fcn.140016520
mov rdx, rax
lea rcx, [rsp + 0x118]
call fcn.140017fc0
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x128]
call fcn.140048710
mov edx, dword [rsp + 0x34]
lea rcx, [rsp + 0x138]
call fcn.140048710
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x148]
call fcn.140017fc0
lea rax, [rsp + 0x108]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x118]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x128]
lea r8, [rsp + 0x138]
lea rdx, [rsp + 0x148]
lea rcx, str._s__d:_failed__error:___d___s__lpd_d_
call fcn.140102e40
jmp 0x140145906
mov eax, dword [rsp + 0x34]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0xc]
and eax, 2
test eax, eax
jne 0x140145906
mov eax, dword [rsp + 0x34]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0xc]
or eax, 2
mov ecx, dword [rsp + 0x34]
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x50]
mov dword [rdx + rcx + 0xc], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x90], rax
mov edx, 1
mov rcx, qword [rsp + 0x90]
call fcn.140222778
jmp 0x140145743
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, str.AdjustTokenPrivileges___multi
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 4
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rax, qword [rsp + 0x248]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x140145a26
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x208]
call fcn.140147e20
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x188]
call fcn.14001e690
lea rcx, [rsp + 0x208]
call fcn.140015480
lea rcx, [rsp + 0x188]
call fcn.140016520
mov rdx, rax
lea rcx, [rsp + 0x158]
call fcn.140017fc0
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x168]
call fcn.140048710
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x178]
call fcn.140017fc0
lea r9, [rsp + 0x158]
lea r8, [rsp + 0x168]
lea rdx, [rsp + 0x178]
lea rcx, str._s:_failed__error:___d___s
call fcn.140102cc0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xa0], rax
mov edx, 1
mov rcx, qword [rsp + 0xa0]
call fcn.140222778
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x188]
call fcn.140015480
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x238
ret