Function at 0x497f90
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fba83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x8538
call fcn.004f2630
push ebx
push esi
push edi
lea eax, [ebp - 0x148]
mov dword [ebp - 0x10], esp
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.004ab6e0
add esp, 4
lea ecx, [ebp - 0xc8]
push ecx
call fcn.00401350
add esp, 4
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x8548]
mov dword [ebp - 0x14], esi
push edx
push eax
call fcn.004ccef0
add esp, 8
lea ecx, [ebp - 0x60]
push 1
call fcn.004f0653
push 1
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.004f0653
mov ecx, dword [0x4fe4e8]
mov byte [ebp - 4], 2
push ecx
push 8
push str.c:endpcacheprocess_log.txt
lea ecx, [ebp - 0x60]
call fcn.004f0727
mov edx, dword [0x4fe4e8]
lea ecx, [ebp - 0xa8]
push edx
push 2
push str.c:endpcacheevil_dir_exe_log.txt
call fcn.004f0727
mov ebx, 0x80
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp eax, ecx
jge 0x4981c9
shl eax, 8
mov byte [ebp - 0x348], 0
lea esi, [ebp + eax - 0x8548]
lea eax, [ebp - 0x348]
push esi
push 0x526abc
push eax
call fcn.004f175f
add esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call esi
lea ecx, [ebp - 0x348]
push ebx
push ecx
call esi
lea edx, [ebp - 0x348]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0xa8]
or esi, 0xffffffff
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0xa4]
cmp dword [eax + 0x30], esi
je 0x4980db
lea edx, [ebp - 0x348]
lea ecx, [ebp - 0x9c]
push edx
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov edx, dword [0xe56d20]
lea eax, [ebp - 0x348]
lea ecx, [ebp - 0xc8]
inc edx
push eax
push ecx
mov dword [0xe56d20], edx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x148]
push eax
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x548]
push 0x526a7c
push eax
call fcn.004f175f
mov ecx, dword [ebp - 0x60]
add esp, 0x14
mov edx, dword [ecx + 4]
mov eax, dword [ebp + edx - 0x5c]
cmp dword [eax + 0x30], esi
je 0x498156
lea eax, [ebp - 0x548]
lea ecx, [ebp - 0x54]
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov eax, dword [0xe56db0]
test eax, eax
jne 0x4981c0
mov eax, dword [0xe56dbc]
mov edx, dword [ebp + 0x1b4]
lea ecx, [ebp - 0x548]
test eax, eax
mov eax, dword [ebp + 0x1b0]
push ecx
push edx
push eax
jne 0x4981a3
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
mov eax, dword [ebp - 0x18]
add esp, 0x1b4
inc eax
jmp 0x498047
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
mov eax, dword [ebp - 0x18]
inc eax
jmp 0x498047
lea ecx, [ebp - 0xa8]
call fcn.004f076e
lea ecx, [ebp - 0x60]
call fcn.004f076e
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.004f0714
lea ecx, [ebp - 0x94]
call fcn.004f05fb
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.004f0714
lea ecx, [ebp - 0x4c]
call fcn.004f05fb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret