Function at 0x456a10
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a0666
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x6336a0]
xor eax, esp
mov dword [esp + 0x264], eax
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], ecx
call fcn.00555692
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x456a70
push 0x80004005
call fcn.00401f90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x280], 0
call fcn.00555692
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x456aa5
push 0x80004005
call fcn.00401f90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
test edi, edi
mov byte [esp + 0x280], 1
jne 0x456ac5
xor eax, eax
jmp 0x456adf
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x456ad0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.00402270
push 4
push str..
lea ecx, [esp + 0x14]
call fcn.004044f0
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x456b70
mov byte [esp + 0x280], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x456b3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x280], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x456b62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x456d4f
mov ecx, 0x5d2a04
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x456ba6
test dx, dx
je 0x456ba2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x456ba6
add eax, 4
add ecx, 4
test dx, dx
jne 0x456b80
xor eax, eax
jmp 0x456bab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x456cd8
mov ecx, 0x5e0318
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x456be6
test dx, dx
je 0x456be2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x456be6
add eax, 4
add ecx, 4
test dx, dx
jne 0x456bc0
xor eax, eax
jmp 0x456beb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x456cd8
cmp dword [ebp + 0xc], 0
jne 0x456c13
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.00577334
add esp, 8
test eax, eax
je 0x456cd8
test edi, edi
jne 0x456c1b
xor eax, eax
jmp 0x456c2f
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x456c20
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.00402270
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0044dbb0
lea eax, [esp + 0x48]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x456c50
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x18]
call fcn.004044f0
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x456c88
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esp + 0x1c], 0x10
je 0x456caa
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push esi
call fcn.00456a10
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x456cd8
cmp dword [ebp + 0x10], 0
je 0x456cd1
lea edx, [esp + 0x48]
push str.index.dat
push edx
call fcn.00577334
add esp, 8
test eax, eax
jne 0x456cd1
lea edx, [esp + 0x48]
mov ecx, edi
call fcn.00457440
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x456b70
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x280], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x456d23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x280], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x456d4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.00577139
mov esp, ebp
pop ebp
ret 0xc