Function at 0x100c4f0
Capabilities:
Compare security identifiers

Disassembly:
push 0x38
push 0x1013688
call fcn.01012a68
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x500
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], ebx
xor edi, edi
inc edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x100c709
lea eax, [ebp - 0x3c]
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
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
call esi
test eax, eax
je 0x100c709
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push edi
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
je 0x100c709
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x13
push edi
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
je 0x100c709
lea eax, [ebp - 0x2c]
push eax
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x100c5de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x100c709
lea eax, [ebp - 0x2c]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100c709
cmp dword [ebp - 0x2c], ebx
je 0x100c709
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x2c]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
test eax, eax
jne 0x100c709
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100c709
push dword [ebp - 0x40]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x38], esi
cmp esi, ebx
je 0x100c709
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
push esi
push 1
push dword [ebp - 0x2c]
call edi
test eax, eax
je 0x100c709
push dword [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_GetLengthSid]
call esi
mov edi, eax
push dword [ebp - 0x30]
call esi
add edi, eax
push dword [ebp - 0x34]
call esi
add edi, eax
push dword [ebp - 0x3c]
call esi
lea edi, [eax + edi + 0x34]
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, ebx
je 0x100c709
push 2
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x100c709
push dword [ebp - 0x3c]
mov edi, 0xc01f0000
push edi
push 2
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
call esi
test eax, eax
je 0x100c709
push dword [ebp - 0x34]
push edi
push 2
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x100c709
push dword [ebp - 0x30]
push 0xc0110000
push 2
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x100c709
mov eax, dword [ebp - 0x38]
push dword [eax]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x100c6f1
mov eax, dword [ebp - 0x38]
push dword [eax]
push edi
push 2
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x100c709
push ebx
push dword [ebp - 0x28]
xor esi, esi
inc esi
push esi
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x100c709
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.0100c740
cmp dword [ebp - 0x44], ebx
jne 0x100c733
cmp dword [ebp - 0x28], ebx
je 0x100c733
push dword [ebp - 0x28]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x28]
call fcn.01012ab0
ret 4