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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b927
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x1c8
push esi
push edi
mov dword [ebp - 0x14], 0
mov esi, ecx
push 0x5894f8
mov dword [ebp - 0x4c], 0x5894f8
call fcn.00432b99
add esp, 4
test eax, eax
jne 0x4e6be5
cmp dword [0x589524], 0x7fffffff
je 0x4e6bec
mov dword [ebp - 4], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], al
mov byte [ebp - 4], 1
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
mov byte [ebp - 4], 3
mov eax, closesocket
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 4
jb 0x4e6bfd
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x4e6832
mov eax, dword [esi]
push 4
push str..
push ecx
push eax
push ecx
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x64]
call fcn.0041e8a0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], 4
cmp ecx, 0xf
jbe 0x4e6882
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e6878
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6c02
push ecx
push edx
call fcn.004338f3
add esp, 8
movups xmm0, xmmword [ebp - 0x64]
mov byte [ebp - 0x44], 0
mov edi, 4
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0xf
movq xmm0, qword [ebp - 0x54]
mov dword [ebp - 0x14], edi
and edi, 0xfffffffb
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.00402df0
cmp dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x1d8]
lea eax, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x48], eax
cmp eax, 0xffffffff
je 0x4e6b2a
nop word [eax + eax]
lea eax, [ebp - 0x1ac]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e6910
mov cl, byte [ebp - 0x1ac]
sub eax, edx
cmp eax, 1
jne 0x4e692d
cmp cl, 0x2e
je 0x4e6aae
cmp eax, 2
jne 0x4e6943
cmp cl, 0x2e
jne 0x4e6943
cmp byte [ebp - 0x1ab], cl
je 0x4e6aae
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
cmova eax, dword [ebp - 0x2c]
mov byte [eax], 0
mov byte [ebp - 4], 4
mov eax, closesocket
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x4e6bfd
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x4e6979
mov eax, dword [esi]
push 1
push 0x565b0c
push ecx
push eax
push ecx
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x98]
call fcn.0041e8a0
or edi, 1
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1ac]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e69a4
sub ecx, edx
lea eax, [ebp - 0x1ac]
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.00418f00
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x50], 0
or edi, 2
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x64], xmm0
movups xmmword [ebp - 0x80], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x54], xmm0
movq qword [ebp - 0x70], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 0x14], edi
call fcn.00402df0
movups xmm0, xmmword [ebp - 0x80]
and edi, 0xfffffffd
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
movups xmmword [ebp - 0x2c], xmm0
mov byte [ebp - 0x64], 0
movq xmm0, qword [ebp - 0x70]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
call fcn.00402df0
and edi, 0xfffffffe
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x98]
call fcn.00402df0
test byte [ebp - 0x1d8], 0x10
je 0x4e6a79
push 0
mov dl, 1
lea ecx, [ebp - 0x2c]
call fcn.004e6770
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e6b2c
mov edi, dword [ebp - 0x14]
jmp 0x4e6aae
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
push 0x80
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x4e6b20
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4e6b20
lea eax, [ebp - 0x1d8]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x4e6900
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
jne 0x4e6b2c
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x4e6ae7
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4e6b02
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edi, eax
jmp 0x4e6b2c
cmp dword [esi + 0x14], 0xf
jbe 0x4e6b0a
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4e6b2a
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edi, eax
jmp 0x4e6b2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4e6b2c
xor edi, edi
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x4e6b64
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e6b5a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6c07
push ecx
push edx
call fcn.004338f3
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x4e6baa
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e6ba0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6c07
push ecx
push edx
call fcn.004338f3
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
push 0x5894f8
call fcn.00432baa
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 5
call fcn.00432534
push 6
mov dword [0x589524], 0x7ffffffe
call fcn.00432534
call fcn.00402c60
call fcn.00438c70
call fcn.00438c70
int3