Function at 0x60cbc0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x82d084]
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 0x60cc5a
cmp dword [0x853a78], eax
je 0x60cc39
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x853a78]
mov ecx, esi
push eax
push str.Unable_to_OpenProcessToken._Error:__u
push 0x75b10c
push 0x75b10c
push str.OSUtils
push str.OOBEUtils
push 0x28
call dword [0x747368]
call esi
add esp, 0x1c
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067ba01
mov esp, ebp
pop ebp
ret
mov esi, dword [0x853a7c]
test esi, esi
je 0x60ce72
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Unable_to_OpenProcessToken._Error:__u
jmp 0x60ce50
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 0x60cd00
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
je 0x60cd00
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [0x853a78], 0
je 0x60ccdf
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x853a78]
mov ecx, esi
push eax
push str.Unable_to_GetTokenInformation_size._Error:__u
push 0x75b10c
push 0x75b10c
push str.OSUtils
push str.OOBEUtils
push 0x28
call dword [0x747368]
call esi
add esp, 0x1c
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067ba01
mov esp, ebp
pop ebp
ret
mov esi, dword [0x853a7c]
test esi, esi
je 0x60ce72
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Unable_to_GetTokenInformation_size._Error:__u
jmp 0x60ce50
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 0x60cda4
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp dword [0x853a78], 0
je 0x60cd83
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x853a78]
mov ecx, esi
push eax
push str.Unable_to_GetTokenInformation._Error:__u
push 0x75b10c
push 0x75b10c
push str.OSUtils
push str.OOBEUtils
push 0x28
call dword [0x747368]
call esi
add esp, 0x1c
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067ba01
mov esp, ebp
pop ebp
ret
mov esi, dword [0x853a7c]
test esi, esi
je 0x60ce72
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Unable_to_GetTokenInformation._Error:__u
jmp 0x60ce50
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 0x60ce83
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp dword [0x853a78], 0
je 0x60ce38
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x853a78]
mov ecx, esi
push eax
push str.Unable_to_AllocateAndInitializeSid_for_Admin._Error:__u
push 0x75b10c
push 0x75b10c
push str.OSUtils
push str.OOBEUtils
push 0x28
call dword [0x747368]
call esi
add esp, 0x1c
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067ba01
mov esp, ebp
pop ebp
ret
mov esi, dword [0x853a7c]
test esi, esi
je 0x60ce72
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 0x75b10c
push 0x28
push dword [0x853a7c]
call dword [0x747368]
call esi
add esp, 0x18
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067ba01
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 0x60cead
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 0x60ce90
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.0067ba01
mov esp, ebp
pop ebp
ret