Function at 0x180008e20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rbx, qword [0x1801af828]
mov rcx, rbx
call fcn.1800077d0
cmp byte [0x1801af816], 0
mov r8, rax
je 0x180009286
lea rdx, [rax + 0x18]
movabs r9, 0x7fffffff0000
cmp rdx, 0x40000
jbe 0x180009286
lea rcx, [rdx + 8]
cmp rcx, r9
jae 0x180008e99
mov rcx, qword [rdx]
add rcx, 0x18
cmp rcx, 0x40000
jbe 0x180008e99
lea rax, [rcx + 4]
cmp rax, r9
jae 0x180008e99
cmp dword [rcx], 0x40547fde
je 0x180008ee0
cmp rdx, 0x40000
jbe 0x180009286
lea rax, [rdx + 8]
cmp rax, r9
jae 0x180009286
mov rcx, qword [rdx]
add rcx, 0x18
cmp rcx, 0x40000
jbe 0x180009286
lea rax, [rcx + 4]
cmp rax, r9
jae 0x180009286
cmp dword [rcx], 0x847b9bf0
jne 0x180009286
lea rcx, [rbx + 0x24c]
cmp rcx, 0x40000
jbe 0x180008f0a
lea rax, [rcx + 4]
cmp rax, r9
jae 0x180008f0a
movss xmm0, dword [rcx]
comiss xmm0, dword [0x18008d9c8]
jae 0x180009286
mov qword [rsp + 0x1a0], rdi
lea rdx, [r8 + 0xa8]
xor edi, edi
movaps xmmword [rsp + 0x170], xmm9
xorps xmm9, xmm9
cmp rdx, 0x40000
jbe 0x180008f6d
lea rax, [rdx + 8]
cmp rax, r9
jae 0x180008f6d
mov rdx, qword [rdx]
mov r10, rdx
lea rcx, [rdx + 0xa8]
cmp rcx, 0x40000
jbe 0x180008f70
lea rax, [rcx + 8]
cmp rax, r9
jae 0x180008f70
movss dword [rcx], xmm9
movss dword [rcx + 4], xmm9
mov rbx, qword [0x1801af828]
jmp 0x180008f70
mov r10, rdi
add rbx, 0x7ec
cmp rbx, 0x40000
jbe 0x180008f8e
lea rax, [rbx + 4]
cmp rax, r9
jae 0x180008f8e
movss xmm9, dword [rbx]
lea rcx, [r10 + 0x190]
cmp rcx, 0x40000
jbe 0x18000927d
lea rax, [rcx + 1]
cmp rax, r9
jae 0x18000927d
cmp byte [rcx], dil
je 0x18000927d
movss xmm0, dword [0x1801af918]
addss xmm0, dword [0x18008d880]
comiss xmm9, xmm0
jbe 0x18000925b
cmp byte [0x1801af8ce], dil
je 0x180009242
movups xmm3, xmmword [str.g_QfS_9]
mov r11, qword [0x1801afc08]
add r11, 0x577830
pextrw eax, xmm3, 7
movups xmmword [rsp + 0x20], xmm3
test ax, ax
je 0x180009158
cmp dword [0x180096008], 2
jl 0x180009118
movdqa xmm2, xmmword [0x18008db20]
mov eax, 5
movdqa xmm4, xmmword [0x18008e040]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movaps xmmword [rsp + 0x180], xmm6
movd xmm6, eax
mov eax, 0x1f
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movd xmm5, eax
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18008db70]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movq xmm1, xmm3
movdqa xmm3, xmmword [0x18008db30]
paddw xmm2, xmmword [0x18008db80]
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, xmm6
movaps xmm6, xmmword [rsp + 0x180]
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18008db70]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x28]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x18008db80]
xorps xmm2, xmm0
movq qword [rsp + 0x28], xmm2
jmp 0x180009158
lea r9, [rsp + 0x20]
mov r8d, edi
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, 0x32
xor word [r9 - 2], ax
cmp r8d, 8
jl 0x180009120
movzx edx, word [rsp + 0x20]
lea rax, [rsp + 0x20]
mov ecx, edi
test dx, dx
je 0x18000918c
nop dword [rax]
inc ecx
lea rax, [rax + 2]
cmp word [rax], di
jne 0x180009170
cmp ecx, 0x40
jb 0x18000918c
mov dword [rsp + 0x40], 0x40
mov edx, edi
jmp 0x1800091b5
lea rcx, [rsp + 0x20]
mov eax, edi
test dx, dx
je 0x1800091ab
nop dword [rax + rax]
inc eax
lea rcx, [rcx + 2]
cmp word [rcx], di
jne 0x1800091a0
mov dword [rsp + 0x40], eax
mov edx, edi
test eax, eax
jle 0x1800091d8
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 0x1800091c0
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 0x18000924b
addss xmm9, dword [0x18008d82c]
movss dword [0x1801af918], xmm9
mov byte [0x1801af8ce], 1
mov rdi, qword [rsp + 0x1a0]
movaps xmm9, xmmword [rsp + 0x170]
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x190
pop rbp
ret
mov byte [0x1801af8ce], dil
jmp 0x18000925b
mov rbx, qword [rsp + 0x1a8]
mov byte [0x1801af8ce], 0
add rsp, 0x190
pop rbp
ret