Function at 0x4134b7
Capabilities:
Compare security identifiers

Disassembly:
push 0x1d8
mov eax, 0x48b4e8
call fcn.0044c99a
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 0x41394b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x41378e
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 0x41394b
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.004035a0
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
push eax
call fcn.004442a8
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.004035a0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00444349
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.0043fb19
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x4ae71b
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x28], al
call fcn.004035a0
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 4
push str.systemUtil__IsAdmin__failed_to_get_token
push eax
call fcn.00444448
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.0043fb19
push esi
push eax
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.004445a8
lea ecx, [ebp - 0xd8]
call fcn.00403060
lea ecx, [ebp - 0xf0]
call fcn.00403060
lea ecx, [ebp - 0xa8]
call fcn.00403060
mov eax, dword [ebp - 0x14]
mov esi, 0x1000
cmp eax, 0x10
jb 0x413676
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x1cc], eax
mov dword [ebp - 0x1d0], ecx
cmp eax, esi
jb 0x41366d
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.004017b0
mov eax, dword [ebp - 0x1cc]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1d0]
push eax
push ecx
call fcn.0044c6c2
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.00403060
lea ecx, [ebp - 0x120]
call fcn.00403060
lea ecx, [ebp - 0xc0]
call fcn.00403060
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x4136e8
mov ecx, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1cc], ecx
cmp eax, esi
jb 0x4136df
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.004017b0
mov eax, dword [ebp - 0x1d0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1cc]
push eax
push ecx
call fcn.0044c6c2
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 0x413739
mov ecx, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x1cc], ecx
mov dword [ebp - 0x1d0], eax
cmp eax, esi
jb 0x413730
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.004017b0
mov eax, dword [ebp - 0x1d0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1cc]
push eax
push ecx
call fcn.0044c6c2
pop ecx
pop ecx
mov ebx, dword [ebp - 0x1d4]
cmp dword [ebp - 0x1e0], 0
je 0x41375b
push dword [ebp - 0x1e0]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
and dword [ebp - 0x1e0], 0
cmp dword [ebp - 0x1d8], 0
je 0x413777
push dword [ebp - 0x1d8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x1d8], 0
test ebx, ebx
je 0x413782
push ebx
call fcn.0044cd13
pop ecx
mov eax, dword [ebp - 0x1e4]
call fcn.0044c944
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.004035a0
lea eax, [ebp - 0x58]
mov dword [ebp - 4], esi
push eax
call fcn.004442a8
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.004035a0
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00444349
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.0043fb19
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 0xa
push eax
push 0x4ae71b
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x40], al
call fcn.004035a0
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0xb
push str.systemUtil__IsAdmin__failed_to_get_token_err_d
push eax
call fcn.00444448
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.0043fb19
mov byte [ebp - 4], 0xd
push esi
push eax
mov ecx, edi
call fcn.004445a8
lea ecx, [ebp - 0x108]
call fcn.00403060
lea ecx, [ebp - 0x120]
call fcn.00403060
lea ecx, [ebp - 0xc0]
call fcn.00403060
mov eax, dword [ebp - 0x2c]
mov esi, 0x1000
cmp eax, 0x10
jb 0x4138c9
mov ecx, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1cc], ecx
cmp eax, esi
jb 0x4138c0
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.004017b0
mov eax, dword [ebp - 0x1d0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1cc]
push eax
push ecx
call fcn.0044c6c2
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.00403060
lea ecx, [ebp - 0xf0]
call fcn.00403060
lea ecx, [ebp - 0xa8]
call fcn.00403060
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x41393b
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x1cc], ecx
mov dword [ebp - 0x1d0], eax
cmp eax, esi
jb 0x413932
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.004017b0
mov eax, dword [ebp - 0x1d0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1cc]
push eax
push ecx
call fcn.0044c6c2
pop ecx
pop ecx
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x28], 0
jmp 0x4136f3
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 0x413a34
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.004035a0
push 0xe
pop esi
lea eax, [ebp - 0x58]
mov dword [ebp - 4], esi
push eax
call fcn.004442a8
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.004035a0
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00444349
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.0043fb19
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 0x11
push eax
push 0x4ae71b
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x40], al
call fcn.004035a0
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0x12
push str.systemUtil__IsAdmin__GetTokenInformation_failed
push eax
call fcn.00444448
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.0043fb19
mov byte [ebp - 4], 0x14
jmp 0x413854
push dword [ebp - 0x1dc]
call fcn.0044cd0a
mov ebx, eax
mov dword [ebp - 0x1d4], ebx
pop ecx
test ebx, ebx
jne 0x413b1b
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.004035a0
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0x15
push eax
call fcn.004442a8
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.004035a0
push dword [ebp - 0x1dc]
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 0x16
push eax
call fcn.00444349
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.0043fb19
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 0x18
push eax
push 0x4ae71b
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x40], al
call fcn.004035a0
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0x19
push str.systemUtil__IsAdmin__out_of_memory
push eax
call fcn.00444448
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.0043fb19
mov byte [ebp - 4], 0x1b
jmp 0x413854
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 0x413c0b
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.004035a0
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0x1c
push eax
call fcn.004442a8
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.004035a0
mov byte [ebp - 4], 0x1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00444349
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.0043fb19
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 0x1f
push eax
push 0x4ae71b
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x40], al
call fcn.004035a0
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0x20
push str.systemUtil__IsAdmin__GetTokenInformation_failed
push eax
call fcn.00444448
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.0043fb19
mov byte [ebp - 4], 0x22
jmp 0x413854
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 0x413e26
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.004035a0
lea eax, [ebp - 0x138]
mov dword [ebp - 4], 0x23
push eax
call fcn.004442a8
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.004035a0
mov byte [ebp - 4], 0x24
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x168]
push eax
call fcn.00444349
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.0043fb19
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 0x26
push eax
push 0x4ae71b
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ebx
mov byte [ebp - 0x78], al
call fcn.004035a0
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 0x27
push str.systemUtil__IsAdmin__AllocateAndInitializeSid_failed
push eax
call fcn.00444448
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.0043fb19
push esi
push eax
mov ecx, edi
mov byte [ebp - 4], 0x29
call fcn.004445a8
lea ecx, [ebp - 0x180]
call fcn.00403060
lea ecx, [ebp - 0x198]
call fcn.00403060
lea ecx, [ebp - 0x150]
call fcn.00403060
mov eax, dword [ebp - 0x64]
mov esi, 0x1000
cmp eax, 0x10
jb 0x413d89
mov ecx, dword [ebp - 0x78]
inc eax
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1cc], ecx
cmp eax, esi
jb 0x413d80
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.004017b0
mov eax, dword [ebp - 0x1d0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1cc]
push eax
push ecx
call fcn.0044c6c2
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.00403060
lea ecx, [ebp - 0x1c8]
call fcn.00403060
lea ecx, [ebp - 0x168]
call fcn.00403060
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x413dfe
mov ecx, dword [ebp - 0x90]
inc eax
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1cc], ecx
cmp eax, esi
jb 0x413df5
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.004017b0
mov eax, dword [ebp - 0x1d0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1cc]
push eax
push ecx
call fcn.0044c6c2
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 0x413739
mov ecx, dword [ebp - 0x138]
jmp 0x4136fe
and dword [ebp - 0x1e4], 0
xor esi, esi
cmp dword [ebx], esi
jbe 0x41373f
lea edi, [ebx + 4]
push dword [ebp - 0x1e0]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x413e59
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x413e3a
jmp 0x41373f
mov dword [ebp - 0x1e4], 1
jmp 0x41373f