Function at 0x56c6a0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59292d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x8f9064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x34]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push 4
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0
push eax
push 0x13
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
setne cl
mov byte [ebp - 0x19], cl
test eax, eax
jne 0x56c722
call ebx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Unable_to_get_unfiltered_token__error:_._Assuming_UAC_is_disabled.
mov dword [eax + 4], 0x46
call fcn.0055c050
mov cl, byte [ebp - 0x19]
add esp, 0xc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 0
test cl, cl
push 0
cmovne esi, dword [ebp - 0x38]
push 2
push esi
call edi
test eax, eax
jne 0x56c85b
call ebx
cmp eax, 0x7a
jne 0x56c85b
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
push dword [ebp - 0x24]
push edi
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x56c7ae
call ebx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Unable_to_get_groups_for_user_token__error:_._Assuming_user_is_not_an_admin_or_UAC_is_disabled.
mov dword [eax + 4], 0x63
call fcn.004671b0
add esp, 0xc
xor bl, bl
jmp 0x56c842
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
mov word [ebp - 0x14], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push dword [ebp - 0x28]
lea ecx, [ebp - 0x3c]
mov esi, eax
call fcn.00568340
test esi, esi
jne 0x56c816
call ebx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Unable_to_get_identifier_of_admin_security_group__error:_._Assuming_user_is_not_an_admin.
mov dword [eax + 4], 0x5d
call fcn.004671b0
add esp, 0xc
xor bl, bl
jmp 0x56c83a
xor esi, esi
xor bl, bl
cmp dword [edi], esi
jbe 0x56c83a
nop
push dword [edi + esi*8 + 4]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x56c838
inc esi
cmp esi, dword [edi]
jb 0x56c820
jmp 0x56c83a
mov bl, 1
lea ecx, [ebp - 0x3c]
call fcn.005684b0
mov dword [ebp - 4], 3
test edi, edi
je 0x56c857
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov al, bl
jmp 0x56c880
call ebx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Unable_to_determine_user_groups_size__error:_._Assuming_user_is_not_an_admin.
mov dword [eax + 4], 0x51
call fcn.004671b0
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d0b2
mov esp, ebp
pop ebp
ret