Function at 0x4014f0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x28
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 0x34]
xor edi, edi
push eax
push edi
push 0x1f0fff
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 0x32
xor esi, esi
mov byte [esp + 0x2c], 0
mov byte [esp + 0x2d], 0
mov byte [esp + 0x2e], 0
mov byte [esp + 0x2f], 0
mov byte [esp + 0x30], 0
mov byte [esp + 0x31], 5
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edi
mov dword [ecx], edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea edx, [esp + 0x10]
push edx
push 8
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40156d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], eax
jmp 0x4016b5
mov eax, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
push edi
call ebp
mov esi, eax
cmp esi, edi
jne 0x401591
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
jmp 0x4016b4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push ebx
lea ecx, [esp + 0x14]
push ecx
push edx
push esi
push 2
push eax
call edi
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x40160c
call ebx
cmp eax, 0x7a
je 0x4015c8
call ebx
mov dword [esp + 0x10], eax
jmp 0x4016b3
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x14]
push ecx
push 0
call ebp
mov esi, eax
test esi, esi
jne 0x4015e9
call ebx
mov dword [esp + 0x10], eax
jmp 0x4016b3
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push eax
push esi
push 2
push ecx
call edi
test eax, eax
jne 0x40160c
call ebx
mov dword [esp + 0x10], eax
jmp 0x4016b3
mov edi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 4
push 1
lea eax, [esp + 0x50]
push eax
call edi
test eax, eax
jne 0x40163c
call ebx
mov dword [esp + 0x10], eax
jmp 0x4016b3
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 6
push 1
lea edx, [esp + 0x50]
push edx
call edi
test eax, eax
jne 0x401666
call ebx
mov dword [esp + 0x10], eax
jmp 0x4016b3
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
jbe 0x4016a4
lea edi, [esi + 4]
mov ecx, dword [esp + 0x20]
mov ebp, dword [edi]
mov eax, dword [edi + 4]
push ecx
push ebp
mov dword [esp + 0x3c], eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x401702
mov edx, dword [esp + 0x1c]
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40170e
mov eax, dword [esi]
inc ebx
add edi, 8
cmp ebx, eax
jb 0x401671
mov eax, dword [esp + 0x3c]
cmp dword [eax], 0
jne 0x4016b3
mov dword [eax], 1
pop ebx
pop ebp
mov eax, dword [esp + 0x14]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_FreeSid]
je 0x4016c6
push eax
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4016d1
push eax
call edi
test esi, esi
je 0x4016dc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x10]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4016ed
push eax
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4016f8
push eax
call esi
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x28
ret
mov eax, dword [esp + 0x3c]
mov dword [eax], 0
jmp 0x4016b3
mov ecx, dword [esp + 0x3c]
mov dword [ecx], 1
jmp 0x4016b3