Function at 0x180008760
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rbx, qword [0x1801ae880]
mov rcx, rbx
call fcn.180007100
cmp byte [0x1801ae869], 0
mov r8, rax
je 0x180008b93
lea rdx, [rax + 0x18]
movabs r9, 0x7fffffff0000
cmp rdx, 0x40000
jbe 0x180008b93
lea rcx, [rdx + 8]
cmp rcx, r9
jae 0x1800087d6
mov rcx, qword [rdx]
add rcx, 0x20
cmp rcx, 0x40000
jbe 0x1800087d6
lea rax, [rcx + 4]
cmp rax, r9
jae 0x1800087d6
cmp dword [rcx], 0x40547fde
je 0x18000881d
cmp rdx, 0x40000
jbe 0x180008b93
lea rax, [rdx + 8]
cmp rax, r9
jae 0x180008b93
mov rcx, qword [rdx]
add rcx, 0x20
cmp rcx, 0x40000
jbe 0x180008b93
lea rax, [rcx + 4]
cmp rax, r9
jae 0x180008b93
cmp dword [rcx], 0x847b9bf0
jne 0x180008b93
lea rcx, [rbx + 0x27c]
cmp rcx, 0x40000
jbe 0x180008847
lea rax, [rcx + 4]
cmp rax, r9
jae 0x180008847
movss xmm0, dword [rcx]
comiss xmm0, dword [0x18008c9b8]
jae 0x180008b93
mov qword [rsp + 0x190], rdi
lea rdx, [r8 + 0xb0]
xor edi, edi
movaps xmmword [rsp + 0x170], xmm7
xorps xmm7, xmm7
cmp rdx, 0x40000
jbe 0x1800088a6
lea rax, [rdx + 8]
cmp rax, r9
jae 0x1800088a6
mov rdx, qword [rdx]
mov r10, rdx
lea rcx, [rdx + 0xb0]
cmp rcx, 0x40000
jbe 0x1800088a9
lea rax, [rcx + 8]
cmp rax, r9
jae 0x1800088a9
movss dword [rcx], xmm7
movss dword [rcx + 4], xmm7
mov rbx, qword [0x1801ae880]
jmp 0x1800088a9
mov r10, rdi
add rbx, 0xa4c
cmp rbx, 0x40000
jbe 0x1800088c6
lea rax, [rbx + 4]
cmp rax, r9
jae 0x1800088c6
movss xmm7, dword [rbx]
lea rcx, [r10 + 0x1b0]
cmp rcx, 0x40000
jbe 0x180008b8a
lea rax, [rcx + 1]
cmp rax, r9
jae 0x180008b8a
cmp byte [rcx], dil
je 0x180008b8a
movss xmm0, dword [0x1801ae968]
addss xmm0, dword [0x18008c870]
comiss xmm7, xmm0
jbe 0x180008b69
cmp byte [0x1801ae921], dil
je 0x180008b52
movups xmm3, xmmword [0x18008b7c8]
mov r11, qword [0x1801aec58]
add r11, 0x62ba60
pextrw eax, xmm3, 7
movups xmmword [rsp + 0x20], xmm3
test ax, ax
je 0x180008a78
cmp dword [0x180095010], 2
jl 0x180008a31
movdqa xmm2, xmmword [0x18008cb20]
movdqa xmm4, xmmword [0x18008d270]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18008cb70]
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movq xmm1, xmm3
movdqa xmm3, xmmword [0x18008cb30]
paddw xmm2, xmmword [0x18008cb90]
movdqa xmm0, xmm3
xorps xmm2, xmm1
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movq qword [rsp + 0x20], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18008cb70]
psubd xmm3, xmm0
pshufhw xmm0, xmm3, 0xd8
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x28]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x18008cb90]
xorps xmm2, xmm0
movq qword [rsp + 0x28], xmm2
jmp 0x180008a78
lea r9, [rsp + 0x20]
mov r8d, edi
nop dword [rax]
mov eax, 0x8fb823ef
lea r9, [r9 + 2]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x39
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x37
xor word [r9 - 2], ax
cmp r8d, 8
jl 0x180008a40
movzx edx, word [rsp + 0x20]
lea rax, [rsp + 0x20]
mov ecx, edi
test dx, dx
je 0x180008aa7
nop dword [rax]
inc ecx
lea rax, [rax + 2]
cmp word [rax], di
jne 0x180008a90
cmp ecx, 0x40
jb 0x180008aa7
mov eax, 0x40
jmp 0x180008abe
lea rcx, [rsp + 0x20]
mov eax, edi
test dx, dx
je 0x180008abe
inc eax
lea rcx, [rcx + 2]
cmp word [rcx], di
jne 0x180008ab3
mov dword [rsp + 0x40], eax
mov edx, edi
test eax, eax
jle 0x180008ae8
mov rcx, rdi
nop dword [rax + rax]
movzx eax, word [rsp + rcx + 0x20]
inc edx
mov word [rsp + rcx + 0x44], ax
lea rcx, [rcx + 2]
mov eax, dword [rsp + 0x40]
cmp edx, eax
jl 0x180008ad0
cdqe
lea rdx, [rbp - 0x30]
mov rcx, r10
mov word [rsp + rax*2 + 0x44], di
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x20], xmm1
movups xmm1, xmmword [rsp + 0x60]
movaps xmmword [rbp - 0x10], xmm0
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rbp], xmm1
movups xmm1, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x10], xmm0
movups xmm0, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0x20], xmm1
movups xmm1, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x30], xmm0
movups xmm0, xmmword [rbp - 0x50]
movaps xmmword [rbp + 0x40], xmm1
movsd xmm1, qword [rbp - 0x40]
movaps xmmword [rbp + 0x50], xmm0
movsd qword [rbp + 0x60], xmm1
call r11
jmp 0x180008b5a
addss xmm7, dword [0x18008c81c]
movss dword [0x1801ae968], xmm7
mov byte [0x1801ae921], 1
mov rdi, qword [rsp + 0x190]
movaps xmm7, xmmword [rsp + 0x170]
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rbp
ret
mov byte [0x1801ae921], dil
jmp 0x180008b69
mov rbx, qword [rsp + 0x198]
mov byte [0x1801ae921], 0
add rsp, 0x180
pop rbp
ret