Function at 0x401162
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp + 8]
xor ebx, ebx
push eax
push ebx
push 0x1f0fff
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], 0x32
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x27], bl
mov byte [ebp - 0x26], bl
mov byte [ebp - 0x25], bl
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x23], 5
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ecx], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 0x10]
push ecx
push 8
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4011d2
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x4011e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4012d9
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 8]
push eax
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x40123e
call esi
cmp eax, 0x7a
je 0x401211
call esi
mov dword [ebp - 4], eax
jmp 0x4012d8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x401207
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 8]
push eax
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x401207
mov edi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 4
push 1
lea eax, [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x401207
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 6
push 1
lea eax, [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x401207
mov edi, dword [ebp - 0xc]
cmp dword [edi], ebx
mov dword [ebp - 0x1c], ebx
jbe 0x4012cb
lea esi, [edi + 4]
mov eax, dword [esi]
push dword [ebp - 0x18]
mov ecx, dword [esi + 4]
push eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4012bb
push dword [ebp - 0x14]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4012c2
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
add esi, 8
cmp eax, dword [edi]
jb 0x401283
jmp 0x4012cb
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4012d8
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov eax, dword [ebp + 8]
cmp dword [eax], ebx
jne 0x4012d8
mov dword [eax], 1
pop edi
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
je 0x4012e9
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x18], ebx
je 0x4012f3
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0xc], ebx
je 0x401301
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401311
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x20], ebx
je 0x40131b
push dword [ebp - 0x20]
call esi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret