Function at 0x5fef7a8a
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x5ff42340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0xb8], eax
call fcn.5fef6c65
test al, al
jne 0x5fef7ab9
inc al
jmp 0x5fef7d70
push edi
or dword [ebp - 0xac], 0xffffffff
xor edi, edi
lea eax, [ebp - 0xb0]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xa5], 0
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xc], edi
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x5fef7b47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
mov ecx, dword [0x5ff4320c]
cmp ecx, 0x5ff4320c
je 0x5fef7d3a
test byte [ecx + 0x1c], 1
je 0x5fef7d3a
cmp byte [ecx + 0x19], 2
jb 0x5fef7d3a
push eax
push 0x5ff36e50
push 0xf
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.5fee1570
add esp, 0x14
jmp 0x5fef7d3a
push esi
lea eax, [ebp - 0xac]
push eax
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5fef7bc1
call esi
cmp eax, 0x3f0
jne 0x5fef7b8c
lea eax, [ebp - 0xac]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x5fef7bc1
call esi
mov dword [ebx + 4], eax
mov ecx, dword [0x5ff4320c]
cmp ecx, 0x5ff4320c
je 0x5fef7d39
test byte [ecx + 0x1c], 1
je 0x5fef7d39
cmp byte [ecx + 0x19], 2
jb 0x5fef7d39
push eax
push 0x5ff36e50
push 0x10
jmp 0x5fef7c1c
lea eax, [ebp - 0xb4]
push eax
push edi
push edi
push 2
push dword [ebp - 0xac]
mov dword [ebp - 0xb4], edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x5fef7c2f
call esi
cmp eax, 0x7a
je 0x5fef7c2f
call esi
mov dword [ebx + 4], eax
mov ecx, dword [0x5ff4320c]
cmp ecx, 0x5ff4320c
je 0x5fef7d39
test byte [ecx + 0x1c], 1
je 0x5fef7d39
cmp byte [ecx + 0x19], 2
jb 0x5fef7d39
push eax
push 0x5ff36e50
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.5fee1570
add esp, 0x14
jmp 0x5fef7d39
lea ecx, [ebp - 0xa4]
call fcn.5fef897b
push dword [ebp - 0xb4]
lea ecx, [ebp - 0xa4]
call fcn.5fef8bb2
mov edi, eax
test edi, edi
jne 0x5fef7c96
mov dword [ebx + 4], 0xe
mov eax, dword [0x5ff4320c]
cmp eax, 0x5ff4320c
je 0x5fef7d2c
test byte [eax + 0x1c], 1
je 0x5fef7d2c
cmp byte [eax + 0x19], 2
jb 0x5fef7d2c
push 0x5ff36e50
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.5fee1540
add esp, 0x10
jmp 0x5fef7d2c
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0xb4]
push edi
push 2
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x5fef7ced
call esi
mov dword [ebx + 4], eax
mov ecx, dword [0x5ff4320c]
cmp ecx, 0x5ff4320c
je 0x5fef7d2c
test byte [ecx + 0x1c], 1
je 0x5fef7d2c
cmp byte [ecx + 0x19], 2
jb 0x5fef7d2c
push eax
push 0x5ff36e50
push 0x13
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.5fee1570
add esp, 0x14
jmp 0x5fef7d2c
xor esi, esi
cmp dword [edi], esi
jbe 0x5fef7d2c
lea ebx, [edi + 4]
push dword [ebx]
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x5fef7d12
inc esi
add ebx, 8
cmp esi, dword [edi]
jb 0x5fef7cf6
jmp 0x5fef7d2c
mov eax, dword [edi + esi*8 + 8]
mov ecx, dword [ebp - 0xb8]
shr eax, 2
not al
and al, 1
mov byte [ecx], al
mov byte [ebp - 0xa5], 1
lea ecx, [ebp - 0xa4]
call fcn.5fef8ba7
xor edi, edi
pop esi
cmp dword [ebp - 0xb0], edi
je 0x5fef7d54
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0xb0], edi
cmp dword [ebp - 0xac], 0xffffffff
pop edi
je 0x5fef7d6a
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0xa5]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.5ff1e70e
leave
ret 4