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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rax, qword [0x180195040]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov rax, qword [0x180196050]
cmp rax, qword [0x180196058]
je 0x18005f5ff
mov qword [0x180196058], rax
movabs rax, 0x3df04dcd031b57c5
movabs r12, 0x3d954da0033557ef
mov qword [rsp + 0x30], rax
movabs r15, 0xc35fa6211be4c2ac
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
movabs rax, 0xc35fa6211b93c2c3
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], r12
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rsp + 0x50]
movzx ecx, word [0x180197570]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x1f0]
xorps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
test cx, cx
je 0x18005f6b0
lea rdx, [0x180197570]
lea r8, [rbp + 0x1f0]
sub rdx, r8
nop dword [rax + rax]
mov word [rax], cx
add rax, 2
movzx ecx, word [rax + rdx]
test cx, cx
jne 0x18005f6a0
xor esi, esi
movq rcx, xmm0
mov word [rax], si
test cx, cx
je 0x18005f6e0
lea rdx, [rsp + 0x50]
sub rdx, rax
nop word [rax + rax]
mov word [rax], cx
add rax, 2
movzx ecx, word [rax + rdx]
test cx, cx
jne 0x18005f6d0
lea rdx, [rbp - 0x80]
mov word [rax], si
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18005f9d1
mov qword [rsp + 0x540], rbx
mov qword [rsp + 0x548], r13
lea r13, [rsp + 0x50]
mov qword [rsp + 0x550], r14
mov r14, 0xffffffffffffffff
lea rbx, [rbp - 0x54]
cmp word [rbp - 0x54], si
je 0x18005f739
nop
add rbx, 2
cmp word [rbx], si
jne 0x18005f730
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
lea rax, [rbp - 0x54]
sub rbx, rax
mov eax, 2
sar rbx, 1
inc rbx
mul rbx
cmovb rax, r14
xor edx, edx
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdx, qword [0x180196058]
cmp rdx, qword [0x180196060]
mov qword [rsp + 0x30], rax
je 0x18005f792
mov qword [rdx], rax
mov rcx, qword [0x180196058]
add rcx, 8
mov qword [0x180196058], rcx
jmp 0x18005f7a3
lea r8, [rsp + 0x30]
call fcn.180061f60
mov rcx, qword [0x180196058]
movzx eax, word [rbp - 0x54]
lea rdx, [rbp - 0x54]
mov rcx, qword [rcx - 8]
test ax, ax
je 0x18005f7d3
nop dword [rax]
nop dword [rax + rax]
mov word [rcx], ax
lea rdx, [rdx + 2]
movzx eax, word [rdx]
add rcx, 2
test ax, ax
jne 0x18005f7c0
mov dl, 1
mov word [rcx], si
call fcn.18008b850
mov rbx, rax
lea r8, [rsp + 0x60]
movabs rax, 0x52f66dc46d403889
mov qword [rsp + 0x30], rax
movabs rax, 0xb73ed4547c8da4c2
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0xd4a0c890840b1158
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0xd7e14f6740e83b6c
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x70], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x30], r12
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x1d0], rax
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x1d8], rax
movabs rax, 0xb1cca1f6a4657e31
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x1e0], rax
movabs rax, 0xd7e14f6740ca1b56
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movdqa xmm1, xmmword [rsp + 0x60]
xorps xmm1, xmmword [rbp + 0x1d0]
mov qword [rbp + 0x1e8], rax
movq rax, xmm1
movdqa xmm0, xmmword [rbp + 0x1e0]
xorps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmmword [rsp + 0x60], xmm1
test al, al
je 0x18005f8e0
inc rcx
mov r8, rcx
cmp byte [rcx], sil
jne 0x18005f8d5
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rsi
sub r8d, eax
lea rdx, [rsp + 0x60]
xor r9d, r9d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, [rbp - 0x54]
mov rcx, rbx
call fcn.18008b9c0
movabs rax, 0x3d954da0033557cd
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov r8d, r13d
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], r12
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rsp + 0x50]
mov qword [rsp + 0x48], rax
xorps xmm0, xmmword [rsp + 0x40]
movq rax, xmm0
movdqa xmmword [rsp + 0x50], xmm0
test al, al
je 0x18005f97d
inc rcx
mov r8, rcx
cmp byte [rcx], sil
jne 0x18005f972
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rsi
sub r8d, eax
lea rdx, [rsp + 0x50]
xor r9d, r9d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18005f725
mov r14, qword [rsp + 0x550]
mov rcx, rdi
mov r13, qword [rsp + 0x548]
mov rbx, qword [rsp + 0x540]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.1800f1520
add rsp, 0x510
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret