Function at 0x140016450
Capabilities:
Enumerate files on windows
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x610]
sub rsp, 0x710
mov rax, qword [0x14004d298]
xor rax, rsp
mov qword [rbp + 0x600], rax
mov rax, qword gs:[0x58]
mov r15, rcx
mov r14, rdx
mov ecx, 8
mov r12d, r9d
mov r13d, r8d
mov rdx, qword [rax]
lea rax, str.CTieredVolume::SetDesiredStorageClass
mov qword [rcx + rdx], rax
lea rcx, [rsp + 0x40]
call fcn.140005448
xorps xmm0, xmm0
lea rdx, [rbp - 0x70]
xor eax, eax
xor esi, esi
mov qword [rsp + 0x50], rsi
mov rcx, r14
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
and r13d, 0x10
mov dword [rsp + 0x50], r12d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
nop dword [rax + rax]
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x140016545
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140016509
movzx ebx, ax
or ebx, 0x80070000
mov dword [rsp + 0x48], ebx
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x140016ab1
test byte [rcx + 0x1c], 1
je 0x140016ab1
cmp byte [rcx + 0x19], 2
jb 0x140016ab1
mov edx, 0x10b
mov r9, r14
jmp 0x140016a9d
mov edi, 0x104
lea rax, [rbp + 0x3f0]
mov r8, r14
lea rcx, [rbp + 0x3f0]
mov edx, edi
sub r8, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140016583
movzx eax, word [rcx + r8]
test ax, ax
je 0x140016583
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140016560
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], si
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
mov dword [rsp + 0x48], ebx
test rdx, rdx
jne 0x1400165df
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x140016ab1
test byte [rcx + 0x1c], 1
je 0x140016ab1
cmp byte [rcx + 0x19], 2
jb 0x140016ab1
mov edx, 0x10c
jmp 0x14001653d
mov rdx, rdi
lea rcx, [rbp + 0x3f0]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveFileSpec]
nop dword [rax + rax]
mov dword [rsp + 0x48], eax
mov ebx, eax
test eax, eax
jns 0x140016634
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x140016ab1
test byte [rcx + 0x1c], 1
je 0x140016ab1
cmp byte [rcx + 0x19], 2
jb 0x140016ab1
mov edx, 0x10d
jmp 0x140016a96
lea r8, [0x1400455e8]
lea rcx, [rbp + 0x3f0]
call fcn.140017968
mov dword [rsp + 0x48], eax
mov ebx, eax
test eax, eax
jns 0x1400166ad
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x140016ab1
test byte [rcx + 0x1c], 1
je 0x140016ab1
cmp byte [rcx + 0x19], 2
jb 0x140016ab1
mov edx, 0x10e
lea rax, [rbp + 0x3f0]
lea r9, [0x1400455e8]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400467b0]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call fcn.1400193d8
jmp 0x140016ab1
test byte [rbp - 0x70], 0x10
je 0x1400166de
cmp word [rbp - 0x44], 0x2e
movzx eax, word [rbp - 0x42]
jne 0x1400166de
test ax, ax
je 0x140016850
cmp word [rbp - 0x44], 0x2e
jne 0x1400166de
cmp ax, 0x2e
jne 0x1400166de
cmp word [rbp - 0x40], si
je 0x140016850
mov r8, rdi
lea rcx, [rbp + 0x1e0]
xor edx, edx
call sub.msvcrt.dll_memset
lea r8, [rbp + 0x3f0]
mov rdx, rdi
lea rax, [rbp + 0x1e0]
sub r8, rax
lea rcx, [rbp + 0x1e0]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14001672d
movzx eax, word [rcx + r8]
test ax, ax
je 0x14001672d
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14001670a
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], si
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x140016a72
lea r8, [rbp - 0x44]
lea rcx, [rbp + 0x1e0]
call fcn.140017968
mov dword [rsp + 0x48], eax
mov ebx, eax
test eax, eax
js 0x140016a3e
mov eax, r13d
mov qword [rsp + 0x30], rsi
neg eax
mov edx, 0x180
sbb ecx, ecx
xor r9d, r9d
and ecx, 0xffe00000
add ecx, 0x2200000
mov dword [rsp + 0x28], ecx
lea rcx, [rbp + 0x1e0]
lea r8d, [r9 + 7]
mov dword [rsp + 0x20], 3
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400169e6
mov r9d, 8
mov dword [rsp + 0x20], 0x43
lea r8, [rsp + 0x50]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov esi, eax
test eax, eax
js 0x140016978
xor esi, esi
test r12d, r12d
jne 0x14001683c
lea r9d, [rsi + 0x18]
mov rcx, rdi
lea r8, [rsp + 0x70]
lea edx, [rsi + 0x12]
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_GetFileInformationByHandleEx]
nop dword [rax + rax]
test eax, eax
je 0x140016927
lea rdx, [rsp + 0x78]
mov rcx, r15
call fcn.14000d384
mov dword [rsp + 0x48], eax
mov ebx, eax
test eax, eax
js 0x1400168ca
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov edi, 0x104
mov rcx, qword [rsp + 0x58]
lea rdx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400166ad
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x12
je 0x14001696d
test eax, eax
jle 0x140016891
movzx ebx, ax
or ebx, 0x80070000
mov dword [rsp + 0x48], ebx
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x140016ab1
test byte [rcx + 0x1c], 1
je 0x140016ab1
cmp byte [rcx + 0x19], 2
jb 0x140016ab1
mov edx, 0x115
jmp 0x14001653d
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x1400169d2
test byte [rcx + 0x1c], 1
je 0x1400169d2
cmp byte [rcx + 0x19], 2
jb 0x1400169d2
mov rcx, qword [rcx + 0x10]
lea rax, [r15 + 0x2a0]
mov dword [rsp + 0x30], ebx
lea r8, [0x1400467b0]
mov qword [rsp + 0x28], rax
mov edx, 0x114
xor r9d, r9d
mov qword [rsp + 0x20], rsi
call fcn.140019e28
jmp 0x1400169d2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.140002f1c
mov ebx, eax
mov dword [rsp + 0x48], eax
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x1400169d2
test byte [rcx + 0x1c], 1
je 0x1400169d2
cmp byte [rcx + 0x19], 2
jb 0x1400169d2
mov edx, 0x113
mov dword [rsp + 0x20], ebx
mov r9, r14
jmp 0x1400169c2
mov ebx, esi
mov dword [rsp + 0x48], ebx
jmp 0x140016ab1
mov ecx, esi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call fcn.140002f1c
mov ebx, eax
mov dword [rsp + 0x48], eax
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x1400169d2
test byte [rcx + 0x1c], 1
je 0x1400169d2
cmp byte [rcx + 0x19], 2
jb 0x1400169d2
mov edx, 0x112
mov dword [rsp + 0x20], esi
lea r9, [rbp + 0x1e0]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400467b0]
call fcn.14000a60c
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140016ab1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140016a01
movzx ebx, ax
or ebx, 0x80070000
mov dword [rsp + 0x48], ebx
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x140016ab1
test byte [rcx + 0x1c], 1
je 0x140016ab1
cmp byte [rcx + 0x19], 2
jb 0x140016ab1
mov edx, 0x111
lea r9, [rbp + 0x1e0]
jmp 0x140016a9d
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x140016ab1
test byte [rcx + 0x1c], 1
je 0x140016ab1
cmp byte [rcx + 0x19], 2
jb 0x140016ab1
mov edx, 0x110
lea rax, [rbp + 0x1e0]
lea r9, [rbp - 0x44]
jmp 0x14001668f
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x140016ab1
test byte [rcx + 0x1c], 1
je 0x140016ab1
cmp byte [rcx + 0x19], 2
jb 0x140016ab1
mov edx, 0x10f
lea r9, [rbp + 0x3f0]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400467b0]
mov dword [rsp + 0x20], ebx
call fcn.14000a60c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.1400059b8
mov eax, ebx
mov rcx, qword [rbp + 0x600]
xor rcx, rsp
call fcn.140001e70
mov rbx, qword [rsp + 0x760]
add rsp, 0x710
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret