Function at 0x180009990
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rbx, qword [0x1801bb2c0]
mov rcx, rbx
call fcn.180008320
cmp byte [0x1801bb2a9], 0
mov r8, rax
je 0x180009dd3
lea rdx, [rax + 0x18]
movabs r9, 0x7fffffff0000
cmp rdx, 0x40000
jbe 0x180009dd3
lea rcx, [rdx + 8]
cmp rcx, r9
jae 0x180009a06
mov rcx, qword [rdx]
add rcx, 0x18
cmp rcx, 0x40000
jbe 0x180009a06
lea rax, [rcx + 4]
cmp rax, r9
jae 0x180009a06
cmp dword [rcx], 0x40547fde
je 0x180009a4d
cmp rdx, 0x40000
jbe 0x180009dd3
lea rax, [rdx + 8]
cmp rax, r9
jae 0x180009dd3
mov rcx, qword [rdx]
add rcx, 0x18
cmp rcx, 0x40000
jbe 0x180009dd3
lea rax, [rcx + 4]
cmp rax, r9
jae 0x180009dd3
cmp dword [rcx], 0x847b9bf0
jne 0x180009dd3
lea rcx, [rbx + 0x274]
cmp rcx, 0x40000
jbe 0x180009a77
lea rax, [rcx + 4]
cmp rax, r9
jae 0x180009a77
movss xmm0, dword [rcx]
comiss xmm0, dword [0x180097228]
jae 0x180009dd3
mov qword [rsp + 0x190], rdi
lea rdx, [r8 + 0xb0]
xor edi, edi
movaps xmmword [rsp + 0x170], xmm7
xorps xmm7, xmm7
cmp rdx, 0x40000
jbe 0x180009ad6
lea rax, [rdx + 8]
cmp rax, r9
jae 0x180009ad6
mov rdx, qword [rdx]
mov r10, rdx
lea rcx, [rdx + 0xb0]
cmp rcx, 0x40000
jbe 0x180009ad9
lea rax, [rcx + 8]
cmp rax, r9
jae 0x180009ad9
movss dword [rcx], xmm7
movss dword [rcx + 4], xmm7
mov rbx, qword [0x1801bb2c0]
jmp 0x180009ad9
mov r10, rdi
add rbx, 0x8b4
cmp rbx, 0x40000
jbe 0x180009af6
lea rax, [rbx + 4]
cmp rax, r9
jae 0x180009af6
movss xmm7, dword [rbx]
lea rcx, [r10 + 0x1a0]
cmp rcx, 0x40000
jbe 0x180009dca
lea rax, [rcx + 1]
cmp rax, r9
jae 0x180009dca
cmp byte [rcx], dil
je 0x180009dca
movss xmm0, dword [0x1801bb3a8]
addss xmm0, dword [0x1800970e0]
comiss xmm7, xmm0
jbe 0x180009da9
cmp byte [0x1801bb361], dil
je 0x180009d92
movups xmm3, xmmword [str.g_QfS_9]
mov r11, qword [0x1801bb698]
add r11, 0x628100
pextrw eax, xmm3, 7
movups xmmword [rsp + 0x20], xmm3
test ax, ax
je 0x180009ca8
cmp dword [0x1800a1010], 2
jl 0x180009c61
movdqa xmm2, xmmword [0x180097390]
movdqa xmm4, xmmword [0x1800978b0]
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 [0x1800973e0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movq xmm1, xmm3
movdqa xmm3, xmmword [0x1800973a0]
paddw xmm2, xmmword [0x1800973f0]
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 [0x1800973e0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x28]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x1800973f0]
xorps xmm2, xmm0
movq qword [rsp + 0x28], xmm2
jmp 0x180009ca8
lea r9, [rsp + 0x20]
mov r8d, edi
nop dword [rax]
mov eax, 0x8d3dcb09
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, 0x3a
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x32
xor word [r9 - 2], ax
cmp r8d, 8
jl 0x180009c70
movzx edx, word [rsp + 0x20]
lea rax, [rsp + 0x20]
mov ecx, edi
test dx, dx
je 0x180009cdc
nop dword [rax]
inc ecx
lea rax, [rax + 2]
cmp word [rax], di
jne 0x180009cc0
cmp ecx, 0x40
jb 0x180009cdc
mov dword [rsp + 0x40], 0x40
mov edx, edi
jmp 0x180009d05
lea rcx, [rsp + 0x20]
mov eax, edi
test dx, dx
je 0x180009cfb
nop dword [rax + rax]
inc eax
lea rcx, [rcx + 2]
cmp word [rcx], di
jne 0x180009cf0
mov dword [rsp + 0x40], eax
mov edx, edi
test eax, eax
jle 0x180009d28
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 0x180009d10
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 0x180009d9a
addss xmm7, dword [0x18009708c]
movss dword [0x1801bb3a8], xmm7
mov byte [0x1801bb361], 1
mov rdi, qword [rsp + 0x190]
movaps xmm7, xmmword [rsp + 0x170]
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rbp
ret
mov byte [0x1801bb361], dil
jmp 0x180009da9
mov rbx, qword [rsp + 0x198]
mov byte [0x1801bb361], 0
add rsp, 0x180
pop rbp
ret