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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41deeb
mov eax, dword fs:[0]
push eax
sub esp, 0x304
mov eax, dword [0x57a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x2e4], edx
lea ecx, [ebp - 0x310]
call fcn.00409970
mov dword [ebp - 4], 0
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x2dc], ecx
test ecx, ecx
jne 0x408868
cmp dword [edx + 0x24], ecx
mov ecx, 0x56e838
je 0x408862
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 0x2dc], ecx
mov edi, ecx
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edx, [edi + 2]
mov word [ebp - 0x28], ax
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x408896
sub edi, edx
sar edi, 1
cmp edi, 7
ja 0x4088d6
lea esi, [edi + edi]
mov dword [ebp - 0x18], edi
push esi
push ecx
lea eax, [ebp - 0x28]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x28], ax
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x2e0], ecx
jmp 0x408937
cmp edi, 0x7ffffffe
ja 0x408ce4
mov ebx, edi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x4088f6
mov ebx, 0x7ffffffe
jmp 0x408900
mov eax, 0xa
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.00409300
lea esi, [edi + edi]
mov dword [ebp - 0x18], edi
push esi
push dword [ebp - 0x2dc]
mov dword [ebp - 0x2e0], eax
push eax
mov dword [ebp - 0x14], ebx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x2e0]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x28], ecx
mov word [esi + ecx], ax
mov byte [ebp - 4], 1
lea edx, [edi - 1]
cmp edi, edx
jbe 0x408ce9
cmp ebx, 8
lea eax, [ebp - 0x28]
cmovae eax, ecx
cmp word [eax + edx*2], 0x5c
je 0x408a38
cmp edi, ebx
jae 0x408979
lea eax, [edi + 1]
cmp ebx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, ecx
mov dword [eax + edi*2], 0x5c
jmp 0x408a38
mov ecx, 0x7ffffffe
mov eax, ecx
sub eax, edi
cmp eax, 1
jb 0x408ce4
lea esi, [edi + 1]
or esi, 7
cmp esi, ecx
jbe 0x408999
mov esi, ecx
jmp 0x4089b1
mov eax, ebx
shr eax, 1
sub ecx, eax
cmp ebx, ecx
jbe 0x4089aa
mov esi, 0x7ffffffe
jmp 0x4089b1
add eax, ebx
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
call fcn.00409300
mov dword [ebp - 0x2dc], eax
lea ecx, [edi + 1]
mov dword [ebp - 0x18], ecx
lea ecx, [edi + edi]
mov dword [ebp - 0x14], esi
lea edi, [ecx + eax]
push ecx
cmp ebx, 8
jb 0x408a1c
mov esi, dword [ebp - 0x2e0]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
lea ebx, [ebx*2 + 2]
mov dword [edi], 0x5c
add esp, 0xc
mov eax, esi
cmp ebx, 0x1000
jb 0x408a10
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408c90
push ebx
push esi
call fcn.0041cd49
add esp, 8
jmp 0x408a2f
lea ecx, [ebp - 0x28]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi], 0x5c
mov eax, dword [ebp - 0x2dc]
mov dword [ebp - 0x28], eax
push 0x56e114
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.00408cf0
add esp, 4
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x408a57
mov eax, dword [eax]
lea ecx, [ebp - 0x2d8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00408e20
cmp edi, 0xffffffff
jne 0x408a80
xor esi, esi
jmp 0x408c60
mov ecx, 0x56e11c
lea eax, [ebp - 0x2ac]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408ab6
test dx, dx
je 0x408ab2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408ab6
add eax, 4
add ecx, 4
test dx, dx
jne 0x408a90
xor eax, eax
jmp 0x408abb
sbb eax, eax
or eax, 1
test eax, eax
je 0x408c20
mov ecx, 0x56e120
lea eax, [ebp - 0x2ac]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408af6
test dx, dx
je 0x408af2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408af6
add eax, 4
add ecx, 4
test dx, dx
jne 0x408ad0
xor eax, eax
jmp 0x408afb
sbb eax, eax
or eax, 1
test eax, eax
je 0x408c20
mov ebx, dword [ebp - 0x2d8]
test bl, 0x10
je 0x408ba9
lea eax, [ebp - 0x2ac]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
call fcn.00408cf0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x408b35
mov esi, dword [esi]
mov eax, dword [ebp - 0x2f4]
mov dword [ebp - 0x304], 0
test eax, eax
je 0x408b59
push eax
mov eax, dword [ebp - 0x300]
lea ecx, [ebp - 0x300]
call dword [eax + 0xc]
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2f0], 0
test esi, esi
je 0x408b8d
cmp word [esi], 0
je 0x408b8d
push esi
lea ecx, [ebp - 0x300]
call fcn.00418a40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00408e20
lea ecx, [ebp - 0x310]
call fcn.00408800
jmp 0x408c20
test bl, 1
je 0x408be6
lea eax, [ebp - 0x2ac]
and ebx, 0xfffffffe
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x70]
call fcn.00408cf0
add esp, 4
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x408bd2
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00408e20
lea eax, [ebp - 0x2ac]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x88]
call fcn.00408cf0
add esp, 4
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x408c0a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00408e20
lea eax, [ebp - 0x2d8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408a80
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x2e4]
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x408c57
cmp dword [ecx + 0x24], eax
mov eax, 0x56e838
je 0x408c57
mov eax, dword [ecx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x408ca0
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408c96
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408c96
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041cd49
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x310]
call fcn.00409620
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c8be
mov esp, ebp
pop ebp
ret
call fcn.00408eb0
call fcn.00408e10
int3