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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov r15, rcx
movzx r12d, r9b
mov rcx, rdx
mov r13, r8
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
mov edi, eax
shr edx, 4
mov rbx, 0xffffffffffffffff
and dl, 1
mov byte [rsp + 0x48], dl
test r12b, r12b
je 0x1400011b5
mov dword [rsp + 0x4c], 0
jmp 0x1400011db
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rcx, rax
mov rax, rbx
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400011c4
lea eax, [rax*2 + 2]
mov dword [rsp + 0x4c], eax
mov qword [rsp + 0x568], r14
test dil, 0x10
je 0x140001369
xor edi, edi
lea r8, [0x140003310]
mov rdx, rsi
lea ecx, [rdi + 2]
call section..text
lea rdx, [rbp + 0x1b0]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movzx edx, word [rbp + 0x1dc]
movzx ecx, word [rbp + 0x1de]
cmp dx, 0x2e
jne 0x14000124d
test cx, cx
je 0x14000124f
cmp dx, dx
jne 0x14000124d
cmp cx, dx
jne 0x14000124d
cmp word [rbp + 0x1e0], 0
je 0x14000124f
inc edi
lea rdx, [rbp + 0x1b0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140001220
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
movsxd rax, edi
lea r9, [rsp + 0x40]
xor edi, edi
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x20], rdi
mov rcx, r15
lea r8d, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test r12b, r12b
jne 0x1400012bb
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov r8d, dword [rsp + 0x4c]
lea r9, [rsp + 0x40]
mov rdx, rax
mov qword [rsp + 0x20], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r8, [0x140003310]
mov rdx, rsi
mov ecx, 2
call section..text
lea rdx, [rsp + 0x60]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop dword [rax]
movzx edx, word [rbp - 0x74]
movzx ecx, word [rbp - 0x72]
cmp dx, 0x2e
jne 0x140001314
test cx, cx
je 0x140001349
cmp dx, dx
jne 0x140001314
cmp cx, dx
jne 0x140001314
cmp word [rbp - 0x70], 0
je 0x140001349
lea r9, [rbp - 0x74]
mov rdx, rsi
lea r8, [0x140003318]
mov ecx, 3
call section..text
xor r9d, r9d
mov r8, r13
mov rdx, rax
mov rcx, r15
mov rbx, rax
call fcn.140001150
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400012f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1400014ad
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edi, edi
lea rdx, [rsp + 0x5c]
mov rcx, rax
mov qword [rsp + 0x58], rdi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x58], eax
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x50], rcx
test r12b, r12b
jne 0x140001419
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
nop dword [rax + rax]
cmp word [rax + rbx*2 + 2], di
lea rbx, [rbx + 1]
jne 0x1400013d0
xor r12d, r12d
lea eax, [rbx*2 + 2]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x4c], eax
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x20], r12
mov rcx, r15
lea r8d, [r12 + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov r8d, dword [rsp + 0x4c]
mov rdx, rax
jmp 0x14000142b
xor r12d, r12d
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x4c], r12d
lea r8d, [r12 + 0x10]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x50]
mov rdi, r12
test rcx, rcx
je 0x1400014a4
nop dword [rax + rax]
mov rax, rcx
mov qword [rsp + 0x20], r12
sub ecx, edi
lea r9, [rsp + 0x40]
sub rax, rdi
mov ebx, 0x400
cmp rax, rbx
mov rdx, r13
cmovb ebx, ecx
mov rcx, r14
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r12
mov r8d, ebx
mov rdx, r13
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x50]
mov eax, ebx
add rdi, rax
cmp rdi, rcx
jb 0x140001450
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x568]
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.1400017e0
add rsp, 0x510
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret