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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00408111
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x407e0d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x439fc8], eax
jmp 0x408003
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x407e2b
test eax, eax
je 0x407f82
test byte [ebp + 0xc], 2
je 0x407f82
mov esi, 0x433810
push edi
push esi
call fcn.0040852d
test ebx, ebx
je 0x407e48
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x407e4e
push edi
call fcn.00408055
cmp word [edi], 0
jne 0x407e5e
cmp word [0x433810], 0x5c
jne 0x407e69
push 0x40c4ec
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x407f77
lea eax, [ebp - 0x22c]
push 0x3f
push eax
lea esi, [ebp - 0x22c]
call fcn.00408036
xor ecx, ecx
cmp word [eax], cx
je 0x407eb0
cmp word [ebp - 0x24], cx
je 0x407eb0
lea esi, [ebp - 0x24]
cmp word [esi], 0x2e
jne 0x407ed3
mov ax, word [esi + 2]
cmp ax, cx
je 0x407f56
cmp ax, 0x2e
jne 0x407ed3
cmp word [esi + 4], cx
je 0x407f56
push esi
push ebx
call fcn.0040852d
test byte [ebp - 0x258], 0x10
je 0x407ef8
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x407f56
push dword [ebp + 0xc]
push edi
call fcn.00407dd9
jmp 0x407f56
push edi
push str.Delete:_DeleteFile___s__
call fcn.00408a35
pop ecx
pop ecx
push edi
call fcn.00408213
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
push edi
jne 0x407f4f
test byte [ebp + 0xc], 4
je 0x407f3b
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00408a35
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00407811
push 0
push edi
call fcn.00408480
jmp 0x407f56
push str.Delete:_DeleteFile_failed___s__
call fcn.00408a35
inc dword [0x439fc8]
pop ecx
pop ecx
jmp 0x407f56
push 0xfffffffffffffff2
call fcn.00407811
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407e8c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x407f82
and word [ebx - 2], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x408003
cmp dword [ebp - 8], esi
push edi
jne 0x407fa4
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.00408a35
inc dword [0x439fc8]
pop ecx
pop ecx
jmp 0x408003
call fcn.00408a66
test eax, eax
je 0x408003
push edi
call fcn.00408009
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.00408a35
pop ecx
pop ecx
push edi
call fcn.00408213
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
push edi
jne 0x407ffc
test byte [ebp + 0xc], 4
je 0x407ff5
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00408a35
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.00407811
push esi
push edi
call fcn.00408480
jmp 0x408003
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x407f95
push 0xffffffffffffffe5
call fcn.00407811
pop edi
pop esi
leave
ret 8