Function at 0x140016404
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.140005468
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 0x1400164f9
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 0x1400164bd
movzx ebx, ax
or ebx, 0x80070000
mov dword [rsp + 0x48], ebx
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x140016a65
test byte [rcx + 0x1c], 1
je 0x140016a65
cmp byte [rcx + 0x19], 2
jb 0x140016a65
mov edx, 0x10b
mov r9, r14
jmp 0x140016a51
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 0x140016537
movzx eax, word [rcx + r8]
test ax, ax
je 0x140016537
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140016514
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 0x140016593
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x140016a65
test byte [rcx + 0x1c], 1
je 0x140016a65
cmp byte [rcx + 0x19], 2
jb 0x140016a65
mov edx, 0x10c
jmp 0x1400164f1
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 0x1400165e8
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x140016a65
test byte [rcx + 0x1c], 1
je 0x140016a65
cmp byte [rcx + 0x19], 2
jb 0x140016a65
mov edx, 0x10d
jmp 0x140016a4a
lea r8, [0x1400455f8]
lea rcx, [rbp + 0x3f0]
call fcn.1400178e4
mov dword [rsp + 0x48], eax
mov ebx, eax
test eax, eax
jns 0x140016661
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x140016a65
test byte [rcx + 0x1c], 1
je 0x140016a65
cmp byte [rcx + 0x19], 2
jb 0x140016a65
mov edx, 0x10e
lea rax, [rbp + 0x3f0]
lea r9, [0x1400455f8]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400467c0]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call fcn.14001936c
jmp 0x140016a65
test byte [rbp - 0x70], 0x10
je 0x140016692
cmp word [rbp - 0x44], 0x2e
movzx eax, word [rbp - 0x42]
jne 0x140016692
test ax, ax
je 0x140016804
cmp word [rbp - 0x44], 0x2e
jne 0x140016692
cmp ax, 0x2e
jne 0x140016692
cmp word [rbp - 0x40], si
je 0x140016804
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 0x1400166e1
movzx eax, word [rcx + r8]
test ax, ax
je 0x1400166e1
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400166be
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 0x140016a26
lea r8, [rbp - 0x44]
lea rcx, [rbp + 0x1e0]
call fcn.1400178e4
mov dword [rsp + 0x48], eax
mov ebx, eax
test eax, eax
js 0x1400169f2
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 0x14001699a
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 0x14001692c
xor esi, esi
test r12d, r12d
jne 0x1400167f0
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 0x1400168db
lea rdx, [rsp + 0x78]
mov rcx, r15
call fcn.14000d3a0
mov dword [rsp + 0x48], eax
mov ebx, eax
test eax, eax
js 0x14001687e
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 0x140016661
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 0x140016921
test eax, eax
jle 0x140016845
movzx ebx, ax
or ebx, 0x80070000
mov dword [rsp + 0x48], ebx
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x140016a65
test byte [rcx + 0x1c], 1
je 0x140016a65
cmp byte [rcx + 0x19], 2
jb 0x140016a65
mov edx, 0x115
jmp 0x1400164f1
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x140016986
test byte [rcx + 0x1c], 1
je 0x140016986
cmp byte [rcx + 0x19], 2
jb 0x140016986
mov rcx, qword [rcx + 0x10]
lea rax, [r15 + 0x2a0]
mov dword [rsp + 0x30], ebx
lea r8, [0x1400467c0]
mov qword [rsp + 0x28], rax
mov edx, 0x114
xor r9d, r9d
mov qword [rsp + 0x20], rsi
call fcn.140019ddc
jmp 0x140016986
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.140002f2c
mov ebx, eax
mov dword [rsp + 0x48], eax
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x140016986
test byte [rcx + 0x1c], 1
je 0x140016986
cmp byte [rcx + 0x19], 2
jb 0x140016986
mov edx, 0x113
mov dword [rsp + 0x20], ebx
mov r9, r14
jmp 0x140016976
mov ebx, esi
mov dword [rsp + 0x48], ebx
jmp 0x140016a65
mov ecx, esi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call fcn.140002f2c
mov ebx, eax
mov dword [rsp + 0x48], eax
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x140016986
test byte [rcx + 0x1c], 1
je 0x140016986
cmp byte [rcx + 0x19], 2
jb 0x140016986
mov edx, 0x112
mov dword [rsp + 0x20], esi
lea r9, [rbp + 0x1e0]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400467c0]
call fcn.14000a620
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140016a65
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 0x1400169b5
movzx ebx, ax
or ebx, 0x80070000
mov dword [rsp + 0x48], ebx
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x140016a65
test byte [rcx + 0x1c], 1
je 0x140016a65
cmp byte [rcx + 0x19], 2
jb 0x140016a65
mov edx, 0x111
lea r9, [rbp + 0x1e0]
jmp 0x140016a51
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x140016a65
test byte [rcx + 0x1c], 1
je 0x140016a65
cmp byte [rcx + 0x19], 2
jb 0x140016a65
mov edx, 0x110
lea rax, [rbp + 0x1e0]
lea r9, [rbp - 0x44]
jmp 0x140016643
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x140016a65
test byte [rcx + 0x1c], 1
je 0x140016a65
cmp byte [rcx + 0x19], 2
jb 0x140016a65
mov edx, 0x10f
lea r9, [rbp + 0x3f0]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400467c0]
mov dword [rsp + 0x20], ebx
call fcn.14000a620
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.1400059dc
mov eax, ebx
mov rcx, qword [rbp + 0x600]
xor rcx, rsp
call fcn.140001e80
mov rbx, qword [rsp + 0x760]
add rsp, 0x710
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret