Function at 0x140035508
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x278]
sub rsp, 0x360
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140729900]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov byte [rsp + 0x21], dl
mov rsi, rcx
xor edi, edi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], rdi
lea eax, [rdi + 7]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
cmp qword [rcx + 0x10], rdi
je 0x14003583d
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x38], di
lea rcx, [0x1405e6fe0]
call fcn.140288ad0
mov r8, rax
lea rdx, [0x1405e6fe0]
lea rcx, [rsp + 0x38]
call fcn.140009ed0
nop
xor r9d, r9d
lea r8, [rsp + 0x38]
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.140014bfc
mov rbx, rax
lea rax, [rsp + 0x78]
cmp rax, rbx
je 0x1400355f6
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x78]
call fcn.140009e10
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.1400118f0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x68]
call fcn.140009e10
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x38]
call fcn.140009e10
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
lea rdx, [rbp]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
je 0x14003583d
mov byte [rsp + 0x20], 1
lea rdx, [rbp]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400357c7
cmp word [rbp + 0x2c], di
jne 0x140035665
mov rax, rdi
jmp 0x14003566e
lea rcx, [rbp + 0x2c]
call fcn.140288ad0
mov r8, rax
lea rdx, [rbp + 0x2c]
lea rcx, [rsp + 0x58]
call fcn.140009ed0
lea rdx, [0x1405e0260]
lea rcx, [rsp + 0x58]
call fcn.140012390
test eax, eax
je 0x1400357db
lea rdx, [0x1405ef098]
lea rcx, [rsp + 0x58]
call fcn.140012390
test eax, eax
je 0x1400357db
test byte [rbp], 0x10
je 0x1400356fd
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.140014bfc
nop
mov dl, byte [rsp + 0x21]
mov rcx, rax
call fcn.140035508
test al, al
sete bl
lea rcx, [rbp - 0x68]
xor r8d, r8d
mov dl, 1
call fcn.140009e10
test bl, bl
jne 0x1400357e8
mov rbx, qword [rsp + 0x28]
jmp 0x1400357db
test byte [rbp], 1
je 0x14003573e
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, rsi
lea rcx, [rbp - 0x48]
call fcn.140014bfc
nop
cmp qword [rax + 0x18], 8
jb 0x140035722
mov rax, qword [rax]
mov edx, 0x80
mov rcx, rax
call fcn.1402cbdf8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x48]
call fcn.140009e10
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, rsi
lea rcx, [rbp - 0x28]
call fcn.140014bfc
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x14003575f
mov rbx, qword [rax]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x38], di
cmp word [rbx], di
jne 0x140035786
mov rax, rdi
jmp 0x14003578e
mov rcx, rbx
call fcn.140288ad0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140009ed0
nop
lea rcx, [rsp + 0x38]
call fcn.140035a90
test al, al
sete bl
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x38]
call fcn.140009e10
nop
lea rcx, [rbp - 0x28]
jmp 0x1400356e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x140035833
mov al, dil
mov byte [rsp + 0x20], al
jmp 0x1400357df
mov al, byte [rsp + 0x20]
test al, al
je 0x1400357ef
jmp 0x140035645
mov rcx, qword [rsp + 0x28]
jmp 0x140035836
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [rsp + 0x21], dil
je 0x14003582e
mov ebx, edi
cmp qword [rsi + 0x18], 8
jb 0x14003580d
mov rcx, qword [rsi]
jmp 0x140035810
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14003582e
cmp ebx, 2
jg 0x14003583d
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
jmp 0x140035801
mov dil, 1
jmp 0x14003583d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x58]
call fcn.140009e10
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x78]
call fcn.140009e10
mov al, dil
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.1402812e0
mov rbx, qword [rsp + 0x390]
add rsp, 0x360
pop rdi
pop rsi
pop rbp
ret