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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5060fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1bc
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], 0
push 0x5444b0
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], 0x5444b0
call fcn.004ded99
add esp, 4
test eax, eax
jne 0x40b8fc
cmp dword [0x5444dc], 0x7fffffff
je 0x40b903
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
mov byte [ebp - 4], 1
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
mov byte [ebp - 4], 3
mov eax, closesocket
mov ecx, dword [ebx + 0x10]
sub eax, ecx
cmp eax, 4
jb 0x40b914
cmp dword [ebx + 0x14], 0xf
mov eax, ebx
jbe 0x40b55f
mov eax, dword [ebx]
push 4
push str..
push ecx
push eax
push ecx
push dword [ebp - 0x64]
lea ecx, [ebp - 0x5c]
call fcn.00470ea0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x10], 4
call fcn.00402c80
mov eax, dword [ebp - 0x5c]
mov esi, 4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], esi
and esi, 0xfffffffb
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00402c80
cmp dword [ebp - 0x30], 0xf
lea eax, [ebp - 0x44]
jbe 0x40b5df
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x1c8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x40b843
mov edi, eax
jmp 0x40b600
lea eax, [ebp - 0x19c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b610
mov cl, byte [ebp - 0x19c]
sub eax, edx
cmp eax, 1
jne 0x40b62d
cmp cl, 0x2e
je 0x40b7d3
cmp eax, 2
jne 0x40b643
cmp cl, 0x2e
jne 0x40b643
cmp byte [ebp - 0x19b], cl
je 0x40b7d3
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
jbe 0x40b656
mov eax, dword [ebp - 0x28]
mov byte [eax], 0
mov byte [ebp - 4], 4
mov eax, closesocket
mov ecx, dword [ebx + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x40b914
cmp dword [ebx + 0x14], 0xf
mov eax, ebx
jbe 0x40b67a
mov eax, dword [ebx]
push 1
push 0x51f9bc
push ecx
push eax
push ecx
push dword [ebp - 0x64]
lea ecx, [ebp - 0x88]
call fcn.00470ea0
or esi, 1
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x19c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b6a5
sub ecx, edx
lea eax, [ebp - 0x19c]
push ecx
push eax
lea ecx, [ebp - 0x88]
call fcn.0046b590
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov ecx, dword [eax]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x68], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x54], ecx
mov ebx, dword [eax + 0xc]
mov dword [ebp - 0x50], ebx
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x4c], edi
mov esi, dword [eax + 0x14]
mov dword [ebp - 0x48], esi
or dword [ebp - 0x10], 2
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x28]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
call fcn.00402c80
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
and esi, 0xfffffffd
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.00402c80
and esi, 0xfffffffe
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.00402c80
test byte [ebp - 0x1c8], 0x10
je 0x40b796
push 0
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.0040b4a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40b845
mov esi, dword [ebp - 0x10]
jmp 0x40b7cd
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
jbe 0x40b7a2
mov eax, dword [ebp - 0x28]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40b839
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
jbe 0x40b7c2
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40b839
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x60]
lea eax, [ebp - 0x1c8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x40b600
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov esi, eax
cmp esi, 0x12
jne 0x40b845
cmp dword [ebx + 0x14], 0xf
mov eax, ebx
jbe 0x40b80a
mov eax, dword [ebx]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40b820
call edi
mov esi, eax
jmp 0x40b845
cmp dword [ebx + 0x14], 0xf
jbe 0x40b828
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40b843
call edi
mov esi, eax
jmp 0x40b845
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40b845
xor esi, esi
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x40b87d
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b873
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b919
push ecx
push edx
call fcn.004dfaf3
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x40b8c3
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b8b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b919
push ecx
push edx
call fcn.004dfaf3
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
push 0x5444b0
call fcn.004dedaa
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 5
call fcn.004de734
push 6
mov dword [0x5444dc], 0x7ffffffe
call fcn.004de734
call fcn.004025a0
call fcn.004e4d70
int3