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

Disassembly:
mov r11, rsp
sub rsp, 0x288
mov rax, qword [0x100011410]
mov qword [rsp + 0x270], rax
test rcx, rcx
mov qword [r11 + 0x18], rsi
mov rsi, rcx
je 0x100003a7f
cmp byte [rcx], 0
je 0x100003a7f
mov qword [r11 + 0x10], rbx
lea rcx, [r11 - 0x128]
mov rbx, rsi
lea rax, [r11 - 0x128]
mov edx, 0x104
sub rbx, rcx
nop
movzx ecx, byte [rbx + rax]
test cl, cl
je 0x100003814
mov byte [rax], cl
inc rax
dec rdx
jne 0x100003800
jmp 0x100003819
test rdx, rdx
jne 0x10000381c
dec rax
mov byte [rax], 0
mov ecx, 0x104
lea rax, [rsp + 0x160]
nop
cmp byte [rax], 0
je 0x10000383f
inc rax
dec rcx
jne 0x100003830
jmp 0x100003890
test rcx, rcx
je 0x100003890
mov eax, 0x104
mov edx, 0x104
sub rax, rcx
sub rdx, rax
lea rcx, [rsp + rax + 0x160]
je 0x100003890
lea r8, [0x10000163c]
sub r8, rcx
nop
nop
movzx eax, byte [r8 + rcx]
test al, al
je 0x100003885
mov byte [rcx], al
inc rcx
dec rdx
jne 0x100003870
jmp 0x10000388a
test rdx, rdx
jne 0x10000388d
dec rcx
mov byte [rcx], 0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x160]
mov qword [rsp + 0x2a8], rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x100003a6f
nop
nop
lea rcx, [rsp + 0x160]
mov edx, 0x104
nop
movzx eax, byte [rbx + rcx]
test al, al
je 0x1000038e4
mov byte [rcx], al
inc rcx
dec rdx
jne 0x1000038d0
jmp 0x1000038e9
test rdx, rdx
jne 0x1000038ec
dec rcx
test byte [rsp + 0x20], 0x10
mov byte [rcx], 0
je 0x1000039c1
lea rdx, [0x100001638]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x100003a47
lea rdx, [0x100001634]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x100003a47
lea rax, [rsp + 0x160]
mov ecx, 0x104
nop
nop
cmp byte [rax], 0
je 0x10000394f
inc rax
dec rcx
jne 0x100003940
jmp 0x100003996
test rcx, rcx
je 0x100003996
mov eax, 0x104
mov edx, 0x104
sub rax, rcx
sub rdx, rax
lea rcx, [rsp + rax + 0x160]
je 0x100003996
lea r8, [rsp + 0x4c]
sub r8, rcx
movzx eax, byte [r8 + rcx]
test al, al
je 0x10000398b
mov byte [rcx], al
inc rcx
dec rdx
jne 0x100003976
jmp 0x100003990
test rdx, rdx
jne 0x100003993
dec rcx
mov byte [rcx], 0
lea r8, [0x100001555]
lea rcx, [rsp + 0x160]
mov edx, 0x104
call fcn.100009a40
lea rcx, [rsp + 0x160]
call fcn.1000037b0
jmp 0x100003a47
lea rax, [rsp + 0x160]
mov ecx, 0x104
nop
cmp byte [rax], 0
je 0x1000039df
inc rax
dec rcx
jne 0x1000039d0
jmp 0x100003a26
test rcx, rcx
je 0x100003a26
mov eax, 0x104
mov edx, 0x104
sub rax, rcx
sub rdx, rax
lea rcx, [rsp + rax + 0x160]
je 0x100003a26
lea r8, [rsp + 0x4c]
sub r8, rcx
movzx eax, byte [r8 + rcx]
test al, al
je 0x100003a1b
mov byte [rcx], al
inc rcx
dec rdx
jne 0x100003a06
jmp 0x100003a20
test rdx, rdx
jne 0x100003a23
dec rcx
mov byte [rcx], 0
lea rcx, [rsp + 0x160]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000038c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rdi, qword [rsp + 0x2a8]
mov rbx, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x270]
call fcn.10000ea20
add rsp, 0x288
ret