Function at 0x180006610
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [r11 - 0xb8]
sub rsp, 0x188
movaps xmmword [r11 - 0x48], xmm6
movaps xmmword [r11 - 0x58], xmm7
movaps xmmword [r11 - 0x68], xmm8
movaps xmmword [r11 - 0x78], xmm9
mov rax, qword [0x18004b010]
xor rax, rsp
mov qword [rbp], rax
movsd xmm6, qword [rcx + 0x158]
mov rbx, rcx
movsd xmm0, qword [rcx + 0x110]
movaps xmm9, xmm6
addsd xmm6, qword [0x180045c98]
movsd xmm7, qword [rcx + 0x118]
addsd xmm9, xmm0
cmp byte [r8], 0
movaps xmm8, xmm7
addsd xmm7, qword [rcx + 0x160]
addsd xmm8, qword [rcx + 0x160]
movaps xmm1, xmmword [0x180046040]
addsd xmm6, xmm0
movups xmm0, xmmword [rcx + 0x10]
mov eax, 0x60
mov ecx, 0x70
movaps xmmword [r11 - 0x88], xmm10
cmove eax, ecx
movaps xmmword [rbp - 0x50], xmm0
xor edi, edi
movaps xmmword [r11 - 0x98], xmm11
mov r14, r8
movss xmm11, dword [0x180045c04]
mov r15, rdx
movups xmm0, xmmword [rax + rbx]
mov esi, edi
movsd qword [rbp - 0x80], xmm6
addsd xmm6, qword [0x180045c20]
movsd qword [rbp - 0x78], xmm7
addsd xmm7, qword [0x180045c20]
movaps xmmword [r11 - 0xa8], xmm12
movsd xmm12, qword [0x180045c90]
movaps xmm10, xmm6
movaps xmmword [rbp - 0x60], xmm0
addsd xmm10, qword [0x180045cf8]
movaps xmmword [rbp - 0x40], xmm1
xorps xmm0, xmm0
nop word [rax + rax]
mov rcx, qword [rbx + 0x1b0]
addsd xmm0, xmm7
lea rax, [rbp - 0x60]
movsd qword [rsp + 0x70], xmm10
movaps xmm3, xmm11
movsd qword [rbp - 0x70], xmm6
lea r8, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x70]
movsd qword [rsp + 0x78], xmm0
movsd qword [rbp - 0x68], xmm0
call fcn.18001bb70
inc esi
movd xmm0, esi
cvtdq2pd xmm0, xmm0
comisd xmm12, xmm0
ja 0x180006720
mov rcx, qword [rbx + 0x1b0]
lea rax, [rbp - 0x50]
movaps xmm3, xmm11
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x40]
mov qword [rsp + 0x180], r12
lea rdx, [rbp - 0x80]
call fcn.18001be00
movss xmm1, dword [rbx + 0x130]
movaps xmm12, xmmword [rsp + 0x110]
movaps xmm11, xmmword [rsp + 0x120]
movaps xmm10, xmmword [rsp + 0x130]
cvtps2pd xmm1, xmm1
comisd xmm1, xmm9
jb 0x1800068c5
movss xmm0, dword [rbx + 0x134]
cvtps2pd xmm0, xmm0
comisd xmm0, xmm8
jb 0x1800068c5
addsd xmm9, qword [0x180045d00]
comisd xmm9, xmm1
jb 0x1800068c5
addsd xmm8, qword [0x180045c98]
comisd xmm8, xmm0
jb 0x1800068c5
mov rcx, qword [rbx + 0x1b8]
lea rdx, [0x18004d930]
call fcn.18001da80
test al, al
je 0x18000682d
cmp byte [r14], dil
jne 0x180006836
mov byte [r14], 1
mov al, 1
jmp 0x180006bf0
cmp byte [r14], dil
je 0x1800068c8
lea rsi, [0x18004daa0]
lea r12, [0x18004df40]
nop dword [rax]
nop dword [rax + rax]
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.1800160a0
lea rdx, [rbp - 0x20]
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], rdi
mov rcx, qword [rax]
mov qword [rbp - 0x20], rcx
mov rcx, qword [rbx + 0x1b8]
call fcn.18001da80
test al, al
jne 0x18000688b
add rsi, 0x10
cmp rsi, r12
jne 0x180006850
jmp 0x1800068c8
movups xmm0, xmmword [rbp - 0x20]
movsd xmm1, qword [rbp - 0x10]
movups xmmword [r15], xmm0
movsd qword [r15 + 0x10], xmm1
mov rcx, qword [r14 + 8]
call fcn.180020780
mov rdx, r15
mov qword [r14 + 8], rdi
lea rcx, [r14 + 8]
mov qword [r14 + 0x10], rdi
call fcn.18000ab70
mov al, 1
mov byte [r14], dil
jmp 0x180006bf0
mov byte [r14], dil
movsd xmm1, qword [rbx + 0x158]
addsd xmm1, qword [0x180045c98]
movsd xmm2, qword [rbx + 0x160]
addsd xmm2, qword [rbx + 0x118]
addsd xmm1, qword [rbx + 0x110]
addsd xmm2, qword [0x180045c70]
addsd xmm1, qword [0x180045cc8]
cmp dword [r14 + 0x10], edi
jne 0x180006b2c
cmp word [0x180043e1a], di
movups xmm0, xmmword [str.dQ__XS]
mov eax, dword [0x180043e18]
movsd qword [rbp - 0x80], xmm1
movsd xmm1, qword [0x180043e10]
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 8], eax
movsd qword [rbp - 0x78], xmm2
movsd qword [rbp - 0x10], xmm1
je 0x180006a86
cmp dword [0x18004b018], 2
mov r8d, edi
jl 0x180006a45
movdqa xmm2, xmmword [0x180045d60]
mov eax, 4
movdqa xmm3, xmmword [0x180045d80]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x1800460f0]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
mov r8d, 8
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, eax
mov eax, 0x1f
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movd xmm5, eax
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180045db0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [str.dQ__XS]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
paddw xmm2, xmmword [0x180045e90]
pxor xmm2, xmm0
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movq qword [rbp - 0x20], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180045db0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rbp - 0x18]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x180045e90]
pxor xmm2, xmm0
movq qword [rbp - 0x18], xmm2
mov eax, r8d
lea r9, [rbp - 0x20]
lea r9, [r9 + rax*2]
mov eax, 0x5397829d
lea r9, [r9 + 2]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub ax, dx
movzx eax, ax
imul ecx, eax, 0x31
add cx, r8w
inc r8d
xor word [r9 - 2], cx
cmp r8d, 0xe
jl 0x180006a50
mov qword [rsp + 0x70], rdi
cmp word [rbp - 0x20], di
je 0x180006ac8
lea rax, [rbp - 0x20]
nop word [rax + rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
lea edi, [rdi + 1]
jne 0x180006aa0
lea eax, [rdi + 1]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x7c], eax
test eax, eax
je 0x180006acd
lea rax, [rbp - 0x20]
mov qword [rsp + 0x70], rax
jmp 0x180006acd
mov qword [rsp + 0x78], rdi
movups xmm0, xmmword [rbx + 0xb0]
lea rax, [rbp - 0x40]
movups xmm1, xmmword [rbp - 0x80]
mov qword [rsp + 0x60], rax
lea r9, [rbp - 0x30]
mov byte [rsp + 0x50], 1
lea rax, [rbp - 0x50]
movaps xmmword [rbp - 0x70], xmm0
movaps xmm0, xmmword [rsp + 0x70]
mov byte [rsp + 0x48], 1
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x60]
movdqa xmmword [rsp + 0x70], xmm0
xorps xmm0, xmm0
movaps xmmword [rbp - 0x30], xmm1
xorps xmm1, xmm1
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x70]
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x60], xmm1
jmp 0x180006b94
movups xmm0, xmmword [rbx + 0xb0]
mov rdx, r15
lea rcx, [rbp - 0x20]
movsd qword [rbp - 0x70], xmm1
movaps xmmword [rbp - 0x60], xmm0
movsd qword [rbp - 0x68], xmm2
call fcn.1800157f0
xorps xmm1, xmm1
lea r9, [rbp - 0x70]
movups xmmword [rbp - 0x30], xmm1
movups xmm0, xmmword [rax]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x40]
mov byte [rsp + 0x50], 1
mov byte [rsp + 0x48], 1
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x50]
movaps xmmword [rsp + 0x70], xmm0
xorps xmm0, xmm0
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x60]
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x50], xmm1
movss xmm0, dword [0x18004c298]
lea r8, [rsp + 0x70]
mov rdx, qword [0x18004d830]
mov rcx, qword [rbx + 0x1b0]
cvtps2pd xmm0, xmm0
unpcklpd xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x30], xmm0
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
call fcn.18001c090
movsd xmm0, qword [rbx + 0x118]
xor al, al
addsd xmm0, qword [0x180045ca0]
movsd qword [rbx + 0x118], xmm0
mov r12, qword [rsp + 0x180]
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.180020760
lea r11, [rsp + 0x188]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
movaps xmm9, xmmword [r11 - 0x48]
mov rsp, r11
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret