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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b705
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
push esi
push edi
push 0x5651d0
mov edi, ecx
mov dword [ebp - 0x2c], 0x5651d0
call fcn.00504232
add esp, 4
test eax, eax
jne 0x40e4d2
mov dword [ebp - 4], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], al
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
mov byte [ebp - 4], 2
mov eax, closesocket
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 4
jb 0x40e4d8
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x40e197
mov eax, dword [edi]
push 4
push str..
push ecx
push eax
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
call fcn.004946d0
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x40e1e0
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e1d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e4dd
push ecx
push edx
call fcn.00504f31
add esp, 8
movups xmm1, xmmword [ebp - 0x5c]
lea ecx, [ebp - 0x44]
movq xmm0, qword [ebp - 0x4c]
movd eax, xmm1
movq qword [ebp - 0x34], xmm0
cmp dword [ebp - 0x30], 0x10
movups xmmword [ebp - 0x44], xmm1
cmovae ecx, eax
lea eax, [ebp - 0x1b4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, 0xffffffff
je 0x40e429
nop dword [eax]
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e230
mov al, byte [ebp - 0x188]
sub ecx, edx
cmp ecx, 1
jne 0x40e24c
cmp al, 0x2e
je 0x40e3b1
cmp ecx, 2
jne 0x40e261
cmp al, 0x2e
jne 0x40e261
cmp byte [ebp - 0x187], al
je 0x40e3b1
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 0
cmovae eax, dword [ebp - 0x24]
mov byte [eax], 0
mov eax, closesocket
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x40e4d8
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x40e293
mov eax, dword [edi]
push 1
push 0x54c814
push ecx
push eax
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
call fcn.004946d0
lea eax, [ebp - 0x188]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x5c]
call fcn.0048c9d0
lea ecx, [ebp - 0x24]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x74], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x74]
push eax
movq qword [ebp - 0x64], xmm0
call fcn.0048cb40
mov ecx, dword [ebp - 0x60]
cmp ecx, 0x10
jb 0x40e31d
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e313
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e4dd
push ecx
push edx
call fcn.00504f31
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x40e355
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e34b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e4dd
push ecx
push edx
call fcn.00504f31
add esp, 8
test byte [ebp - 0x1b4], 0x10
je 0x40e37c
push 0
mov dl, 1
lea ecx, [ebp - 0x24]
call fcn.0040e110
mov esi, eax
add esp, 4
test esi, esi
jne 0x40e42b
mov esi, dword [ebp - 0x28]
jmp 0x40e3b1
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
push 0x80
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40e41f
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40e41f
lea eax, [ebp - 0x1b4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x40e220
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
jne 0x40e42b
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x40e3e6
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40e401
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov esi, eax
jmp 0x40e42b
cmp dword [edi + 0x14], 0x10
jb 0x40e409
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40e429
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov esi, eax
jmp 0x40e42b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40e42b
xor esi, esi
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x40e45f
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e455
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e4dd
push ecx
push edx
call fcn.00504f31
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0x10
jb 0x40e4a1
mov edx, dword [ebp - 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e497
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e4dd
push ecx
push edx
call fcn.00504f31
add esp, 8
push 0x5651d0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.00504243
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
call fcn.00503edb
call fcn.004024b0
call fcn.0050a1d0
int3