Function at 0x4010a0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x405004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, edi
mov dword [ebp - 0x14], 0
push eax
push edi
push 0x1fffff
mov dword [ebp - 0x10], 0x32
mov dword [ebp - 0xc], edi
mov word [ebp - 8], 0x500
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], eax
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40110e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x401236
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x40112c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x401236
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push edi
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40119a
call esi
cmp eax, 0x7a
je 0x401159
call esi
mov ebx, eax
jmp 0x401236
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x40117a
call esi
mov ebx, eax
jmp 0x401236
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push edi
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x40119a
call esi
mov ebx, eax
jmp 0x401236
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 4
push 1
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4011c4
call esi
mov ebx, eax
jmp 0x401236
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 6
push 1
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4011ee
call esi
mov ebx, eax
jmp 0x401236
xor esi, esi
cmp dword [edi], esi
jbe 0x401229
lea ebx, [edi + 4]
push dword [ebp - 0x20]
mov eax, dword [ebx]
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x401293
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x401288
inc esi
add ebx, 8
cmp esi, dword [edi]
jb 0x4011f7
mov ebx, dword [ebp - 0x18]
cmp dword [ebx], 0
jne 0x401234
mov dword [ebx], 1
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
test eax, eax
je 0x401246
push eax
call esi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x401250
push eax
call esi
test edi, edi
je 0x40125b
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40126b
push eax
call esi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x401275
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004019a6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov dword [eax], 1
jmp 0x401234
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x401234