Function at 0x140006d70
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 - 0x240]
sub rsp, 0x340
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x370], rbx
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rbp + 0x230], rax
movzx ebx, dl
mov rdi, rcx
mov qword [rsp + 0x28], rcx
mov byte [rsp + 0x20], 0
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140001678
nop
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140001678
nop
lea r8, str..
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.14000d660
mov rdi, rax
lea rax, [rsp + 0x68]
xor esi, esi
cmp rax, rdi
je 0x140006e47
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140001678
cmp qword [rdi + 0x18], 8
jae 0x140006e23
mov r8, qword [rdi + 0x10]
inc r8
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.14000195c
jmp 0x140006e2e
mov rax, qword [rdi]
mov qword [rsp + 0x68], rax
mov qword [rdi], rsi
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x78], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp - 0x80], rax
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
lea rcx, [rbp - 0x70]
call fcn.140001624
lea rcx, [rsp + 0x68]
call fcn.1400018c0
mov rcx, rax
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x1400070ed
nop word [rax + rax]
lea rsi, [0x14008885c]
lea rdi, [rbp + 0xc]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x140006fbb
lea rsi, [0x14008888c]
lea rdi, [rbp + 0xc]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x140006fbb
or r8, 0xffffffffffffffff
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140002a78
lea r8, [0x1400887bc]
mov rdx, qword [rsp + 0x28]
lea rcx, [rbp - 0x48]
call fcn.14000d660
nop
lea r8, [rbp + 0xc]
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.14000d720
mov rdi, rax
lea rax, [rsp + 0x40]
cmp rax, rdi
je 0x140006f4c
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.140001678
cmp qword [rdi + 0x18], 8
jae 0x140006f21
mov r8, qword [rdi + 0x10]
inc r8
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14000195c
jmp 0x140006f30
mov rax, qword [rdi]
mov qword [rsp + 0x40], rax
mov qword [rdi], 0
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x50], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x58], rax
xor eax, eax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
lea rcx, [rbp - 0x70]
call fcn.140001624
nop
lea rcx, [rbp - 0x48]
call fcn.140001624
test byte [rbp - 0x20], 0x10
je 0x140006f88
test bl, bl
je 0x140006f7e
movzx edx, bl
lea rcx, [rsp + 0x40]
call fcn.140006d70
mov edi, eax
test eax, eax
jne 0x140006fdc
jmp 0x140006fbb
mov sil, 1
mov byte [rsp + 0x20], sil
jmp 0x140006fc0
lea rcx, [rsp + 0x40]
call fcn.1400018c0
mov rcx, rax
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14000701c
lea rcx, [rsp + 0x40]
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140006ff8
movzx esi, byte [rsp + 0x20]
lea rdx, [rbp - 0x20]
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
jne 0x140007040
jmp 0x140006e80
lea rcx, [rsp + 0x68]
call fcn.140001624
nop
lea rcx, [rsp + 0x40]
call fcn.140001624
mov eax, edi
jmp 0x140007104
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rcx, [rsp + 0x68]
call fcn.140001624
nop
lea rcx, [rsp + 0x40]
call fcn.140001624
mov eax, edi
jmp 0x140007104
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rcx, [rsp + 0x68]
call fcn.140001624
nop
lea rcx, [rsp + 0x40]
call fcn.140001624
mov eax, edi
jmp 0x140007104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x140007072
lea rcx, [rsp + 0x68]
call fcn.140001624
nop
lea rcx, [rsp + 0x40]
call fcn.140001624
mov eax, edi
jmp 0x140007104
test sil, sil
jne 0x1400070ed
mov rdi, qword [rsp + 0x28]
mov rcx, rdi
call fcn.1400018c0
mov rcx, rax
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400070b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rcx, [rsp + 0x68]
call fcn.140001624
nop
lea rcx, [rsp + 0x40]
call fcn.140001624
mov eax, edi
jmp 0x140007104
mov rcx, rdi
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400070ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rcx, [rsp + 0x68]
call fcn.140001624
nop
lea rcx, [rsp + 0x40]
call fcn.140001624
mov eax, edi
jmp 0x140007104
lea rcx, [rsp + 0x68]
call fcn.140001624
nop
lea rcx, [rsp + 0x40]
call fcn.140001624
xor eax, eax
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.14005ba60
mov rbx, qword [rsp + 0x370]
add rsp, 0x340
pop rdi
pop rsi
pop rbp
ret