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

Disassembly:
test rcx, rcx
je 0x180008740
mov rax, rsp
push rbp
lea rbp, [rax - 0x1c8]
sub rsp, 0x2c0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1800e7b20]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rbx, rcx
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x18000871d
mov dword [rsp + 0x60], eax
xor edx, edx
mov r8d, 0x24c
lea rcx, [rsp + 0x64]
call fcn.180038130
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000871d
nop dword [rax]
lea rdx, [0x1800b2ee4]
lea rcx, [rbp - 0x74]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1800086fe
lea rdx, [0x1800b2ee0]
lea rcx, [rbp - 0x74]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1800086fe
lea rdx, [0x1800b2fa4]
lea rcx, [rsp + 0x40]
call fcn.18001aa60
nop
mov rcx, rbx
call fcn.180005350
test rax, rax
je 0x180008552
sub rax, rbx
sar rax, 1
cmp rax, 1
jle 0x180008552
lea r8d, [rax - 1]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.18001abf0
nop
lea r9, [rbp - 0x74]
mov r8, qword [rax]
lea rdx, [0x1800b2048]
lea rcx, [rsp + 0x40]
call fcn.180019070
nop
lea rcx, [rsp + 0x50]
call fcn.1800180c0
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax - 8]
test ecx, ecx
jne 0x180008563
jmp 0x1800086f4
cmp ecx, 0x104
jl 0x18000861b
lea rdx, [0x1800b2f98]
lea rcx, [rsp + 0x40]
call fcn.1800185a0
lea rcx, [rsp + 0x40]
test eax, eax
jne 0x18000859a
lea edx, [rax + 2]
lea r8d, [rax + 0x3f]
call fcn.180018610
jmp 0x18000861b
lea rdx, [0x1800b2f88]
call fcn.1800185a0
test eax, eax
je 0x18000861b
lea rdx, [0x1800b2f88]
lea rcx, [rsp + 0x48]
call fcn.18001aa60
nop
lea rdx, [0x1800b2f7c]
lea rcx, [rsp + 0x40]
call fcn.1800185a0
test eax, eax
jne 0x1800085f2
lea rdx, [0x1800b2f68]
lea rcx, [rsp + 0x48]
call fcn.180018240
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rsp + 0x40]
call fcn.180018680
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.180018400
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.1800181d0
nop
lea rcx, [rsp + 0x48]
call fcn.1800180c0
test byte [rsp + 0x60], 0x10
je 0x180008691
lea rdx, [0x1800b2930]
lea rcx, [rsp + 0x40]
call fcn.180018390
mov rcx, qword [rsp + 0x40]
call fcn.180008430
lea rdx, [0x1800b2930]
lea rcx, [rsp + 0x40]
call fcn.1800190a0
mov edx, dword [rsp + 0x60]
test dl, 1
je 0x180008669
and edx, 0xfffffffe
mov dword [rsp + 0x60], edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, eax
test eax, eax
jne 0x1800086b7
mov rcx, qword [rsp + 0x40]
call fcn.180007cc0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1800086b5
mov rcx, qword [rsp + 0x40]
call fcn.18002ffd0
mov edx, eax
test eax, eax
jne 0x1800086b7
mov rcx, qword [rsp + 0x40]
call fcn.180007cc0
mov rcx, qword [rsp + 0x40]
call fcn.18002ffd0
mov edx, eax
cmp dword [0x1801030e0], 0
je 0x1800086f4
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
lea r9, str.RemoveFilesExW___d___08x____s_
lea r8, [0x1800b2f18]
or edx, 0xffffffff
lea rcx, [0x1801027f8]
call fcn.180072a80
nop
lea rcx, [rsp + 0x40]
call fcn.1800180c0
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800084c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.180038100
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
repz ret