Function at 0x5cab70
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x7e500c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0x20008
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x5cac0a
cmp dword [0x8076a4], eax
je 0x5cabe9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x8076a4]
mov ecx, esi
push eax
push str.Unable_to_OpenProcessToken._Error:__u
push 0x71a27c
push 0x71a27c
push str.OSUtils
push str.OOBEUtils
push 0x28
call dword [0x707770]
call esi
add esp, 0x1c
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
mov esi, dword [0x8076a8]
test esi, esi
je 0x5cae22
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Unable_to_OpenProcessToken._Error:__u
jmp 0x5cae00
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x5cacb0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
je 0x5cacb0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [0x8076a4], 0
je 0x5cac8f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x8076a4]
mov ecx, esi
push eax
push str.Unable_to_GetTokenInformation_size._Error:__u
push 0x71a27c
push 0x71a27c
push str.OSUtils
push str.OOBEUtils
push 0x28
call dword [0x707770]
call esi
add esp, 0x1c
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
mov esi, dword [0x8076a8]
test esi, esi
je 0x5cae22
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Unable_to_GetTokenInformation_size._Error:__u
jmp 0x5cae00
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x10]
test eax, eax
jne 0x5cad54
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp dword [0x8076a4], 0
je 0x5cad33
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x8076a4]
mov ecx, esi
push eax
push str.Unable_to_GetTokenInformation._Error:__u
push 0x71a27c
push 0x71a27c
push str.OSUtils
push str.OOBEUtils
push 0x28
call dword [0x707770]
call esi
add esp, 0x1c
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
mov esi, dword [0x8076a8]
test esi, esi
je 0x5cae22
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Unable_to_GetTokenInformation._Error:__u
jmp 0x5cae00
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x5cae33
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp dword [0x8076a4], 0
je 0x5cade8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x8076a4]
mov ecx, esi
push eax
push str.Unable_to_AllocateAndInitializeSid_for_Admin._Error:__u
push 0x71a27c
push 0x71a27c
push str.OSUtils
push str.OOBEUtils
push 0x28
call dword [0x707770]
call esi
add esp, 0x1c
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
mov esi, dword [0x8076a8]
test esi, esi
je 0x5cae22
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Unable_to_AllocateAndInitializeSid_for_Admin._Error:__u
mov esi, dword [esi + 0x34]
mov ecx, esi
push str.OSUtils
push 0x71a27c
push 0x28
push dword [0x8076a8]
call dword [0x707770]
call esi
add esp, 0x18
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
push ebx
xor al, al
lea ebx, [esi + 4]
push edi
mov byte [ebp - 0x19], al
xor edi, edi
nop
cmp edi, dword [esi]
jae 0x5cae5d
push dword [ebx]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne byte [ebp - 0x19]
inc edi
add ebx, 8
test eax, eax
je 0x5cae40
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x19]
xor ecx, ebp
pop edi
pop ebx
pop esi
call fcn.00650ddc
mov esp, ebp
pop ebp
ret