Function at 0x1001dd00
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x60
mov eax, dword [0x10062da0]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x64]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push str.Advapi32.DLL
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x1001de2a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNamedSecurityInfoA
push esi
call edi
push str.BuildExplicitAccessWithNameA
push esi
mov ebp, eax
call edi
push str.SetEntriesInAclA
push esi
mov dword [esp + 0x34], eax
call edi
push str.SetNamedSecurityInfoA
push esi
mov dword [esp + 0x2c], eax
call edi
mov edi, eax
mov dword [esp + 0x34], edi
cmp ebp, ebx
je 0x1001de2a
cmp dword [esp + 0x2c], ebx
je 0x1001de2a
cmp dword [esp + 0x24], ebx
je 0x1001de2a
cmp edi, ebx
je 0x1001de2a
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
push 4
push 1
push eax
call ebp
test eax, eax
jne 0x1001df2e
cmp dword [esp + 0x14], ebx
je 0x1001dec3
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea edx, [esp + 0x8c]
push edx
mov byte [esp + 0x90], bl
mov byte [esp + 0x91], bl
mov byte [esp + 0x92], bl
mov byte [esp + 0x93], bl
mov byte [esp + 0x94], bl
mov byte [esp + 0x95], 1
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1001de3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1001de2a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.10032551
add esp, 0x60
ret
mov ecx, dword [esp + 0x14]
push 2
push 0xc
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x1001de15
xor esi, esi
cmp dword [esp + 0x38], ebx
jbe 0x1001deb8
mov ebp, dword [sym.imp.ADVAPI32.dll_GetAce]
mov edi, dword [sym.imp.ADVAPI32.dll_EqualSid]
jmp 0x1001de70
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push esi
push eax
call ebp
test eax, eax
je 0x1001dead
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
add edx, 8
push edx
call edi
test eax, eax
je 0x1001dead
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
and ecx, 0x1f0000
cmp ecx, 0x1f0000
je 0x1001df45
inc esi
cmp esi, dword [esp + 0x38]
jb 0x1001de70
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push 3
push 2
push 0x10000000
push str.Everyone
lea ecx, [esp + 0x54]
push ecx
call dword [esp + 0x40]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x4c]
push ecx
push 1
call dword [esp + 0x34]
test eax, eax
jne 0x1001df12
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
push ebx
push edx
push ebx
push ebx
push 4
push 1
push eax
call edi
test eax, eax
jne 0x1001df12
mov dword [esp + 0x30], 1
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp eax, ebx
je 0x1001df23
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1001df2e
push eax
call esi
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.10032551
add esp, 0x60
ret
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1001df5f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.10032551
add esp, 0x60
ret