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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
or rbx, 0xffffffffffffffff
mov qword [rsp + 0x20], rdx
xor eax, eax
mov dword [rdx], 1
mov rsi, rdx
mov rdi, rcx
inc rbx
cmp word [rcx + rbx*2], ax
jne 0x140001447
test ebx, ebx
je 0x140016118
lea eax, [rbx + 3]
cmp eax, 0x104
jg 0x140001637
lea rdx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140016122
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindClose]
mov ecx, dword [rsp + 0x64]
mov eax, dword [rsp + 0x40]
test al, 0x10
je 0x140001634
bt eax, 0xa
jb 0x140016136
mov r8, rdi
lea rcx, [rbp + 0x190]
mov edx, 0x104
call fcn.14000dc10
lea eax, [rbx - 1]
movsxd rcx, eax
cmp word [rdi + rcx*2], 0x3a
je 0x1400014e0
cmp word [rdi + rcx*2], 0x5c
je 0x1400014e0
lea r8, [0x1400288e0]
mov edx, 0x104
lea rcx, [rbp + 0x190]
call fcn.14000db30
inc ebx
lea r8, [0x140028410]
mov edx, 0x104
lea rcx, [rbp + 0x190]
call fcn.14000db30
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x190]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindFirstFileW]
mov qword [rsp + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x140001634
movsxd rcx, ebx
xor edx, edx
mov qword [rsp + 0x30], rcx
cmp dword [0x14002f70c], edx
jne 0x14000161f
lea r9, [rbp + 0x174]
or rax, 0xffffffffffffffff
lea r8, [rbp + 0x174]
inc rax
cmp word [r8 + rax*2], dx
jne 0x140001541
test eax, eax
jne 0x140001567
lea r9, [rsp + 0x6c]
or rax, 0xffffffffffffffff
lea r8, [rsp + 0x6c]
inc rax
cmp word [r8 + rax*2], dx
jne 0x14000155d
add eax, ebx
mov r8d, 0x104
cmp eax, r8d
jge 0x14001632e
mov edx, r8d
lea rax, [rcx + rcx]
sub rdx, rcx
mov r8, r9
lea rcx, [rbp + 0x190]
add rcx, rax
call fcn.14000dc10
mov esi, dword [rsp + 0x40]
test sil, 0x10
je 0x1400161af
movzx ecx, word [rsp + 0x6c]
movzx eax, word [0x140028848]
sub ecx, eax
jne 0x1400015c0
movzx ecx, word [rsp + 0x6e]
movzx eax, word [0x14002884a]
sub ecx, eax
test ecx, ecx
je 0x1400015fa
movzx ecx, word [rsp + 0x6c]
movzx eax, word [0x140028840]
sub ecx, eax
jne 0x1400015f2
movzx ecx, word [rsp + 0x6e]
movzx eax, word [0x140028842]
sub ecx, eax
jne 0x1400015f2
movzx ecx, word [rsp + 0x70]
movzx eax, word [0x140028844]
sub ecx, eax
test ecx, ecx
jne 0x140016145
mov rsi, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindNextFileW]
xor edx, edx
test eax, eax
je 0x14000161f
mov rcx, qword [rsp + 0x30]
jmp 0x140001523
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindClose]
xor eax, eax
cmp dword [0x14002f70c], eax
jne 0x14000163c
mov rcx, rdi
call fcn.14000139c
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.1400151c0
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x4b0
pop rdi
pop rsi
pop rbp
ret
mov eax, 0xa1
jmp 0x14000163c
mov eax, 0x10
xor ecx, ecx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x64], ecx
jmp 0x14000148c
bt ecx, 0x1d
jb 0x140001634
jmp 0x14000149e
lea rdx, [rsp + 0x28]
lea rcx, [rbp + 0x190]
call fcn.140001408
xor ecx, ecx
cmp dword [0x14002f70c], ecx
jne 0x14000161f
mov rsi, qword [rsp + 0x20]
test eax, eax
je 0x1400015ff
mov dword [rsi], ecx
cmp eax, 0x91
jne 0x140016184
cmp dword [rsp + 0x28], ecx
je 0x1400015ff
lea r8, [rbp + 0x190]
mov edx, 1
mov ecx, 0x4000271b
call fcn.1400057e4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ecx, eax
xor edx, edx
call fcn.1400057e4
nop
jmp 0x1400015ff
test sil, 1
je 0x1400161c7
mov edx, esi
lea rcx, [rbp + 0x190]
and edx, 0xfffffffe
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFileAttributesW]
mov edx, esi
lea rcx, [rbp + 0x190]
call fcn.1400042dc
xor edx, edx
test eax, eax
je 0x1400015fa
cmp eax, 0x4d3
je 0x14000161f
cmp eax, 3
jne 0x140016234
lea r8d, [rdx + 4]
lea rdx, str.__
lea rcx, [rbp + 0x190]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
xor edx, edx
test eax, eax
je 0x140016234
xor r9d, r9d
lea rcx, [rbp + 0x190]
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFullPathNameW]
cmp eax, 0x104
jle 0x140016232
mov ecx, 0x6f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
xor edx, edx
lea rcx, [rbp + 0x174]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], dx
jne 0x14001623f
test rax, rax
je 0x14001629d
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rcx]
cmp rax, 0x208
jae 0x140016328
mov word [rbp + rax + 0x190], dx
lea r8, [rsp + 0x6c]
or rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], dx
jne 0x140016273
add rax, rcx
mov edx, 0x104
lea rcx, [rbp + 0x190]
cmp rax, rdx
jb 0x1400162df
lea r8, [rbp + 0x174]
call fcn.14000db30
lea r8, [rbp + 0x190]
mov edx, 1
mov ecx, 0x4000271b
call fcn.1400057e4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ecx, eax
xor edx, edx
call fcn.1400057e4
mov edx, esi
lea rcx, [rbp + 0x190]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFileAttributesW]
mov rsi, qword [rsp + 0x20]
xor eax, eax
mov dword [rsi], eax
jmp 0x1400015ff
lea r8, [rsp + 0x6c]
call fcn.14000db30
lea r8, [rbp + 0x190]
mov edx, 1
mov ecx, 0x4000271b
call fcn.1400057e4
mov rax, qword [rsp + 0x30]
lea r8, [rbp + 0x174]
xor ecx, ecx
mov edx, 0x104
mov word [rbp + rax*2 + 0x190], cx
lea rcx, [rbp + 0x190]
call fcn.14000db30
jmp 0x1400162b3
call fcn.140015398
int3
mov dword [rsi], edx
mov r8, rdi
mov edx, 2
mov ecx, 0x400023da
call fcn.1400057e4
nop
jmp 0x14000161f