Function at 0x502c5d
Capabilities:
Compare security identifiers

Disassembly:
push 0x1d8
mov eax, 0x790601
call fcn.00700ca1
xor ebx, ebx
mov word [ebp - 0x5c], 0x500
lea eax, [ebp - 0x1d8]
mov dword [ebp - 0x1e4], ebx
push eax
push ebx
push 8
mov dword [ebp - 0x1d8], ebx
mov dword [ebp - 0x1d4], ebx
mov dword [ebp - 0x1dc], ebx
mov dword [ebp - 0x1e0], ebx
mov dword [ebp - 0x60], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x5030f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x502f34
lea eax, [ebp - 0x1d8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x5030f1
push 0xf
mov dword [ebp - 0x48], ebx
lea ecx, [ebp - 0x58]
pop ebx
push 7
push str.GPCUtil
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x58], al
call fcn.00439710
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
push eax
call fcn.006210e3
and dword [ebp - 0x30], 0
mov edi, eax
pop ecx
push 0xe
push str.GetLastError__
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x40], 0
call fcn.00439710
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.006211a2
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
push ecx
push eax
lea ecx, [ebp - 0x120]
call fcn.0061c551
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x858903
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x28], al
call fcn.00439710
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 4
push str.systemUtil__IsAdmin__failed_to_get_token
push eax
call fcn.006212a1
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
push ecx
push eax
lea ecx, [ebp - 0xf0]
call fcn.0061c551
push esi
push eax
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.00621517
lea ecx, [ebp - 0xd8]
call fcn.00438e20
lea ecx, [ebp - 0xf0]
call fcn.00438e20
lea ecx, [ebp - 0xa8]
call fcn.00438e20
mov eax, dword [ebp - 0x14]
mov esi, 0x1000
cmp eax, 0x10
jb 0x502e1c
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x1cc], eax
mov dword [ebp - 0x1d0], ecx
cmp eax, esi
jb 0x502e13
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x1cc]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1d0]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x28], 0
call fcn.00438e20
lea ecx, [ebp - 0x120]
call fcn.00438e20
lea ecx, [ebp - 0xc0]
call fcn.00438e20
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x502e8e
mov ecx, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1cc], ecx
cmp eax, esi
jb 0x502e85
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x1d0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1cc]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
and dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x40], 0
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x502edf
mov ecx, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x1cc], ecx
mov dword [ebp - 0x1d0], eax
cmp eax, esi
jb 0x502ed6
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x1d0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1cc]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
mov ebx, dword [ebp - 0x1d4]
cmp dword [ebp - 0x1e0], 0
je 0x502f01
push dword [ebp - 0x1e0]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
and dword [ebp - 0x1e0], 0
cmp dword [ebp - 0x1d8], 0
je 0x502f1d
push dword [ebp - 0x1d8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x1d8], 0
test ebx, ebx
je 0x502f28
push ebx
call fcn.00700fb3
pop ecx
mov eax, dword [ebp - 0x1e4]
call fcn.00700c4b
ret
push 0xf
mov dword [ebp - 0x48], ebx
lea ecx, [ebp - 0x58]
pop ebx
push 7
pop esi
push esi
push str.GPCUtil
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x58], 0
call fcn.00439710
lea eax, [ebp - 0x58]
mov dword [ebp - 4], esi
push eax
call fcn.006210e3
and dword [ebp - 0x18], 0
mov edi, eax
pop ecx
push 0xe
push str.GetLastError__
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x28], 0
call fcn.00439710
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.006211a2
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
push ecx
push eax
lea ecx, [ebp - 0xf0]
call fcn.0061c551
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 0xa
push eax
push 0x858903
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x40], al
call fcn.00439710
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0xb
push str.systemUtil__IsAdmin__failed_to_get_token_err_d
push eax
call fcn.006212a1
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xc
push ecx
push eax
lea ecx, [ebp - 0x120]
call fcn.0061c551
mov byte [ebp - 4], 0xd
push esi
push eax
mov ecx, edi
call fcn.00621517
lea ecx, [ebp - 0x108]
call fcn.00438e20
lea ecx, [ebp - 0x120]
call fcn.00438e20
lea ecx, [ebp - 0xc0]
call fcn.00438e20
mov eax, dword [ebp - 0x2c]
mov esi, 0x1000
cmp eax, 0x10
jb 0x50306f
mov ecx, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1cc], ecx
cmp eax, esi
jb 0x503066
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x1d0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1cc]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x40], 0
call fcn.00438e20
lea ecx, [ebp - 0xf0]
call fcn.00438e20
lea ecx, [ebp - 0xa8]
call fcn.00438e20
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x5030e1
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x1cc], ecx
mov dword [ebp - 0x1d0], eax
cmp eax, esi
jb 0x5030d8
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x1d0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1cc]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x28], 0
jmp 0x502e99
lea eax, [ebp - 0x1dc]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x1d8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x5031da
push 0xf
mov dword [ebp - 0x48], ebx
lea ecx, [ebp - 0x58]
pop ebx
push 7
push str.GPCUtil
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x58], 0
call fcn.00439710
push 0xe
pop esi
lea eax, [ebp - 0x58]
mov dword [ebp - 4], esi
push eax
call fcn.006210e3
and dword [ebp - 0x18], 0
mov edi, eax
pop ecx
push esi
push str.GetLastError__
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x28], 0
call fcn.00439710
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.006211a2
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x10
push ecx
push eax
lea ecx, [ebp - 0xf0]
call fcn.0061c551
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 0x11
push eax
push 0x858903
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x40], al
call fcn.00439710
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0x12
push str.systemUtil__IsAdmin__GetTokenInformation_failed
push eax
call fcn.006212a1
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x13
push ecx
push eax
lea ecx, [ebp - 0x120]
call fcn.0061c551
mov byte [ebp - 4], 0x14
jmp 0x502ffa
push dword [ebp - 0x1dc]
call fcn.00700faa
mov ebx, eax
mov dword [ebp - 0x1d4], ebx
pop ecx
test ebx, ebx
jne 0x5032c1
and dword [ebp - 0x48], eax
lea ecx, [ebp - 0x58]
push 0xf
pop ebx
push 7
push str.GPCUtil
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x58], al
call fcn.00439710
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0x15
push eax
call fcn.006210e3
and dword [ebp - 0x18], 0
mov edi, eax
pop ecx
push 0xd
push str.cbTokenGroups
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x28], 0
call fcn.00439710
push dword [ebp - 0x1dc]
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 0x16
push eax
call fcn.006211a2
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x17
push ecx
push eax
lea ecx, [ebp - 0xf0]
call fcn.0061c551
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 0x18
push eax
push 0x858903
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x40], al
call fcn.00439710
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0x19
push str.systemUtil__IsAdmin__out_of_memory
push eax
call fcn.006212a1
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x1a
push ecx
push eax
lea ecx, [ebp - 0x120]
call fcn.0061c551
mov byte [ebp - 4], 0x1b
jmp 0x502ffa
lea eax, [ebp - 0x1dc]
push eax
push dword [ebp - 0x1dc]
push ebx
push 2
push dword [ebp - 0x1d8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x5033b1
and dword [ebp - 0x48], eax
lea ecx, [ebp - 0x58]
push 0xf
pop ebx
push 7
push str.GPCUtil
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x58], al
call fcn.00439710
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0x1c
push eax
call fcn.006210e3
and dword [ebp - 0x18], 0
mov edi, eax
pop ecx
push 0xe
push str.GetLastError__
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x28], 0
call fcn.00439710
mov byte [ebp - 4], 0x1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.006211a2
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x1e
push ecx
push eax
lea ecx, [ebp - 0xf0]
call fcn.0061c551
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 0x1f
push eax
push 0x858903
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x40], al
call fcn.00439710
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0x20
push str.systemUtil__IsAdmin__GetTokenInformation_failed
push eax
call fcn.006212a1
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x21
push ecx
push eax
lea ecx, [ebp - 0x120]
call fcn.0061c551
mov byte [ebp - 4], 0x22
jmp 0x502ffa
lea eax, [ebp - 0x1e0]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x5035cc
and dword [ebp - 0x128], eax
lea ecx, [ebp - 0x138]
push 0xf
pop ebx
push 7
push str.GPCUtil
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x138], al
call fcn.00439710
lea eax, [ebp - 0x138]
mov dword [ebp - 4], 0x23
push eax
call fcn.006210e3
and dword [ebp - 0x80], 0
mov edi, eax
pop ecx
push 0xe
push str.GetLastError__
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x90], 0
call fcn.00439710
mov byte [ebp - 4], 0x24
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x168]
push eax
call fcn.006211a2
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x25
push ecx
push eax
lea ecx, [ebp - 0x1c8]
call fcn.0061c551
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 0x26
push eax
push 0x858903
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ebx
mov byte [ebp - 0x78], al
call fcn.00439710
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 0x27
push str.systemUtil__IsAdmin__AllocateAndInitializeSid_failed
push eax
call fcn.006212a1
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0x28
push ecx
push eax
lea ecx, [ebp - 0x198]
call fcn.0061c551
push esi
push eax
mov ecx, edi
mov byte [ebp - 4], 0x29
call fcn.00621517
lea ecx, [ebp - 0x180]
call fcn.00438e20
lea ecx, [ebp - 0x198]
call fcn.00438e20
lea ecx, [ebp - 0x150]
call fcn.00438e20
mov eax, dword [ebp - 0x64]
mov esi, 0x1000
cmp eax, 0x10
jb 0x50352f
mov ecx, dword [ebp - 0x78]
inc eax
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1cc], ecx
cmp eax, esi
jb 0x503526
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x1d0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1cc]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
and dword [ebp - 0x68], 0
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x64], ebx
mov byte [ebp - 0x78], 0
call fcn.00438e20
lea ecx, [ebp - 0x1c8]
call fcn.00438e20
lea ecx, [ebp - 0x168]
call fcn.00438e20
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x5035a4
mov ecx, dword [ebp - 0x90]
inc eax
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1cc], ecx
cmp eax, esi
jb 0x50359b
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x1d0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1cc]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x90], 0
cmp eax, 0x10
jb 0x502edf
mov ecx, dword [ebp - 0x138]
jmp 0x502ea4
and dword [ebp - 0x1e4], 0
xor esi, esi
cmp dword [ebx], esi
jbe 0x502ee5
lea edi, [ebx + 4]
push dword [ebp - 0x1e0]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x5035ff
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x5035e0
jmp 0x502ee5
mov dword [ebp - 0x1e4], 1
jmp 0x502ee5