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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x228]
sub rsp, 0x310
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rbx, rcx
test r8b, r8b
jne 0x1400396e9
cmp qword [rcx + 0x18], 8
jb 0x1400396c9
mov rcx, qword [rcx]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp qword [rbx + 0x18], 8
jb 0x1400396e0
mov rcx, qword [rbx]
jmp 0x1400396e3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, 0x5c
or r8, 0xffffffffffffffff
mov rcx, rbx
call fcn.14003c6b0
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140039a24
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.14000ecf0
nop
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
xor r14d, r14d
mov rax, qword [rsp + 0x38]
cmp word [rdx + rax*2 - 2], 0x5c
jne 0x1400397c0
lea r9, [rdi - 1]
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.14000ecf0
mov rbx, rax
lea rax, [rsp + 0x28]
cmp rax, rbx
je 0x1400397a4
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x140039782
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140003f70
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r14
mov word [rsp + 0x28], r14w
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140003dc0
nop
mov r8, qword [rbp - 0x80]
cmp r8, 8
jb 0x1400397c0
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.140003f70
xor sil, sil
lea r8, str..
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x68]
call fcn.1400117b0
nop
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rcx, qword [rsp + 0x68]
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400399ea
mov dil, 1
movzx edx, word [rbp - 0x24]
movzx ecx, word [rbp - 0x22]
cmp dx, word [0x14008808c]
jne 0x14003981e
cmp cx, word [0x14008808e]
je 0x140039840
cmp dx, word [0x140088090]
jne 0x14003988d
cmp cx, word [0x140088092]
jne 0x14003988d
movzx eax, word [rbp - 0x20]
cmp ax, word [0x140088094]
jne 0x14003988d
nop dword [rax]
lea rdx, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14003988d
movzx ecx, word [rbp - 0x24]
movzx eax, word [rbp - 0x22]
cmp cx, word [0x14008808c]
jne 0x14003986b
cmp ax, word [0x14008808e]
je 0x140039840
cmp cx, word [0x140088090]
jne 0x14003988a
cmp ax, word [0x140088092]
jne 0x14003988a
movzx eax, word [rbp - 0x20]
cmp ax, word [0x140088094]
je 0x140039840
xor dil, dil
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
test dil, dil
je 0x1400399c4
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1400399c4
mov edx, 0x5c
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x28]
call fcn.14003c6b0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400399c4
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.14000ecf0
nop
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x58]
cmp word [rcx + rax*2 - 2], 0x5c
jne 0x14003998d
lea r9, [rbx - 1]
xor r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x28]
call fcn.14000ecf0
mov rbx, rax
lea rax, [rsp + 0x48]
cmp rax, rbx
je 0x140039973
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x140039951
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.140003f70
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r14
mov word [rsp + 0x48], r14w
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140003dc0
nop
mov r8, qword [rbp - 0x60]
cmp r8, 8
jb 0x14003998d
inc r8
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x78]
call fcn.140003f70
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140003c80
mov sil, 1
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x1400399c4
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.140003f70
nop
mov r8, qword [rbp - 0x80]
cmp r8, 8
jb 0x1400399e0
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.140003f70
test sil, sil
je 0x140039a07
jmp 0x1400397c0
mov r8, qword [rbp - 0x80]
cmp r8, 8
jb 0x140039a07
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.140003f70
nop
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x140039a24
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140003f70
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14003d350
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret