Function at 0x56b230
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x18
mov ecx, dword [0x155fab8]
push esi
mov esi, dword [eax + ecx*4]
mov eax, dword [0xaf7dd0]
cmp eax, dword [esi + 0x78c]
jg 0x56b57d
cmp byte [0xaf7dcd], 0
je 0x56b576
mov eax, dword [0xaf7de0]
cmp eax, dword [esi + 0x78c]
jg 0x56b5b8
cmp byte [0xaf7ddc], 0
je 0x56b576
mov eax, dword [0xaf7de8]
cmp eax, dword [esi + 0x78c]
jg 0x56b5f1
cmp byte [0xaf7de4], 0
je 0x56b576
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 0x56b2cc
xor bl, bl
jmp 0x56b55a
call dword [sym.imp.USER32.dll_GetShellWindow]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x56b2e6
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x56b457
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 0x56b307
mov dword [ebp - 8], eax
jmp 0x56b457
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x56b440
cmp esi, 0xffffffff
je 0x56b440
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x20008
push esi
call edi
test eax, eax
jne 0x56b364
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x56b44e
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x56b454
push eax
call edi
jmp 0x56b454
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 0x56b457
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 0x56b3b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x56b45d
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call edi
mov esi, eax
test esi, esi
je 0x56b457
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 0x56b3ef
push esi
xor edi, edi
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
jmp 0x56b45f
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x56b433
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x56b433
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 0x56b42c
push esi
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
jmp 0x56b45f
test edi, edi
je 0x56b433
push edi
call ebx
push esi
xor edi, edi
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
jmp 0x56b45f
xor eax, eax
mov dword [ebp - 8], eax
test esi, esi
je 0x56b457
cmp esi, 0xffffffff
je 0x56b457
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 0x56b470
xor esi, esi
jmp 0x56b517
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 0x56b499
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x56b499
xor esi, esi
jmp 0x56b517
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 0x56b517
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 0x56b4cb
mov eax, dword [ebp - 0x10]
push eax
jmp 0x56b513
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x56b510
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x56b510
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 0x56b509
push dword [ebp - 0x10]
jmp 0x56b515
test esi, esi
je 0x56b510
push esi
call ebx
push dword [ebp - 0x10]
xor esi, esi
call ebx
test edi, edi
je 0x56b531
test esi, esi
je 0x56b531
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
sete al
mov byte [ebp - 1], al
jmp 0x56b53a
xor al, al
mov byte [ebp - 1], al
test esi, esi
je 0x56b53d
push esi
call ebx
test edi, edi
je 0x56b544
push edi
call ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x56b557
cmp eax, 0xffffffff
je 0x56b557
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 1]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x56b56d
cmp ecx, 0xffffffff
je 0x56b56d
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 0xaf7dd0
call fcn.006fee91
add esp, 4
cmp dword [0xaf7dd0], 0xffffffff
jne 0x56b257
push str.EnableLUA
call fcn.0056b810
push 0xaf7dd0
mov byte [0xaf7dcd], al
call fcn.006fee47
add esp, 8
jmp 0x56b257
push 0xaf7de0
call fcn.006fee91
add esp, 4
cmp dword [0xaf7de0], 0xffffffff
jne 0x56b275
lea ecx, [ebp - 1]
call fcn.0056b070
push 0xaf7de0
mov byte [0xaf7ddc], al
call fcn.006fee47
add esp, 4
jmp 0x56b275
push 0xaf7de8
call fcn.006fee91
add esp, 4
cmp dword [0xaf7de8], 0xffffffff
jne 0x56b293
lea ecx, [ebp - 1]
call fcn.0056b0f0
push 0xaf7de8
mov byte [0xaf7de4], al
call fcn.006fee47
add esp, 4
jmp 0x56b293