Function at 0x1005f610
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x1005f86b
call fcn.100be280
cmp eax, 0x10
jl 0x1005f86b
push ecx
mov eax, esp
push ecx
lea ecx, [ebp - 0x24]
mov dword [eax], 0
mov eax, esp
mov dword [eax], esi
call fcn.10085420
push 0x44
push 0
mov dword [ebp - 0x18], 0x44
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov byte [ebp + 0xb], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x1005f6b7
lea ecx, [ebp - 0x74]
call fcn.1005d2a0
push str.Failed_to_allocate_SID_n
push eax
push 1
push 1
push 3
push 4
push 0
push 0
call fcn.1005d010
add esp, 0x20
jmp 0x1005f83f
lea eax, [ebp - 0x18]
push eax
push ebx
push 0
push 0x54
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x1005f6d9
lea ecx, [ebp - 0x74]
call fcn.1005d2a0
push str.Failed_to_create_WinBuiltinAnyPackageSid_n
jmp 0x1005f69d
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 4
push 1
lea ecx, [ebp - 0x24]
call fcn.10085f50
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
mov esi, eax
test esi, esi
je 0x1005f728
lea ecx, [ebp - 0x74]
call fcn.1005d2a0
push esi
push str.GetNamedSecurityInfo_Error__u_n
push eax
push 1
push 1
push 3
push 4
push 0
push 0
call fcn.1005d010
add esp, 0x24
jmp 0x1005f83f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetExplicitEntriesFromAclA]
mov esi, eax
test esi, esi
je 0x1005f74f
lea ecx, [ebp - 0x74]
call fcn.1005d2a0
push esi
push str.GetExplicitEntriesFromAcl_Error__u_n
jmp 0x1005f70e
mov ecx, dword [ebp - 0x10]
xor esi, esi
test ecx, ecx
je 0x1005f798
xor edi, edi
lea ebx, [ebx]
mov eax, dword [ebp - 8]
cmp dword [edi + eax + 4], 1
jne 0x1005f790
test dword [edi + eax], 0x20000
je 0x1005f790
cmp dword [edi + eax + 0x14], 0
jne 0x1005f790
push dword [edi + eax + 0x1c]
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1005f83b
mov ecx, dword [ebp - 0x10]
inc esi
add edi, 0x20
cmp esi, ecx
jb 0x1005f760
cmp byte [ebp + 0xc], 0
mov ecx, 0xa0000000
mov eax, SysReAllocString
mov dword [ebp - 0x40], 1
cmovne eax, ecx
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x38], 0
push eax
push 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 5
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
mov esi, eax
test esi, esi
je 0x1005f805
lea ecx, [ebp - 0x74]
call fcn.1005d2a0
push esi
push str.SetEntriesInAcl_Error__u_n
jmp 0x1005f70e
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 0x24]
call fcn.10085f50
push 0
push esi
push 0
push 0
push 4
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test esi, esi
je 0x1005f83b
lea ecx, [ebp - 0x74]
call fcn.1005d2a0
push esi
push str.SetNamedSecurityInfo_Error__u_n
jmp 0x1005f70e
mov byte [ebp + 0xb], 1
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push ebx
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0xc]
call esi
lea ecx, [ebp - 0x24]
call fcn.10085480
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8