Function at 0x180008a30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rbx, qword [0x1801af880]
mov rcx, rbx
call fcn.1800073c0
cmp byte [0x1801af869], 0
mov r8, rax
je 0x180008e73
lea rdx, [rax + 0x18]
movabs r9, 0x7fffffff0000
cmp rdx, 0x40000
jbe 0x180008e73
lea rcx, [rdx + 8]
cmp rcx, r9
jae 0x180008aa6
mov rcx, qword [rdx]
add rcx, 0x20
cmp rcx, 0x40000
jbe 0x180008aa6
lea rax, [rcx + 4]
cmp rax, r9
jae 0x180008aa6
cmp dword [rcx], 0x40547fde
je 0x180008aed
cmp rdx, 0x40000
jbe 0x180008e73
lea rax, [rdx + 8]
cmp rax, r9
jae 0x180008e73
mov rcx, qword [rdx]
add rcx, 0x20
cmp rcx, 0x40000
jbe 0x180008e73
lea rax, [rcx + 4]
cmp rax, r9
jae 0x180008e73
cmp dword [rcx], 0x847b9bf0
jne 0x180008e73
lea rcx, [rbx + 0x26c]
cmp rcx, 0x40000
jbe 0x180008b17
lea rax, [rcx + 4]
cmp rax, r9
jae 0x180008b17
movss xmm0, dword [rcx]
comiss xmm0, dword [0x18008d9d8]
jae 0x180008e73
mov qword [rsp + 0x190], rdi
lea rdx, [r8 + 0xb0]
xor edi, edi
movaps xmmword [rsp + 0x170], xmm7
xorps xmm7, xmm7
cmp rdx, 0x40000
jbe 0x180008b76
lea rax, [rdx + 8]
cmp rax, r9
jae 0x180008b76
mov rdx, qword [rdx]
mov r10, rdx
lea rcx, [rdx + 0xb0]
cmp rcx, 0x40000
jbe 0x180008b79
lea rax, [rcx + 8]
cmp rax, r9
jae 0x180008b79
movss dword [rcx], xmm7
movss dword [rcx + 4], xmm7
mov rbx, qword [0x1801af880]
jmp 0x180008b79
mov r10, rdi
add rbx, 0x7bc
cmp rbx, 0x40000
jbe 0x180008b96
lea rax, [rbx + 4]
cmp rax, r9
jae 0x180008b96
movss xmm7, dword [rbx]
lea rcx, [r10 + 0x1a8]
cmp rcx, 0x40000
jbe 0x180008e6a
lea rax, [rcx + 1]
cmp rax, r9
jae 0x180008e6a
cmp byte [rcx], dil
je 0x180008e6a
movss xmm0, dword [0x1801af968]
addss xmm0, dword [0x18008d890]
comiss xmm7, xmm0
jbe 0x180008e49
cmp byte [0x1801af921], dil
je 0x180008e32
movups xmm3, xmmword [str._ERkV__]
mov r11, qword [0x1801afc58]
add r11, 0x618b30
pextrw eax, xmm3, 7
movups xmmword [rsp + 0x20], xmm3
test ax, ax
je 0x180008d48
cmp dword [0x180096008], 2
jl 0x180008d01
movdqa xmm2, xmmword [0x18008db30]
movdqa xmm4, xmmword [0x18008e050]
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 [0x18008db80]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movq xmm1, xmm3
movdqa xmm3, xmmword [0x18008db40]
paddw xmm2, xmmword [0x18008db90]
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 [0x18008db80]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x28]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x18008db90]
xorps xmm2, xmm0
movq qword [rsp + 0x28], xmm2
jmp 0x180008d48
lea r9, [rsp + 0x20]
mov r8d, edi
nop dword [rax]
mov eax, 0x92492493
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, 0x38
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x35
xor word [r9 - 2], ax
cmp r8d, 8
jl 0x180008d10
movzx edx, word [rsp + 0x20]
lea rax, [rsp + 0x20]
mov ecx, edi
test dx, dx
je 0x180008d7c
nop dword [rax]
inc ecx
lea rax, [rax + 2]
cmp word [rax], di
jne 0x180008d60
cmp ecx, 0x40
jb 0x180008d7c
mov dword [rsp + 0x40], 0x40
mov edx, edi
jmp 0x180008da5
lea rcx, [rsp + 0x20]
mov eax, edi
test dx, dx
je 0x180008d9b
nop dword [rax + rax]
inc eax
lea rcx, [rcx + 2]
cmp word [rcx], di
jne 0x180008d90
mov dword [rsp + 0x40], eax
mov edx, edi
test eax, eax
jle 0x180008dc8
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 0x180008db0
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 0x180008e3a
addss xmm7, dword [0x18008d83c]
movss dword [0x1801af968], xmm7
mov byte [0x1801af921], 1
mov rdi, qword [rsp + 0x190]
movaps xmm7, xmmword [rsp + 0x170]
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rbp
ret
mov byte [0x1801af921], dil
jmp 0x180008e49
mov rbx, qword [rsp + 0x198]
mov byte [0x1801af921], 0
add rsp, 0x180
pop rbp
ret