Function at 0x140020db0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rdi, qword [0x14024ad10]
movzx esi, r9b
mov r13d, dword [rbp + 0x50]
mov r15d, edx
movaps xmmword [rsp + 0x40], xmm6
mov r10, rcx
mov r14, qword [rdi + 0x3ea8]
mov eax, dword [r14 + 0xc]
movss xmm4, dword [r14 + 0x238]
and eax, 4
movss xmm3, dword [r14 + 0x23c]
or eax, 0x1000103
or r13d, eax
cmp qword [r14 + 0x190], 0
jne 0x140020e25
cmp qword [rdi + 0x4308], 0
je 0x140020e2e
movss xmm4, dword [r14 + 0x208]
cvttss2si eax, dword [r8]
subss xmm4, dword [r14 + 0xe0]
subss xmm3, dword [r14 + 0xe4]
xorps xmm5, xmm5
movd xmm1, eax
cvttss2si eax, dword [r8 + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
ucomiss xmm1, xmm5
cvtdq2ps xmm0, xmm0
jp 0x140020e6a
jne 0x140020e6a
mov eax, 1
jmp 0x140020e6c
xor eax, eax
ucomiss xmm0, xmm5
jp 0x140020e7b
jne 0x140020e7b
mov r12d, 2
jmp 0x140020e7e
xor r12d, r12d
movss xmm2, dword [0x1400b52d4]
or r12d, eax
comiss xmm5, xmm1
jb 0x140020e9a
addss xmm1, xmm4
comiss xmm1, xmm2
jae 0x140020e9a
movaps xmm1, xmm2
comiss xmm5, xmm0
jb 0x140020eae
addss xmm3, xmm0
comiss xmm3, xmm2
movaps xmm0, xmm3
jae 0x140020eae
movaps xmm0, xmm2
or dword [rdi + 0x3fb0], 2
movss dword [rdi + 0x3fd0], xmm1
movss dword [rdi + 0x3fd4], xmm0
mov dword [rdi + 0x3fb8], 1
mov r9, qword [r14]
test r10, r10
je 0x140020f39
xor eax, eax
mov dword [rbp - 0x20], 0x42491641
mov byte [rbp - 0x16], al
xor edx, edx
mov dword [rbp - 0x1c], 0x5b4f361b
mov word [rbp - 0x18], 0x3554
nop dword [rax]
nop word [rax + rax]
movsxd rcx, edx
lea eax, [rdx + 0x64]
inc edx
xor byte [rbp + rcx - 0x20], al
cmp edx, 0xa
jb 0x140020f00
lea rbx, [rdi + 0x5650]
mov dword [rsp + 0x28], r15d
mov rcx, rbx
mov byte [rbp - 0x16], 0
lea r8, [rbp - 0x20]
mov qword [rsp + 0x20], r10
mov edx, 0xc01
call fcn.140019f50
jmp 0x140020f82
mov dword [rbp + 0x30], 0x42491641
xor edx, edx
mov dword [rbp + 0x34], 0x325158
nop dword [rax]
movsxd rcx, edx
lea eax, [rdx + 0x64]
inc edx
xor byte [rbp + rcx + 0x30], al
cmp edx, 7
jb 0x140020f50
lea rbx, [rdi + 0x5650]
mov byte [rbp + 0x37], 0
mov rcx, rbx
mov dword [rsp + 0x20], r15d
lea r8, [rbp + 0x30]
mov edx, 0xc01
call fcn.140019f50
movss xmm6, dword [rdi + 0x3828]
test sil, sil
jne 0x140020f99
mov dword [rdi + 0x3828], 0
mov r8d, r13d
xor edx, edx
mov rcx, rbx
call fcn.140023bd0
mov rbx, qword [rdi + 0x3ea8]
movzx esi, al
movss dword [rdi + 0x3828], xmm6
cmp word [rbx + 0xa2], 1
mov dword [rbx + 0x60], r15d
mov byte [rbx + 0xb2], r12b
jne 0x140020fdb
movsd xmm0, qword [rbx + 0x18]
movsd qword [r14 + 0xe0], xmm0
cmp dword [rdi + 0x40c8], r15d
jne 0x1400210c5
bt r13d, 0x17
jb 0x1400210c5
cmp word [rbx + 0x13c], 0
jne 0x14002100a
cmp byte [rbx + 0x145], 0
je 0x1400210c5
mov rcx, rbx
call fcn.140026120
mov eax, dword [rbx + 0xc]
mov rdx, qword [0x14024ad10]
bt eax, 0x12
jae 0x14002102d
xor eax, eax
mov qword [rdx + 0x40c0], rax
jmp 0x1400210ab
cmp rbx, qword [rbx + 0x360]
je 0x140021058
bt eax, 0x1a
jb 0x140021058
mov eax, dword [rbx + 0x388]
test eax, eax
je 0x140021058
mov dword [rdx + 0x40c0], eax
mov dword [rdx + 0x40c4], 0
jmp 0x1400210ab
movsxd rcx, dword [rdx + 0x40f4]
xor r8d, r8d
mov rax, qword [rdx + 0x40b8]
xorps xmm0, xmm0
mov qword [rdx + 0x40c0], r8
mov dword [rax + rcx*4 + 0x388], r8d
add rcx, 0x39
mov rax, qword [rdx + 0x40b8]
add rcx, rcx
movups xmmword [rax + rcx*8], xmm0
mov word [rdx + 0x40fd], 1
mov dword [rdx + 0x4100], r8d
movups xmmword [rdx + 0x4104], xmm0
mov byte [rdx + 0x40fc], 1
lea ecx, [r15 + 1]
mov rdx, rbx
call fcn.14001c3c0
movzx eax, sil
mov dword [rdi + 0x3f38], 5
movaps xmm6, xmmword [rsp + 0x40]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret