Function at 0x180009890
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rbx, qword [0x1801bb2b8]
mov rcx, rbx
call fcn.180008220
cmp byte [0x1801bb2a6], 0
mov r8, rax
je 0x180009cc3
lea rdx, [rax + 0x18]
movabs r9, 0x7fffffff0000
cmp rdx, 0x40000
jbe 0x180009cc3
lea rcx, [rdx + 8]
cmp rcx, r9
jae 0x180009906
mov rcx, qword [rdx]
add rcx, 0x18
cmp rcx, 0x40000
jbe 0x180009906
lea rax, [rcx + 4]
cmp rax, r9
jae 0x180009906
cmp dword [rcx], 0x40547fde
je 0x18000994d
cmp rdx, 0x40000
jbe 0x180009cc3
lea rax, [rdx + 8]
cmp rax, r9
jae 0x180009cc3
mov rcx, qword [rdx]
add rcx, 0x18
cmp rcx, 0x40000
jbe 0x180009cc3
lea rax, [rcx + 4]
cmp rax, r9
jae 0x180009cc3
cmp dword [rcx], 0x847b9bf0
jne 0x180009cc3
lea rcx, [rbx + 0x25c]
cmp rcx, 0x40000
jbe 0x180009977
lea rax, [rcx + 4]
cmp rax, r9
jae 0x180009977
movss xmm0, dword [rcx]
comiss xmm0, dword [0x1800972e8]
jae 0x180009cc3
mov qword [rsp + 0x190], rdi
lea rdx, [r8 + 0xb0]
xor edi, edi
movaps xmmword [rsp + 0x170], xmm7
xorps xmm7, xmm7
cmp rdx, 0x40000
jbe 0x1800099d6
lea rax, [rdx + 8]
cmp rax, r9
jae 0x1800099d6
mov rdx, qword [rdx]
mov r10, rdx
lea rcx, [rdx + 0xb0]
cmp rcx, 0x40000
jbe 0x1800099d9
lea rax, [rcx + 8]
cmp rax, r9
jae 0x1800099d9
movss dword [rcx], xmm7
movss dword [rcx + 4], xmm7
mov rbx, qword [0x1801bb2b8]
jmp 0x1800099d9
mov r10, rdi
add rbx, 0x894
cmp rbx, 0x40000
jbe 0x1800099f6
lea rax, [rbx + 4]
cmp rax, r9
jae 0x1800099f6
movss xmm7, dword [rbx]
lea rcx, [r10 + 0x190]
cmp rcx, 0x40000
jbe 0x180009cba
lea rax, [rcx + 1]
cmp rax, r9
jae 0x180009cba
cmp byte [rcx], dil
je 0x180009cba
movss xmm0, dword [0x1801bb3a8]
addss xmm0, dword [0x1800971a0]
comiss xmm7, xmm0
jbe 0x180009c99
cmp byte [0x1801bb35e], dil
je 0x180009c82
movups xmm3, xmmword [str.mJ_hYQX_]
mov r11, qword [0x1801bb698]
add r11, 0x5c6f10
pextrw eax, xmm3, 7
movups xmmword [rsp + 0x20], xmm3
test ax, ax
je 0x180009b96
cmp dword [0x1800a1010], 2
jl 0x180009b59
movdqa xmm2, xmmword [0x180097450]
movdqa xmm4, xmmword [0x180097940]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800974a0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movq xmm1, xmm3
movdqa xmm3, xmmword [0x180097460]
paddw xmm2, xmmword [0x1800974b0]
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
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800974a0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x28]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x1800974b0]
xorps xmm2, xmm0
movq qword [rsp + 0x28], xmm2
jmp 0x180009b96
lea r9, [rsp + 0x20]
mov r8d, edi
mov eax, 0x4d4873ed
lea r9, [r9 + 2]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x35
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x38
xor word [r9 - 2], ax
cmp r8d, 8
jl 0x180009b61
movzx edx, word [rsp + 0x20]
lea rax, [rsp + 0x20]
mov ecx, edi
test dx, dx
je 0x180009bcc
nop word [rax + rax]
inc ecx
lea rax, [rax + 2]
cmp word [rax], di
jne 0x180009bb0
cmp ecx, 0x40
jb 0x180009bcc
mov dword [rsp + 0x40], 0x40
mov edx, edi
jmp 0x180009bf5
lea rcx, [rsp + 0x20]
mov eax, edi
test dx, dx
je 0x180009beb
nop dword [rax + rax]
inc eax
lea rcx, [rcx + 2]
cmp word [rcx], di
jne 0x180009be0
mov dword [rsp + 0x40], eax
mov edx, edi
test eax, eax
jle 0x180009c18
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 0x180009c00
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 0x180009c8a
addss xmm7, dword [0x18009714c]
movss dword [0x1801bb3a8], xmm7
mov byte [0x1801bb35e], 1
mov rdi, qword [rsp + 0x190]
movaps xmm7, xmmword [rsp + 0x170]
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rbp
ret
mov byte [0x1801bb35e], dil
jmp 0x180009c99
mov rbx, qword [rsp + 0x198]
mov byte [0x1801bb35e], 0
add rsp, 0x180
pop rbp
ret