Function at 0x140001000
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file size
Read file on windows
Write file on windows

Disassembly:
push rbp
push r14
push r15
lea rbp, [rsp - 0x5e0]
sub rsp, 0x6e0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov r9d, 0x104
mov r15, rcx
mov r8, rcx
mov edx, r9d
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea r8, str..
mov edx, 0x104
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140001268
mov qword [rsp + 0x6d0], r12
xor r12d, r12d
mov qword [rsp + 0x708], rbx
mov qword [rsp + 0x710], rsi
mov qword [rsp + 0x6d8], rdi
nop dword [rax]
test byte [rsp + 0x50], 0x10
jne 0x1400011ae
mov r9d, 0x104
lea rcx, [rbp + 0x1a0]
mov edx, r9d
mov r8, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea r8, [0x1400033e4]
mov edx, 0x104
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [rsp + 0x7c]
mov edx, 0x104
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov qword [rsp + 0x30], r12
lea rcx, [rbp + 0x1a0]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001229
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test eax, eax
je 0x1400011a3
mov ecx, ebx
lea rdx, [0x140003310]
call fcn.1400015e8
mov rsi, rax
test rax, rax
je 0x1400011a3
lea r9, [rsp + 0x44]
mov dword [rsp + 0x44], r12d
mov r8d, ebx
mov qword [rsp + 0x20], r12
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000119b
cmp dword [rsp + 0x44], ebx
jne 0x14000119b
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], r12d
mov r8d, ebx
mov qword [rsp + 0x20], r12
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call fcn.1400015e0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001229
movzx ecx, word [rsp + 0x7c]
movzx eax, word [rsp + 0x7e]
cmp cx, 0x2e
jne 0x1400011d4
test ax, ax
je 0x140001229
cmp cx, cx
jne 0x1400011d4
cmp ax, cx
jne 0x1400011d4
cmp word [rbp - 0x80], r12w
je 0x140001229
mov r9d, 0x104
lea rcx, [rbp + 0x1a0]
mov edx, r9d
mov r8, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea r8, [0x1400033e4]
mov edx, 0x104
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [rsp + 0x7c]
mov edx, 0x104
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rbp + 0x1a0]
call section..text
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400010a0
mov r12, qword [rsp + 0x6d0]
mov rcx, r14
mov rdi, qword [rsp + 0x6d8]
mov rsi, qword [rsp + 0x710]
mov rbx, qword [rsp + 0x708]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.1400015c0
add rsp, 0x6e0
pop r15
pop r14
pop rbp
ret