Function at 0x408906
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jg 0x408929
xor al, al
jmp 0x408b4f
push esi
mov esi, 0x206
push esi
lea eax, [ebp - 0x416]
push ebx
push eax
mov word [ebp - 0x418], bx
call fcn.00406310
push esi
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.00406310
mov ebx, 0x104
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x418]
push eax
call fcn.0040834d
add esp, 0x24
test al, al
je 0x408a07
lea esi, [edi + edi]
push 0x5c
lea eax, [ebp + esi - 0x418]
pop edi
cmp word [eax - 2], di
je 0x40899b
mov word [eax], di
mov word [ebp + esi - 0x416], 0x2a
jmp 0x4089a0
mov word [eax], 0x2a
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call fcn.0040834d
add esp, 0xc
test al, al
je 0x408a07
lea eax, [ebp + esi - 0x210]
cmp word [eax - 2], di
je 0x4089c7
mov word [eax], di
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x408a07
push ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.0040834d
add esp, 0xc
test al, al
jne 0x408a0e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x408b4e
push 4
mov byte [ebp - 1], 1
pop ebx
lea eax, [ebp - 0x668]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x408b1d
mov ecx, 0x4018d0
lea eax, [ebp - 0x63c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408a5c
test dx, dx
je 0x408a58
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408a5c
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x408a38
xor eax, eax
jmp 0x408a61
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408b2c
mov ecx, 0x4018c8
lea eax, [ebp - 0x63c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408a98
test dx, dx
je 0x408a94
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408a98
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x408a74
xor eax, eax
jmp 0x408a9d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408b2c
lea eax, [ebp - 0x63c]
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x408aad
sub eax, edx
lea edi, [ebp - 0x210]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x408ac1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test byte [ebp - 0x668], 0x10
lea eax, [ebp - 0x210]
rep movsb byte es:[edi], byte [esi]
push eax
je 0x408afa
call fcn.00408906
mov dword [esp], 0x104
jmp 0x408b05
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x104
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040834d
add esp, 0xc
jmp 0x408b2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x408b36
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
jne 0x408a15
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
pop esi
pop edi
pop ebx
leave
ret