Function at 0x18013d660
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x168]
sub rsp, 0x268
mov rbx, r8
mov qword [rbp + 0x1a8], 0
xor r8d, r8d
mov r14, r9
mov rdi, rcx
mov esi, 1
mov rdx, qword [rbx + 0x10]
call fcn.180143400
mov r13, rax
test rax, rax
jne 0x18013d6b9
add rsp, 0x268
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
movdqa xmm0, xmmword [0x180160d30]
movabs r9, 0x53a4a43623c65917
movdqa xmm1, xmmword [0x1801613d0]
movabs r8, 0xb239e6a5d6a6619e
movdqu xmmword [rbp - 0x68], xmm0
movabs rcx, 0x27588b27cf2319ad
mov qword [rsp + 0x2a0], r12
movdqa xmm0, xmmword [0x1801621d0]
mov qword [rsp + 0x260], r15
mov r15, qword [rbp + 0x1c0]
movdqu xmmword [rbp - 0x48], xmm0
movdqa xmm0, xmmword [0x180162020]
movdqu xmmword [rbp - 0x58], xmm1
movdqa xmm1, xmmword [0x180161460]
movdqu xmmword [rbp - 0x28], xmm0
movdqu xmmword [rbp - 0x38], xmm1
test r15, r15
je 0x18013d7cd
movdqa xmm1, xmmword [0x180160c50]
lea rdx, [rbp - 0x68]
movdqa xmm0, xmmword [0x180160ad0]
mov qword [rbp + 0x18], rcx
lea rcx, [rbp + 0x70]
movdqu xmmword [rbp - 0x18], xmm1
mov qword [rbp + 8], r9
movdqu xmmword [rbp - 8], xmm0
mov qword [rbp + 0x10], r8
call fcn.180010520
lea rdx, [rbp + 0xe8]
movups xmm2, xmmword [rax]
movups xmmword [rbp + 0xe8], xmm2
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp + 0xf8], xmm0
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rbp + 0x108], xmm1
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rbp + 0x118], xmm0
movups xmm1, xmmword [rax + 0x40]
movups xmmword [rbp + 0x128], xmm1
movups xmm0, xmmword [rax + 0x50]
movups xmmword [rbp + 0x138], xmm0
movups xmm1, xmmword [rax + 0x60]
movups xmmword [rbp + 0x148], xmm1
movzx eax, byte [rax + 0x70]
mov byte [rbp + 0x158], al
jmp 0x18013d888
movdqa xmm1, xmmword [0x180161170]
xor edx, edx
movdqu xmmword [rbp - 0x18], xmm1
mov dword [rbp - 8], 0x44bcda64
mov rax, rcx
mov dword [rbp - 4], 0x8c4f8f
mov qword [rbp], r9
mov qword [rbp + 8], r8
mov qword [rbp + 0x10], rcx
nop dword [rax]
imul rax, rcx
add r8, r9
add rax, r8
mov rcx, rax
shl rax, 0x20
shr rcx, 0x20
or rcx, rax
movzx eax, cl
xor al, byte [rbp + rdx - 0x68]
mov byte [rsp + rdx + 0x30], al
inc rdx
mov rax, rcx
cmp rdx, 0x67
jb 0x18013d800
movups xmm0, xmmword [rsp + 0x30]
mov byte [rbp - 0x69], 0
lea rdx, [rbp + 0x70]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbp + 0x70], xmm0
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp + 0x80], xmm1
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rbp + 0x90], xmm0
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rbp + 0xa0], xmm1
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [rbp + 0xb0], xmm0
movsd xmm0, qword [rbp - 0x70]
movsd qword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xc0], xmm1
lea r8, [rbp + 0x1a8]
mov rcx, r13
call fcn.180142ef0
mov r12, rax
test rax, rax
je 0x18013dab7
mov r9, qword [rbx + 0x30]
mov rcx, rdi
mov r8, qword [r14 + 0x10]
call fcn.180145f80
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x18013dab7
mov rcx, qword [rbp + 0x1a8]
call fcn.180026520
movdqa xmm0, xmmword [0x180161ef0]
lea rdx, [rsp + 0x30]
movdqa xmm1, xmmword [0x180161ea0]
lea rcx, [rbp + 0x48]
mov ebx, eax
movabs rax, 0xa7ec59b91e41e411
mov qword [rsp + 0x50], rax
movabs rax, 0x9db3e3a20838a126
mov qword [rsp + 0x58], rax
movabs rax, 0x9dbe438aebd42f31
mov qword [rsp + 0x60], rax
movdqu xmmword [rsp + 0x30], xmm0
movdqu xmmword [rsp + 0x40], xmm1
call fcn.18000bce0
lea r8, [rbp + 0x20]
mov edx, 0x100000
lea rcx, [0x18017bd90]
movups xmm2, xmmword [rax]
movups xmmword [rbp + 0x20], xmm2
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp + 0x30], xmm0
movzx eax, byte [rax + 0x20]
mov byte [rbp + 0x40], al
call fcn.1800010e0
mov rcx, qword [0x18017bd78]
lea r9, [0x18017bd80]
mov r8d, eax
mov dword [0x18017bd84], eax
lea rdx, [0x18017bd90]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp ebx, 0x65
je 0x18013d9ec
cmp ebx, 0x64
jne 0x18013d9ec
mov r8, qword [rbp + 0x1a8]
lea r9, [rbp + 0x1b0]
mov rdx, r15
mov qword [rbp + 0x1b0], 0
mov rcx, rdi
call fcn.18013db10
mov rbx, rax
test rax, rax
je 0x18013d9d9
mov eax, dword [rbp + 0x1b0]
mov r9, rbx
mov r8, r14
mov dword [rsp + 0x20], eax
mov rcx, rdi
call fcn.180146300
mov rcx, rbx
mov esi, eax
call fcn.180146f60
test esi, esi
je 0x18013d9ec
mov rcx, qword [rbp + 0x1a8]
call fcn.180026520
mov ebx, eax
cmp eax, 0x65
jne 0x18013d982
movdqa xmm0, xmmword [0x180161e20]
lea rdx, [rsp + 0x30]
movdqa xmm1, xmmword [0x1801619f0]
lea rcx, [rbp + 0x20]
movabs rax, 0xa7ec59b91e41e411
mov dword [rsp + 0x50], 0x7e03098e
mov qword [rsp + 0x58], rax
movabs rax, 0x9db3e3a20838a126
mov qword [rsp + 0x60], rax
movabs rax, 0x9dbe438aebd42f31
mov qword [rsp + 0x68], rax
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x54], 0x140e4e
movdqu xmmword [rsp + 0x40], xmm1
call fcn.18000d7e0
lea r8, [rbp + 0x48]
mov edx, 0x100000
lea rcx, [0x18017bd90]
movups xmm2, xmmword [rax]
movups xmmword [rbp + 0x48], xmm2
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp + 0x58], xmm0
movsd xmm1, qword [rax + 0x20]
movsd qword [rbp + 0x68], xmm1
call fcn.1800010e0
mov rcx, qword [0x18017bd78]
lea r9, [0x18017bd80]
mov r8d, eax
mov dword [0x18017bd84], eax
lea rdx, [0x18017bd90]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r14
call qword [rdi + 0xa8]
mov rcx, qword [rbp + 0x1a8]
mov r15, qword [rsp + 0x260]
test rcx, rcx
je 0x18013dad0
call fcn.180026a10
test r12, r12
je 0x18013dadd
mov rcx, r12
call fcn.180022770
mov rcx, r13
call fcn.180146f60
mov r12, qword [rsp + 0x2a0]
mov eax, esi
add rsp, 0x268
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret