Function at 0x55e9b0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x18
mov ecx, dword [0x1551db0]
push esi
mov esi, dword [eax + ecx*4]
mov eax, dword [0xaea100]
cmp eax, dword [esi + 0x78c]
jg 0x55ecfd
cmp byte [0xaea0fd], 0
je 0x55ecf6
mov eax, dword [0xaea110]
cmp eax, dword [esi + 0x78c]
jg 0x55ed38
cmp byte [0xaea10c], 0
je 0x55ecf6
mov eax, dword [0xaea118]
cmp eax, dword [esi + 0x78c]
jg 0x55ed71
cmp byte [0xaea114], 0
je 0x55ecf6
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 0x55ea4c
xor bl, bl
jmp 0x55ecda
call dword [sym.imp.USER32.dll_GetShellWindow]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x55ea66
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x55ebd7
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 0x55ea87
mov dword [ebp - 8], eax
jmp 0x55ebd7
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x55ebc0
cmp esi, 0xffffffff
je 0x55ebc0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x20008
push esi
call edi
test eax, eax
jne 0x55eae4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x55ebce
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x55ebd4
push eax
call edi
jmp 0x55ebd4
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 0x55ebd7
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 0x55eb32
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x55ebdd
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call edi
mov esi, eax
test esi, esi
je 0x55ebd7
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 0x55eb6f
push esi
xor edi, edi
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
jmp 0x55ebdf
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x55ebb3
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x55ebb3
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 0x55ebac
push esi
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
jmp 0x55ebdf
test edi, edi
je 0x55ebb3
push edi
call ebx
push esi
xor edi, edi
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
jmp 0x55ebdf
xor eax, eax
mov dword [ebp - 8], eax
test esi, esi
je 0x55ebd7
cmp esi, 0xffffffff
je 0x55ebd7
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 0x55ebf0
xor esi, esi
jmp 0x55ec97
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 0x55ec19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x55ec19
xor esi, esi
jmp 0x55ec97
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 0x55ec97
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 0x55ec4b
mov eax, dword [ebp - 0x10]
push eax
jmp 0x55ec93
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x55ec90
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x55ec90
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 0x55ec89
push dword [ebp - 0x10]
jmp 0x55ec95
test esi, esi
je 0x55ec90
push esi
call ebx
push dword [ebp - 0x10]
xor esi, esi
call ebx
test edi, edi
je 0x55ecb1
test esi, esi
je 0x55ecb1
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
sete al
mov byte [ebp - 1], al
jmp 0x55ecba
xor al, al
mov byte [ebp - 1], al
test esi, esi
je 0x55ecbd
push esi
call ebx
test edi, edi
je 0x55ecc4
push edi
call ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x55ecd7
cmp eax, 0xffffffff
je 0x55ecd7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 1]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x55eced
cmp ecx, 0xffffffff
je 0x55eced
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 0xaea100
call fcn.006f2701
add esp, 4
cmp dword [0xaea100], 0xffffffff
jne 0x55e9d7
push str.EnableLUA
call fcn.0055ef90
push 0xaea100
mov byte [0xaea0fd], al
call fcn.006f26b7
add esp, 8
jmp 0x55e9d7
push 0xaea110
call fcn.006f2701
add esp, 4
cmp dword [0xaea110], 0xffffffff
jne 0x55e9f5
lea ecx, [ebp - 1]
call fcn.0055e7f0
push 0xaea110
mov byte [0xaea10c], al
call fcn.006f26b7
add esp, 4
jmp 0x55e9f5
push 0xaea118
call fcn.006f2701
add esp, 4
cmp dword [0xaea118], 0xffffffff
jne 0x55ea13
lea ecx, [ebp - 1]
call fcn.0055e870
push 0xaea118
mov byte [0xaea114], al
call fcn.006f26b7
add esp, 4
jmp 0x55ea13