Function at 0x10127e60
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10184f83
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x101fb008]
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.1012c330
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 4], 2
test edi, edi
jne 0x10127f96
mov dword [esi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
cmp dword [0x10201734], edi
je 0x10127f7b
push edi
mov ecx, 0x10201734
call fcn.101146c0
mov eax, dword [0x10201734]
cmp byte [eax + 0x54], 0
je 0x10127f7b
cmp dword [eax + 0x58], 2
jb 0x10127f7b
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x230]
call fcn.100063f0
push 0x12
push str.OpenProcess_Failed
mov byte [ebp - 4], 3
call fcn.10006870
push 0x42e
push str.RC::DM::GetProcessTokenByIdBase
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x10201734
push eax
push 2
call fcn.10115020
test bl, bl
je 0x10127f6c
lea eax, [ebp - 0x230]
mov ecx, 0x10201734
push eax
call fcn.10115340
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.100063b0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 4
call fcn.1012c0d0
mov byte [ebp - 4], 6
jmp 0x101284aa
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 0x10128076
mov dword [esi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
cmp dword [0x10201734], 0
je 0x1012805b
push 0
mov ecx, 0x10201734
call fcn.101146c0
mov eax, dword [0x10201734]
cmp byte [eax + 0x54], 0
je 0x1012805b
cmp dword [eax + 0x58], 2
jb 0x1012805b
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x230]
call fcn.100063f0
push 0x17
push str.OpenProcessToken_Failed
mov byte [ebp - 4], 7
call fcn.10006870
push 0x438
push str.RC::DM::GetProcessTokenByIdBase
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x10201734
push eax
push 2
call fcn.10115020
test bl, bl
je 0x1012804c
lea eax, [ebp - 0x230]
mov ecx, 0x10201734
push eax
call fcn.10115340
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.100063b0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 8
call fcn.1012c0d0
mov byte [ebp - 4], 0xa
jmp 0x101284aa
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 0x101281cb
call ebx
cmp eax, 0x7a
je 0x10128177
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 [0x10201734], edi
je 0x1012815c
push edi
mov ecx, 0x10201734
call fcn.101146c0
mov eax, dword [0x10201734]
cmp byte [eax + 0x54], 0
je 0x1012815c
cmp dword [eax + 0x58], 2
jb 0x1012815c
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x230]
call fcn.100063f0
push 0x1a
push str.GetTokenInformation_Failed
mov byte [ebp - 4], 0xb
call fcn.10006870
push 0x446
push str.RC::DM::GetProcessTokenByIdBase
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x10201734
push eax
push 2
call fcn.10115020
test bl, bl
je 0x1012814d
lea eax, [ebp - 0x230]
mov ecx, 0x10201734
push eax
call fcn.10115340
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.100063b0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 0xc
call fcn.1012c0d0
mov byte [ebp - 4], 0xe
jmp 0x101284aa
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 0x101281cb
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.1012c0d0
mov byte [ebp - 4], 0x11
jmp 0x101284aa
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 0x101282cc
test edi, edi
je 0x10128202
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 [0x10201734], 0
je 0x101282b1
push 0
mov ecx, 0x10201734
call fcn.101146c0
mov eax, dword [0x10201734]
cmp byte [eax + 0x54], 0
je 0x101282b1
cmp dword [eax + 0x58], 2
jb 0x101282b1
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x230]
call fcn.100063f0
push 0x1a
push str.GetTokenInformation_Failed
mov byte [ebp - 4], 0x12
call fcn.10006870
push 0x45f
push str.RC::DM::GetProcessTokenByIdBase
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x10201734
push eax
push 2
call fcn.10115020
test bl, bl
je 0x101282a2
lea eax, [ebp - 0x230]
mov ecx, 0x10201734
push eax
call fcn.10115340
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.100063b0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 0x13
call fcn.1012c0d0
mov byte [ebp - 4], 0x15
jmp 0x101284aa
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 0x10128442
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 0x1012842e
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.100063f0
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0x16
push eax
lea ecx, [ebp - 0x250]
call fcn.10008570
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.10006870
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x16
call fcn.100063b0
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.1012c5b0
mov ecx, dword [ebp - 0x258]
mov edx, eax
mov eax, 0x6666665
sub eax, ecx
cmp eax, 1
jb 0x101284df
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.100063b0
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 0x10128300
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 0x10128473
mov eax, dword [ebp - 0x264]
push eax
push dword [eax]
call fcn.10130370
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x1012848e
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.1012c0d0
mov byte [ebp - 4], 0x1c
push 0x28
push dword [ebp - 0x25c]
call fcn.1014847c
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.10147fe4
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