Function at 0x4014d0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 4], 0
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x17], 0
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 5
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40153b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
jmp 0x401711
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0x32
mov eax, dword [ebp - 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40156c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
jmp 0x401711
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4015f8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
je 0x4015a1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
jmp 0x401711
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, dword [ebp - 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4015ce
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
jmp 0x401711
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4015f8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
jmp 0x401711
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x20]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 4
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x401631
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
jmp 0x401711
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 6
push 1
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40166a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
jmp 0x401711
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
jmp 0x40168c
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
cmp eax, dword [edx]
jae 0x4016fa
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx*8 + 4]
mov ecx, dword [edx + ecx*8 + 8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4016d4
mov dword [ebp - 0x28], 1
mov edx, dword [ebp + 8]
mov dword [edx], 0
jmp 0x4016fa
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4016f8
mov edx, dword [ebp + 8]
mov dword [edx], 1
mov dword [ebp - 0x28], 0
jmp 0x4016fa
jmp 0x401683
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x401711
cmp dword [ebp - 0x28], 0
jne 0x401711
mov ecx, dword [ebp + 8]
mov dword [ecx], 1
cmp dword [ebp - 8], 0
je 0x401721
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x20], 0
je 0x401731
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x1c], 0
je 0x401741
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
cmp dword [ebp - 0xc], 0
je 0x401751
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x401761
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret