Function at 0x10125ec0
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10182cd3
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x101f8008]
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.1012a390
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 4], 2
test edi, edi
jne 0x10125ff6
mov dword [esi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
cmp dword [0x101fe65c], edi
je 0x10125fdb
push edi
mov ecx, 0x101fe65c
call fcn.10112710
mov eax, dword [0x101fe65c]
cmp byte [eax + 0x54], 0
je 0x10125fdb
cmp dword [eax + 0x58], 2
jb 0x10125fdb
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:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x101fe65c
push eax
push 2
call fcn.10113070
test bl, bl
je 0x10125fcc
lea eax, [ebp - 0x230]
mov ecx, 0x101fe65c
push eax
call fcn.10113390
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.100062d0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 4
call fcn.1012a130
mov byte [ebp - 4], 6
jmp 0x1012650a
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 0x101260d6
mov dword [esi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
cmp dword [0x101fe65c], 0
je 0x101260bb
push 0
mov ecx, 0x101fe65c
call fcn.10112710
mov eax, dword [0x101fe65c]
cmp byte [eax + 0x54], 0
je 0x101260bb
cmp dword [eax + 0x58], 2
jb 0x101260bb
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:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x101fe65c
push eax
push 2
call fcn.10113070
test bl, bl
je 0x101260ac
lea eax, [ebp - 0x230]
mov ecx, 0x101fe65c
push eax
call fcn.10113390
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.100062d0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 8
call fcn.1012a130
mov byte [ebp - 4], 0xa
jmp 0x1012650a
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 0x1012622b
call ebx
cmp eax, 0x7a
je 0x101261d7
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 [0x101fe65c], edi
je 0x101261bc
push edi
mov ecx, 0x101fe65c
call fcn.10112710
mov eax, dword [0x101fe65c]
cmp byte [eax + 0x54], 0
je 0x101261bc
cmp dword [eax + 0x58], 2
jb 0x101261bc
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:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x101fe65c
push eax
push 2
call fcn.10113070
test bl, bl
je 0x101261ad
lea eax, [ebp - 0x230]
mov ecx, 0x101fe65c
push eax
call fcn.10113390
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.100062d0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 0xc
call fcn.1012a130
mov byte [ebp - 4], 0xe
jmp 0x1012650a
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 0x1012622b
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.1012a130
mov byte [ebp - 4], 0x11
jmp 0x1012650a
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 0x1012632c
test edi, edi
je 0x10126262
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 [0x101fe65c], 0
je 0x10126311
push 0
mov ecx, 0x101fe65c
call fcn.10112710
mov eax, dword [0x101fe65c]
cmp byte [eax + 0x54], 0
je 0x10126311
cmp dword [eax + 0x58], 2
jb 0x10126311
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:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x101fe65c
push eax
push 2
call fcn.10113070
test bl, bl
je 0x10126302
lea eax, [ebp - 0x230]
mov ecx, 0x101fe65c
push eax
call fcn.10113390
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.100062d0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 0x13
call fcn.1012a130
mov byte [ebp - 4], 0x15
jmp 0x1012650a
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 0x101264a2
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 0x1012648e
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.1012a610
mov ecx, dword [ebp - 0x258]
mov edx, eax
mov eax, 0x6666665
sub eax, ecx
cmp eax, 1
jb 0x1012653f
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 0x10126360
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 0x101264d3
mov eax, dword [ebp - 0x264]
push eax
push dword [eax]
call fcn.1012e3d0
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x101264ee
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.1012a130
mov byte [ebp - 4], 0x1c
push 0x28
push dword [ebp - 0x25c]
call fcn.101464ec
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.10146054
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