Function at 0x7cf72595
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push ebx
push esi
push edi
push 1
pop esi
xor ebx, ebx
cmp dword [ebp + 8], 0x1a
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
je 0x7cf72873
push dword [ebp + 8]
call fcn.7cfdb87b
test eax, eax
je 0x7cf72873
lea eax, [ebp - 0x464]
push eax
push dword [ebp + 8]
call fcn.7cf71c3a
mov esi, dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
lea eax, [ebp - 0x464]
push 5
push eax
call esi
test eax, eax
jne 0x7cf7260c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x7cf7260c
push dword [ebp - 0x18]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x24], eax
mov edi, dword [ebp - 0x24]
cmp edi, ebx
je 0x7cf727b2
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], ebx
push eax
lea eax, [ebp - 0x464]
push dword [ebp - 0x18]
mov dword [ebp - 0x30], ebx
push edi
push 5
push eax
call esi
test eax, eax
je 0x7cf727a4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
test eax, eax
je 0x7cf727a4
cmp dword [ebp - 0x1c], ebx
je 0x7cf727a4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x7cf727a4
cmp dword [ebp - 0x20], ebx
je 0x7cf727a4
push ebx
call fcn.7cfa5da6
cmp eax, ebx
mov dword [ebp - 0x2c], eax
je 0x7cf727a4
push dword [eax]
mov edi, dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x7cf72731
lea eax, [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x10]
push 2
push eax
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
call esi
test eax, eax
je 0x7cf7272e
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
lea eax, [ebp - 0x10]
push 1
push eax
call esi
test eax, eax
je 0x7cf7272e
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x7cf72712
push dword [ebp - 8]
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x7cf72712
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
je 0x7cf72722
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 8], ebx
je 0x7cf72731
push dword [ebp - 8]
call esi
jmp 0x7cf72731
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x7cf72799
call fcn.7cf74a37
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x7cf72796
mov edi, dword [ebp - 0x20]
mov esi, dword [eax + 0x10]
mov ax, word [edi + 2]
cmp word [esi + 2], ax
jne 0x7cf7275b
movzx ecx, ax
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x7cf7278b
call fcn.7cf723d0
cmp eax, ebx
je 0x7cf72788
mov edi, dword [ebp - 0x20]
mov cx, word [edi + 2]
cmp word [eax + 2], cx
jne 0x7cf7277c
movzx ecx, cx
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x7cf7277f
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x7cf7278b
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x7cf72799
mov dword [ebp - 4], ebx
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x7cf727a7
mov dword [ebp - 4], ebx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x7cf727b5
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
jne 0x7cf7286e
lea eax, [ebp - 0x66c]
push eax
push dword [ebp + 8]
call fcn.7cf71bf3
lea eax, [ebp - 0x66c]
push eax
push 0x10034
push 0x2304
push 0x2308
push ebx
push dword [0x7d04cdfc]
call sym.SHELL32.dll_ShellMessageBoxW
add esp, 0x18
cmp eax, 6
jne 0x7cf7286e
lea eax, [ebp - 0x25c]
push 0x104
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x25c]
push eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x40], 0x14
mov dword [ebp - 0x3e], ebx
mov dword [ebp - 0x3a], ebx
mov dword [ebp - 0x36], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov word [ebp + eax*2 - 0x25a], bx
lea eax, [ebp - 0x50]
push eax
call sym.SHELL32.dll_SHFileOperationW
test eax, eax
jne 0x7cf7286e
push dword [ebp + 8]
call fcn.7cf74b40
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x7cf7286e
push dword [ebp + 8]
call fcn.7cf7287c
mov eax, dword [ebp - 4]
jmp 0x7cf72875
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4