Function at 0x1401153ba
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm12
movaps xmmword [rsp + 0xf0], xmm11
movaps xmmword [rsp + 0xe0], xmm10
movaps xmmword [rsp + 0xd0], xmm9
movaps xmmword [rsp + 0xc0], xmm8
movaps xmmword [rsp + 0xb0], xmm7
movaps xmmword [rsp + 0xa0], xmm6
mov qword [rsp + 0x38], r9
mov ebp, r8d
mov esi, edx
mov r13, rcx
mov edi, dword [rsp + 0x180]
mov rbx, qword [rcx + 8]
cmp dword [rbx + 0x60], 0
jne 0x1401154a1
cmp byte [r13 + 0x98], 0
jne 0x1401154a1
cvtsi2ss xmm2, ebp
cvtsi2ss xmm1, esi
movss xmm7, dword [0x1401ca5b4]
addss xmm2, xmm7
addss xmm1, xmm7
lea rcx, [r13 + 0x68]
lea r9, [rsp + 0x98]
call qword [r13 + 0x90]
movss xmm9, dword [r13 + 0x68]
cmp byte [r13 + 0x9a], 0
movaps xmm11, xmm7
je 0x1401155b7
add ebp, ebp
and ebp, 2
lea rax, [0x1401f5b10]
movss xmm0, dword [rax + rbp*4]
or ebp, 1
movss xmm11, dword [rax + rbp*4]
test sil, 1
je 0x1401155af
movaps xmm7, xmm0
jmp 0x1401155b7
mov r14, qword [r13 + 0x90]
mov rcx, qword [r13 + 0xa0]
mov r15, qword [rbx + 0x68]
call fcn.140113720
mov r12, rax
mov eax, esi
and eax, 1
mov ecx, ebp
and ecx, 1
lea edi, [rax + rcx*2]
shl edi, 8
cmp byte [r13 + 0x98], 2
jne 0x14011554b
cvtsi2ss xmm6, esi
cvtsi2ss xmm7, ebp
add r13, 0x68
xor ebx, ebx
movss xmm8, dword [0x1401e59e8]
movss xmm9, dword [0x1401ca5bc]
mov rsi, qword [rsp + 0x38]
mov rbp, r15
mov r15d, dword [rsp + 0x180]
mov rcx, r13
movaps xmm1, xmm6
movaps xmm2, xmm7
lea r9, [rsp + 0x50]
call r14
movss xmm0, dword [rsp + 0x50]
mulss xmm0, xmm8
cvttss2si ecx, xmm0
call rbp
shr eax, 8
add eax, edi
mov eax, dword [r12 + rax*4]
mov dword [rsi + rbx*4], eax
xor edi, 0x100
addss xmm6, xmm9
inc rbx
cmp r15d, ebx
jne 0x140115505
jmp 0x1401158cd
cvtsi2ss xmm6, ebp
movss xmm0, dword [0x1401ca5b4]
cvtsi2ss xmm1, esi
movaps xmm2, xmm6
addss xmm2, xmm0
addss xmm1, xmm0
lea rbp, [r13 + 0x68]
lea rsi, [rsp + 0x50]
mov rcx, rbp
mov r9, rsi
call r14
movss xmm7, dword [rsi]
mulss xmm7, dword [0x1401e59dc]
cmp byte [r13 + 0x98], 1
jne 0x140115753
lea r14, [rsp + 0x40]
mov rcx, rbp
mov rdx, r14
movaps xmm2, xmm6
call fcn.1400c4f30
movss xmm0, dword [r14]
jmp 0x140115758
movaps xmm7, xmm11
movaps xmm11, xmm0
cvtsi2ss xmm0, edi
mulss xmm0, xmm9
andps xmm0, xmmword [0x1401e2a70]
movss xmm8, dword [rsp + 0x98]
movss xmm1, dword [0x1401e53bc]
ucomiss xmm1, xmm0
jae 0x1401156c1
movss xmm12, dword [0x1401ca5bc]
movaps xmm10, xmm12
divss xmm10, xmm9
xorps xmm0, xmm0
ucomiss xmm9, xmm0
mov al, byte [r13 + 0xb8]
jbe 0x1401157a2
test al, al
mov rbx, qword [rsp + 0x38]
shufps xmm11, xmm11, 0
je 0x14011591e
movaps xmmword [rsp + 0x50], xmm11
shufps xmm7, xmm7, 0
movaps xmmword [rsp + 0x40], xmm7
mov r15, qword [r13 + 0xa8]
xorps xmm0, xmm0
ucomiss xmm0, xmm8
jbe 0x140115a7c
movaps xmm0, xmmword [0x1401ca5e0]
xorps xmm0, xmm8
mulss xmm0, xmm10
call fcn.1401c60d4
cvtss2sd xmm0, xmm0
minsd xmm0, qword [0x1401ca1a8]
maxsd xmm0, qword [0x1401f5a38]
cvttsd2si esi, xmm0
inc esi
cmp esi, edi
cmovae esi, edi
movups xmm0, xmmword [r15]
lea r8, [rsp + 0x60]
movaps xmmword [r8], xmm0
mov rcx, rbx
mov edx, esi
call fcn.1401163cf
sub edi, esi
movsxd rax, esi
cvtsi2ss xmm7, eax
lea rbx, [rbx + rax*4]
mov qword [rsp + 0x38], rbx
mulss xmm7, xmm9
addss xmm7, xmm8
test al, 1
je 0x140115a80
movaps xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm11
jmp 0x140115a80
minss xmm8, dword [0x1401ca5bc]
xorps xmm0, xmm0
maxss xmm8, xmm0
mov rcx, qword [r13 + 0xa8]
movaps xmm1, xmm8
call fcn.140116311
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x18]
subss xmm8, dword [rax + 0x10]
subps xmm1, xmm0
mulss xmm8, dword [rax + 0x2c]
shufps xmm8, xmm8, 0
mulps xmm8, xmm1
addps xmm8, xmm0
cmp byte [r13 + 0xb8], 0
je 0x14011588d
shufps xmm7, xmm7, 0
addps xmm7, xmm8
lea rcx, [rsp + 0x50]
movaps xmmword [rcx], xmm7
shufps xmm11, xmm11, 0
addps xmm11, xmm8
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm11
call fcn.1401114f5
mov ebx, eax
mov rcx, rsi
call fcn.1401114f5
mov rcx, qword [rsp + 0x38]
mov edx, eax
mov r8d, ebx
jmp 0x1401158c5
movss xmm0, dword [rbp]
mov r9, qword [rsp + 0x38]
cvttss2si r8, xmm7
mulss xmm0, dword [0x1401e59dc]
cvttss2si rdx, xmm0
test rdx, rdx
je 0x14011586b
mov eax, dword [rbx + 0x60]
cmp eax, 2
lea rcx, [0x1401161ff]
lea rbp, [0x140115f36]
cmove rbp, rcx
test eax, eax
lea rax, [0x140116003]
cmovne rax, rbp
jmp 0x140115872
test al, al
mov rbx, qword [rsp + 0x38]
shufps xmm11, xmm11, 0
je 0x1401159c5
movaps xmmword [rsp + 0x50], xmm11
shufps xmm7, xmm7, 0
movaps xmmword [rsp + 0x40], xmm7
mov rbp, qword [r13 + 0xa8]
ucomiss xmm8, dword [0x1401ca5bc]
mov qword [rsp + 0x78], rbp
jbe 0x140115b84
subss xmm12, xmm8
mulss xmm12, xmm10
movaps xmm0, xmm12
call fcn.1401c60d4
cvtss2sd xmm0, xmm0
minsd xmm0, qword [0x1401ca1a8]
maxsd xmm0, qword [0x1401f5a38]
cvttsd2si esi, xmm0
inc esi
cmp esi, edi
cmovae esi, edi
movsxd rax, dword [r13 + 0xb4]
imul rax, rax, 0x18
movups xmm0, xmmword [rax + rbp - 0x18]
lea r8, [rsp + 0x60]
movaps xmmword [r8], xmm0
mov rcx, rbx
mov edx, esi
call fcn.1401163cf
sub edi, esi
movsxd rax, esi
cvtsi2ss xmm6, eax
lea rbx, [rbx + rax*4]
mov qword [rsp + 0x38], rbx
mulss xmm6, xmm9
addss xmm6, xmm8
test al, 1
je 0x140115b88
movaps xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm11
jmp 0x140115b88
lea rax, [0x140115f6a]
mov ecx, dword [rsp + 0x180]
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r12
mov rcx, r15
call rax
jmp 0x1401158cd
shufps xmm7, xmm7, 0
addps xmm7, xmm8
shufps xmm11, xmm11, 0
addps xmm11, xmm8
cvttps2dq xmm0, xmm7
packuswb xmm0, xmm0
packuswb xmm0, xmm0
movd r8d, xmm0
cvttps2dq xmm0, xmm11
packuswb xmm0, xmm0
packuswb xmm0, xmm0
movd edx, xmm0
mov rcx, qword [rsp + 0x38]
mov r9d, edi
call fcn.14011639b
movaps xmm6, xmmword [rsp + 0xa0]
movaps xmm7, xmmword [rsp + 0xb0]
movaps xmm8, xmmword [rsp + 0xc0]
movaps xmm9, xmmword [rsp + 0xd0]
movaps xmm10, xmmword [rsp + 0xe0]
movaps xmm11, xmmword [rsp + 0xf0]
movaps xmm12, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmmword [rsp + 0x50], xmm11
shufps xmm7, xmm7, 0
movaps xmmword [rsp + 0x40], xmm7
mov r15, qword [r13 + 0xa8]
xorps xmm0, xmm0
ucomiss xmm0, xmm8
jbe 0x140115cd9
movaps xmm0, xmmword [0x1401ca5e0]
xorps xmm0, xmm8
mulss xmm0, xmm10
call fcn.1401c60d4
cvtss2sd xmm0, xmm0
minsd xmm0, qword [0x1401ca1a8]
maxsd xmm0, qword [0x1401f5a38]
cvttsd2si esi, xmm0
inc esi
cmp esi, edi
cmovae esi, edi
movups xmm0, xmmword [r15]
lea r8, [rsp + 0x60]
movaps xmmword [r8], xmm0
mov rcx, rbx
mov edx, esi
call fcn.140116591
sub edi, esi
movsxd rax, esi
cvtsi2ss xmm7, eax
lea rbx, [rbx + rax*4]
mulss xmm7, xmm9
addss xmm7, xmm8
test al, 1
mov qword [rsp + 0x38], rbx
je 0x140115cdd
movaps xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm11
jmp 0x140115cdd
movaps xmmword [rsp + 0x50], xmm11
shufps xmm7, xmm7, 0
movaps xmmword [rsp + 0x40], xmm7
mov rbp, qword [r13 + 0xa8]
ucomiss xmm8, dword [0x1401ca5bc]
mov qword [rsp + 0x78], rbp
jbe 0x140115de1
subss xmm12, xmm8
mulss xmm12, xmm10
movaps xmm0, xmm12
call fcn.1401c60d4
cvtss2sd xmm0, xmm0
minsd xmm0, qword [0x1401ca1a8]
maxsd xmm0, qword [0x1401f5a38]
cvttsd2si esi, xmm0
inc esi
cmp esi, edi
cmovae esi, edi
movsxd rax, dword [r13 + 0xb4]
imul rax, rax, 0x18
movups xmm0, xmmword [rax + rbp - 0x18]
lea r8, [rsp + 0x60]
movaps xmmword [r8], xmm0
mov rcx, rbx
mov edx, esi
call fcn.140116591
sub edi, esi
movsxd rax, esi
cvtsi2ss xmm6, eax
lea rbx, [rbx + rax*4]
mulss xmm6, xmm9
addss xmm6, xmm8
test al, 1
mov qword [rsp + 0x38], rbx
je 0x140115de5
movaps xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm11
jmp 0x140115de5
movaps xmm7, xmm8
test edi, edi
jle 0x1401158cd
movaps xmm8, xmm9
shufps xmm8, xmm9, 0
lea r14, [rsp + 0x50]
lea r12, [rsp + 0x60]
lea rbx, [rsp + 0x80]
mov rsi, r15
ucomiss xmm7, xmm12
jae 0x140115ca4
mov rcx, rsi
movaps xmm1, xmm7
call fcn.140116311
mov rsi, rax
movss xmm6, dword [rax + 0x28]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x18]
subps xmm1, xmm0
movss xmm2, dword [rax + 0x2c]
movaps xmm3, xmm7
subss xmm3, dword [rax + 0x10]
mulss xmm3, xmm2
shufps xmm3, xmm3, 0
mulps xmm3, xmm1
addps xmm3, xmm0
movaps xmmword [rsp + 0x60], xmm3
mulps xmm1, xmm8
shufps xmm2, xmm2, 0
mulps xmm2, xmm1
movaps xmmword [rsp + 0x80], xmm2
movaps xmm0, xmm6
subss xmm0, xmm7
mulss xmm0, xmm10
cvttss2si ebp, xmm0
inc ebp
cmp ebp, edi
cmovge ebp, edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rcx, qword [rsp + 0x38]
mov edx, ebp
mov r8, r12
mov r9, rbx
call fcn.1401163f5
test bpl, 1
je 0x140115b52
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
cvtsi2ss xmm0, ebp
mulss xmm0, xmm9
addss xmm0, xmm7
maxss xmm0, xmm6
movsxd rax, ebp
mov rcx, qword [rsp + 0x38]
lea rcx, [rcx + rax*4]
mov qword [rsp + 0x38], rcx
movaps xmm7, xmm0
sub edi, ebp
jg 0x140115aa6
jmp 0x1401158cd
movaps xmm6, xmm8
test edi, edi
jle 0x1401158cd
movaps xmm11, xmm9
shufps xmm11, xmm9, 0
movsxd rax, dword [r13 + 0xb4]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x78]
lea rbx, [rcx + rax]
add rbx, 0xffffffffffffffd0
xorps xmm8, xmm8
lea r15, [rsp + 0x40]
lea r12, [rsp + 0x50]
lea r14, [rsp + 0x60]
lea rsi, [rsp + 0x80]
ucomiss xmm8, xmm6
jae 0x140115cb7
mov rcx, rbx
movaps xmm1, xmm6
call fcn.140116696
mov rbx, rax
movss xmm7, dword [rax + 0x10]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x18]
subps xmm1, xmm0
movss xmm2, dword [rax + 0x2c]
movaps xmm3, xmm6
subss xmm3, xmm7
mulss xmm3, xmm2
shufps xmm3, xmm3, 0
mulps xmm3, xmm1
addps xmm3, xmm0
movaps xmmword [rsp + 0x60], xmm3
mulps xmm1, xmm11
shufps xmm2, xmm2, 0
mulps xmm2, xmm1
movaps xmmword [rsp + 0x80], xmm2
movaps xmm0, xmm7
subss xmm0, xmm6
mulss xmm0, xmm10
cvttss2si ebp, xmm0
inc ebp
cmp ebp, edi
cmovge ebp, edi
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r12
mov rcx, qword [rsp + 0x38]
mov edx, ebp
mov r8, r14
mov r9, rsi
call fcn.1401163f5
test bpl, 1
je 0x140115c72
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
cvtsi2ss xmm0, ebp
mulss xmm0, xmm9
addss xmm0, xmm6
minss xmm0, xmm7
movsxd rax, ebp
mov rcx, qword [rsp + 0x38]
lea rcx, [rcx + rax*4]
mov qword [rsp + 0x38], rcx
movaps xmm6, xmm0
sub edi, ebp
jg 0x140115bcc
jmp 0x1401158cd
movsxd rax, dword [r13 + 0xb4]
imul rax, rax, 0x18
movups xmm0, xmmword [rax + r15 - 0x18]
jmp 0x140115cbf
mov rax, qword [rsp + 0x78]
movups xmm0, xmmword [rax]
lea r8, [rsp + 0x60]
movaps xmmword [r8], xmm0
mov rcx, qword [rsp + 0x38]
mov edx, edi
call fcn.1401163cf
jmp 0x1401158cd
movaps xmm7, xmm8
test edi, edi
jle 0x1401158cd
movaps xmm8, xmm9
shufps xmm8, xmm9, 0
lea r14, [rsp + 0x50]
lea r12, [rsp + 0x60]
lea rbx, [rsp + 0x80]
mov rsi, r15
ucomiss xmm7, xmm12
jae 0x140115f01
mov rcx, rsi
movaps xmm1, xmm7
call fcn.140116311
mov rsi, rax
movss xmm6, dword [rax + 0x28]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x18]
subps xmm1, xmm0
movss xmm2, dword [rax + 0x2c]
movaps xmm3, xmm7
subss xmm3, dword [rax + 0x10]
mulss xmm3, xmm2
shufps xmm3, xmm3, 0
mulps xmm3, xmm1
addps xmm3, xmm0
movaps xmmword [rsp + 0x60], xmm3
mulps xmm1, xmm8
shufps xmm2, xmm2, 0
mulps xmm2, xmm1
movaps xmmword [rsp + 0x80], xmm2
movaps xmm0, xmm6
subss xmm0, xmm7
mulss xmm0, xmm10
cvttss2si ebp, xmm0
inc ebp
cmp ebp, edi
cmovge ebp, edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rcx, qword [rsp + 0x38]
mov edx, ebp
mov r8, r12
mov r9, rbx
call fcn.1401165ac
test bpl, 1
je 0x140115daf
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
cvtsi2ss xmm0, ebp
mulss xmm0, xmm9
addss xmm0, xmm7
maxss xmm0, xmm6
movsxd rax, ebp
mov rcx, qword [rsp + 0x38]
lea rcx, [rcx + rax*4]
mov qword [rsp + 0x38], rcx
movaps xmm7, xmm0
sub edi, ebp
jg 0x140115d03
jmp 0x1401158cd
movaps xmm6, xmm8
test edi, edi
jle 0x1401158cd
movaps xmm11, xmm9
shufps xmm11, xmm9, 0
movsxd rax, dword [r13 + 0xb4]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x78]
lea rbx, [rcx + rax]
add rbx, 0xffffffffffffffd0
xorps xmm8, xmm8
lea r15, [rsp + 0x40]
lea r12, [rsp + 0x50]
lea r14, [rsp + 0x60]
lea rsi, [rsp + 0x80]
ucomiss xmm8, xmm6
jae 0x140115f14
mov rcx, rbx
movaps xmm1, xmm6
call fcn.140116696
mov rbx, rax
movss xmm7, dword [rax + 0x10]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x18]
subps xmm1, xmm0
movss xmm2, dword [rax + 0x2c]
movaps xmm3, xmm6
subss xmm3, xmm7
mulss xmm3, xmm2
shufps xmm3, xmm3, 0
mulps xmm3, xmm1
addps xmm3, xmm0
movaps xmmword [rsp + 0x60], xmm3
mulps xmm1, xmm11
shufps xmm2, xmm2, 0
mulps xmm2, xmm1
movaps xmmword [rsp + 0x80], xmm2
movaps xmm0, xmm7
subss xmm0, xmm6
mulss xmm0, xmm10
cvttss2si ebp, xmm0
inc ebp
cmp ebp, edi
cmovge ebp, edi
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r12
mov rcx, qword [rsp + 0x38]
mov edx, ebp
mov r8, r14
mov r9, rsi
call fcn.1401165ac
test bpl, 1
je 0x140115ecf
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
cvtsi2ss xmm0, ebp
mulss xmm0, xmm9
addss xmm0, xmm6
minss xmm0, xmm7
movsxd rax, ebp
mov rcx, qword [rsp + 0x38]
lea rcx, [rcx + rax*4]
mov qword [rsp + 0x38], rcx
movaps xmm6, xmm0
sub edi, ebp
jg 0x140115e29
jmp 0x1401158cd
movsxd rax, dword [r13 + 0xb4]
imul rax, rax, 0x18
movups xmm0, xmmword [rax + r15 - 0x18]
jmp 0x140115f1c
mov rax, qword [rsp + 0x78]
movups xmm0, xmmword [rax]
lea r8, [rsp + 0x60]
movaps xmmword [r8], xmm0
mov rcx, qword [rsp + 0x38]
mov edx, edi
call fcn.140116591
jmp 0x1401158cd