Function at 0x428b36
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x5087d0]
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.00427bcb
test al, al
jne 0x428b65
inc al
jmp 0x428cae
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 0x428bf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
mov ecx, dword [0x50b594]
cmp ecx, 0x50b594
je 0x428c79
test byte [ecx + 0x1c], 1
je 0x428c79
cmp byte [ecx + 0x19], 2
jb 0x428c79
push eax
push 0x4c543c
push 0xf
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0041e118
add esp, 0x14
jmp 0x428c79
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 0x428cbd
call ebx
cmp eax, 0x3f0
jne 0x428c3e
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 0x428cbd
call ebx
mov dword [esi + 4], eax
mov ecx, dword [0x50b594]
cmp ecx, 0x50b594
je 0x428c73
test byte [ecx + 0x1c], 1
je 0x428c73
cmp byte [ecx + 0x19], 2
jb 0x428c73
push eax
push 0x4c543c
push 0x10
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0041e118
add esp, 0x14
mov ebx, dword [ebp - 0xa8]
cmp dword [ebp - 0xb0], 0
je 0x428c95
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
and dword [ebp - 0xb0], 0
cmp dword [ebp - 0xac], 0xffffffff
je 0x428caa
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.0046aec6
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 0x428d20
call ebx
cmp eax, 0x7a
je 0x428d20
call ebx
mov dword [esi + 4], eax
mov ecx, dword [0x50b594]
cmp ecx, 0x50b594
je 0x428c73
test byte [ecx + 0x1c], 1
je 0x428c73
cmp byte [ecx + 0x19], 2
jb 0x428c73
push eax
push 0x4c543c
push 0x11
jmp 0x428c65
lea ecx, [ebp - 0xa4]
call fcn.004251e4
push dword [ebp - 0xb4]
lea ecx, [ebp - 0xa4]
call fcn.004253de
mov edi, eax
test edi, edi
jne 0x428d86
mov dword [esi + 4], 0xe
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x428d76
test byte [eax + 0x1c], 1
je 0x428d76
cmp byte [eax + 0x19], 2
jb 0x428d76
push 0x4c543c
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041df22
add esp, 0x10
lea ecx, [ebp - 0xa4]
call fcn.00425236
jmp 0x428c73
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 0x428ddd
call ebx
mov dword [esi + 4], eax
mov ecx, dword [0x50b594]
cmp ecx, 0x50b594
je 0x428d76
test byte [ecx + 0x1c], 1
je 0x428d76
cmp byte [ecx + 0x19], 2
jb 0x428d76
push eax
push 0x4c543c
push 0x13
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0041e118
add esp, 0x14
jmp 0x428d76
xor esi, esi
cmp dword [edi], esi
jbe 0x428e00
lea ebx, [edi + 4]
push dword [ebx]
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x428e16
inc esi
add ebx, 8
cmp esi, dword [edi]
jb 0x428de6
mov ebx, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
call fcn.00425236
jmp 0x428c79
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 0x428e06