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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x6d0
mov rax, qword [0x1800e7b20]
xor rax, rsp
mov qword [rsp + 0x6c0], rax
mov ebp, edx
mov dword [rsp + 0x44], edx
mov rbx, rcx
test rcx, rcx
je 0x180008420
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x180008420
mov qword [rsp + 0x6e8], rsi
xor esi, esi
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rsi
call fcn.180004f50
test eax, eax
je 0x18000841c
mov edi, dword [rsp + 0x40]
cmp edi, 0xffffffff
je 0x18000841c
test dil, 1
je 0x180008227
and edi, 0xfffffffe
mov rcx, rbx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test dil, 0x10
je 0x1800083cf
lea rcx, [rsp + 0x4b2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x4b0], si
call fcn.180038130
lea rcx, [rsp + 0x4b0]
sub rcx, rbx
mov rdx, rbx
nop dword [rax]
movzx eax, word [rdx]
add rdx, 2
mov word [rcx + rdx - 2], ax
test ax, ax
jne 0x180008260
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x4b0]
repne scasw ax, word [rdi]
mov eax, dword [0x1800b2930]
lea rcx, [rsp + 0x54]
mov dword [rdi - 2], eax
movzx eax, word [0x1800b2934]
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x50], esi
mov word [rdi + 2], ax
call fcn.180038130
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x4b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1800083c4
xor ebp, ebp
nop
lea rdx, [0x1800b2ee4]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1800083a1
lea rdx, [0x1800b2ee0]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1800083a1
lea rcx, [rsp + 0x2a2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x2a0], bp
call fcn.180038130
lea rcx, [rsp + 0x2a0]
sub rcx, rbx
mov rdx, rbx
nop
movzx eax, word [rdx]
add rdx, 2
mov word [rcx + rdx - 2], ax
test ax, ax
jne 0x180008330
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x2a0]
repne scasw ax, word [rdi]
mov eax, dword [0x1800b2edc]
or rcx, 0xffffffffffffffff
mov dword [rdi - 2], eax
xor eax, eax
lea rdi, [rsp + 0x2a0]
repne scasw ax, word [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x7c]
nop word [rax + rax]
movzx eax, word [rdx + rcx]
add rcx, 2
mov word [rdi + rcx - 4], ax
test ax, ax
jne 0x180008380
lea rcx, [rsp + 0x2a0]
xor edx, edx
call fcn.180008180
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800082d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [rsp + 0x44]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1800083d8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800083ef
test ebp, ebp
je 0x1800083ef
lea r8d, [rax + 4]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rsi, qword [rsp + 0x6e8]
mov rcx, qword [rsp + 0x6c0]
xor rcx, rsp
call fcn.180038100
lea r11, [rsp + 0x6d0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
xor eax, eax
jmp 0x1800083ef
xor eax, eax
jmp 0x1800083f7