Function at 0x101242c0
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10180f13
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x101f6008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 8]
push 0
push 0
mov dword [ebp - 0x274], eax
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0
call fcn.10128790
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 4], 2
test edi, edi
jne 0x101243f6
mov dword [esi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
cmp dword [0x101fc64c], edi
je 0x101243db
push edi
mov ecx, 0x101fc64c
call fcn.10110b10
mov eax, dword [0x101fc64c]
cmp byte [eax + 0x54], 0
je 0x101243db
cmp dword [eax + 0x58], 2
jb 0x101243db
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x230]
call fcn.10006310
push 0x12
push str.OpenProcess_Failed
mov byte [ebp - 4], 3
call fcn.10006790
push 0x42e
push str.RC::DM::GetProcessTokenByIdBase
push str.d:workcode_git_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x101fc64c
push eax
push 2
call fcn.10111470
test bl, bl
je 0x101243cc
lea eax, [ebp - 0x230]
mov ecx, 0x101fc64c
push eax
call fcn.10111790
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.100062d0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 4
call fcn.10128530
mov byte [ebp - 4], 6
jmp 0x1012490a
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0
push eax
push 8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [ebp - 0x254]
test eax, eax
jne 0x101244d6
mov dword [esi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
cmp dword [0x101fc64c], 0
je 0x101244bb
push 0
mov ecx, 0x101fc64c
call fcn.10110b10
mov eax, dword [0x101fc64c]
cmp byte [eax + 0x54], 0
je 0x101244bb
cmp dword [eax + 0x58], 2
jb 0x101244bb
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x230]
call fcn.10006310
push 0x17
push str.OpenProcessToken_Failed
mov byte [ebp - 4], 7
call fcn.10006790
push 0x438
push str.RC::DM::GetProcessTokenByIdBase
push str.d:workcode_git_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x101fc64c
push eax
push 2
call fcn.10111470
test bl, bl
je 0x101244ac
lea eax, [ebp - 0x230]
mov ecx, 0x101fc64c
push eax
call fcn.10111790
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.100062d0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 8
call fcn.10128530
mov byte [ebp - 4], 0xa
jmp 0x1012490a
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x260], 0
push ecx
xor edi, edi
push edi
push edi
push 3
push eax
mov dword [ebp - 0x268], edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1012462b
call ebx
cmp eax, 0x7a
je 0x101245d7
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x254], edi
mov dword [esi], 0xa80357
call ebx
mov dword [esi + 4], eax
cmp dword [0x101fc64c], edi
je 0x101245bc
push edi
mov ecx, 0x101fc64c
call fcn.10110b10
mov eax, dword [0x101fc64c]
cmp byte [eax + 0x54], 0
je 0x101245bc
cmp dword [eax + 0x58], 2
jb 0x101245bc
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x230]
call fcn.10006310
push 0x1a
push str.GetTokenInformation_Failed
mov byte [ebp - 4], 0xb
call fcn.10006790
push 0x446
push str.RC::DM::GetProcessTokenByIdBase
push str.d:workcode_git_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x101fc64c
push eax
push 2
call fcn.10111470
test bl, bl
je 0x101245ad
lea eax, [ebp - 0x230]
mov ecx, 0x101fc64c
push eax
call fcn.10111790
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.100062d0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 0xc
call fcn.10128530
mov byte [ebp - 4], 0xe
jmp 0x1012490a
push dword [ebp - 0x260]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x268], edi
test edi, edi
jne 0x1012462b
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x254], edi
mov dword [esi], 0xa80358
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 0xf
call fcn.10128530
mov byte [ebp - 4], 0x11
jmp 0x1012490a
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
push edi
push 3
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1012472c
test edi, edi
je 0x10124662
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x254], 0
mov dword [esi], 0xa80357
call ebx
mov dword [esi + 4], eax
cmp dword [0x101fc64c], 0
je 0x10124711
push 0
mov ecx, 0x101fc64c
call fcn.10110b10
mov eax, dword [0x101fc64c]
cmp byte [eax + 0x54], 0
je 0x10124711
cmp dword [eax + 0x58], 2
jb 0x10124711
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x230]
call fcn.10006310
push 0x1a
push str.GetTokenInformation_Failed
mov byte [ebp - 4], 0x12
call fcn.10006790
push 0x45f
push str.RC::DM::GetProcessTokenByIdBase
push str.d:workcode_git_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x101fc64c
push eax
push 2
call fcn.10111470
test bl, bl
je 0x10124702
lea eax, [ebp - 0x230]
mov ecx, 0x101fc64c
push eax
call fcn.10111790
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.100062d0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 0x13
call fcn.10128530
mov byte [ebp - 4], 0x15
jmp 0x1012490a
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
mov dword [ebp - 0x26c], 0x104
add esp, 0xc
cmp dword [edi], ebx
jbe 0x101248a2
add edi, 0xc
nop dword [eax]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x26c], 0x104
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [edi - 8]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
je 0x1012488e
mov dword [ebp - method.Poco::Any::ValueHolder.virtual_4], vtable.RC::DM::ISerialization.0
lea ecx, [ebp - 0x234]
mov dword [ebp - method.RC::DM::RCProcessPrivilege.virtual_0], vtable.RC::DM::RCProcessPrivilege.0
call fcn.10006310
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0x16
push eax
lea ecx, [ebp - 0x250]
call fcn.10008480
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x250]
cmp dword [ebp - 0x23c], 8
lea ecx, [ebp - 0x234]
push dword [ebp - 0x240]
cmovae eax, dword [ebp - 0x250]
push eax
call fcn.10006790
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x16
call fcn.100062d0
mov eax, dword [edi]
lea edx, [ebp - 0x238]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x264]
push edx
mov ecx, dword [eax + 4]
push ecx
push eax
mov dword [ebp - 0x270], ecx
call fcn.10128a10
mov ecx, dword [ebp - 0x258]
mov edx, eax
mov eax, 0x6666665
sub eax, ecx
cmp eax, 1
jb 0x1012493f
inc ecx
mov dword [ebp - 0x258], ecx
mov eax, dword [ebp - 0x264]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x270]
mov dword [eax], edx
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0x18
call fcn.100062d0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x268]
inc ebx
add edi, 0xc
cmp ebx, dword [eax]
jb 0x10124760
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x25c]
add ecx, 4
cmp ecx, eax
je 0x101248d3
mov eax, dword [ebp - 0x264]
push eax
push dword [eax]
call fcn.1012c7d0
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x101248ee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x254], 0
mov dword [esi], 0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 0x1a
call fcn.10128530
mov byte [ebp - 4], 0x1c
push 0x28
push dword [ebp - 0x25c]
call fcn.101448bc
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10144424
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
int3