Function at 0x4024e4
Capabilities:
Compare security identifiers
Get user security identifier

Disassembly:
push 0x7c
push 0x4365b8
call fcn.0042b5e0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
xor esi, esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], esi
mov ebx, esi
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x30], esi
mov edi, esi
mov eax, esi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
lea eax, [ebp - 0x4c]
push eax
push esi
push str.Everyone
push esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x40286e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40286e
push dword [ebp - 0x4c]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x40286e
mov eax, dword [ebp - 0x50]
add eax, eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x40286e
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x50]
push ecx
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x2c]
push str.Everyone
push esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x40286e
lea eax, [ebp - 0x3c]
push eax
push esi
push esi
push 4
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
test eax, eax
jne 0x40286e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40286e
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 - 0x44], eax
test eax, eax
je 0x40286e
lea ecx, [ebp - 0x3c]
push ecx
push dword [ebp - 0x3c]
push eax
push 4
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
test eax, eax
je 0x40286e
xor eax, eax
inc eax
push eax
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x40286e
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x40286e
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x40]
xor ecx, ecx
cmp dword [ebp - 0x34], ecx
cmove eax, ecx
mov dword [ebp - 0x40], eax
test eax, eax
je 0x402682
push 2
push 0xc
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x40286e
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, dword [ebp - 0x24]
add ecx, 8
add eax, ecx
mov dword [ebp - 0x38], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x68], ebx
test ebx, ebx
je 0x40286e
push 2
push dword [ebp - 0x38]
push ebx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x40286e
mov dword [ebp - 0x60], esi
cmp dword [ebp - 0x40], 0
je 0x402738
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x402738
mov edi, esi
mov dword [ebp - 0x64], edi
cmp edi, eax
jae 0x402738
lea eax, [ebp - 0x30]
push eax
push edi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x40286e
mov eax, dword [ebp - 0x30]
test byte [eax + 1], 0x10
jne 0x402738
add eax, 8
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40272f
mov ecx, dword [ebp - 0x30]
movzx eax, word [ecx + 2]
push eax
push ecx
push 0xffffffffffffffff
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
je 0x40286e
inc dword [ebp - 0x60]
inc edi
mov dword [ebp - 0x64], edi
mov eax, dword [ebp - 0x28]
jmp 0x4026dc
push str.AddAccessAllowedAceEx
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x2c]
push 0x10000000
test eax, eax
je 0x402764
push 3
push 2
push ebx
call eax
jmp 0x40276d
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x40286e
cmp dword [ebp - 0x40], 0
je 0x4027c1
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4027c1
cmp edi, eax
jae 0x4027c1
lea eax, [ebp - 0x30]
push eax
push edi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x40286e
mov ecx, dword [ebp - 0x30]
movzx eax, word [ecx + 2]
push eax
push ecx
push 0xffffffffffffffff
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
je 0x40286e
inc edi
mov dword [ebp - 0x64], edi
mov eax, dword [ebp - 0x28]
jmp 0x402782
push esi
push ebx
push 1
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x40286e
push str.SetSecurityDescriptorControl
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x40284c
mov edi, esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x6c], esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
je 0x40286e
test dword [ebp - 0x38], 0x400
je 0x402827
mov edi, 0x500
mov eax, edi
jmp 0x402837
mov eax, 0x1000
test dword [ebp - 0x38], eax
je 0x402835
mov edi, eax
jmp 0x402837
mov eax, esi
test di, di
je 0x40284c
push eax
push edi
lea eax, [ebp - 0x8c]
push eax
call dword [ebp - 0x74]
test eax, eax
je 0x40286e
lea eax, [ebp - 0x8c]
push eax
push 4
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov ecx, esi
test eax, eax
push 1
pop eax
cmovne ecx, eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 4], 0xfffffffe
call fcn.00402890
mov eax, dword [ebp - 0x48]
call fcn.0042b628
ret 4