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

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x2e0], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov ebx, edx
mov dword [rsp + 0x24], edx
mov rdi, rcx
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140095561
test byte [rsp + 0x50], 0x10
jne 0x140095573
test ebx, ebx
je 0x140095543
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
jne 0x140095569
cmp dword [rsp + 0x24], ebx
je 0x140095569
mov rcx, rdi
call fcn.140095240
mov eax, 1
jmp 0x14009579a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x50]
call sub.MSVCR120.dll_memset
test ebx, ebx
je 0x140095785
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rax
mov word [rsp + 0x30], ax
or rbx, 0xffffffffffffffff
cmp word [rdi], ax
jne 0x1400955c3
mov r8d, eax
jmp 0x1400955d0
mov r8, rbx
inc r8
cmp word [rdi + r8*2], ax
jne 0x1400955c6
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140007d00
nop
mov r8d, 2
lea rdx, [0x1401745a4]
lea rcx, [rsp + 0x30]
call fcn.14000ccf0
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14009572d
nop
cmp word [rdi], 0
jne 0x14009562b
xor r8d, r8d
jmp 0x14009563b
mov r8, rbx
nop
inc r8
cmp word [rdi + r8*2], 0
jne 0x140095630
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140007d00
mov r8d, 1
lea rdx, [0x140160490]
lea rcx, [rsp + 0x30]
call fcn.14000ccf0
movzx ecx, word [rsp + 0x7c]
movzx eax, word [rsp + 0x7e]
cmp cx, word [0x140160bb8]
jne 0x14009567f
cmp ax, word [0x140160bba]
je 0x140095705
cmp cx, word [0x1401745ac]
jne 0x14009569e
cmp ax, word [0x1401745ae]
jne 0x14009569e
movzx eax, word [rbp - 0x80]
cmp ax, word [0x1401745b0]
je 0x140095705
test cx, cx
jne 0x1400956a8
xor r8d, r8d
jmp 0x1400956bb
lea rax, [rsp + 0x7c]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x1400956b0
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x30]
call fcn.14000ccf0
cmp dword [rsp + 0x20], 0
je 0x1400956fd
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov r8d, 1
mov edx, dword [rsp + 0x24]
call fcn.1400954d0
test eax, eax
mov dword [rsp + 0x20], 1
jne 0x140095705
mov dword [rsp + 0x20], 0
mov r8d, 0x250
xor edx, edx
lea rcx, [rsp + 0x50]
call sub.MSVCR120.dll_memset
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140095620
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp word [rdi], 0
jne 0x140095742
xor esi, esi
mov ebx, esi
jmp 0x14009574e
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140095742
xor esi, esi
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140007d00
nop
cmp qword [rsp + 0x48], 8
jb 0x140095772
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14009579a
mov rcx, rdi
call fcn.140095240
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140107280
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2b0
pop rdi
pop rsi
pop rbp
ret