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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x6d9120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x670], ecx
push esi
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x20c]
mov dword [ebp - 0x668], esi
mov ecx, esi
mov word [ebp - 0x20c], ax
sub ebx, esi
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ebx + ecx - 2], ax
test ax, ax
jne 0x4062d0
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
nop dword [eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4062f0
mov eax, dword [str..]
mov dword [ecx], eax
mov eax, dword [0x6568d4]
mov dword [ecx + 4], eax
mov ax, word [0x6568d8]
mov word [ecx + 8], ax
lea eax, [ebp - 0x664]
push edi
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
lea eax, [ebp - 0x664]
push eax
push edi
mov dword [ebp - 0x66c], edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40643f
nop dword [eax + eax]
mov ecx, 0x65654c
lea eax, [ebp - 0x638]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406386
test dx, dx
je 0x406382
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406386
add eax, 4
add ecx, 4
test dx, dx
jne 0x406360
xor eax, eax
jmp 0x40638b
sbb eax, eax
or eax, 1
test eax, eax
je 0x406429
lea edx, [ebp - 0x414]
mov eax, esi
sub edx, esi
nop dword [eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x4063a0
lea edi, [ebp - 0x414]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4063c0
mov eax, dword [0x656500]
lea edx, [ebp - 0x638]
mov dword [edi], eax
mov esi, edx
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4063e0
lea edi, [ebp - 0x414]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4063f6
mov ecx, edx
lea eax, [ebp - 0x414]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x668]
mov edi, dword [ebp - 0x66c]
lea eax, [ebp - 0x664]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406350
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, esi
pop edi
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ebx + ecx - 2], ax
test ax, ax
jne 0x406450
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
nop dword [eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x406470
mov eax, dword [str.WTLib]
mov dword [ecx], eax
mov eax, dword [0x6568e0]
mov dword [ecx + 4], eax
mov eax, dword [0x6568e4]
mov dword [ecx + 8], eax
mov ax, word [0x6568e8]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00403de0
add esp, 4
mov ecx, esi
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ebx + ecx - 2], ax
test ax, ax
jne 0x4064b0
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
nop dword [eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4064d0
mov eax, dword [str.SSLib]
mov dword [ecx], eax
mov eax, dword [0x6568f0]
mov dword [ecx + 4], eax
mov eax, dword [0x6568f4]
mov dword [ecx + 8], eax
mov ax, word [0x6568f8]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00403de0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, dword [ebp - 0x670]
mov ecx, ebx
call fcn.00405ab0
mov ecx, ebx
call fcn.00405ba0
mov ecx, ebx
call fcn.00405c50
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.005dddbe
mov esp, ebp
pop ebp
ret 4