Function at 0x180016f10
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbp
push rbx
push rsi
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x158
test byte [rcx + 0xc], 0x42
mov r15d, r9d
mov rsi, qword [0x1800adca0]
mov rbx, rcx
jne 0x1800179a8
cmp byte [rcx + 0xa8], 0
jg 0x1800179a8
cmp byte [rcx + 0xa9], 0
jg 0x1800179a8
cmp byte [rcx + 0x8f], 0
je 0x1800179a8
movss xmm1, dword [rsi + 0x3ba8]
movss xmm0, dword [rcx + 0x48]
movaps xmm2, xmm1
mulss xmm1, dword [0x18004e828]
mov qword [rax - 0x28], rdi
mulss xmm2, dword [0x18004e868]
mov qword [rax - 0x30], r12
movzx r12d, byte [rsi + 0x75]
mov qword [rax - 0x40], r14
movaps xmmword [rax - 0x68], xmm7
movaps xmmword [rax - 0x78], xmm8
movaps xmmword [rax - 0x88], xmm9
movaps xmmword [rax - 0x98], xmm10
movaps xmmword [rax - 0xb8], xmm12
movaps xmmword [rax - 0xc8], xmm13
xorps xmm13, xmm13
movaps xmmword [rax - 0xe8], xmm15
movss xmm15, dword [0x18004e85c]
movaps xmmword [rax - 0xd8], xmm14
addss xmm0, xmm15
mov byte [rsp + 0x32], 0
addss xmm0, xmm1
maxss xmm2, xmm0
cvttss2si eax, xmm2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x18004e84c]
cvttss2si eax, xmm0
movd xmm9, eax
cvtdq2ps xmm9, xmm9
movss dword [rsp + 0x38], xmm9
test r12b, r12b
je 0x18001702d
movss xmm14, dword [0x18004e878]
jmp 0x180017031
xorps xmm14, xmm14
cmp byte [0x18004e10f], 0
movss xmm7, dword [0x18004e8b0]
mov rax, qword [0x18004e108]
movaps xmm10, xmm7
movss dword [rsp + 0x48], xmm7
movaps xmm8, xmm7
movss dword [rsp + 0x40], xmm7
mov qword [rbp + 0x80], rax
movaps xmmword [rsp + 0x120], xmm6
mov dword [rsp + 0x4c], 0x7f7fffff
mov dword [rsp + 0x44], 0x7f7fffff
mov dword [rcx + 0x12c], 1
je 0x1800171c3
xor r8d, r8d
cmp dword [0x1800adb58], 2
jl 0x180017182
movdqa xmm2, xmmword [0x18004e8e0]
movdqa xmm4, xmmword [0x18004e960]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.7777]
psubd xmm2, xmm0
movd xmm0, dword [rbp + 0x80]
andps xmm2, xmmword [0x18004e950]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x18004e970]
xorps xmm2, xmm0
movd dword [rbp + 0x80], xmm2
movdqa xmm2, xmmword [0x18004e8f0]
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.7777]
psubd xmm2, xmm0
movd xmm0, dword [rbp + 0x84]
andps xmm2, xmmword [0x18004e950]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x18004e970]
xorps xmm2, xmm0
movd dword [rbp + 0x84], xmm2
jmp 0x1800171c3
lea r9, [rbp + 0x80]
nop dword [rax]
mov eax, 0x29e4129f
lea r9, [r9 + 1]
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x37
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x36
xor byte [r9 - 1], al
cmp r8d, 8
jl 0x180017190
lea rcx, [rbp + 0x80]
mov qword [rsp + 0x140], r13
call fcn.1800109d0
mov r14, qword [rbp + 0xa8]
xor edi, edi
movss xmm12, dword [0x18004e8bc]
test r15d, r15d
jle 0x180017516
mov r13, qword [rbp + 0xa0]
lea r15, [0x18005b014]
movaps xmmword [rsp + 0xd0], xmm11
nop dword [rax]
movss xmm0, dword [rbx + 0x10]
movss xmm1, dword [rbx + 0x14]
movaps xmm3, xmm0
addss xmm3, dword [rbx + 0x18]
movaps xmm2, xmm1
addss xmm2, dword [rbx + 0x1c]
subss xmm3, xmm0
subss xmm2, xmm1
mulss xmm3, dword [r15 - 4]
mulss xmm2, dword [r15]
addss xmm3, xmm0
movss xmm0, dword [r15 + 4]
movaps xmm5, xmm0
mulss xmm0, xmm14
addss xmm2, xmm1
mulss xmm5, xmm9
movss xmm1, dword [r15 + 8]
movaps xmm4, xmm1
mulss xmm1, xmm14
addss xmm5, xmm3
mulss xmm4, xmm9
subss xmm3, xmm0
addss xmm4, xmm2
subss xmm2, xmm1
movss dword [rsp + 0x58], xmm5
comiss xmm3, xmm5
movss dword [rsp + 0x50], xmm3
movss dword [rsp + 0x54], xmm2
movss dword [rsp + 0x5c], xmm4
jbe 0x1800172a4
movss dword [rsp + 0x50], xmm5
movss dword [rsp + 0x58], xmm3
comiss xmm2, xmm4
jbe 0x1800172b5
movss dword [rsp + 0x54], xmm4
movss dword [rsp + 0x5c], xmm2
mov edx, edi
mov rcx, rbx
call fcn.180009230
lea r9, [rbp + 0x80]
mov dword [rsp + 0x20], 0x40800
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.18002ba50
movzx edx, byte [rsp + 0x30]
movzx ecx, byte [rbp + 0x80]
test dl, dl
jne 0x1800172f7
test cl, cl
je 0x18001749a
mov eax, edi
not eax
and eax, 1
add eax, 5
mov dword [rsi + 0x41d8], eax
test cl, cl
je 0x18001749a
cmp word [rsi + 0x363a], 2
jne 0x180017370
test edi, edi
jne 0x180017370
mov r8, qword [rbp + 0x88]
lea rcx, [rsp + 0x70]
mov rdx, rbx
call fcn.1800068b0
mov byte [rsp + 0x32], 1
movss xmm8, dword [rax]
movss xmm0, dword [rax + 4]
movss dword [rsp + 0x40], xmm8
movss dword [rsp + 0x44], xmm0
call fcn.180006ea0
movzx ecx, byte [rbp + 0x80]
movzx edx, byte [rsp + 0x30]
test cl, cl
je 0x1800174ae
mov ecx, 0x21
jmp 0x1800174b9
movss xmm9, dword [r15]
ucomiss xmm9, xmm15
jp 0x180017385
jne 0x180017385
movss xmm6, dword [r14 + 4]
jmp 0x180017389
movaps xmm6, xmm12
movss xmm8, dword [r15 - 4]
ucomiss xmm8, xmm15
jp 0x18001739e
jne 0x18001739e
movss xmm5, dword [r14]
jmp 0x1800173a2
movaps xmm5, xmm12
ucomiss xmm9, xmm13
jp 0x1800173b2
jne 0x1800173b2
movss xmm11, dword [r14 + 0xc]
jmp 0x1800173b6
movaps xmm11, xmm7
ucomiss xmm8, xmm13
jp 0x1800173c6
jne 0x1800173c6
movss xmm10, dword [r14 + 8]
jmp 0x1800173ca
movaps xmm10, xmm7
movss xmm4, dword [r15 + 4]
movss xmm3, dword [r15 + 8]
movaps xmm0, xmm4
movss xmm2, dword [rsp + 0x38]
movaps xmm1, xmm3
xorps xmm2, xmmword [0x18004e9a0]
mulss xmm0, xmm14
mulss xmm4, xmm2
mulss xmm3, xmm2
subss xmm4, xmm0
mulss xmm1, xmm14
subss xmm3, xmm1
mulss xmm4, xmm8
addss xmm4, xmm0
mulss xmm3, xmm9
movss xmm0, dword [rsi + 0xd0c]
subss xmm0, dword [rsi + 0x3eb4]
addss xmm3, xmm1
addss xmm4, xmm0
movss xmm0, dword [rsi + 0xd10]
subss xmm0, dword [rsi + 0x3eb8]
addss xmm0, xmm3
comiss xmm6, xmm0
ja 0x18001744a
movaps xmm6, xmm11
minss xmm6, xmm0
comiss xmm5, xmm4
ja 0x180017457
movaps xmm5, xmm10
minss xmm5, xmm4
unpcklps xmm5, xmm6
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x48]
movsd qword [rsp + 0x60], xmm5
lea r8, [r15 - 4]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180006280
movzx ecx, byte [rbp + 0x80]
movzx edx, byte [rsp + 0x30]
movss xmm8, dword [rsp + 0x40]
movss xmm9, dword [rsp + 0x38]
test edi, edi
je 0x18001735e
test cl, cl
jne 0x180017366
test dl, dl
je 0x1800174f0
xor ecx, ecx
test dl, dl
setne cl
add rcx, 0x1f
mov rax, qword [0x1800adca0]
add rcx, rcx
movups xmm0, xmmword [rax + rcx*8 + 0x3840]
lea rcx, [rsp + 0x60]
movups xmmword [rsp + 0x60], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 0x3778]
movss dword [rsp + 0x6c], xmm0
call fcn.1800072c0
mov dword [r13], eax
inc edi
add r15, 0x18
add r13, 4
cmp edi, dword [rbp + 0x98]
jl 0x180017210
movaps xmm11, xmmword [rsp + 0xd0]
movss xmm10, dword [rsp + 0x48]
movaps xmm15, xmmword [rsp + 0x90]
xor edi, edi
movaps xmm14, xmmword [rsp + 0xa0]
neg r12b
sbb rax, rax
and eax, 4
mov qword [rsp + 0x60], rax
jbe 0x1800176e8
movss xmm6, dword [0x18004e818]
lea r15, [0x18005b084]
movss xmm8, dword [0x18004e878]
cmp edi, 1
jbe 0x180017577
mov r12d, 3
mov qword [rsp + 0x78], 0x3eb8
mov r13d, 0xd10
lea rax, [rsp + 0x3c]
jmp 0x180017591
mov r12d, 4
mov qword [rsp + 0x78], 0x3eb4
mov r13d, 0xd0c
lea rax, [rsp + 0x38]
movaps xmm3, xmm9
movss dword [rsp + 0x20], xmm8
mov r8d, edi
mov qword [rsp + 0x50], rax
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.180009820
lea edx, [rdi + 4]
mov rcx, rbx
call fcn.180009230
lea r9, [rbp + 0x80]
mov dword [rsp + 0x20], 0x40800
lea r8, [rsp + 0x31]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.18002ba50
cmp byte [rsp + 0x31], 0
movzx eax, byte [rbp + 0x80]
je 0x1800175f5
movss xmm0, dword [rsi + 0x3e7c]
comiss xmm0, xmm6
ja 0x1800175fd
test al, al
je 0x1800176c8
mov dword [rsi + 0x41d8], r12d
test al, al
je 0x1800176c8
mov rax, qword [rbp + 0x90]
mov dword [rax], edi
cmp edi, 3
jne 0x180017763
movss xmm2, dword [r14 + 4]
movaps xmm3, xmm12
movaps xmm4, xmm7
movaps xmm5, xmm7
mov rax, qword [rsp + 0x78]
movsd xmm0, qword [rbx + 0x10]
movss xmm1, dword [rsi + r13]
movsd qword [rsp + 0x38], xmm0
subss xmm1, dword [rax + rsi]
mov rax, qword [rsp + 0x50]
addss xmm1, xmm8
movss dword [rax], xmm1
movss xmm0, dword [rsp + 0x3c]
comiss xmm2, xmm0
ja 0x180017669
movaps xmm2, xmm4
minss xmm2, xmm0
movss xmm0, dword [rsp + 0x38]
comiss xmm3, xmm0
ja 0x18001767b
movaps xmm3, xmm5
minss xmm3, xmm0
movss xmm1, dword [r15 - 0xc]
lea rax, [rsp + 0x40]
movss xmm0, dword [r15 - 8]
lea r9, [rsp + 0x48]
minss xmm1, dword [r15 - 4]
minss xmm0, dword [r15]
unpcklps xmm3, xmm2
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x38]
movsd qword [rsp + 0x38], xmm3
mov rcx, rbx
mov qword [rsp + 0x20], rax
movss dword [rsp + 0x70], xmm1
movss dword [rsp + 0x74], xmm0
call fcn.180006280
inc edi
add r15, 0x1c
sub qword [rsp + 0x60], 1
jne 0x180017556
movss xmm10, dword [rsp + 0x48]
movss xmm8, dword [rsp + 0x40]
mov rax, qword [0x1800adca0]
movaps xmm12, xmmword [rsp + 0xc0]
mov r13, qword [rsp + 0x140]
mov r12, qword [rsp + 0x148]
mov rcx, qword [rax + 0x3e38]
mov rdi, qword [rsp + 0x150]
dec dword [rcx + 0xc8]
mov dword [rbx + 0x12c], 0
mov rax, qword [rsi + 0x41b0]
test rax, rax
je 0x1800178c6
cmp qword [rax + 0x350], rbx
jne 0x1800178c6
mov eax, dword [rsi + 0x4080]
cmp eax, 2
jne 0x1800177a0
cmp byte [rsi + 0xd25], 0
je 0x1800178c6
mov edx, 1
jmp 0x1800177ae
movaps xmm2, xmm12
cmp edi, 1
jne 0x180017776
movss xmm3, dword [r14]
jmp 0x180017628
movaps xmm3, xmm12
cmp edi, 2
jne 0x18001778a
movss xmm4, dword [r14 + 0xc]
jmp 0x18001762b
movaps xmm4, xmm7
test edi, edi
jne 0x18001762b
movss xmm5, dword [r14 + 8]
jmp 0x18001762e
cmp eax, 3
jne 0x1800178c6
mov edx, 4
movaps xmm3, xmm13
movss dword [rsp + 0x20], xmm13
xor r8d, r8d
lea rcx, [rbp + 0x80]
call fcn.180009460
movss xmm3, dword [rax]
ucomiss xmm3, xmm13
movss xmm9, dword [rax + 4]
jp 0x1800177e6
jne 0x1800177e6
ucomiss xmm9, xmm13
jp 0x1800177e6
je 0x1800178c6
movss xmm0, dword [rsi + 0x18]
lea rcx, [rsp + 0x60]
mulss xmm0, dword [0x18004e8a4]
movss xmm1, dword [rsi + 0x68]
minss xmm1, dword [rsi + 0x6c]
mulss xmm1, xmm0
movss xmm0, dword [r14]
subss xmm0, dword [rbx + 0x10]
cvttss2si eax, xmm1
subss xmm0, dword [rbx + 0x18]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
movaps xmm6, xmm2
mulss xmm9, xmm2
mulss xmm6, xmm3
maxss xmm6, xmm0
movss xmm0, dword [r14 + 4]
subss xmm0, dword [rbx + 0x14]
subss xmm0, dword [rbx + 0x1c]
mov byte [rsi + 0x41d0], 0
mov byte [rsi + 0x408b], 1
mov rax, qword [0x1800adca0]
maxss xmm9, xmm0
movups xmm0, xmmword [rax + 0x3a50]
movups xmmword [rsp + 0x60], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 0x3778]
movss dword [rsp + 0x6c], xmm0
call fcn.1800072c0
mov rcx, qword [rbp + 0xa0]
lea r8, [rbp + 0x80]
mov rdx, rbx
mov dword [rcx], eax
lea rcx, [rsp + 0x60]
addss xmm6, dword [rbx + 0x20]
addss xmm9, dword [rbx + 0x24]
movss dword [rbp + 0x80], xmm6
movss dword [rbp + 0x84], xmm9
call fcn.1800068b0
movss xmm0, dword [rax + 4]
movss xmm8, dword [rax]
movss dword [rsp + 0x44], xmm0
ucomiss xmm8, xmm7
mov r14, qword [rsp + 0x138]
movaps xmm9, xmmword [rsp + 0xf0]
movaps xmm6, xmmword [rsp + 0x120]
jp 0x1800178e7
je 0x18001791b
test dword [rbx + 0xc], 0x100
movss xmm0, dword [rsp + 0x44]
movss dword [rbx + 0x24], xmm0
movss dword [rbx + 0x20], xmm8
mov rcx, qword [0x1800adca0]
jne 0x18001791b
comiss xmm13, dword [rcx + 0x530c]
jb 0x18001791b
mov eax, dword [rcx + 0x1c]
mov dword [rcx + 0x530c], eax
movaps xmm8, xmmword [rsp + 0x100]
ucomiss xmm10, xmm7
movaps xmm7, xmmword [rsp + 0x110]
jp 0x180017934
je 0x18001797a
test dword [rbx + 0xc], 0x100
cvttss2si eax, xmm10
movd xmm1, eax
cvttss2si eax, dword [rsp + 0x4c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x10], xmm1
movss dword [rbx + 0x14], xmm0
mov rdx, qword [0x1800adca0]
jne 0x18001797a
comiss xmm13, dword [rdx + 0x530c]
jb 0x18001797a
mov ecx, dword [rdx + 0x1c]
mov dword [rdx + 0x530c], ecx
movsd xmm0, qword [rbx + 0x20]
movzx eax, byte [rsp + 0x32]
movaps xmm13, xmmword [rsp + 0xb0]
movaps xmm10, xmmword [rsp + 0xe0]
movsd qword [rbx + 0x18], xmm0
add rsp, 0x158
pop r15
pop rsi
pop rbx
pop rbp
ret
xor al, al
add rsp, 0x158
pop r15
pop rsi
pop rbx
pop rbp
ret