Function at 0x1400095b4
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get common file path
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3f8]
sub rsp, 0x4d0
mov rax, qword [0x140014198]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
xor r12d, r12d
mov r15b, r9b
mov byte [rsp + 0x30], r12b
mov r14b, r8b
mov rdi, rcx
mov sil, r12b
mov ebx, 0x80070057
test rcx, rcx
je 0x1400096e6
mov edx, dword [rcx]
cmp edx, 0xffffffff
jne 0x14000961e
mov word [rbp + 0x1b0], r12w
jmp 0x14000964c
lea rax, [rbp + 0x1b0]
bts edx, 0xf
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1400096e6
mov r8, qword [rdi + 0x10]
test r8, r8
je 0x140009667
lea rcx, [rbp + 0x1b0]
call fcn.140007d88
mov ebx, eax
test eax, eax
js 0x1400096a8
cmp dword [rdi], 6
mov ebx, dword [rdi + 8]
mov esi, dword [rdi + 4]
jne 0x14000967e
call fcn.140009b18
mov r8b, 1
test eax, eax
jne 0x140009681
mov r8b, r12b
lea rax, [rsp + 0x30]
mov r9d, esi
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 0x1b0]
mov dl, r14b
mov dword [rsp + 0x20], ebx
call fcn.140009518
mov sil, byte [rsp + 0x30]
mov ebx, eax
mov edx, dword [rdi + 0x18]
cmp edx, 0xffffffff
je 0x1400096e6
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
test eax, eax
je 0x1400096cc
mov ebx, r12d
jmp 0x1400096e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test r14b, r14b
je 0x1400096fa
test sil, sil
jne 0x1400096f5
test r15b, r15b
je 0x1400096fa
mov r15b, 1
jmp 0x1400096fd
mov r15b, r12b
test ebx, ebx
js 0x140009899
test r15b, r15b
je 0x140009899
cmp dword [rdi], 0xffffffff
mov r13d, 0x104
jne 0x140009726
mov word [rbp + 0x1b0], r12w
mov ebx, r12d
jmp 0x14000976f
mov edx, dword [rdi]
lea rax, [rbp + 0x1b0]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140009899
lea r8, [0x14000ef04]
mov rdx, r13
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
mov r8, qword [rdi + 0x10]
test r8, r8
je 0x14000978e
mov rdx, r13
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
lea r8, [0x14000eef0]
mov rdx, r13
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
or rsi, 0xffffffffffffffff
mov r14, rax
cmp rax, rsi
je 0x140009899
lea rax, [rbp + 0x1b0]
inc rsi
cmp word [rax + rsi*2], r12w
jne 0x1400097da
cmp word [rbp - 0x74], 0x2e
jne 0x140009801
movzx eax, word [rbp - 0x72]
test ax, ax
je 0x14000986e
cmp ax, 0x2e
jne 0x140009801
cmp word [rbp - 0x70], r12w
je 0x14000986e
lea r8, [rbp - 0x74]
mov word [rbp + rsi*2 + 0x1ae], r12w
mov rdx, r13
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
mov eax, dword [rdi + 4]
or ecx, 0xffffffff
mov r8d, dword [rsp + 0x60]
mov r9b, r15b
mov dword [rsp + 0x3c], eax
xor edx, edx
mov eax, dword [rdi + 8]
mov dword [rsp + 0x40], eax
lea rax, [rbp + 0x1b0]
shr r8d, 4
mov dword [rsp + 0x38], ecx
and r8b, 1
mov dword [rsp + 0x50], ecx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x48], rax
call fcn.1400095b4
test ebx, ebx
js 0x14000986e
test eax, eax
cmovs ebx, eax
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400097e4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.14000d000
lea r11, [rsp + 0x4d0]
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