Function at 0x180005d60
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 0x180005dc6
mov rcx, qword [0x18003be50]
call fcn.1800010a0
xor ebp, ebp
mov rdi, rax
test rax, rax
je 0x180005de3
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 0x180005de3
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.180001340
mov rbp, rax
lea r8, [0x180032a74]
lea rdx, [0x180032a78]
mov rcx, rbp
call fcn.180001c50
movsxd rax, dword [rbp + 4]
mov rcx, qword [rbp + 8]
cmp byte [rax + rcx - 1], 0x5c
je 0x180005e1d
lea rdx, [0x180032a74]
mov r8d, 1
mov rcx, rbp
call fcn.1800014b0
mov rdx, qword [rbp + 8]
lea rcx, str._s.
call fcn.180001930
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 0x180005f33
test byte [rsp + 0x40], 0x10
je 0x180005ebc
lea rsi, [rsp + 0x6c]
lea rdi, [0x18002e5c0]
mov ecx, 2
repe cmpsb byte [rsi], byte [rdi]
je 0x180005f1d
lea rsi, [rsp + 0x6c]
lea rdi, [0x180032a8c]
mov ecx, 3
repe cmpsb byte [rsi], byte [rdi]
je 0x180005f1d
mov rdx, qword [rbp + 8]
lea r8, [rsp + 0x6c]
lea rcx, str._s_s_
call fcn.180001930
mov edx, 1
mov rcx, qword [rax + 8]
mov rdi, rax
call fcn.180005d60
mov rcx, rdi
call fcn.1800012d0
jmp 0x180005f1d
mov rdx, qword [rbp + 8]
lea r8, [rsp + 0x6c]
lea rcx, str._s_s
call fcn.180001930
mov rdi, rax
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x180005eee
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 0x180005e53
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x180005f4d
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 0x180005f8c
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.180018330
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