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

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x240], rbx
mov rax, qword [0x140026008]
xor rax, rsp
mov qword [rbp + 0x100], rax
movzx esi, dl
mov rdi, rcx
xor al, al
mov byte [rsp + 0x20], al
mov qword [rbp - 0x70], 0xf
xor eax, eax
mov qword [rbp - 0x78], rax
mov byte [rsp + 0x78], al
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], rax
mov byte [rbp - 0x68], al
lea r8, str..
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.140004260
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.1400025b0
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x1400014ae
inc rax
mov rcx, qword [rsp + 0x30]
cmp rax, 0x1000
jb 0x1400014a9
test cl, 0x1f
je 0x140001479
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140001489
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140001499
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1400014a6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140014a30
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rcx, qword [rbp - 0x68]
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
je 0x1400017aa
mov rbx, rax
nop dword [rax + rax]
cmp byte [rbp - 0x14], 0x2e
je 0x1400016d7
mov qword [rbp - 0x78], 0
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rcx, qword [rsp + 0x78]
mov byte [rcx], 0
lea r8, [0x140018a74]
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.140004260
nop
lea r8, [rbp - 0x14]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400043d0
mov rbx, rax
lea rax, [rsp + 0x78]
cmp rax, rbx
je 0x1400015ae
mov rcx, qword [rbp - 0x70]
cmp rcx, 0x10
jb 0x14000158b
inc rcx
mov rdx, qword [rsp + 0x78]
cmp rcx, 0x1000
jb 0x140001583
test dl, 0x1f
jne 0x140001703
mov rax, qword [rdx - 8]
cmp rax, rdx
jae 0x1400016fc
sub rdx, rax
cmp rdx, 8
jb 0x1400016f5
cmp rdx, 0x27
ja 0x1400016ee
mov rdx, rax
mov rcx, rdx
call fcn.140014a30
mov qword [rbp - 0x70], 0xf
mov qword [rbp - 0x78], 0
mov byte [rsp + 0x78], 0
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140003bc0
nop
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x1400015fe
inc rax
mov rcx, qword [rsp + 0x30]
cmp rax, 0x1000
jb 0x1400015f9
test cl, 0x1f
jne 0x14000171f
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140001718
sub rcx, rax
cmp rcx, 8
jb 0x140001711
cmp rcx, 0x27
ja 0x14000170a
mov rcx, rax
call fcn.140014a30
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], 0
mov byte [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
cmp rax, 0x10
jb 0x140001665
inc rax
mov rcx, qword [rsp + 0x58]
cmp rax, 0x1000
jb 0x140001660
test cl, 0x1f
jne 0x14000173b
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140001734
sub rcx, rax
cmp rcx, 8
jb 0x14000172d
cmp rcx, 0x27
ja 0x140001726
mov rcx, rax
call fcn.140014a30
test byte [rbp - 0x40], 0x10
je 0x140001691
test sil, sil
je 0x14000168a
movzx edx, sil
lea rcx, [rsp + 0x78]
call fcn.1400013d0
mov ebx, eax
test eax, eax
jne 0x1400017ac
jmp 0x1400016d2
mov byte [rsp + 0x20], 1
jmp 0x1400016d2
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rcx, qword [rsp + 0x78]
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x1400017a0
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x1400017a0
mov rbx, qword [rsp + 0x28]
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
jne 0x140001742
jmp 0x1400014e0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x12
jne 0x1400017ac
movzx eax, byte [rsp + 0x20]
test al, al
jne 0x1400017aa
cmp qword [rdi + 0x18], 0x10
jb 0x14000176d
mov rcx, qword [rdi]
jmp 0x140001770
mov rcx, rdi
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x140001789
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1400017ac
cmp qword [rdi + 0x18], 0x10
jb 0x140001793
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x1400017aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1400017ac
xor ebx, ebx
mov rax, qword [rbp - 0x50]
cmp rax, 0x10
jb 0x140001806
inc rax
mov rcx, qword [rbp - 0x68]
cmp rax, 0x1000
jb 0x140001801
test cl, 0x1f
je 0x1400017d1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400017e1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400017f1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1400017fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140014a30
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], 0
mov byte [rbp - 0x68], 0
mov rax, qword [rbp - 0x70]
cmp rax, 0x10
jb 0x140001875
inc rax
mov rcx, qword [rsp + 0x78]
cmp rax, 0x1000
jb 0x140001870
test cl, 0x1f
je 0x140001840
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140001850
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140001860
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14000186d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140014a30
mov eax, ebx
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1400149d0
mov rbx, qword [rsp + 0x240]
add rsp, 0x210
pop rdi
pop rsi
pop rbp
ret