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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x14007e040]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov r15, rcx
mov qword [rbp - 0x58], rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r12
lea ecx, [r12 + 0x20]
call fcn.14002b110
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbp - 0x50], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
lea ecx, [r12 + 0x20]
call fcn.14002b110
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbp - 0x30], rax
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.1400180b0
nop
mov edi, 0x10
mov dword [rsp + 0x20], edi
mov rcx, qword [rax]
cmp word [rcx], 0x5c
jne 0x140020b56
cmp word [rcx + 2], r12w
je 0x140020b7d
lea rdx, [rsp + 0x28]
mov rcx, r15
call fcn.1400180b0
nop
mov edi, 0x30
mov dword [rsp + 0x20], edi
mov rcx, qword [rax]
cmp word [rcx], 0x2f
jne 0x140020b81
cmp word [rcx + 2], 0
jne 0x140020b81
mov bl, 1
jmp 0x140020b83
xor bl, bl
test dil, 0x20
je 0x140020bb9
and edi, 0xffffffdf
mov dword [rsp + 0x20], edi
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140020ba8
cmp rcx, qword [0x14006fe20]
je 0x140020ba8
call fcn.140031938
mov rax, qword [0x14006fe20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], r12
test dil, 0x10
je 0x140020bef
and edi, 0xffffffef
mov dword [rsp + 0x20], edi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140020bde
cmp rcx, qword [0x14006fe20]
je 0x140020bde
call fcn.140031938
mov rax, qword [0x14006fe20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], r12
test bl, bl
je 0x140020c3d
mov r8d, dword [r15 + 8]
dec r8d
lea rdx, [rsp + 0x28]
mov rcx, r15
call fcn.140017fa0
nop
mov rdx, rax
mov rcx, r15
call fcn.140017c40
nop
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140020c2c
cmp rcx, qword [0x14006fe20]
je 0x140020c2c
call fcn.140031938
mov rax, qword [0x14006fe20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], r12
mov rsi, qword [rbp - 0x50]
movabs r13, 0x7ffffffffffffff
cmp qword [rbp - 0x48], r13
je 0x1400212cd
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x30], r12
mov ecx, 0x20
call fcn.14002b110
mov rbx, rax
mov qword [rsp + 0x30], rax
lea rcx, [rax + 0x10]
mov rdx, qword [0x14006fe20]
mov qword [rcx], rdx
mov qword [rcx + 8], r12
mov rdx, r15
call fcn.140017c40
nop
inc qword [rbp - 0x48]
mov rax, qword [rsi + 8]
mov qword [rbx], rsi
mov qword [rbx + 8], rax
mov qword [rsp + 0x30], r12
mov qword [rsi + 8], rbx
mov qword [rax], rbx
mov rsi, qword [rbp - 0x30]
cmp qword [rbp - 0x28], r13
je 0x1400212cd
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x30], r12
mov ecx, 0x20
call fcn.14002b110
mov rbx, rax
mov qword [rsp + 0x30], rax
lea rcx, [rax + 0x10]
mov rdx, qword [0x14006fe20]
mov qword [rcx], rdx
mov qword [rcx + 8], r12
mov rdx, r15
call fcn.140017c40
nop
inc qword [rbp - 0x28]
mov rax, qword [rsi + 8]
mov qword [rbx], rsi
mov qword [rbx + 8], rax
mov qword [rsp + 0x30], r12
mov qword [rsi + 8], rbx
mov qword [rax], rbx
mov rcx, qword [0x14006fe20]
cmp qword [rbp - 0x48], 0
je 0x1400211b7
nop dword [rax + rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov rax, qword [rbp - 0x50]
mov rdx, qword [rax]
add rdx, 0x10
mov qword [rbp - 0x10], rcx
mov qword [rbp - 8], r12
lea rcx, [rbp - 0x10]
call fcn.140017c40
nop
mov rax, qword [rbp - 0x50]
mov rbx, qword [rax]
mov rcx, qword [rbx]
dec qword [rbp - 0x48]
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140020d88
cmp rcx, qword [0x14006fe20]
je 0x140020d88
call fcn.140031938
mov rax, qword [0x14006fe20]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], r12
mov edx, 0x20
mov rcx, rbx
call fcn.14002b14c
mov rax, qword [0x14006fe20]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], r12
lea rdx, [0x14006c5a0]
lea rcx, [rsp + 0x58]
call fcn.140017b50
nop
mov rax, qword [0x14006fe20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], r12
lea rdx, [0x14006c68c]
lea rcx, [rsp + 0x48]
call fcn.140017b50
nop
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x38]
call fcn.140017940
or edi, 4
mov dword [rsp + 0x20], edi
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.140017940
or edi, 8
mov dword [rsp + 0x20], edi
lea rdx, [rbp]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
and edi, 0xfffffff7
mov dword [rsp + 0x20], edi
mov rdx, qword [rsp + 0x78]
mov rcx, qword [0x14006fe20]
test rdx, rdx
je 0x140020e5d
cmp rdx, rcx
je 0x140020e5d
mov rcx, rdx
call fcn.140031938
mov rcx, qword [0x14006fe20]
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x80], r12
and edi, 0xfffffffb
mov dword [rsp + 0x20], edi
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140020e8b
cmp rax, rcx
je 0x140020e8b
mov rcx, rax
call fcn.140031938
mov rcx, qword [0x14006fe20]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], r12
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140020eb3
cmp rax, rcx
je 0x140020eb3
mov rcx, rax
call fcn.140031938
mov rcx, qword [0x14006fe20]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], r12
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140020edb
cmp rax, rcx
je 0x140020edb
mov rcx, rax
call fcn.140031938
mov rcx, qword [0x14006fe20]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], r12
cmp r14, 0xffffffffffffffff
je 0x140021187
lea rdx, [rbp]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140021177
nop dword [rax]
nop dword [rax + rax]
movzx ecx, word [rbp + 0x2c]
movzx eax, word [rbp + 0x2e]
cmp cx, 0x2e
jne 0x140020f3c
test ax, ax
je 0x140021162
cmp cx, cx
jne 0x140020f3c
cmp ax, cx
jne 0x140020f3c
cmp word [rbp + 0x30], 0
je 0x140021162
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov rax, qword [0x14006fe20]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], r12
lea rdx, [rbp + 0x2c]
lea rcx, [rbp - 0x40]
call fcn.140017b50
nop
mov rax, qword [0x14006fe20]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], r12
lea rdx, [0x14006c68c]
lea rcx, [rsp + 0x68]
call fcn.140017b50
nop
lea r8, [rsp + 0x68]
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x28]
call fcn.140017940
or edi, 2
mov dword [rsp + 0x20], edi
lea r8, [rbp - 0x40]
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x20]
call fcn.140017940
or edi, 1
mov dword [rsp + 0x20], edi
and edi, 0xfffffffd
mov dword [rsp + 0x20], edi
mov rcx, qword [rsp + 0x28]
mov rax, qword [0x14006fe20]
test rcx, rcx
je 0x140020fdf
cmp rcx, rax
je 0x140020fdf
call fcn.140031938
mov rax, qword [0x14006fe20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], r12
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140021004
cmp rcx, rax
je 0x140021004
call fcn.140031938
mov rax, qword [0x14006fe20]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], r12
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140021028
cmp rcx, rax
je 0x140021028
call fcn.140031938
mov rax, qword [0x14006fe20]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], r12
test byte [rbp], 0x10
je 0x140021106
mov rsi, qword [rbp - 0x50]
cmp qword [rbp - 0x48], r13
je 0x1400212c0
lea rax, [rbp - 0x50]
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x70], r12
mov ecx, 0x20
call fcn.14002b110
mov rbx, rax
mov qword [rbp - 0x70], rax
lea rcx, [rax + 0x10]
mov rdx, qword [0x14006fe20]
mov qword [rcx], rdx
mov qword [rcx + 8], r12
lea rdx, [rbp - 0x20]
call fcn.140017c40
nop
inc qword [rbp - 0x48]
mov rax, qword [rsi + 8]
mov qword [rbx], rsi
mov qword [rbx + 8], rax
mov qword [rbp - 0x70], r12
mov qword [rsi + 8], rbx
mov qword [rax], rbx
mov rsi, qword [rbp - 0x30]
cmp qword [rbp - 0x28], r13
je 0x1400212c0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x60], r12
mov ecx, 0x20
call fcn.14002b110
mov rbx, rax
mov qword [rbp - 0x60], rax
lea rcx, [rax + 0x10]
mov rdx, qword [0x14006fe20]
mov qword [rcx], rdx
mov qword [rcx + 8], r12
lea rdx, [rbp - 0x20]
call fcn.140017c40
nop
inc qword [rbp - 0x28]
mov rax, qword [rsi + 8]
mov qword [rbx], rsi
mov qword [rbx + 8], rax
mov qword [rbp - 0x60], r12
mov qword [rsi + 8], rbx
mov qword [rax], rbx
jmp 0x140021135
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140021135
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140021135
xor edx, edx
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
and edi, 0xfffffffe
mov dword [rsp + 0x20], edi
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140021153
cmp rcx, qword [0x14006fe20]
je 0x140021153
call fcn.140031938
mov rax, qword [0x14006fe20]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], r12
lea rdx, [rbp]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140020f10
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [0x14006fe20]
mov rax, qword [rbp - 0x10]
test rax, rax
je 0x1400211a4
cmp rax, rcx
je 0x1400211a4
mov rcx, rax
call fcn.140031938
mov rcx, qword [0x14006fe20]
mov qword [rbp - 0x10], rcx
mov qword [rbp - 8], r12
cmp qword [rbp - 0x48], 0
jne 0x140020d30
mov rbx, qword [rbp - 0x30]
mov esi, 1
cmp rbx, qword [rbx]
je 0x14002123a
nop word [rax + rax]
mov rbx, qword [rbx + 8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
lea rdx, [rbx + 0x10]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], r12
lea rcx, [rbp - 0x40]
call fcn.140017c40
nop
mov rdi, qword [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop
mov edx, r12d
test eax, eax
cmovne edx, esi
mov esi, edx
mov rcx, qword [0x14006fe20]
test rdi, rdi
je 0x140021229
cmp rdi, rcx
je 0x140021229
mov rcx, rdi
call fcn.140031938
mov rcx, qword [0x14006fe20]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], r12
mov rax, qword [rbp - 0x30]
cmp rbx, qword [rax]
jne 0x1400211d0
mov rdx, qword [rbp - 0x30]
call fcn.1400112f0
mov edx, 0x20
mov rcx, qword [rbp - 0x30]
call fcn.14002b14c
nop
mov rdx, qword [rbp - 0x50]
call fcn.1400112f0
mov edx, 0x20
mov rcx, qword [rbp - 0x50]
call fcn.14002b14c
nop
mov rcx, qword [r15]
test rcx, rcx
je 0x140021280
cmp rcx, qword [0x14006fe20]
je 0x140021280
call fcn.140031938
mov rcx, qword [0x14006fe20]
mov qword [r15], rcx
mov qword [r15 + 8], r12
mov eax, esi
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.14002ad90
lea r11, [rsp + 0x360]
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
lea rcx, str.list_too_long
call fcn.14002ad50
nop
lea rcx, str.list_too_long
call fcn.14002ad50
int3