Function at 0x1400040f0
Capabilities:
Get token privileges

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x450
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rsp + 0x490], rbx
mov rax, qword [0x14025a030]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, rdx
mov rbx, rcx
lea r13, str._Application::DisplayPrivilege_
mov qword [rsp + 0x58], r13
xor esi, esi
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x38], 0x78
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x34]
mov rdx, r13
lea rcx, [rsp + 0xc0]
call fcn.140001d10
nop
mov rcx, qword [0x140260548]
test rcx, rcx
je 0x140004261
mov rax, qword [rcx]
mov edx, 0x7d0
call qword [rax + 0x10]
test eax, eax
je 0x140004261
lea edx, [rsi + 2]
lea r8d, [rsi + 1]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_int____ptr64]
nop
call qword [sym.imp.MSVCP90.dll_public:_static_class_std::locale_const____ptr64___cdecl_std::locale::classic_void_]
mov r8, rax
mov rax, qword [rsp + 0xe0]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0xe0]
lea rdx, [rsp + 0x50]
call qword [sym.imp.MSVCP90.dll_public:_class_std::locale___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::imbue_class_std::locale_const____ptr64____ptr64]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::locale::destructor_void____ptr64]
mov rdx, r13
lea rcx, [rsp + 0xe0]
call fcn.140002150
mov rcx, rax
lea rdx, str.Privilege:
call fcn.140002150
mov rcx, rax
mov rdx, rdi
call fcn.140002150
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_void____ptr64]
nop
lea r8, [rsp + 0x1d8]
cmp qword [rsp + 0x1f0], 8
cmovae r8, qword [rsp + 0x1d8]
mov rcx, qword [0x140260548]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x1e8]
mov edx, 0x7d0
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0xe0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void____ptr64]
nop
mov dword [rsp + 0x30], esi
lea r8, [rsp + 0x50]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1400042ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rax, str.LookupPrivilegeValue
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x70]
call sub.MSVCR90.dll__CxxThrowException
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 3]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14000430c
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x140004310
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rax, [0x1401b7650]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x80], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x80]
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [rsp + 0x30]
lea r14, vtable.SpeedBit::Utils::StackBufferEx_512_.0
mov qword [rsp + 0x220], r14
mov qword [rsp + 0x428], rsi
mov qword [rsp + 0x430], rsi
mov edx, eax
lea rcx, [rsp + 0x220]
call qword [0x1401b7ac0]
test eax, eax
jne 0x140004379
mov dword [rsp + 0x40], 8
lea rax, str.Utils::StackBufferEx::resize
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x90], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x90]
call sub.MSVCR90.dll__CxxThrowException
lea rcx, [rsp + 0x220]
mov rax, qword [rsp + 0x220]
call qword [rax + 0x10]
mov rdi, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov r8, rdi
mov edx, 3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400043eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rax, [0x1401b7650]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0xb0], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0xb0]
call sub.MSVCR90.dll__CxxThrowException
mov rbx, rsi
mov edx, esi
mov rax, qword [rsp + 0x50]
mov r9d, dword [rsp + 0x54]
nop word [rax + rax]
cmp edx, dword [rdi]
je 0x140004421
movsxd rcx, edx
lea r8, [rcx + rcx*2]
cmp dword [rdi + r8*4 + 8], r9d
jne 0x14000441d
lea rcx, [rdi + r8*4 + 4]
cmp dword [rcx], eax
cmove rbx, rcx
inc edx
jmp 0x140004400
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void____ptr64]
nop
test rbx, rbx
je 0x14000453d
test byte [rbx + 8], 1
je 0x140004482
cmp qword [rsp + 0x1e8], 0
sete al
lea r12, [0x1401b76b4]
lea rdi, [0x1401b68b0]
mov rdx, rdi
test al, al
cmove rdx, r12
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
lea rdx, [0x1401b76b8]
mov rcx, rax
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
jmp 0x140004490
lea r12, [0x1401b76b4]
lea rdi, [0x1401b68b0]
test byte [rbx + 8], 2
je 0x1400044c9
cmp qword [rsp + 0x1e8], 0
sete al
mov rdx, rdi
test al, al
cmove rdx, r12
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
lea rdx, str.ENABLED
mov rcx, rax
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
test byte [rbx + 8], 4
je 0x140004502
cmp qword [rsp + 0x1e8], 0
sete al
mov rdx, rdi
test al, al
cmove rdx, r12
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
lea rdx, str.REMOVED
mov rcx, rax
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
cmp dword [rbx + 8], 0
jne 0x140004552
cmp qword [rsp + 0x1e8], 0
sete al
test al, al
cmove rdi, r12
mov rdx, rdi
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
lea rdx, str.DISABLED
mov rcx, rax
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
jmp 0x140004552
lea rdx, str.NOT_ASSIGNED
lea rcx, [rsp + 0x1d0]
call qword [reloc.MSVCP90.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_PEB_W_Z]
mov rcx, qword [0x140260548]
test rcx, rcx
je 0x14000465a
mov rax, qword [rcx]
mov edx, 0x7d0
call qword [rax + 0x10]
test eax, eax
je 0x14000465a
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_int____ptr64]
nop
call qword [sym.imp.MSVCP90.dll_public:_static_class_std::locale_const____ptr64___cdecl_std::locale::classic_void_]
mov rcx, qword [rsp + 0xe0]
movsxd r8, dword [rcx + 4]
lea rcx, [rsp + r8 + 0xe0]
mov r8, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.MSVCP90.dll_public:_class_std::locale___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::imbue_class_std::locale_const____ptr64____ptr64]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::locale::destructor_void____ptr64]
mov rdx, r13
lea rcx, [rsp + 0xe0]
call fcn.140002150
lea rdx, str.Attributes:
mov rcx, rax
call fcn.1400023c0
lea rdx, [rsp + 0x1d0]
mov rcx, rax
call qword [sym.imp.MSVCP90.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::operator___wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64_]
lea rdx, [rsp + 0x1f8]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_void____ptr64]
nop
lea r8, [rsp + 0x200]
cmp qword [rsp + 0x218], 8
cmovae r8, qword [rsp + 0x200]
mov rcx, qword [0x140260548]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x210]
mov edx, 0x7d0
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x1f8]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0xe0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void____ptr64]
nop
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
mov qword [rsp + 0x220], r14
lea rax, [rsp + 0x228]
mov rcx, qword [rsp + 0x428]
cmp rcx, rax
je 0x140004691
test rcx, rcx
je 0x140004691
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x428], rsi
mov qword [rsp + 0x430], rsi
lea rax, vtable.SpeedBit::Utils::BaseBuffer.0
mov qword [rsp + 0x220], rax
mov ebx, dword [rsp + 0x34]
lea rcx, [rsp + 0xc0]
call fcn.140001e50
nop
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140155650
mov rbx, qword [rsp + 0x490]
add rsp, 0x450
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret