Function at 0x1000507d
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10165793
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1020f334]
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 ebx, ecx
push 0x44
pop esi
xor edi, edi
lea eax, [ebp - 0x54]
push esi
push edi
push eax
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x68], esi
test ebx, ebx
jne 0x1000510e
mov eax, dword [0x10210270]
mov ecx, 0x10210270
push 0x15b3c8
call dword [eax + 4]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x100050f0
push eax
mov dword [ebp - 0x58], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
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.100042bb
mov esp, ebp
pop ebp
ret
cmp dword [0x10219a14], edi
je 0x10005122
mov eax, dword [0x1020f9a8]
mov dword [ebx], eax
xor eax, eax
inc eax
jmp 0x100050f2
lea eax, [ebp - 0x58]
mov dword [ebx], edi
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10005155
mov eax, dword [0x10210270]
mov ecx, 0x10210270
push 0x15b3c9
call dword [eax + 4]
jmp 0x1000525c
lea eax, [ebp - 0x60]
push eax
push edi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push 2
push dword [ebp - 0x58]
call edi
test eax, eax
je 0x10005185
push 0x15b3ca
mov eax, dword [0x10210270]
mov ecx, 0x10210270
call dword [eax + 4]
xor edi, edi
jmp 0x1000525c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10005197
push 0x15b3cb
jmp 0x10005171
push dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
call fcn.10005282
mov esi, dword [ebp - 0x5c]
test al, al
jne 0x100051c2
push 0x15b3cc
mov eax, dword [0x10210270]
mov ecx, 0x10210270
call dword [eax + 4]
xor edi, edi
jmp 0x10005250
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
push esi
push 2
push dword [ebp - 0x58]
call edi
test eax, eax
jne 0x100051dc
push 0x15b3cd
jmp 0x100051ae
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0xb
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x100051f9
push 0x15b3ce
jmp 0x100051ae
xor ecx, ecx
mov dword [ebp - 0x64], ecx
test esi, esi
je 0x10005275
lea eax, [esi + 4]
xor edi, edi
mov dword [ebp - 0x5c], eax
inc edi
cmp ecx, dword [esi]
jae 0x10005243
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x1000522e
mov eax, dword [ebp - 0x5c]
push dword [eax]
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1000523d
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x5c]
inc ecx
mov dword [ebp - 0x64], ecx
add eax, 8
jmp 0x10005205
mov dword [ebx], edi
mov eax, edi
jmp 0x10005245
mov eax, dword [ebx]
mov dword [0x10219a14], edi
mov dword [0x1020f9a8], eax
test esi, esi
je 0x1000525c
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x1000526e
and dword [ebp - 0x58], 0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x100050f2
push 0
push 0x8c2697
call fcn.10007fcb
int3