Function at 0x53bf50
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x18
mov ecx, dword [0xf2db10]
push esi
mov esi, dword [eax + ecx*4]
mov eax, dword [0x9f7ebc]
cmp eax, dword [esi + 0x5ac]
jg 0x53c29d
cmp byte [0x9f7eb9], 0
je 0x53c296
mov eax, dword [0x9f7ecc]
cmp eax, dword [esi + 0x5ac]
jg 0x53c2d8
cmp byte [0x9f7ec8], 0
je 0x53c296
mov eax, dword [0x9f7ed4]
cmp eax, dword [esi + 0x5ac]
jg 0x53c311
cmp byte [0x9f7ed0], 0
je 0x53c296
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 0x53bfec
xor bl, bl
jmp 0x53c27a
call dword [sym.imp.USER32.dll_GetShellWindow]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x53c006
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x53c177
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 0x53c027
mov dword [ebp - 8], eax
jmp 0x53c177
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x53c160
cmp esi, 0xffffffff
je 0x53c160
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x20008
push esi
call edi
test eax, eax
jne 0x53c084
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x53c16e
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x53c174
push eax
call edi
jmp 0x53c174
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 0x53c177
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 0x53c0d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x53c17d
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call edi
mov esi, eax
test esi, esi
je 0x53c177
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 0x53c10f
push esi
xor edi, edi
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
jmp 0x53c17f
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x53c153
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x53c153
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 0x53c14c
push esi
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
jmp 0x53c17f
test edi, edi
je 0x53c153
push edi
call ebx
push esi
xor edi, edi
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
jmp 0x53c17f
xor eax, eax
mov dword [ebp - 8], eax
test esi, esi
je 0x53c177
cmp esi, 0xffffffff
je 0x53c177
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 0x53c190
xor esi, esi
jmp 0x53c237
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 0x53c1b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x53c1b9
xor esi, esi
jmp 0x53c237
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 0x53c237
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 0x53c1eb
mov eax, dword [ebp - 0x10]
push eax
jmp 0x53c233
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x53c230
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x53c230
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 0x53c229
push dword [ebp - 0x10]
jmp 0x53c235
test esi, esi
je 0x53c230
push esi
call ebx
push dword [ebp - 0x10]
xor esi, esi
call ebx
test edi, edi
je 0x53c251
test esi, esi
je 0x53c251
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
sete al
mov byte [ebp - 1], al
jmp 0x53c25a
xor al, al
mov byte [ebp - 1], al
test esi, esi
je 0x53c25d
push esi
call ebx
test edi, edi
je 0x53c264
push edi
call ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x53c277
cmp eax, 0xffffffff
je 0x53c277
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 1]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x53c28d
cmp ecx, 0xffffffff
je 0x53c28d
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 0x9f7ebc
call fcn.006bff11
add esp, 4
cmp dword [0x9f7ebc], 0xffffffff
jne 0x53bf77
push str.EnableLUA
call fcn.0053c530
push 0x9f7ebc
mov byte [0x9f7eb9], al
call fcn.006bfec7
add esp, 8
jmp 0x53bf77
push 0x9f7ecc
call fcn.006bff11
add esp, 4
cmp dword [0x9f7ecc], 0xffffffff
jne 0x53bf95
lea ecx, [ebp - 1]
call fcn.0053bd90
push 0x9f7ecc
mov byte [0x9f7ec8], al
call fcn.006bfec7
add esp, 4
jmp 0x53bf95
push 0x9f7ed4
call fcn.006bff11
add esp, 4
cmp dword [0x9f7ed4], 0xffffffff
jne 0x53bfb3
lea ecx, [ebp - 1]
call fcn.0053be10
push 0x9f7ed4
mov byte [0x9f7ed0], al
call fcn.006bfec7
add esp, 4
jmp 0x53bfb3