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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d078c
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x64c00c]
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 esi, ecx
mov dword [ebp - 0x274], 0
xor ebx, ebx
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x408337
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x268], eax
mov dword [ebp - 4], ebx
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x408341
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 1
test esi, esi
jne 0x408005
xor ecx, ecx
jmp 0x40801f
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408010
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x268]
call fcn.00406ed0
lea ecx, [ebp - 0x268]
call fcn.00407ae0
mov edi, dword [ebp - 0x268]
lea eax, [ebp - 0x270]
push edi
push str._s.
push eax
call fcn.00408c40
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
cmp eax, 0xffffffff
je 0x4082b2
mov esi, eax
nop word [eax + eax]
mov ecx, 0x635b9c
lea eax, [ebp - 0x234]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4080b6
test dx, dx
je 0x4080b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4080b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x408090
xor eax, eax
jmp 0x4080bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x408292
mov ecx, 0x635b58
lea eax, [ebp - 0x234]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4080f6
test dx, dx
je 0x4080f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4080f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4080d0
xor eax, eax
jmp 0x4080fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x408292
test byte [ebp - 0x260], 0x10
je 0x408163
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x408337
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 2
push eax
push edi
lea eax, [ebp - 0x264]
push 0x635ba0
push eax
call fcn.00408c40
mov esi, dword [ebp - 0x264]
add esp, 0x10
mov edx, 1
mov ecx, esi
call fcn.00407f80
or ebx, 0xffffffff
jmp 0x408271
call fcn.00405800
test eax, eax
je 0x408337
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x264]
call fcn.00406c20
test al, al
jne 0x4081c5
lea eax, [ebp - 0x234]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4081a3
sub eax, edx
lea ecx, [ebp - 0x264]
sar eax, 1
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00406ed0
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x264]
mov ebx, dword [esi - 0xc]
test ebx, ebx
js 0x40832d
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x4081fd
push ebx
lea ecx, [ebp - 0x264]
call fcn.00406dd0
mov esi, dword [ebp - 0x264]
lea eax, [ebx + 1]
push eax
push esi
call fcn.005a93e1
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x40832d
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
lea edx, [ebp - 0x268]
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x278]
call fcn.00408450
mov ebx, dword [ebp - 0x274]
add esp, 4
or ebx, 1
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x278]
and ebx, 0xfffffffe
mov dword [ebp - 0x274], ebx
add edx, 0xfffffff0
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408271
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov byte [ebp - 4], 1
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40828c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x26c]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408080
lea ebx, [eax + 1]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call edi
lea ecx, [ebp - 0x268]
call fcn.00407c60
mov esi, dword [ebp - 0x268]
push esi
call edi
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x270]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4082f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x40830f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.00483ab6
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00405600
push 0x80004005
call fcn.00405600
push 0x80004005
call fcn.00405600
int3