Function at 0x180005a80
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x1800393f8]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rsi, rcx
mov qword [rsp + 0x28], rcx
test rcx, rcx
jne 0x180005ae6
mov rcx, qword [0x18003be50]
call fcn.1800010a0
xor ebp, ebp
mov rdi, rax
test rax, rax
je 0x180005b03
lea ecx, [rsi + 0xf]
mov rdx, rax
mov dword [rax + 4], ebp
call fcn.180001120
mov qword [rdi + 8], rax
mov byte [rax], bpl
mov rbp, rdi
jmp 0x180005b03
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea rdx, [rcx - 1]
mov rcx, rsi
call fcn.1800012d0
mov rbp, rax
lea r8, [0x180032a08]
lea rdx, [0x180032a0c]
mov rcx, rbp
call fcn.180001bc0
movsxd rax, dword [rbp + 4]
mov rcx, qword [rbp + 8]
cmp byte [rax + rcx - 1], 0x5c
je 0x180005b3d
lea rdx, [0x180032a08]
mov r8d, 1
mov rcx, rbp
call fcn.180001440
mov rdx, qword [rbp + 8]
lea rcx, str._s.
call fcn.1800018a0
lea rdx, [rsp + 0x40]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x180005c53
test byte [rsp + 0x40], 0x10
je 0x180005bdc
lea rsi, [rsp + 0x6c]
lea rdi, [0x18002e560]
mov ecx, 2
repe cmpsb byte [rsi], byte [rdi]
je 0x180005c3d
lea rsi, [rsp + 0x6c]
lea rdi, [0x180032a34]
mov ecx, 3
repe cmpsb byte [rsi], byte [rdi]
je 0x180005c3d
mov rdx, qword [rbp + 8]
lea r8, [rsp + 0x6c]
lea rcx, str._s_s_
call fcn.1800018a0
mov edx, 1
mov rcx, qword [rax + 8]
mov rdi, rax
call fcn.180005a80
mov rcx, rdi
call fcn.180001770
jmp 0x180005c3d
mov rdx, qword [rbp + 8]
lea r8, [rsp + 0x6c]
lea rcx, str._s_s
call fcn.1800018a0
mov rdi, rax
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x180005c0e
mov edx, dword [rdi]
call fcn.180001240
mov rbx, qword [0x18003be50]
add rdi, 0xfffffffffffffff8
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbx + 8]
lea rcx, [rbx + 0x20]
mov qword [rdi], rax
mov qword [rbx + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180005b73
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x180005c6d
mov edx, dword [rbp]
call fcn.180001240
mov rbx, qword [0x18003be50]
lea rdi, [rbp - 8]
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbx + 8]
lea rcx, [rbx + 0x20]
mov qword [rdi], rax
mov qword [rbx + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, qword [rsp + 0x20]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x180005cac
mov edx, dword [rdi]
call fcn.180001240
mov rbx, qword [0x18003be50]
add rdi, 0xfffffffffffffff8
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, qword [rbx + 8]
lea rcx, [rbx + 0x20]
mov qword [rdi], rdx
mov qword [rbx + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, 1
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1800178a0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret