Function at 0x1400fa150
Capabilities:
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x218]
sub rsp, 0x300
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
movzx r14d, dl
mov rbx, rcx
test rcx, rcx
je 0x1400fa419
xor r15d, r15d
cmp r15w, word [rcx]
je 0x1400fa419
movzx eax, word [rcx]
cmp ax, word [0x140335310]
jne 0x1400fa1c6
movzx eax, word [rcx + 2]
cmp ax, word [0x140335312]
je 0x1400fa419
movzx eax, word [rcx]
cmp ax, word [0x1402e58bc]
jne 0x1400fa1f0
movzx eax, word [rcx + 2]
cmp ax, word [0x1402e58be]
jne 0x1400fa1f0
movzx eax, word [rcx + 4]
cmp ax, word [0x1402e58c0]
je 0x1400fa419
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r15
mov word [rsp + 0x58], r15w
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rcx + r8*2], r15w
jne 0x1400fa210
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.14002c3d0
nop
mov edx, 0x5c
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x58]
call fcn.1400f2410
cmp rax, 0xffffffffffffffff
je 0x1400fa3f5
mov rcx, qword [rsp + 0x68]
dec rcx
cmp rax, rcx
je 0x1400fa3f5
lea r9, [rax + 1]
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x58]
call fcn.14008b4c0
nop
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp - 0x60]
call fcn.14028e7e0
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
jne 0x1400fa2a0
xor bl, bl
jmp 0x1400fa3b6
mov bl, 1
lea r8, [rbp - 0x34]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.140032440
nop
test byte [rbp - 0x60], 0x10
je 0x1400fa32f
movzx ecx, word [rbp - 0x34]
movzx eax, word [rbp - 0x32]
cmp cx, word [0x140335310]
jne 0x1400fa2da
cmp ax, word [0x140335312]
je 0x1400fa382
cmp cx, word [0x1402e58bc]
jne 0x1400fa2fd
cmp ax, word [0x1402e58be]
jne 0x1400fa2fd
movzx eax, word [rbp - 0x30]
cmp ax, word [0x1402e58c0]
je 0x1400fa382
test r14b, r14b
je 0x1400fa382
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call fcn.1400faa60
movzx eax, al
test bl, bl
je 0x1400fa32b
test eax, eax
je 0x1400fa32b
mov bl, 1
jmp 0x1400fa382
xor bl, bl
jmp 0x1400fa382
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
movzx ebx, bl
test eax, eax
cmove ebx, r15d
lea rdx, [rbp - 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x1400fa3ae
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.14002e610
test edi, edi
jne 0x1400fa2a2
test rsi, rsi
je 0x1400fa3c5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x1400fa3e1
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.14002e610
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r15
mov word [rsp + 0x78], r15w
jmp 0x1400fa3f7
xor bl, bl
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400fa414
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.14002e610
movzx eax, bl
jmp 0x1400fa41b
xor al, al
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14026d870
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret