Function at 0x100ea5b0
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101899e3
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x10207514]
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.100e4b60
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 4], 2
test edi, edi
jne 0x100ea6ec
mov dword [esi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
cmp dword [0x10212884], edi
je 0x100ea6d1
push edi
mov ecx, 0x10212884
call fcn.1012e070
mov eax, dword [0x10212884]
cmp byte [eax + 0x54], 0
je 0x100ea6d1
cmp dword [eax + 0x58], 2
jb 0x100ea6d1
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x230]
call fcn.10007940
push 0x12
push str.OpenProcess_Failed
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.100094b0
push 0x42e
push str.RC::DM::GetProcessTokenByIdBase
push str.d:workcode_git_rhinopc_newdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x10212884
push eax
push 2
call fcn.1012e9e0
test bl, bl
je 0x100ea6c2
lea eax, [ebp - 0x230]
mov ecx, 0x10212884
push eax
call fcn.1012ed00
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.100078b0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 4
call fcn.100e4a30
mov byte [ebp - 4], 6
jmp 0x100eac0b
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 0x100ea7d2
mov dword [esi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
cmp dword [0x10212884], 0
je 0x100ea7b7
push 0
mov ecx, 0x10212884
call fcn.1012e070
mov eax, dword [0x10212884]
cmp byte [eax + 0x54], 0
je 0x100ea7b7
cmp dword [eax + 0x58], 2
jb 0x100ea7b7
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x230]
call fcn.10007940
push 0x17
push str.OpenProcessToken_Failed
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 7
call fcn.100094b0
push 0x438
push str.RC::DM::GetProcessTokenByIdBase
push str.d:workcode_git_rhinopc_newdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x10212884
push eax
push 2
call fcn.1012e9e0
test bl, bl
je 0x100ea7a8
lea eax, [ebp - 0x230]
mov ecx, 0x10212884
push eax
call fcn.1012ed00
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.100078b0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 8
call fcn.100e4a30
mov byte [ebp - 4], 0xa
jmp 0x100eac0b
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 0x100ea92d
call ebx
cmp eax, 0x7a
je 0x100ea8d9
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 [0x10212884], edi
je 0x100ea8be
push edi
mov ecx, 0x10212884
call fcn.1012e070
mov eax, dword [0x10212884]
cmp byte [eax + 0x54], 0
je 0x100ea8be
cmp dword [eax + 0x58], 2
jb 0x100ea8be
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x230]
call fcn.10007940
push 0x1a
push str.GetTokenInformation_Failed
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xb
call fcn.100094b0
push 0x446
push str.RC::DM::GetProcessTokenByIdBase
push str.d:workcode_git_rhinopc_newdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x10212884
push eax
push 2
call fcn.1012e9e0
test bl, bl
je 0x100ea8af
lea eax, [ebp - 0x230]
mov ecx, 0x10212884
push eax
call fcn.1012ed00
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.100078b0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 0xc
call fcn.100e4a30
mov byte [ebp - 4], 0xe
jmp 0x100eac0b
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 0x100ea92d
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.100e4a30
mov byte [ebp - 4], 0x11
jmp 0x100eac0b
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 0x100eaa34
test edi, edi
je 0x100ea964
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 [0x10212884], 0
je 0x100eaa19
push 0
mov ecx, 0x10212884
call fcn.1012e070
mov eax, dword [0x10212884]
cmp byte [eax + 0x54], 0
je 0x100eaa19
cmp dword [eax + 0x58], 2
jb 0x100eaa19
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x230]
call fcn.10007940
push 0x1a
push str.GetTokenInformation_Failed
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x12
call fcn.100094b0
push 0x45f
push str.RC::DM::GetProcessTokenByIdBase
push str.d:workcode_git_rhinopc_newdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x10212884
push eax
push 2
call fcn.1012e9e0
test bl, bl
je 0x100eaa0a
lea eax, [ebp - 0x230]
mov ecx, 0x10212884
push eax
call fcn.1012ed00
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.100078b0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 0x13
call fcn.100e4a30
mov byte [ebp - 4], 0x15
jmp 0x100eac0b
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 0x100eaba3
add edi, 0xc
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 0x100eab8f
mov dword [ebp - method.Poco::AbstractObserver.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.10007940
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0x16
push eax
lea ecx, [ebp - 0x250]
call fcn.100078f0
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.100094b0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x16
call fcn.100078b0
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.100e51b0
mov ecx, dword [ebp - 0x258]
mov edx, eax
mov eax, 0x6666665
sub eax, ecx
cmp eax, 1
jb 0x100eac40
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.100078b0
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 0x100eaa61
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 0x100eabd4
mov eax, dword [ebp - 0x264]
push eax
push dword [eax]
call fcn.100e4ca0
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x100eabef
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.100e4a30
mov byte [ebp - 4], 0x1c
push 0x28
push dword [ebp - 0x25c]
call fcn.10161fa4
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.10161f63
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