Function at 0x1800a873c
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 [0x1800ebb60]
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 0x1800a90f7
xor r15d, r15d
cmp byte [rcx + 0xc8], r15b
jg 0x1800a90f7
cmp byte [rcx + 0xc9], r15b
jg 0x1800a90f7
cmp byte [rcx + 0xaf], r15b
je 0x1800a90f7
movss xmm1, dword [rsi + 0x3c10]
xorps xmm12, xmm12
movss xmm0, dword [rcx + 0x50]
movaps xmm2, xmm1
addss xmm0, dword [0x180005ff0]
mulss xmm1, dword [0x180005fc4]
mov r12b, byte [rsi + 0x7e]
mulss xmm2, dword [0x180008b44]
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 [0x180005fe4]
cvttss2si eax, xmm0
movd xmm10, eax
cvtdq2ps xmm10, xmm10
movss dword [rsp + 0x68], xmm10
test r12b, r12b
je 0x1800a8859
movss xmm15, dword [0x180006060]
jmp 0x1800a885d
xorps xmm15, xmm15
movss xmm9, dword [0x180006118]
lea r9, [rbp + 0x70]
movaps xmm6, xmm9
movss dword [rsp + 0x3c], xmm9
movaps xmm7, xmm9
movss dword [rsp + 0x50], xmm6
movss dword [rsp + 0x38], xmm7
movaps xmm8, xmm9
mov dword [rsp + 0x54], 0x7f7fffff
mov r8d, r15d
mov dword [rcx + 0x150], 1
mov dword [rbp + 0x70], 0x65706610
mov dword [rbp + 0x74], 0x3a7c627e
mov eax, 0x51eb851f
mul r8d
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x32
mov al, r8b
inc r8d
sub al, cl
add al, 0x33
xor byte [r9], al
inc r9
cmp r8d, 8
jl 0x1800a88ac
lea rcx, [rbp + 0x70]
call fcn.1800a2acc
movss xmm14, dword [0x180008480]
mov r14d, r15d
test ebx, ebx
jle 0x1800a8c45
mov r13, qword [rbp + 0x90]
lea r15, [0x180008a44]
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 0x1800a8994
movss dword [rsp + 0x58], xmm5
movss dword [rsp + 0x60], xmm3
comiss xmm2, xmm4
jbe 0x1800a89a5
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.18009cd90
mov r9d, 8
lea rcx, [rsp + 0x58]
xor r8d, r8d
mov edx, eax
mov ebx, eax
call fcn.18009db7c
lea r9, [rbp + 0x70]
mov dword [rsp + 0x20], 0x40800
lea r8, [rsp + 0x30]
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.1800c2dd8
mov r8b, byte [rsp + 0x30]
mov dl, byte [rbp + 0x70]
test r8b, r8b
jne 0x1800a8a15
test dl, dl
je 0x1800a8bc3
mov eax, r14d
not eax
and eax, 1
add eax, 5
mov dword [rsi + 0x4a38], eax
test dl, dl
je 0x1800a8bc3
mov eax, 2
cmp word [rsi + 0x3742], ax
jne 0x1800a8a83
test r14d, r14d
jne 0x1800a8a83
mov r8, r12
lea rcx, [rsp + 0x78]
mov rdx, rdi
call fcn.180099348
xor edx, edx
mov byte [rsp + 0x32], 1
xor ecx, ecx
movss xmm7, dword [rax]
movss xmm8, dword [rax + 4]
movss dword [rsp + 0x38], xmm7
movss dword [rsp + 0x3c], xmm8
call fcn.1800a5640
mov dl, byte [rbp + 0x70]
mov r8b, byte [rsp + 0x30]
jmp 0x1800a8bd1
movss xmm11, dword [r15]
ucomiss xmm11, dword [0x180005ff0]
jp 0x1800a8aa2
jne 0x1800a8aa2
mov rax, qword [rbp + 0x98]
movss xmm6, dword [rax + 4]
jmp 0x1800a8aad
mov rax, qword [rbp + 0x98]
movaps xmm6, xmm14
lea r8, [r15 - 4]
movss xmm10, dword [r8]
ucomiss xmm10, dword [0x180005ff0]
jp 0x1800a8ac8
jne 0x1800a8ac8
movss xmm4, dword [rax]
jmp 0x1800a8acc
movaps xmm4, xmm14
ucomiss xmm11, xmm12
jp 0x1800a8adc
jne 0x1800a8adc
movss xmm8, dword [rax + 0xc]
jmp 0x1800a8ae0
movaps xmm8, xmm9
ucomiss xmm10, xmm12
jp 0x1800a8aef
jne 0x1800a8aef
movss xmm7, dword [rax + 8]
jmp 0x1800a8af3
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 [0x180008430]
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 0x1800a8b73
movaps xmm6, xmm8
minss xmm6, xmm0
comiss xmm4, xmm5
ja 0x1800a8b7f
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.180098c8c
mov dl, byte [rbp + 0x70]
mov r8b, byte [rsp + 0x30]
movss xmm8, dword [rsp + 0x3c]
movss xmm7, dword [rsp + 0x38]
movss xmm10, dword [rsp + 0x68]
test r14d, r14d
je 0x1800a8bd1
test dl, dl
jne 0x1800a8bd1
test r8b, r8b
je 0x1800a8c22
mov rcx, qword [0x1800ebb60]
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.180099db0
mov dword [r13], eax
inc r14d
add r15, 0x18
add r13, 4
cmp r14d, dword [rbp + 0x88]
jl 0x1800a8902
movss xmm6, dword [rsp + 0x50]
mov r12b, byte [rsp + 0x31]
xor r14d, r14d
neg r12b
sbb r12, r12
and r12d, 4
jbe 0x1800a8e58
movss xmm6, dword [0x180006060]
lea r15, [0x180008ab4]
cmp r14d, 1
jbe 0x1800a8c8c
mov r13d, 3
mov qword [rsp + 0x70], 0xe00
mov qword [rsp + 0x68], 0x3f28
lea rax, [rsp + 0x44]
jmp 0x1800a8ca9
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.18009c440
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.18009cd90
mov r9d, 8
lea rcx, [rbp - 0x80]
xor r8d, r8d
mov edx, eax
mov ebx, eax
call fcn.18009db7c
lea r9, [rbp + 0x70]
mov dword [rsp + 0x20], 0x40800
lea r8, [rsp + 0x31]
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.1800c2dd8
cmp byte [rsp + 0x31], 0
mov al, byte [rbp + 0x70]
je 0x1800a8d3e
movss xmm0, dword [rsi + 0x3f08]
comiss xmm0, dword [0x180008b20]
ja 0x1800a8d46
test al, al
je 0x1800a8e34
mov dword [rsi + 0x4a38], r13d
test al, al
je 0x1800a8e34
mov rax, qword [rbp + 0x80]
mov dword [rax], r14d
cmp r14d, 3
jne 0x1800a8d77
mov rax, qword [rbp + 0x98]
movaps xmm3, xmm14
movss xmm2, dword [rax + 4]
jmp 0x1800a8d90
movaps xmm2, xmm14
cmp r14d, 1
jne 0x1800a8ebf
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 0x1800a8dd4
movaps xmm2, xmm4
minss xmm2, dword [rsp + 0x44]
comiss xmm3, dword [rsp + 0x40]
ja 0x1800a8de4
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.180098c8c
inc r14d
add r15, 0x1c
sub r12, 1
jne 0x1800a8c67
movss xmm6, dword [rsp + 0x50]
movss xmm8, dword [rsp + 0x3c]
movss xmm7, dword [rsp + 0x38]
mov rax, qword [0x1800ebb60]
mov rcx, qword [rax + 0x3eb0]
dec dword [rcx + 0xe8]
and dword [rdi + 0x150], 0
mov rax, qword [rsi + 0x4a00]
test rax, rax
je 0x1800a909a
cmp qword [rax + 0x370], rdi
jne 0x1800a909a
mov eax, dword [rsi + 0x48c8]
cmp eax, 2
jne 0x1800a8efc
cmp byte [rsi + 0xe15], 0
je 0x1800a909a
mov edx, 0x201
mov dword [rsp + 0x20], 0x204
lea r9d, [rdx + 2]
lea r8d, [rdx + 1]
jmp 0x1800a8f1e
mov eax, 2
movaps xmm3, xmm14
cmp r14d, eax
jne 0x1800a8ede
mov rax, qword [rbp + 0x98]
movss xmm4, dword [rax + 0xc]
jmp 0x1800a8d94
movaps xmm4, xmm9
test r14d, r14d
jne 0x1800a8d94
mov rax, qword [rbp + 0x98]
movss xmm5, dword [rax + 8]
jmp 0x1800a8d98
movaps xmm2, xmm12
movaps xmm3, xmm12
cmp eax, 3
jne 0x1800a8f30
mov edx, 0x26f
mov dword [rsp + 0x20], 0x272
lea r9d, [rdx + 2]
lea r8d, [rdx + 1]
lea rcx, [rbp + 0x70]
call fcn.18009c104
movss xmm3, dword [rax + 4]
movss xmm2, dword [rax]
ucomiss xmm2, xmm12
jp 0x1800a8f44
jne 0x1800a8f44
ucomiss xmm3, xmm12
jp 0x1800a8f44
je 0x1800a909a
movss xmm1, dword [rsi + 0x70]
lea rcx, [rbp - 0x80]
minss xmm1, dword [rsi + 0x74]
movss xmm0, dword [rsi + 0x18]
mulss xmm0, dword [0x180008b5c]
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 [0x1800ebb60]
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.180099db0
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 0x1800a9039
jne 0x1800a9039
ucomiss xmm10, xmm12
jp 0x1800a9039
je 0x1800a909a
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.180099348
movss xmm0, dword [rsi + 0x4a2c]
movss xmm1, dword [rsi + 0x4a30]
subss xmm0, xmm11
subss xmm1, xmm10
movss xmm7, dword [rax]
movss xmm8, dword [rax + 4]
movss dword [rsi + 0x4a2c], xmm0
movss dword [rsi + 0x4a30], xmm1
ucomiss xmm7, xmm9
jp 0x1800a90a2
je 0x1800a90b5
mov rcx, rdi
movss dword [rdi + 0x28], xmm7
movss dword [rdi + 0x2c], xmm8
call fcn.18009e790
ucomiss xmm6, xmm9
jp 0x1800a90bd
je 0x1800a90e7
cvttss2si ecx, xmm6
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.18009e790
movsd xmm0, qword [rdi + 0x28]
mov al, byte [rsp + 0x32]
movsd qword [rdi + 0x20], xmm0
jmp 0x1800a90f9
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