Function at 0x140022080
Capabilities:
Encode data using xor
Hash data with crc32

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 ebx, r9d
mov r15, qword [0x14024ad10]
mov rsi, rcx
jne 0x140022c60
cmp byte [rcx + 0xb0], 0
jg 0x140022c60
cmp byte [rcx + 0xb1], 0
jg 0x140022c60
cmp byte [rcx + 0x97], 0
je 0x140022c60
movss xmm1, dword [r15 + 0x3c18]
movss xmm0, dword [rcx + 0x50]
movaps xmm2, xmm1
mulss xmm1, dword [0x1400b5214]
mov qword [rax - 0x28], rdi
mulss xmm2, dword [0x1400b5294]
mov qword [rax - 0x30], r12
movzx r12d, byte [r15 + 0x75]
mov qword [rax - 0x40], r14
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
movaps xmmword [rax - 0x78], xmm8
movss xmm8, dword [0x1400b5284]
movaps xmmword [rax - 0x88], xmm9
addss xmm0, xmm8
movaps xmmword [rax - 0x98], xmm10
movaps xmmword [rax - 0xa8], xmm11
xorps xmm11, xmm11
movaps xmmword [rax - 0xb8], xmm12
movaps xmmword [rax - 0xc8], xmm13
movaps xmmword [rax - 0xd8], xmm14
addss xmm0, xmm1
movaps xmmword [rax - 0xe8], xmm15
xorps xmm15, xmm15
mov byte [rbp + 0x80], 0
mov byte [rsp + 0x31], r12b
maxss xmm2, xmm0
xorps xmm0, xmm0
cvttss2si eax, xmm2
cvtsi2ss xmm0, eax
mulss xmm0, dword [0x1400b5258]
cvttss2si eax, xmm0
cvtsi2ss xmm11, eax
movss dword [rsp + 0x34], xmm11
test r12b, r12b
je 0x1400221b0
movss xmm7, dword [0x1400b52d4]
jmp 0x1400221b3
xorps xmm7, xmm7
movss xmm12, dword [0x1400b53b8]
xor edx, edx
movaps xmm13, xmm12
movss dword [rsp + 0x48], xmm7
movaps xmm14, xmm12
mov dword [rcx + 0x138], 1
movaps xmm10, xmm12
mov dword [rsp + 0x38], 0xbfaeb8ca
movaps xmm6, xmm12
mov dword [rsp + 0x3c], 0xaab4a4
nop
movsxd rcx, edx
lea eax, [rdx - 0x17]
inc edx
xor byte [rsp + rcx + 0x38], al
cmp edx, 7
jb 0x1400221f0
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x140], r13
mov byte [rsp + 0x3f], 0
call fcn.1400268f0
movss xmm9, dword [0x1400b53fc]
lea r11, [0x1400b31c0]
xor r14d, r14d
test ebx, ebx
mov dword [rsp + 0x38], r14d
mov rbx, qword [0x14024ad10]
jle 0x140022668
mov r13, qword [rbp + 0xa0]
lea rdi, [0x1400b3168]
nop dword [rax]
movss xmm0, dword [rsi + 0x18]
movss xmm1, dword [rsi + 0x1c]
movaps xmm3, xmm0
addss xmm3, dword [rsi + 0x20]
movaps xmm2, xmm1
addss xmm2, dword [rsi + 0x24]
subss xmm3, xmm0
subss xmm2, xmm1
mulss xmm3, dword [rdi - 8]
mulss xmm2, dword [rdi - 4]
addss xmm3, xmm0
movss xmm0, dword [rdi]
movaps xmm5, xmm0
mulss xmm0, xmm7
addss xmm2, xmm1
mulss xmm5, xmm11
movss xmm1, dword [rdi + 4]
movaps xmm4, xmm1
mulss xmm1, xmm7
addss xmm5, xmm3
mulss xmm4, xmm11
subss xmm3, xmm0
addss xmm4, xmm2
subss xmm2, xmm1
movss dword [rsp + 0x68], xmm5
comiss xmm3, xmm5
movss dword [rsp + 0x60], xmm3
movss dword [rsp + 0x64], xmm2
movss dword [rsp + 0x6c], xmm4
jbe 0x1400222de
movss dword [rsp + 0x60], xmm5
movss dword [rsp + 0x68], xmm3
comiss xmm2, xmm4
jbe 0x1400222ef
movss dword [rsp + 0x64], xmm4
movss dword [rsp + 0x6c], xmm2
movsxd rcx, dword [rsi + 0xd0]
mov rax, qword [rsi + 0xd8]
mov edx, dword [rax + rcx*4 - 4]
not edx
movzx eax, r14b
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x39]
xor edx, dword [r11 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x3a]
xor edx, dword [r11 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x3b]
xor edx, dword [r11 + rcx*4]
movzx ecx, dl
shr edx, 8
xor rcx, rax
xor edx, dword [r11 + rcx*4]
not edx
cmp dword [rbx + 0x3ef4], edx
jne 0x14002235a
mov dword [rbx + 0x3ef8], edx
cmp dword [rbx + 0x3f40], edx
jne 0x140022369
mov byte [rbx + 0x3f44], 1
lea r9, [rsp + 0x32]
mov dword [rsp + 0x20], 0x40800
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140044270
movzx r12d, byte [rsp + 0x30]
movzx ebx, byte [rsp + 0x32]
test r12b, r12b
jne 0x14002239d
test bl, bl
je 0x1400225d5
mov eax, r14d
not eax
and eax, 1
add eax, 5
mov dword [r15 + 0x4248], eax
test bl, bl
je 0x1400225d5
cmp word [r15 + 0x36ba], 2
jne 0x140022403
test r14d, r14d
jne 0x140022403
mov r8, qword [rbp + 0x88]
lea rcx, [rsp + 0x70]
mov rdx, rsi
call fcn.140021970
mov byte [rbp + 0x80], 1
movss xmm10, dword [rax]
movss xmm6, dword [rax + 4]
call fcn.14001c470
test bl, bl
je 0x1400225f4
mov eax, 0x20
jmp 0x140022600
movss xmm11, dword [rdi - 4]
ucomiss xmm11, xmm8
jp 0x14002241f
jne 0x14002241f
mov rax, qword [rbp + 0xa8]
movss xmm7, dword [rax + 4]
jmp 0x14002242a
mov rax, qword [rbp + 0xa8]
movaps xmm7, xmm9
movss xmm10, dword [rdi - 8]
ucomiss xmm10, xmm8
jp 0x14002243e
jne 0x14002243e
movss xmm6, dword [rax]
jmp 0x140022442
movaps xmm6, xmm9
ucomiss xmm11, xmm15
jp 0x140022452
jne 0x140022452
movss xmm9, dword [rax + 0xc]
jmp 0x140022456
movaps xmm9, xmm12
ucomiss xmm10, xmm15
jp 0x140022466
jne 0x140022466
movss xmm8, dword [rax + 8]
jmp 0x14002246a
movaps xmm8, xmm12
movss xmm3, dword [rdi + 4]
movss xmm4, dword [rdi]
movaps xmm1, xmm3
mulss xmm1, dword [rsp + 0x48]
movaps xmm0, xmm4
mulss xmm0, dword [rsp + 0x48]
movss xmm2, dword [rsp + 0x34]
xorps xmm2, xmmword [0x1400b6190]
movss xmm5, dword [r15 + 0xd98]
subss xmm5, dword [r15 + 0x3f28]
mulss xmm4, xmm2
mulss xmm3, xmm2
subss xmm4, xmm0
subss xmm3, xmm1
mulss xmm4, xmm10
mulss xmm3, xmm11
addss xmm4, xmm0
movss xmm0, dword [r15 + 0xd94]
subss xmm0, dword [r15 + 0x3f24]
addss xmm3, xmm1
addss xmm4, xmm0
addss xmm5, xmm3
comiss xmm7, xmm5
ja 0x1400224ed
movaps xmm7, xmm9
minss xmm7, xmm5
comiss xmm6, xmm4
ja 0x1400224fa
movaps xmm6, xmm8
minss xmm6, xmm4
movss xmm0, dword [rsi + 0x18]
lea r8, [rsp + 0x50]
movss xmm1, dword [rsi + 0x1c]
lea rcx, [rsp + 0x58]
movaps xmm13, xmm0
movaps xmm14, xmm1
addss xmm0, dword [rsi + 0x20]
addss xmm1, dword [rsi + 0x24]
subss xmm13, xmm6
mov rdx, rsi
subss xmm14, xmm7
mulss xmm13, xmm10
mulss xmm14, xmm11
addss xmm13, xmm6
subss xmm6, xmm0
addss xmm14, xmm7
subss xmm7, xmm1
mulss xmm6, xmm10
mulss xmm7, xmm11
addss xmm6, xmm0
addss xmm7, xmm1
subss xmm6, xmm13
subss xmm7, xmm14
movss dword [rsp + 0x50], xmm6
movss dword [rsp + 0x54], xmm7
call fcn.140021970
movss xmm0, dword [rdi - 8]
ucomiss xmm0, xmm15
movss xmm10, dword [rsp + 0x58]
jp 0x140022597
jne 0x140022597
movaps xmm0, xmm10
subss xmm0, xmm6
subss xmm13, xmm0
movss xmm0, dword [rdi - 4]
ucomiss xmm0, xmm15
movss xmm6, dword [rsp + 0x5c]
jp 0x1400225b6
jne 0x1400225b6
movaps xmm0, xmm6
subss xmm0, xmm7
subss xmm14, xmm0
movss xmm8, dword [0x1400b5284]
movss xmm7, dword [rsp + 0x48]
movss xmm9, dword [0x1400b53fc]
movss xmm11, dword [rsp + 0x34]
test r14d, r14d
je 0x1400223f1
test bl, bl
jne 0x1400223f9
test r12b, r12b
jne 0x1400225f4
mov rbx, qword [0x14024ad10]
jmp 0x140022637
xor eax, eax
test r12b, r12b
setne al
add rax, 0x1e
mov rbx, qword [0x14024ad10]
lea rcx, [rsp + 0x38]
add rax, rax
movups xmm0, xmmword [rbx + rax*8 + 0x38c0]
movups xmmword [rsp + 0x38], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rbx + 0x37f8]
movss dword [rsp + 0x44], xmm0
call fcn.14001a3e0
mov dword [r13], eax
inc r14d
lea r11, [0x1400b31c0]
add rdi, 0x18
mov dword [rsp + 0x38], r14d
add r13, 4
cmp r14d, dword [rbp + 0x98]
jl 0x140022250
movzx r12d, byte [rsp + 0x31]
lea r11, [0x1400b31c0]
xor edi, edi
neg r12b
sbb rax, rax
and eax, 4
mov qword [rsp + 0x70], rax
jbe 0x1400229ac
movss xmm11, dword [0x1400b51f4]
lea rax, [0x1400b2fc4]
mov qword [rsp + 0x38], rax
cmp edi, 1
jbe 0x1400226b6
lea r9, [rsp + 0x4c]
mov r14d, 3
mov qword [rsp + 0x58], r9
mov r12d, 0xd98
mov r13d, 0x3f28
jmp 0x1400226d2
lea rax, [rsp + 0x48]
mov r14d, 4
mov qword [rsp + 0x58], rax
mov r12d, 0xd94
mov r13d, 0x3f24
movss xmm0, dword [0x1400b52d4]
lea rcx, [rbp - 0x80]
movss xmm3, dword [rsp + 0x34]
mov r8d, edi
mov rdx, rsi
movss dword [rsp + 0x20], xmm0
call fcn.140021f40
mov rax, qword [rsi + 0xd8]
lea r8d, [rdi + 4]
movsxd rcx, dword [rsi + 0xd0]
mov r10d, dword [rax + rcx*4 - 4]
not r10d
movzx eax, r8b
movzx ecx, r10b
xor rcx, rax
shr r10d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r10d, dword [r11 + rcx*4]
movzx ecx, r10b
xor rdx, rcx
shr r10d, 8
shr eax, 0x10
xor r10d, dword [r11 + rdx*4]
movzx ecx, r10b
shr r10d, 8
movzx edx, al
xor rdx, rcx
xor r10d, dword [r11 + rdx*4]
movzx ecx, r10b
shr r10d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
xor r10d, dword [r11 + rdx*4]
not r10d
cmp dword [rbx + 0x3ef4], r10d
jne 0x14002277b
mov dword [rbx + 0x3ef8], r10d
cmp dword [rbx + 0x3f40], r10d
jne 0x14002278b
mov byte [rbx + 0x3f44], 1
lea r9, [rsp + 0x31]
mov dword [rsp + 0x20], 0x40800
lea r8, [rsp + 0x30]
mov edx, r10d
lea rcx, [rbp - 0x80]
call fcn.140044270
cmp byte [rsp + 0x30], 0
movzx eax, byte [rsp + 0x31]
je 0x1400227c4
movss xmm0, dword [r15 + 0x3eec]
comiss xmm0, xmm11
ja 0x1400227cc
test al, al
je 0x140022978
mov dword [r15 + 0x4248], r14d
test al, al
je 0x140022978
mov rax, qword [rbp + 0x90]
mov dword [rax], edi
cmp edi, 3
jne 0x140022928
mov rax, qword [rbp + 0xa8]
movaps xmm7, xmm9
movss xmm8, dword [rax + 4]
movaps xmm2, xmm12
movaps xmm3, xmm12
movsd xmm0, qword [rsi + 0x18]
movss xmm1, dword [r12 + r15]
subss xmm1, dword [r15 + r13]
mov rax, qword [rsp + 0x58]
movsd qword [rsp + 0x48], xmm0
addss xmm1, dword [0x1400b52d4]
movss dword [rax], xmm1
movss xmm0, dword [rsp + 0x4c]
comiss xmm8, xmm0
ja 0x140022843
movaps xmm8, xmm2
minss xmm8, xmm0
movss xmm0, dword [rsp + 0x48]
comiss xmm7, xmm0
ja 0x140022855
movaps xmm7, xmm3
minss xmm7, xmm0
mov r14, qword [rsp + 0x38]
lea r8, [rsp + 0x50]
movss xmm0, dword [rsi + 0x18]
lea rcx, [rsp + 0x60]
movss xmm1, dword [rsi + 0x1c]
movaps xmm13, xmm0
addss xmm0, dword [rsi + 0x20]
movss xmm9, dword [r14 - 8]
subss xmm13, xmm7
minss xmm9, dword [r14]
movss xmm6, dword [r14 - 0xc]
movaps xmm14, xmm1
minss xmm6, dword [r14 - 4]
addss xmm1, dword [rsi + 0x24]
subss xmm14, xmm8
mov rdx, rsi
mulss xmm13, xmm6
mulss xmm14, xmm9
addss xmm13, xmm7
subss xmm7, xmm0
addss xmm14, xmm8
subss xmm8, xmm1
mulss xmm7, xmm6
mulss xmm8, xmm9
addss xmm7, xmm0
addss xmm8, xmm1
subss xmm7, xmm13
subss xmm8, xmm14
movss dword [rsp + 0x50], xmm7
movss dword [rsp + 0x54], xmm8
call fcn.140021970
ucomiss xmm6, xmm15
movss xmm10, dword [rsp + 0x60]
jp 0x14002290b
jne 0x14002290b
movaps xmm0, xmm10
subss xmm0, xmm7
subss xmm13, xmm0
ucomiss xmm9, xmm15
movss xmm6, dword [rsp + 0x64]
jp 0x14002297d
jne 0x14002297d
movaps xmm0, xmm6
subss xmm0, xmm8
subss xmm14, xmm0
jmp 0x14002297d
movaps xmm8, xmm9
cmp edi, 1
jne 0x140022941
mov rax, qword [rbp + 0xa8]
movss xmm7, dword [rax]
jmp 0x1400227fe
movaps xmm7, xmm9
cmp edi, 2
jne 0x14002295b
mov rax, qword [rbp + 0xa8]
movss xmm2, dword [rax + 0xc]
jmp 0x140022802
movaps xmm2, xmm12
test edi, edi
jne 0x140022802
mov rax, qword [rbp + 0xa8]
movss xmm3, dword [rax + 8]
jmp 0x140022806
mov r14, qword [rsp + 0x38]
mov rbx, qword [0x14024ad10]
add r14, 0x1c
inc edi
mov qword [rsp + 0x38], r14
sub qword [rsp + 0x70], 1
je 0x1400229ac
movss xmm9, dword [0x1400b53fc]
lea r11, [0x1400b31c0]
jmp 0x140022693
mov rax, qword [rbx + 0x3ea8]
mov r14, qword [rsp + 0x138]
mov r13, qword [rsp + 0x140]
mov r12, qword [rsp + 0x148]
dec dword [rax + 0xd0]
mov rdi, qword [rsp + 0x150]
mov dword [rsi + 0x138], 0
mov rax, qword [r15 + 0x4220]
test rax, rax
je 0x140022b74
cmp qword [rax + 0x360], rsi
jne 0x140022b74
mov eax, dword [r15 + 0x40f0]
cmp eax, 2
jne 0x140022a24
cmp byte [r15 + 0xdad], 0
je 0x140022b74
lea edx, [rax - 1]
lea rcx, [rsp + 0x60]
jmp 0x140022a35
cmp eax, 3
jne 0x140022b74
lea edx, [rax + 1]
lea rcx, [rsp + 0x58]
movaps xmm3, xmm15
movss dword [rsp + 0x20], xmm15
xor r8d, r8d
call fcn.14002a660
xorps xmm2, xmm2
movss xmm15, dword [rax]
ucomiss xmm15, xmm2
movss xmm0, dword [rax + 4]
movss dword [rsp + 0x34], xmm0
jp 0x140022a6e
jne 0x140022a6e
ucomiss xmm0, xmm2
jp 0x140022a6e
je 0x140022b77
movss xmm0, dword [r15 + 0x18]
lea rcx, [rsp + 0x70]
mulss xmm0, dword [0x1400b538c]
movss xmm1, dword [r15 + 0x68]
minss xmm1, dword [r15 + 0x6c]
movss xmm7, dword [rsi + 0x18]
movss xmm9, dword [rsi + 0x1c]
movss xmm10, dword [rsi + 0x24]
movss xmm6, dword [rsi + 0x20]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm11, eax
mov rax, qword [rbp + 0xa8]
cvtdq2ps xmm11, xmm11
movss xmm8, dword [rax]
movss xmm12, dword [rax + 4]
mov byte [r15 + 0x4240], 0
mov byte [r15 + 0x40fb], 1
movups xmm0, xmmword [rbx + 0x3ac0]
movups xmmword [rsp + 0x70], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rbx + 0x37f8]
movss dword [rsp + 0x7c], xmm0
call fcn.14001a3e0
movss xmm0, dword [rsp + 0x34]
subss xmm8, xmm7
mov rcx, qword [rbp + 0xa0]
subss xmm12, xmm9
mulss xmm0, xmm11
lea r8, [rsp + 0x70]
mov rdx, rsi
mulss xmm15, xmm11
mov dword [rcx], eax
lea rcx, [rsp + 0x50]
subss xmm8, xmm6
subss xmm12, xmm10
maxss xmm15, xmm8
maxss xmm0, xmm12
addss xmm15, dword [rsi + 0x28]
addss xmm0, dword [rsi + 0x2c]
movss dword [rsp + 0x70], xmm15
movss dword [rsp + 0x74], xmm0
call fcn.140021970
mov rbx, qword [0x14024ad10]
movss xmm12, dword [0x1400b53b8]
movss xmm10, dword [rax]
movss xmm6, dword [rax + 4]
xorps xmm2, xmm2
ucomiss xmm10, xmm12
movaps xmm15, xmmword [rsp + 0x90]
movaps xmm11, xmmword [rsp + 0xd0]
movaps xmm9, xmmword [rsp + 0xf0]
movaps xmm8, xmmword [rsp + 0x100]
movaps xmm7, xmmword [rsp + 0x110]
jp 0x140022bab
je 0x140022bd1
test dword [rsi + 0xc], 0x100
movss dword [rsi + 0x28], xmm10
movss dword [rsi + 0x2c], xmm6
jne 0x140022bd1
comiss xmm2, dword [rbx + 0x537c]
jb 0x140022bd1
mov eax, dword [rbx + 0x1c]
mov dword [rbx + 0x537c], eax
movaps xmm10, xmmword [rsp + 0xe0]
movaps xmm6, xmmword [rsp + 0x120]
ucomiss xmm13, xmm12
movaps xmm12, xmmword [rsp + 0xc0]
jp 0x140022bf3
je 0x140022c30
test dword [rsi + 0xc], 0x100
cvttss2si eax, xmm13
movd xmm1, eax
cvttss2si eax, xmm14
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsi + 0x18], xmm1
movss dword [rsi + 0x1c], xmm0
jne 0x140022c30
comiss xmm2, dword [rbx + 0x537c]
jb 0x140022c30
mov ecx, dword [rbx + 0x1c]
mov dword [rbx + 0x537c], ecx
movsd xmm0, qword [rsi + 0x28]
movzx eax, byte [rbp + 0x80]
movaps xmm14, xmmword [rsp + 0xa0]
movaps xmm13, xmmword [rsp + 0xb0]
movsd qword [rsi + 0x20], 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