Function at 0x10034216
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a0e40
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x207c
call fcn.10175520
mov eax, dword [0x1026e004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2050], edx
mov dword [ebp - 0x2054], ecx
mov esi, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x2078], 0x18
mov dword [ebp - 0x2074], edx
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, 2
mov dword [ebp - 0x206c], eax
mov dword [ebp - 0x2070], edx
mov dword [ebp - 0x2068], edx
mov dword [ebp - 0x2064], edx
mov dword [ebp - 0x2060], esi
mov dword [ebp - 0x205c], edx
lea eax, [ebp - 0x2060]
push eax
lea eax, [ebp - 0x2078]
push eax
push 0x60000
lea eax, [ebp - 0x2018]
push eax
call dword [ecx + 0x64]
test eax, eax
js 0x10034546
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push dword [ebp - 0x2018]
lea ecx, [ebp - 0x2020]
call fcn.10006690
mov byte [ebp - 4], 1
xor ecx, ecx
mov dword [ebp - 0x202c], ecx
mov dword [ebp - 0x2028], ecx
mov dword [ebp - 0x2024], ecx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2030]
push eax
push ecx
push ecx
push 4
push dword [ebp - 0x2018]
mov esi, dword [sym.imp.ADVAPI32.dll_GetKernelObjectSecurity]
call esi
test eax, eax
jne 0x1003434a
lea eax, [ebp - 0x202c]
push eax
push dword [ebp - 0x2030]
mov ecx, eax
call fcn.100067b0
mov edi, dword [ebp - 0x202c]
lea eax, [ebp - 0x2030]
push eax
push dword [ebp - 0x2030]
push edi
push 4
push dword [ebp - 0x2018]
call esi
test eax, eax
jne 0x10034375
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x202c]
call fcn.10006400
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x201c]
test ecx, ecx
je 0x10034546
call fcn.10001860
jmp 0x10034546
test edi, edi
je 0x1003434a
lea eax, [ebp - 0x2048]
push eax
push 0x28
push 0xffffffffffffffff
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1003434a
push ebx
push dword [ebp - 0x2048]
lea ecx, [ebp - 0x2044]
call fcn.10006690
mov byte [ebp - 4], 3
mov esi, 0x2000
mov dword [ebp - 0x204c], esi
lea eax, [ebp - 0x204c]
push eax
push esi
lea eax, [ebp - 0x2014]
push eax
push 1
push dword [ebp - 0x2048]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x100343ec
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2040]
test ecx, ecx
je 0x1003434a
call fcn.10001860
jmp 0x1003434a
push 1
lea eax, [ebp - 0x208c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor ebx, ebx
mov dword [ebp - 0x203c], ebx
mov dword [ebp - 0x2038], ebx
mov dword [ebp - 0x2034], ebx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x203c]
push eax
push esi
mov ecx, eax
call fcn.100067b0
mov esi, dword [ebp - 0x203c]
push 2
push 0x2000
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
push dword [ebp - 0x2014]
push sym.x3_barrier_Win32.dll_Ordinal_5
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x10034487
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x203c]
call fcn.10006400
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2040]
test ecx, ecx
je 0x10034470
call fcn.10001860
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x202c]
call fcn.10006400
mov byte [ebp - 4], bl
jmp 0x1003435d
push 1
push esi
push 1
lea eax, [ebp - 0x208c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x1003444e
lea eax, [ebp - 0x208c]
push eax
push 4
push dword [ebp - 0x2018]
mov esi, dword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
call esi
test eax, eax
je 0x1003444e
lea eax, [ebp - 0x2060]
push eax
lea eax, [ebp - 0x2078]
push eax
push dword [ebp - 0x2050]
lea eax, [ebp - 0x2058]
push eax
mov eax, dword [ebp - 0x2054]
call dword [eax + 0x64]
test eax, eax
js 0x1003444e
push edi
push 4
push dword [ebp - 0x2018]
call esi
mov esi, dword [ebp - 0x2058]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x203c]
call fcn.10006400
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2040]
test ecx, ecx
je 0x10034517
call fcn.10001860
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x202c]
call fcn.10006400
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x201c]
test ecx, ecx
je 0x10034538
call fcn.10001860
mov eax, esi
jmp 0x10034548
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100e04a9
leave
ret 8