Function at 0x140008f80
Capabilities:
Enumerate files on windows
Write file on windows

Disassembly:
push rsi
push r14
sub rsp, 0x2c8
mov rax, qword [0x14000e398]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov r14, rcx
mov ecx, 0x10000
call fcn.14000cad0
mov rsi, rax
test rax, rax
je 0x1400092ff
mov qword [rsp + 0x2e8], rbx
mov rdx, r14
mov qword [rsp + 0x2f0], rbp
mov rcx, rax
mov qword [rsp + 0x2b0], r15
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140003b90]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor r15d, r15d
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov edx, 0x40000000
mov dword [rsp + 0x28], r15d
mov rcx, rsi
mov dword [rsp + 0x20], 1
lea r8d, [r15 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140009050
lea rcx, [0x1400017c0]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r15
mov r8d, eax
lea rdx, [0x1400017c0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, r14
mov qword [rsp + 0x2c0], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140003bd0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14000923d
mov qword [rsp + 0x2b8], r12
lea r12, [0x14000e280]
nop
mov ebx, r15d
mov rdi, r12
nop word [rax + rax]
mov rdx, qword [rdi]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140009211
inc ebx
add rdi, 8
cmp ebx, 0x22
jb 0x1400090b0
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140003bd8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rsp + 0x7c]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
test byte [rsp + 0x50], 0x10
jne 0x140009211
lea rdx, [0x140003be0]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140009211
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
sub eax, 1
movsxd rcx, eax
js 0x140009198
cmp word [rsp + rcx*2 + 0x7c], 0x2e
je 0x140009145
dec eax
sub rcx, 1
jns 0x140009133
jmp 0x140009198
cdqe
lea rbx, [rsp + 0x7c]
lea rdx, [0x140003c20]
lea rbx, [rbx + rax*2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140009211
lea rdx, [0x140003c30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140009211
lea rdx, [0x140003ae0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140009211
xor r8d, r8d
lea rcx, [0x14000e3d0]
mov rdx, rsi
call fcn.14000cce0
test eax, eax
jne 0x140009211
nop
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], r15d
xor edx, edx
lea rcx, [0x14000e3d0]
call fcn.14000cc30
mov rbx, rax
test rax, rax
je 0x1400091fb
mov rcx, rbx
call fcn.140007810
mov rcx, rbx
call fcn.14000cb00
lea r8, [rsp + 0x40]
xor edx, edx
lea rcx, [0x14000e3d0]
call fcn.14000cc30
mov rbx, rax
test rax, rax
jne 0x1400091d0
xor r8d, r8d
lea rcx, [0x14000e3d0]
mov rdx, rsi
call fcn.14000cce0
test eax, eax
je 0x1400091b0
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400090a0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r12, qword [rsp + 0x2b8]
jmp 0x1400092d7
cmp dword [0x14000e470], r15d
je 0x1400092d7
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], r15
mov r8, r14
mov qword [rsp + 0x30], r15
mov r9d, eax
mov dword [rsp + 0x28], r15d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rcx, rbx
call fcn.14000cad0
mov rcx, r14
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], r15
mov r8, r14
mov qword [rsp + 0x30], r15
mov r9d, eax
mov dword [rsp + 0x28], ebx
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rdi
lea rcx, [0x140003c40]
mov r8d, eax
call fcn.140005020
mov rcx, rdi
call fcn.14000cb00
mov rcx, rsi
call fcn.14000cb00
mov r15, qword [rsp + 0x2b0]
mov rdi, qword [rsp + 0x2c0]
mov rbp, qword [rsp + 0x2f0]
mov rbx, qword [rsp + 0x2e8]
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14000ce70
add rsp, 0x2c8
pop r14
pop rsi
ret