Function at 0x1002f7a2
Capabilities:
Compare security identifiers

Disassembly:
push 0x48
push 0x10084ee0
call fcn.10083d38
mov eax, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x58], eax
xor ebx, ebx
mov edi, ebx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov esi, ebx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x28], ebx
add eax, 0xc
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x500
mov dword [ebp - 0x3c], ebx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x1002f9f4
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1002f9f4
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1002f9f4
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x13
push 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1002f9f4
lea eax, [ebp - 0x38]
push eax
push 1
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x1002f8a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x1002f9f4
lea eax, [ebp - 0x38]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1002f9f4
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1002f9f4
lea ecx, [ebp - 0x3c]
push ecx
push ebx
push ebx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1002f9f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1002f9f4
push dword [ebp - 0x3c]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1002f9f4
lea ecx, [ebp - 0x3c]
push ecx
push dword [ebp - 0x3c]
push eax
push 1
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1002f9f4
mov ecx, dword [ebp - 0x28]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add esi, eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add esi, eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add esi, 0x34
add eax, esi
mov dword [ebp - 0x50], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
je 0x1002f9f4
push 2
push dword [ebp - 0x50]
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x1002f9f4
push dword [ebp - 0x30]
push 0xc01f0000
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x1002f9f4
push dword [ebp - 0x34]
push 0xc01f0000
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x1002f9f4
push dword [ebp - 0x2c]
push 0xc0110000
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x1002f9f4
mov eax, dword [ebp - 0x28]
push dword [eax]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1002f9dc
mov eax, dword [ebp - 0x28]
push dword [eax]
push 0xc01f0000
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x1002f9f4
push ebx
push esi
push 1
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x1002f9f4
mov dword [ebp - 0x48], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.1002fa2f
mov eax, dword [ebp - 0x44]
test edi, edi
js 0x1002fa16
mov dword [eax], 0xc
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0x20], esi
mov eax, edi
call fcn.10083d80
ret