Function at 0x10068af
Capabilities:
Compare security identifiers

Disassembly:
push 0x38
push 0x100f810
call fcn.0100d04c
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 byte [ebp - 0x24], bl
mov byte [ebp - 0x23], bl
mov byte [ebp - 0x22], bl
mov byte [ebp - 0x21], bl
mov byte [ebp - 0x20], bl
mov byte [ebp - 0x1f], 5
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 0x1006ad2
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 0x1006ad2
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 0x1006ad2
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 0x1006ad2
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 0x10069a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x1006ad2
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 0x1006ad2
cmp dword [ebp - 0x2c], ebx
je 0x1006ad2
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 0x1006ad2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1006ad2
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 0x1006ad2
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
push esi
push 1
push dword [ebp - 0x2c]
call edi
test eax, eax
je 0x1006ad2
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 0x1006ad2
push 2
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x1006ad2
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 0x1006ad2
push dword [ebp - 0x34]
push edi
push 2
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x1006ad2
push dword [ebp - 0x30]
push 0xc0110000
push 2
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x1006ad2
mov eax, dword [ebp - 0x38]
push dword [eax]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1006aba
mov eax, dword [ebp - 0x38]
push dword [eax]
push edi
push 2
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x1006ad2
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 0x1006ad2
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.01006b09
cmp dword [ebp - 0x44], ebx
jne 0x1006afc
cmp dword [ebp - 0x28], ebx
je 0x1006afc
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.0100d094
ret 4