Function at 0x60d4dd4
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x613b150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0xb8], eax
call fcn.060d3e69
test al, al
jne 0x60d4e03
inc al
jmp 0x60d4f4c
push ebx
push edi
or dword [ebp - 0xac], 0xffffffff
xor ecx, ecx
lea eax, [ebp - 0xb0]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x220
mov bl, cl
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0xa8], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x60d4e93
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
mov ecx, dword [0x613af2c]
cmp ecx, 0x613af2c
je 0x60d4f17
test byte [ecx + 0x1c], 1
je 0x60d4f17
cmp byte [ecx + 0x19], 2
jb 0x60d4f17
push eax
push 0x612afbc
push 0xf
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.060c9d63
add esp, 0x14
jmp 0x60d4f17
lea eax, [ebp - 0xac]
push eax
push 0
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x60d4f5b
call ebx
cmp eax, 0x3f0
jne 0x60d4edc
lea eax, [ebp - 0xac]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x60d4f5b
call ebx
mov dword [esi + 4], eax
mov ecx, dword [0x613af2c]
cmp ecx, 0x613af2c
je 0x60d4f11
test byte [ecx + 0x1c], 1
je 0x60d4f11
cmp byte [ecx + 0x19], 2
jb 0x60d4f11
push eax
push 0x612afbc
push 0x10
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.060c9d63
add esp, 0x14
mov ebx, dword [ebp - 0xa8]
cmp dword [ebp - 0xb0], 0
je 0x60d4f33
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
and dword [ebp - 0xb0], 0
cmp dword [ebp - 0xac], 0xffffffff
je 0x60d4f48
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.060eb877
leave
ret 4
and dword [ebp - 0xb4], 0
lea eax, [ebp - 0xb4]
push eax
push 0
push 0
push 2
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x60d4fbe
call ebx
cmp eax, 0x7a
je 0x60d4fbe
call ebx
mov dword [esi + 4], eax
mov ecx, dword [0x613af2c]
cmp ecx, 0x613af2c
je 0x60d4f11
test byte [ecx + 0x1c], 1
je 0x60d4f11
cmp byte [ecx + 0x19], 2
jb 0x60d4f11
push eax
push 0x612afbc
push 0x11
jmp 0x60d4f03
lea ecx, [ebp - 0xa4]
call fcn.060c0efa
push dword [ebp - 0xb4]
lea ecx, [ebp - 0xa4]
call fcn.060c10f4
mov edi, eax
test edi, edi
jne 0x60d5024
mov dword [esi + 4], 0xe
mov eax, dword [0x613af2c]
cmp eax, 0x613af2c
je 0x60d5014
test byte [eax + 0x1c], 1
je 0x60d5014
cmp byte [eax + 0x19], 2
jb 0x60d5014
push 0x612afbc
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.060c1d8a
add esp, 0x10
lea ecx, [ebp - 0xa4]
call fcn.060c0f4c
jmp 0x60d4f11
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0xb4]
push edi
push 2
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x60d507b
call ebx
mov dword [esi + 4], eax
mov ecx, dword [0x613af2c]
cmp ecx, 0x613af2c
je 0x60d5014
test byte [ecx + 0x1c], 1
je 0x60d5014
cmp byte [ecx + 0x19], 2
jb 0x60d5014
push eax
push 0x612afbc
push 0x13
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.060c9d63
add esp, 0x14
jmp 0x60d5014
xor esi, esi
cmp dword [edi], esi
jbe 0x60d509e
lea ebx, [edi + 4]
push dword [ebx]
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x60d50b4
inc esi
add ebx, 8
cmp esi, dword [edi]
jb 0x60d5084
mov ebx, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
call fcn.060c0f4c
jmp 0x60d4f17
mov eax, dword [edi + esi*8 + 8]
mov ecx, dword [ebp - 0xb8]
shr eax, 2
xor ebx, ebx
not al
inc ebx
and al, bl
mov byte [ecx], al
jmp 0x60d50a4