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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov rax, qword [0x140017018]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rcx
mov esi, 0x104
mov r8d, esi
lea rcx, [rbp + 0x70]
xor edx, edx
xor ebx, ebx
call sub.msvcrt.dll_memset
test rdi, rdi
je 0x14000919b
cmp byte [rdi], bl
je 0x14000919b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
nop dword [rax + rax]
test eax, eax
jne 0x14000919b
lea rax, [rbp + 0x70]
mov r8, rdi
sub r8, rax
lea rcx, [rbp + 0x70]
mov edx, esi
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140008fd2
mov al, byte [r8 + rcx]
test al, al
je 0x140008fd2
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140008fb3
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], bl
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
test rdx, rdx
je 0x14000919b
lea rcx, [rbp + 0x70]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140009000
sub rsi, rax
lea r8, [0x140014338]
mov rdx, rsi
lea rcx, [rbp + 0x70]
call fcn.140009a78
mov ebx, eax
test eax, eax
js 0x14000919b
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140009180
lea rdx, [0x14001433c]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
nop dword [rax + rax]
test eax, eax
je 0x140009105
lea rdx, [0x140014340]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
nop dword [rax + rax]
test eax, eax
je 0x140009105
lea rax, [rsp + 0x5c]
mov r9, rdi
lea r8, [0x140014344]
mov qword [rsp + 0x20], rax
mov edx, 0x103
lea rcx, [rbp + 0x70]
call fcn.140009e48
mov ebx, eax
test eax, eax
js 0x14000914d
test byte [rsp + 0x30], 0x10
lea rcx, [rbp + 0x70]
je 0x1400090e0
mov edx, 0x90
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop dword [rax + rax]
lea rcx, [rbp + 0x70]
call fcn.140008f34
mov ebx, eax
test eax, eax
js 0x14000914d
jmp 0x140009105
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop dword [rax + rax]
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
test eax, eax
je 0x140009132
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
nop dword [rax + rax]
test eax, eax
jne 0x14000904b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x12
je 0x14000915e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14000914d
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
jmp 0x14000919b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
nop dword [rax + rax]
test eax, eax
jne 0x14000919b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14000919b
movzx ebx, ax
or ebx, 0x80070000
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140001560
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret