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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x330
mov rax, qword [0x140068080]
xor rax, rsp
mov qword [rsp + 0x320], rax
lea rdx, [0x14005eba8]
mov rcx, qword [rsp + 0x340]
call fcn.140007510
movzx eax, al
test eax, eax
je 0x1400384b6
mov byte [rsp + 0x20], 0
mov rcx, qword [rsp + 0x340]
call fcn.140001b70
movzx eax, byte [rsp + 0x20]
jmp 0x14003874c
mov rcx, qword [rsp + 0x340]
call fcn.140001bc0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140001af0
nop
mov rcx, qword [rsp + 0x340]
call fcn.140001c40
dec eax
mov edx, eax
mov rcx, qword [rsp + 0x340]
call fcn.1400074e0
movzx eax, word [rax]
cmp eax, 0x5c
je 0x140038506
mov dx, 0x5c
lea rcx, [rsp + 0x28]
call fcn.140001be0
nop
lea rax, [rsp + 0xd0]
mov rdi, rax
xor eax, eax
mov ecx, 0x250
rep stosb byte [rdi], al
lea r8, [0x14005ee38]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x28]
call fcn.14000a7c0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.140001bc0
lea rdx, [rsp + 0xd0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x88]
call fcn.140001b70
nop
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x14003859f
mov byte [rsp + 0x21], 0
lea rcx, [rsp + 0x28]
call fcn.140001b70
nop
mov rcx, qword [rsp + 0x340]
call fcn.140001b70
movzx eax, byte [rsp + 0x21]
jmp 0x14003874c
lea rdx, [0x14005ebb8]
lea rcx, [rsp + 0xfc]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400385d1
lea rdx, [0x14005ebbc]
lea rcx, [rsp + 0xfc]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400385d6
jmp 0x1400386d6
mov eax, dword [rsp + 0xd0]
and eax, 0x10
cmp eax, 0x10
jne 0x140038619
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0xfc]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x28]
call fcn.14000a7c0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140038460
nop
mov eax, dword [rsp + 0xd0]
and eax, 0x20
cmp eax, 0x20
jne 0x140038685
mov eax, dword [rsp + 0xd0]
or eax, 0xfffffffe
mov dword [rsp + 0x38], eax
lea r8, [rsp + 0xfc]
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x28]
call fcn.14000a7c0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.140001bc0
mov edx, dword [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop
lea rcx, [rsp + 0x98]
call fcn.140001b70
nop
lea r8, [rsp + 0xfc]
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x28]
call fcn.14000a7c0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.140001bc0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rsp + 0xa8]
call fcn.140001b70
nop
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14003859f
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rsp + 0x28]
call fcn.140001bc0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jle 0x14003871e
mov dword [rsp + 0x24], 1
jmp 0x140038726
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x22], al
lea rcx, [rsp + 0x28]
call fcn.140001b70
nop
mov rcx, qword [rsp + 0x340]
call fcn.140001b70
movzx eax, byte [rsp + 0x22]
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.14000de10
add rsp, 0x330
pop rdi
ret