Function at 0x18008c018
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 rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x128
test byte [rcx + 0xc], 0x42
mov ebx, r9d
mov rsi, qword [0x1800cdb78]
mov rdi, rcx
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
movaps xmmword [rax - 0x78], xmm8
movaps xmmword [rax - 0x88], xmm9
movaps xmmword [rax - 0x98], xmm10
movaps xmmword [rax - 0xa8], xmm11
movaps xmmword [rax - 0xb8], xmm12
movaps xmmword [rax - 0xc8], xmm14
movaps xmmword [rax - 0xd8], xmm15
jne 0x18008c9dc
xor r15d, r15d
cmp byte [rcx + 0xc8], r15b
jg 0x18008c9dc
cmp byte [rcx + 0xc9], r15b
jg 0x18008c9dc
cmp byte [rcx + 0xaf], r15b
je 0x18008c9dc
movss xmm1, dword [rsi + 0x3c10]
xorps xmm12, xmm12
movss xmm0, dword [rcx + 0x50]
movaps xmm2, xmm1
addss xmm0, dword [0x180005f00]
mulss xmm1, dword [0x180005ed4]
mov r12b, byte [rsi + 0x7e]
mulss xmm2, dword [0x180008a54]
mov byte [rsp + 0x32], r15b
mov byte [rsp + 0x31], r12b
addss xmm0, xmm1
maxss xmm2, xmm0
cvttss2si eax, xmm2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x180005ef4]
cvttss2si eax, xmm0
movd xmm10, eax
cvtdq2ps xmm10, xmm10
movss dword [rsp + 0x68], xmm10
test r12b, r12b
je 0x18008c135
movss xmm15, dword [0x180005f70]
jmp 0x18008c139
xorps xmm15, xmm15
movss xmm9, dword [0x180006028]
lea r9, [rbp + 0x70]
movaps xmm7, xmm9
movss dword [rsp + 0x3c], xmm9
movaps xmm6, xmm9
movss dword [rsp + 0x50], xmm7
movss dword [rsp + 0x38], xmm6
movaps xmm8, xmm9
mov dword [rsp + 0x54], 0x7f7fffff
mov r8d, r15d
mov dword [rcx + 0x150], 1
mov dword [rbp + 0x70], 0x66716111
mov dword [rbp + 0x74], 0x397d6d7f
mov eax, 0x1f7047dd
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x39
mov al, r8b
inc r8d
sub al, cl
add al, 0x32
xor byte [r9], al
inc r9
cmp r8d, 8
jl 0x18008c188
lea rcx, [rbp + 0x70]
call fcn.180086434
movss xmm14, dword [0x180008390]
mov r14d, r15d
test ebx, ebx
jle 0x18008c52a
mov r13, qword [rbp + 0x90]
lea r15, [0x180008954]
mov r12, qword [rbp + 0x78]
movss xmm0, dword [r15 + 4]
movss xmm1, dword [r15 + 8]
movaps xmm5, xmm0
movss xmm3, dword [rdi + 0x18]
movaps xmm4, xmm1
addss xmm3, dword [rdi + 0x20]
movss xmm2, dword [rdi + 0x1c]
addss xmm2, dword [rdi + 0x24]
mulss xmm5, xmm10
subss xmm3, dword [rdi + 0x18]
mulss xmm4, xmm10
subss xmm2, dword [rdi + 0x1c]
mulss xmm0, xmm15
mulss xmm3, dword [r15 - 4]
mulss xmm2, dword [r15]
addss xmm3, dword [rdi + 0x18]
mulss xmm1, xmm15
addss xmm2, dword [rdi + 0x1c]
addss xmm5, xmm3
subss xmm3, xmm0
addss xmm4, xmm2
subss xmm2, xmm1
movss dword [rsp + 0x60], xmm5
comiss xmm3, xmm5
movss dword [rsp + 0x58], xmm3
movss dword [rsp + 0x5c], xmm2
movss dword [rsp + 0x64], xmm4
jbe 0x18008c279
movss dword [rsp + 0x58], xmm5
movss dword [rsp + 0x60], xmm3
comiss xmm2, xmm4
jbe 0x18008c28a
movss dword [rsp + 0x5c], xmm4
movss dword [rsp + 0x64], xmm2
movsxd rax, dword [rdi + 0xe8]
lea rcx, [rsp + 0x40]
mov r8, qword [rdi + 0xf0]
mov edx, 4
mov dword [rsp + 0x40], r14d
mov r8d, dword [r8 + rax*4 - 4]
call fcn.1800806d0
mov r9d, 8
lea rcx, [rsp + 0x58]
xor r8d, r8d
mov edx, eax
mov ebx, eax
call fcn.1800814bc
lea r9, [rbp + 0x70]
mov dword [rsp + 0x20], 0x40800
lea r8, [rsp + 0x30]
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.1800a6aec
mov r8b, byte [rsp + 0x30]
mov dl, byte [rbp + 0x70]
test r8b, r8b
jne 0x18008c2fa
test dl, dl
je 0x18008c4a8
mov eax, r14d
not eax
and eax, 1
add eax, 5
mov dword [rsi + 0x4a38], eax
test dl, dl
je 0x18008c4a8
mov eax, 2
cmp word [rsi + 0x3742], ax
jne 0x18008c368
test r14d, r14d
jne 0x18008c368
mov r8, r12
lea rcx, [rsp + 0x78]
mov rdx, rdi
call fcn.18007cc68
xor edx, edx
mov byte [rsp + 0x32], 1
xor ecx, ecx
movss xmm6, dword [rax]
movss xmm8, dword [rax + 4]
movss dword [rsp + 0x38], xmm6
movss dword [rsp + 0x3c], xmm8
call fcn.180088f0c
mov dl, byte [rbp + 0x70]
mov r8b, byte [rsp + 0x30]
jmp 0x18008c4b6
movss xmm11, dword [r15]
ucomiss xmm11, dword [0x180005f00]
jp 0x18008c387
jne 0x18008c387
mov rax, qword [rbp + 0x98]
movss xmm6, dword [rax + 4]
jmp 0x18008c392
mov rax, qword [rbp + 0x98]
movaps xmm6, xmm14
lea r8, [r15 - 4]
movss xmm10, dword [r8]
ucomiss xmm10, dword [0x180005f00]
jp 0x18008c3ad
jne 0x18008c3ad
movss xmm4, dword [rax]
jmp 0x18008c3b1
movaps xmm4, xmm14
ucomiss xmm11, xmm12
jp 0x18008c3c1
jne 0x18008c3c1
movss xmm8, dword [rax + 0xc]
jmp 0x18008c3c5
movaps xmm8, xmm9
ucomiss xmm10, xmm12
jp 0x18008c3d4
jne 0x18008c3d4
movss xmm7, dword [rax + 8]
jmp 0x18008c3d8
movaps xmm7, xmm9
movss xmm5, dword [r15 + 4]
movss xmm3, dword [r15 + 8]
movaps xmm0, xmm5
movss xmm2, dword [rsp + 0x68]
movaps xmm1, xmm3
xorps xmm2, xmmword [0x180008340]
mulss xmm0, xmm15
mulss xmm5, xmm2
mulss xmm3, xmm2
subss xmm5, xmm0
mulss xmm1, xmm15
subss xmm3, xmm1
mulss xmm5, xmm10
addss xmm5, xmm0
mulss xmm3, xmm11
movss xmm0, dword [rsi + 0xdfc]
subss xmm0, dword [rsi + 0x3f24]
addss xmm3, xmm1
addss xmm5, xmm0
movss xmm0, dword [rsi + 0xe00]
subss xmm0, dword [rsi + 0x3f28]
addss xmm0, xmm3
comiss xmm6, xmm0
ja 0x18008c458
movaps xmm6, xmm8
minss xmm6, xmm0
comiss xmm4, xmm5
ja 0x18008c464
movaps xmm4, xmm7
minss xmm4, xmm5
lea rax, [rsp + 0x38]
movss dword [rsp + 0x70], xmm4
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x70]
movss dword [rsp + 0x74], xmm6
mov rcx, rdi
call fcn.18007c5b0
mov dl, byte [rbp + 0x70]
mov r8b, byte [rsp + 0x30]
movss xmm8, dword [rsp + 0x3c]
movss xmm6, dword [rsp + 0x38]
movss xmm10, dword [rsp + 0x68]
test r14d, r14d
je 0x18008c4b6
test dl, dl
jne 0x18008c4b6
test r8b, r8b
je 0x18008c507
mov rcx, qword [0x1800cdb78]
neg r8b
mov r8d, 0x21
sbb rax, rax
neg rax
add rax, 0x1f
test dl, dl
cmovne rax, r8
add rax, rax
movdqu xmm0, xmmword [rcx + rax*8 + 0x38a8]
movups xmmword [rsp + 0x40], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rcx + 0x37e0]
lea rcx, [rsp + 0x40]
movss dword [rsp + 0x4c], xmm0
call fcn.18007d6d0
mov dword [r13], eax
inc r14d
add r15, 0x18
add r13, 4
cmp r14d, dword [rbp + 0x88]
jl 0x18008c1e7
movss xmm7, dword [rsp + 0x50]
mov r12b, byte [rsp + 0x31]
xor r14d, r14d
neg r12b
sbb r12, r12
and r12d, 4
jbe 0x18008c73d
movss xmm6, dword [0x180005f70]
lea r15, [0x1800089c4]
cmp r14d, 1
jbe 0x18008c571
mov r13d, 3
mov qword [rsp + 0x70], 0xe00
mov qword [rsp + 0x68], 0x3f28
lea rax, [rsp + 0x44]
jmp 0x18008c58e
mov r13d, 4
mov qword [rsp + 0x70], 0xdfc
mov qword [rsp + 0x68], 0x3f24
lea rax, [rsp + 0x40]
movaps xmm3, xmm10
movss dword [rsp + 0x20], xmm6
mov r8d, r14d
mov qword [rsp + 0x58], rax
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.18007fd80
mov r8, qword [rdi + 0xf0]
lea eax, [r14 + 4]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x40]
movsxd rax, dword [rdi + 0xe8]
mov edx, 4
mov r8d, dword [r8 + rax*4 - 4]
call fcn.1800806d0
mov r9d, 8
lea rcx, [rbp - 0x80]
xor r8d, r8d
mov edx, eax
mov ebx, eax
call fcn.1800814bc
lea r9, [rbp + 0x70]
mov dword [rsp + 0x20], 0x40800
lea r8, [rsp + 0x31]
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.1800a6aec
cmp byte [rsp + 0x31], 0
mov al, byte [rbp + 0x70]
je 0x18008c623
movss xmm0, dword [rsi + 0x3f08]
comiss xmm0, dword [0x180008a30]
ja 0x18008c62b
test al, al
je 0x18008c719
mov dword [rsi + 0x4a38], r13d
test al, al
je 0x18008c719
mov rax, qword [rbp + 0x80]
mov dword [rax], r14d
cmp r14d, 3
jne 0x18008c65c
mov rax, qword [rbp + 0x98]
movaps xmm3, xmm14
movss xmm2, dword [rax + 4]
jmp 0x18008c675
movaps xmm2, xmm14
cmp r14d, 1
jne 0x18008c7a4
mov rax, qword [rbp + 0x98]
movss xmm3, dword [rax]
movaps xmm4, xmm9
movaps xmm5, xmm9
mov rax, qword [rsp + 0x70]
movsd xmm0, qword [rdi + 0x18]
movsd qword [rsp + 0x40], xmm0
movss xmm1, dword [rax + rsi]
mov rax, qword [rsp + 0x68]
subss xmm1, dword [rax + rsi]
mov rax, qword [rsp + 0x58]
addss xmm1, xmm6
movss dword [rax], xmm1
comiss xmm2, dword [rsp + 0x44]
ja 0x18008c6b9
movaps xmm2, xmm4
minss xmm2, dword [rsp + 0x44]
comiss xmm3, dword [rsp + 0x40]
ja 0x18008c6c9
movaps xmm3, xmm5
minss xmm3, dword [rsp + 0x40]
movss xmm0, dword [r15 - 0xc]
lea rax, [rsp + 0x38]
movss xmm1, dword [r15 - 8]
lea r9, [rsp + 0x50]
minss xmm0, dword [r15 - 4]
minss xmm1, dword [r15]
lea r8, [rsp + 0x78]
movss dword [rsp + 0x40], xmm3
lea rdx, [rsp + 0x40]
movss dword [rsp + 0x44], xmm2
mov rcx, rdi
mov qword [rsp + 0x20], rax
movss dword [rsp + 0x78], xmm0
movss dword [rsp + 0x7c], xmm1
call fcn.18007c5b0
inc r14d
add r15, 0x1c
sub r12, 1
jne 0x18008c54c
movss xmm7, dword [rsp + 0x50]
movss xmm8, dword [rsp + 0x3c]
movss xmm6, dword [rsp + 0x38]
mov rax, qword [0x1800cdb78]
mov rcx, qword [rax + 0x3eb0]
dec dword [rcx + 0xe8]
and dword [rdi + 0x150], 0
mov rax, qword [rsi + 0x4a00]
test rax, rax
je 0x18008c97f
cmp qword [rax + 0x370], rdi
jne 0x18008c97f
mov eax, dword [rsi + 0x48c8]
cmp eax, 2
jne 0x18008c7e1
cmp byte [rsi + 0xe15], 0
je 0x18008c97f
mov edx, 0x201
mov dword [rsp + 0x20], 0x204
lea r9d, [rdx + 2]
lea r8d, [rdx + 1]
jmp 0x18008c803
mov eax, 2
movaps xmm3, xmm14
cmp r14d, eax
jne 0x18008c7c3
mov rax, qword [rbp + 0x98]
movss xmm4, dword [rax + 0xc]
jmp 0x18008c679
movaps xmm4, xmm9
test r14d, r14d
jne 0x18008c679
mov rax, qword [rbp + 0x98]
movss xmm5, dword [rax + 8]
jmp 0x18008c67d
movaps xmm2, xmm12
movaps xmm3, xmm12
cmp eax, 3
jne 0x18008c815
mov edx, 0x26f
mov dword [rsp + 0x20], 0x272
lea r9d, [rdx + 2]
lea r8d, [rdx + 1]
lea rcx, [rbp + 0x70]
call fcn.18007fa44
movss xmm3, dword [rax + 4]
movss xmm2, dword [rax]
ucomiss xmm2, xmm12
jp 0x18008c829
jne 0x18008c829
ucomiss xmm3, xmm12
jp 0x18008c829
je 0x18008c97f
movss xmm1, dword [rsi + 0x70]
lea rcx, [rbp - 0x80]
minss xmm1, dword [rsi + 0x74]
movss xmm0, dword [rsi + 0x18]
mulss xmm0, dword [0x180008a6c]
mov rax, qword [rbp + 0x98]
mulss xmm1, xmm0
mulss xmm2, xmm1
mulss xmm3, xmm1
addss xmm2, dword [rsi + 0x4a2c]
addss xmm3, dword [rsi + 0x4a30]
movss dword [rsi + 0x4a2c], xmm2
movss dword [rsi + 0x4a30], xmm3
movss xmm0, dword [rax]
subss xmm0, dword [rdi + 0x18]
movss xmm1, dword [rax + 4]
subss xmm1, dword [rdi + 0x1c]
subss xmm0, dword [rdi + 0x20]
subss xmm1, dword [rdi + 0x24]
mov byte [rsi + 0x4a20], 0
mov byte [rsi + 0x48d3], 1
maxss xmm2, xmm0
maxss xmm3, xmm1
movss dword [rsi + 0x4a2c], xmm2
movss dword [rsi + 0x4a30], xmm3
mov rax, qword [0x1800cdb78]
movdqu xmm0, xmmword [rax + 0x3ab8]
movups xmmword [rbp - 0x80], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 0x37e0]
movss dword [rbp - 0x74], xmm0
call fcn.18007d6d0
mov rcx, qword [rbp + 0x90]
mov dword [rcx], eax
cvttss2si eax, dword [rsi + 0x4a2c]
movd xmm11, eax
cvttss2si eax, dword [rsi + 0x4a30]
cvtdq2ps xmm11, xmm11
movd xmm10, eax
ucomiss xmm11, xmm12
cvtdq2ps xmm10, xmm10
jp 0x18008c91e
jne 0x18008c91e
ucomiss xmm10, xmm12
jp 0x18008c91e
je 0x18008c97f
movaps xmm0, xmm11
lea r8, [rbp + 0x70]
addss xmm0, dword [rdi + 0x28]
movaps xmm1, xmm10
lea rcx, [rsp + 0x78]
addss xmm1, dword [rdi + 0x2c]
mov rdx, rdi
movss dword [rbp + 0x70], xmm0
movss dword [rbp + 0x74], xmm1
call fcn.18007cc68
movss xmm0, dword [rsi + 0x4a2c]
movss xmm1, dword [rsi + 0x4a30]
subss xmm0, xmm11
subss xmm1, xmm10
movss xmm6, dword [rax]
movss xmm8, dword [rax + 4]
movss dword [rsi + 0x4a2c], xmm0
movss dword [rsi + 0x4a30], xmm1
ucomiss xmm6, xmm9
jp 0x18008c987
je 0x18008c99a
mov rcx, rdi
movss dword [rdi + 0x28], xmm6
movss dword [rdi + 0x2c], xmm8
call fcn.1800820ec
ucomiss xmm7, xmm9
jp 0x18008c9a2
je 0x18008c9cc
cvttss2si ecx, xmm7
movd xmm1, ecx
cvttss2si ecx, dword [rsp + 0x54]
cvtdq2ps xmm1, xmm1
movd xmm0, ecx
mov rcx, rdi
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x18], xmm1
movss dword [rdi + 0x1c], xmm0
call fcn.1800820ec
movsd xmm0, qword [rdi + 0x28]
mov al, byte [rsp + 0x32]
movsd qword [rdi + 0x20], xmm0
jmp 0x18008c9de
xor al, al
lea r11, [rsp + 0x128]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
movaps xmm9, xmmword [r11 - 0x48]
movaps xmm10, xmmword [r11 - 0x58]
movaps xmm11, xmmword [r11 - 0x68]
movaps xmm12, xmmword [r11 - 0x78]
movaps xmm14, xmmword [r11 - 0x88]
movaps xmm15, xmmword [r11 - 0x98]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret