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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004a040
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x1005f0f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
push str..
mov edx, edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1a4]
call fcn.1001bcc0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x10016982
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x1001694e
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10016944
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016c4a
push edx
push ecx
call fcn.100274be
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x190]
cmp edx, 0x10
jb 0x100169bc
mov ecx, dword [ebp - 0x1a4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100169b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016c4a
push edx
push ecx
call fcn.100274be
add esp, 8
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x180]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x184], esi
cmp esi, 0xffffffff
je 0x10016bb9
nop word [eax + eax]
cmp byte [ebp - 0x154], 0x2e
je 0x10016b41
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x1bc]
cmovae eax, dword [ebp - 0x28]
mov edx, edi
push 0x100595c4
mov byte [eax], 0
call fcn.1001bcc0
add esp, 4
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.100067b0
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x14]
movq qword [ebp - 0x18c], xmm1
movups xmmword [ebp - 0x19c], xmm0
cmp edx, 0x10
jb 0x10016aa4
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10016a8b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016c4a
push edx
push ecx
call fcn.100274be
movups xmm0, xmmword [ebp - 0x19c]
add esp, 8
movq xmm1, qword [ebp - 0x18c]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1a8]
movq qword [ebp - 0x18], xmm1
movups xmmword [ebp - 0x28], xmm0
cmp edx, 0x10
jb 0x10016aeb
mov ecx, dword [ebp - 0x1bc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10016ae1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016c4a
push edx
push ecx
call fcn.100274be
add esp, 8
test byte [ebp - 0x180], 0x10
je 0x10016b10
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.10016890
mov esi, eax
test esi, esi
jne 0x10016bbb
mov esi, dword [ebp - 0x184]
jmp 0x10016b41
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x80
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x10016b91
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x10016b91
lea eax, [ebp - 0x180]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x100169f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
jne 0x10016bbb
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x10016b76
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x10016b9b
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov esi, eax
jmp 0x10016bbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10016bbb
cmp dword [edi + 0x14], 0x10
jb 0x10016ba3
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x10016bb9
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov esi, eax
jmp 0x10016bbb
xor esi, esi
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x10016beb
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10016be1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016c4f
push edx
push ecx
call fcn.100274be
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x10016c2d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10016c23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016c4f
push edx
push ecx
call fcn.100274be
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10026f69
mov esp, ebp
pop ebp
ret
call fcn.1002df33
call fcn.1002df33
int3