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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x430]
sub rsp, 0x530
mov rax, qword [0x1801a7040]
xor rax, rsp
mov qword [rbp + 0x420], rax
mov rax, qword [0x1801cee70]
cmp rax, qword [0x1801cee78]
je 0x18005a33f
mov qword [0x1801cee78], rax
movabs rax, 0x38efd3962c4e7ead
movabs r12, 0x3886d3f42c607e87
mov qword [rsp + 0x38], rax
movabs r15, 0x2254ea8ddf8d494c
mov rax, qword [rsp + 0x38]
mov qword [rbp - 0x70], rax
movabs rax, 0x2254ea8ddf8d4922
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp - 0x68], rax
mov qword [rsp + 0x38], r12
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov rax, qword [rsp + 0x38]
movdqa xmm0, xmmword [rbp - 0x70]
movzx ecx, word [0x1801d0d00]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x210]
xorps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp - 0x70], xmm0
test cx, cx
je 0x18005a3f0
lea rdx, [0x1801d0d00]
lea r8, [rbp + 0x210]
sub rdx, r8
nop dword [rax]
nop dword [rax + rax]
mov word [rax], cx
add rax, 2
movzx ecx, word [rax + rdx]
test cx, cx
jne 0x18005a3e0
xor esi, esi
movq rcx, xmm0
mov word [rax], si
test cx, cx
je 0x18005a420
lea rdx, [rbp - 0x70]
sub rdx, rax
nop word [rax + rax]
mov word [rax], cx
add rax, 2
movzx ecx, word [rax + rdx]
test cx, cx
jne 0x18005a410
lea rdx, [rbp - 0x60]
mov word [rax], si
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18005a70e
mov qword [rsp + 0x560], rbx
mov qword [rsp + 0x568], r13
lea r13, [rsp + 0x70]
mov qword [rsp + 0x570], r14
lea r14, [rsp + 0x60]
lea rbx, [rbp - 0x34]
cmp word [rbp - 0x34], si
je 0x18005a479
nop dword [rax]
add rbx, 2
cmp word [rbx], si
jne 0x18005a470
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
lea rax, [rbp - 0x34]
sub rbx, rax
mov eax, 2
sar rbx, 1
inc rbx
mul rbx
mov rdx, 0xffffffffffffffff
cmovo rax, rdx
xor edx, edx
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdx, qword [0x1801cee78]
cmp rdx, qword [0x1801cee80]
mov qword [rsp + 0x38], rax
je 0x18005a4d9
mov qword [rdx], rax
mov rcx, qword [0x1801cee78]
add rcx, 8
mov qword [0x1801cee78], rcx
jmp 0x18005a4ea
lea r8, [rsp + 0x38]
call fcn.18005cf00
mov rcx, qword [0x1801cee78]
movzx eax, word [rbp - 0x34]
lea rdx, [rbp - 0x34]
mov rcx, qword [rcx - 8]
test ax, ax
je 0x18005a513
nop dword [rax + rax]
mov word [rcx], ax
lea rdx, [rdx + 2]
movzx eax, word [rdx]
add rcx, 2
test ax, ax
jne 0x18005a500
mov dl, 1
mov word [rcx], si
call fcn.18008d420
mov rbx, rax
mov r8d, r13d
movabs rax, 0x57e5f390421511e1
mov qword [rsp + 0x30], rax
movabs rax, 0x563598f8b8e42f22
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0xcdd23f406fa6538
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0xcce9c8237d237b9c
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x80], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x30], r12
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x1f0], rax
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x1f8], rax
movabs rax, 0x69b14a9226940a51
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x200], rax
movabs rax, 0xcce9c8237d015ba6
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movdqa xmm1, xmmword [rsp + 0x70]
xorps xmm1, xmmword [rbp + 0x1f0]
movdqa xmm0, xmmword [rbp - 0x80]
mov qword [rbp + 0x208], rax
movq rax, xmm1
xorps xmm0, xmmword [rbp + 0x200]
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmmword [rbp - 0x80], xmm0
test al, al
je 0x18005a61b
nop
inc rcx
mov r8, rcx
cmp byte [rcx], sil
jne 0x18005a610
mov rcx, qword [0x1801ceca8]
lea rdx, [rsp + 0x70]
sub r8d, r13d
mov qword [rsp + 0x20], rsi
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, [rbp - 0x34]
mov rcx, rbx
call fcn.18008d590
movabs rax, 0x3886d3f42c607ea5
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov r8d, r14d
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x30], r12
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rsp + 0x60]
mov qword [rsp + 0x58], rax
xorps xmm0, xmmword [rsp + 0x50]
movq rax, xmm0
movdqa xmmword [rsp + 0x60], xmm0
test al, al
je 0x18005a6bb
nop dword [rax]
inc rcx
mov r8, rcx
cmp byte [rcx], sil
jne 0x18005a6b0
mov rcx, qword [0x1801ceca8]
lea rdx, [rsp + 0x60]
sub r8d, r14d
mov qword [rsp + 0x20], rsi
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18005a463
mov r14, qword [rsp + 0x570]
mov rcx, rdi
mov r13, qword [rsp + 0x568]
mov rbx, qword [rsp + 0x560]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.1800f39f0
add rsp, 0x530
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret