Function at 0x56fdf0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x18
mov ecx, dword [0x1033fe0]
push esi
mov esi, dword [eax + ecx*4]
mov eax, dword [0xafe418]
cmp eax, dword [esi + 0x64c]
jg 0x57013d
cmp byte [0xafe415], 0
je 0x570136
mov eax, dword [0xafe428]
cmp eax, dword [esi + 0x64c]
jg 0x570178
cmp byte [0xafe424], 0
je 0x570136
mov eax, dword [0xafe430]
cmp eax, dword [esi + 0x64c]
jg 0x5701b1
cmp byte [0xafe42c], 0
je 0x570136
push ebx
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [ebp - 0x14]
push ecx
push 0x20008
push eax
call edi
test eax, eax
jne 0x56fe8c
xor bl, bl
jmp 0x57011a
call dword [sym.imp.USER32.dll_GetShellWindow]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x56fea6
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x570017
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x56fec7
mov dword [ebp - 8], eax
jmp 0x570017
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x570000
cmp esi, 0xffffffff
je 0x570000
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x20008
push esi
call edi
test eax, eax
jne 0x56ff24
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x57000e
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x570014
push eax
call edi
jmp 0x570014
mov eax, dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
call edi
mov eax, dword [ebp - 8]
test eax, eax
je 0x570017
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 1
push eax
mov dword [ebp - 0xc], 0
call esi
test eax, eax
jne 0x56ff72
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x57001d
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call edi
mov esi, eax
test esi, esi
je 0x570017
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push esi
push 1
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call eax
test eax, eax
jne 0x56ffaf
push esi
xor edi, edi
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
jmp 0x57001f
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x56fff3
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x56fff3
push eax
push 0x40
call edi
push dword [esi]
mov edi, eax
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x56ffec
push esi
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
jmp 0x57001f
test edi, edi
je 0x56fff3
push edi
call ebx
push esi
xor edi, edi
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
jmp 0x57001f
xor eax, eax
mov dword [ebp - 8], eax
test esi, esi
je 0x570017
cmp esi, 0xffffffff
je 0x570017
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
xor edi, edi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x570030
xor esi, esi
jmp 0x5700d7
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 1
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x570059
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x570059
xor esi, esi
jmp 0x5700d7
push dword [ebp - 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x5700d7
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
mov eax, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push esi
push 1
push dword [ebp - 0x18]
call eax
test eax, eax
jne 0x57008b
mov eax, dword [ebp - 0x10]
push eax
jmp 0x5700d3
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x5700d0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x5700d0
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov eax, dword [ebp - 0x10]
push dword [eax]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x5700c9
push dword [ebp - 0x10]
jmp 0x5700d5
test esi, esi
je 0x5700d0
push esi
call ebx
push dword [ebp - 0x10]
xor esi, esi
call ebx
test edi, edi
je 0x5700f1
test esi, esi
je 0x5700f1
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
sete al
mov byte [ebp - 1], al
jmp 0x5700fa
xor al, al
mov byte [ebp - 1], al
test esi, esi
je 0x5700fd
push esi
call ebx
test edi, edi
je 0x570104
push edi
call ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x570117
cmp eax, 0xffffffff
je 0x570117
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 1]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x57012d
cmp ecx, 0xffffffff
je 0x57012d
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 0xafe418
call fcn.00702d61
add esp, 4
cmp dword [0xafe418], 0xffffffff
jne 0x56fe17
push str.EnableLUA
call fcn.005703d0
push 0xafe418
mov byte [0xafe415], al
call fcn.00702d17
add esp, 8
jmp 0x56fe17
push 0xafe428
call fcn.00702d61
add esp, 4
cmp dword [0xafe428], 0xffffffff
jne 0x56fe35
lea ecx, [ebp - 1]
call fcn.0056fc30
push 0xafe428
mov byte [0xafe424], al
call fcn.00702d17
add esp, 4
jmp 0x56fe35
push 0xafe430
call fcn.00702d61
add esp, 4
cmp dword [0xafe430], 0xffffffff
jne 0x56fe53
lea ecx, [ebp - 1]
call fcn.0056fcb0
push 0xafe430
mov byte [0xafe42c], al
call fcn.00702d17
add esp, 4
jmp 0x56fe53