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

Disassembly:
mov eax, 0x1000cf96
call fcn.10007e9c
sub esp, 0x1a0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10001000
mov byte [ebp - 4], 1
push str..
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x178]
push eax
call fcn.10001713
add esp, 0xc
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x198]
mov dword [ebp - 0x19c], eax
mov byte [ebp - 4], 2
push dword [ebp - 0x19c]
lea ecx, [ebp - 0x14]
call fcn.10001549
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x178]
call fcn.100010fa
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x14]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0xffffffff
je 0x10003456
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1000344a
lea ecx, [ebp - 0x160]
call fcn.10001000
mov byte [ebp - 4], 3
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x160]
call fcn.10001581
push 0x10010688
lea eax, [ebp - 0x160]
push eax
call fcn.100068b2
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x10003436
push 0x1001068c
lea eax, [ebp - 0x160]
push eax
call fcn.100068b2
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x10003436
cmp dword [ebp - 0x154], 0x10
jne 0x1000339a
lea ecx, [ebp - 0x168]
call fcn.10001000
mov byte [ebp - 4], 4
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp + 8]
call fcn.10001bf8
add eax, 0x5c
push eax
lea eax, [ebp - 0x180]
push eax
call fcn.10001776
add esp, 0xc
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 4], 5
push dword [ebp - 0x1a4]
lea ecx, [ebp - 0x168]
call fcn.10001549
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x180]
call fcn.100010fa
push 0x20
lea ecx, [ebp - 0x168]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x184], esp
lea eax, [ebp - 0x168]
push eax
call fcn.1000104f
call fcn.100031d5
pop ecx
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x168]
call fcn.100010fa
jmp 0x10003436
lea ecx, [ebp - 0x170]
call fcn.10001000
mov byte [ebp - 4], 6
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp + 8]
call fcn.10001bf8
add eax, 0x5c
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.10001776
add esp, 0xc
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 4], 7
push dword [ebp - 0x1ac]
lea ecx, [ebp - 0x170]
call fcn.10001549
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18c]
call fcn.100010fa
push 0x20
lea ecx, [ebp - 0x170]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x170]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x170]
call fcn.100010fa
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x160]
call fcn.100010fa
jmp 0x10003269
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp + 8]
call fcn.10001bf8
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x10003490
and dword [ebp - 0x190], 0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.100010fa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100010fa
mov eax, dword [ebp - 0x190]
jmp 0x100034b8
mov dword [ebp - 0x194], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.100010fa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100010fa
mov eax, dword [ebp - 0x194]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret