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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5c8]
sub rsp, 0x6a0
xor ebx, ebx
mov r12d, r8d
mov r14, rdx
mov rdi, rcx
test rcx, rcx
je 0x140083fec
cmp word [rcx], bx
je 0x140083fec
mov rdx, rcx
mov esi, 0x104
mov r8d, esi
lea rcx, [rsp + 0x30]
call fcn.140099464
mov rcx, rdi
mov word [rbp + 0x138], bx
call fcn.14009826c
test eax, eax
je 0x140083d82
cmp eax, esi
jge 0x140083d82
cdqe
cmp word [rdi + rax*2 - 2], 0x5c
je 0x140083d82
lea rdx, [0x1401a02a4]
lea rcx, [rsp + 0x30]
call fcn.1400b5564
mov r8, rsi
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x390]
call fcn.140099464
mov word [rbp + 0x598], bx
test r14, r14
je 0x140083eac
cmp word [r14], bx
je 0x140083eac
lea rdx, [0x1401a6be0]
mov rcx, r14
call fcn.1400b52f8
test eax, eax
je 0x140083eac
mov r15d, r12d
and r15d, 1
je 0x140083ea4
lea r9, [rbp + 0x390]
mov rdx, rsi
lea r8, [0x1401a6bd0]
lea rcx, [rsp + 0x30]
call fcn.140083ca0
lea rdx, [rbp + 0x140]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140083e9d
lea rax, [rbp + 0x16c]
mov rdx, rsi
lea r9, [rbp + 0x390]
mov qword [rsp + 0x20], rax
lea r8, [0x1401a40b0]
lea rcx, [rsp + 0x30]
call fcn.140083ca0
test byte [rbp + 0x140], 0x10
je 0x140083e7c
lea rdx, [0x1401a02f0]
lea rcx, [rbp + 0x16c]
call fcn.1400b52f8
test eax, eax
je 0x140083e7c
lea rdx, [0x1401a02f8]
lea rcx, [rbp + 0x16c]
call fcn.1400b52f8
test eax, eax
je 0x140083e7c
mov r8d, r12d
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.140083cf8
lea rdx, [rbp + 0x140]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140083e0e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov edi, 1
jmp 0x140083ebc
mov edi, dword [rbp + 0x5d0]
jmp 0x140083ebc
mov r15d, r12d
lea r14, [0x1401a6be0]
and r15d, 1
mov edi, ebx
lea r9, [rbp + 0x390]
mov qword [rsp + 0x20], r14
lea r8, [0x1401a40b0]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140083ca0
lea rdx, [rbp + 0x140]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140083fec
mov esi, r12d
and esi, 2
lea rax, [rbp + 0x16c]
mov edx, 0x104
lea r9, [rbp + 0x390]
mov qword [rsp + 0x20], rax
lea r8, [0x1401a40b0]
lea rcx, [rsp + 0x30]
call fcn.140083ca0
test byte [rbp + 0x140], 0x10
je 0x140083f7c
test edi, edi
jne 0x140083f9b
test r15d, r15d
je 0x140083f9b
lea rdx, [0x1401a02f0]
lea rcx, [rbp + 0x16c]
call fcn.1400b52f8
test eax, eax
je 0x140083f9b
lea rdx, [0x1401a02f8]
lea rcx, [rbp + 0x16c]
call fcn.1400b52f8
test eax, eax
je 0x140083f9b
mov r8d, r12d
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.140083cf8
jmp 0x140083f9b
test esi, esi
je 0x140083f90
mov edx, 0x80
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x140]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140083f01
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x140083fd2
mov edx, 0x80
lea rcx, [rbp + 0x390]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test edi, edi
je 0x140083fdd
mov ebx, 1
jmp 0x140083fec
lea rcx, [rbp + 0x390]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
lea r11, [rsp + 0x6a0]
movsxd rax, ebx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret