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

Disassembly:
mov eax, 0x1000cf56
call fcn.10007e5c
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 0x10003421
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x10003415
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.1000687d
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x10003401
push 0x1001068c
lea eax, [ebp - 0x160]
push eax
call fcn.1000687d
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x10003401
cmp dword [ebp - 0x154], 0x10
jne 0x10003365
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.100031a0
pop ecx
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x168]
call fcn.100010fa
jmp 0x10003401
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 0x10003234
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 0x1000345b
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 0x10003483
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