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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e2ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a4
push esi
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push edi
movups xmmword [ebp - 0x28], xmm0
mov edi, ecx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 1
mov eax, closesocket
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 4
jb 0x40ca0f
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x40c6f9
mov eax, dword [edi]
push 4
push str..
push ecx
push eax
push ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x58]
call fcn.00487550
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x40c742
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c738
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ca14
push ecx
push edx
call fcn.004f7c11
add esp, 8
movups xmm1, xmmword [ebp - 0x58]
lea ecx, [ebp - 0x40]
movq xmm0, qword [ebp - 0x48]
movd eax, xmm1
movq qword [ebp - 0x30], xmm0
cmp dword [ebp - 0x2c], 0x10
movups xmmword [ebp - 0x40], xmm1
cmovae ecx, eax
lea eax, [ebp - 0x1b0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x10], esi
cmp esi, 0xffffffff
je 0x40c989
nop
lea ecx, [ebp - 0x184]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c790
mov al, byte [ebp - 0x184]
sub ecx, edx
cmp ecx, 1
jne 0x40c7ac
cmp al, 0x2e
je 0x40c911
cmp ecx, 2
jne 0x40c7c1
cmp al, 0x2e
jne 0x40c7c1
cmp byte [ebp - 0x183], al
je 0x40c911
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
mov eax, closesocket
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x40ca0f
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x40c7f3
mov eax, dword [edi]
push 1
push 0x53e91c
push ecx
push eax
push ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x58]
call fcn.00487550
lea eax, [ebp - 0x184]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x58]
call fcn.0047f7d0
lea ecx, [ebp - 0x28]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x70]
push eax
movq qword [ebp - 0x60], xmm0
call fcn.0047f920
mov ecx, dword [ebp - 0x5c]
cmp ecx, 0x10
jb 0x40c87d
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c873
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ca14
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x40c8b5
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c8ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ca14
push ecx
push edx
call fcn.004f7c11
add esp, 8
test byte [ebp - 0x1b0], 0x10
je 0x40c8dc
push 0
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.0040c680
mov esi, eax
add esp, 4
test esi, esi
jne 0x40c98b
mov esi, dword [ebp - 0x10]
jmp 0x40c911
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x80
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40c97f
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40c97f
lea eax, [ebp - 0x1b0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x40c780
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
jne 0x40c98b
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x40c946
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40c961
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov esi, eax
jmp 0x40c98b
cmp dword [edi + 0x14], 0x10
jb 0x40c969
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40c989
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov esi, eax
jmp 0x40c98b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40c98b
xor esi, esi
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x40c9bb
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c9b1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ca14
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 0x10
jb 0x40c9fd
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c9f3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ca14
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.00402390
call fcn.004fceb0
int3