Function at 0x140022310
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 [0x140124520]
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 0x140022385
cmp qword [rdi + 0x4308], 0
je 0x14002238e
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 0x1400223ca
jne 0x1400223ca
mov eax, 1
jmp 0x1400223cc
xor eax, eax
ucomiss xmm0, xmm5
jp 0x1400223db
jne 0x1400223db
mov r12d, 2
jmp 0x1400223de
xor r12d, r12d
movss xmm2, dword [0x1400bc3b4]
or r12d, eax
comiss xmm5, xmm1
jb 0x1400223fa
addss xmm1, xmm4
comiss xmm1, xmm2
jae 0x1400223fa
movaps xmm1, xmm2
comiss xmm5, xmm0
jb 0x14002240e
addss xmm3, xmm0
comiss xmm3, xmm2
movaps xmm0, xmm3
jae 0x14002240e
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 0x140022499
xor eax, eax
mov dword [rbp - 0x20], 0xc4cfacfb
mov byte [rbp - 0x16], al
xor edx, edx
mov dword [rbp - 0x1c], 0xd5c1bc91
mov word [rbp - 0x18], 0xbfde
nop dword [rax]
nop word [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x22]
inc edx
xor byte [rbp + rcx - 0x20], al
cmp edx, 0xa
jb 0x140022460
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.14001b4b0
jmp 0x1400224e2
mov dword [rbp + 0x30], 0xc4cfacfb
xor edx, edx
mov dword [rbp + 0x34], 0xbcdbd2
nop dword [rax]
movsxd rcx, edx
lea eax, [rdx - 0x22]
inc edx
xor byte [rbp + rcx + 0x30], al
cmp edx, 7
jb 0x1400224b0
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.14001b4b0
movss xmm6, dword [rdi + 0x3828]
test sil, sil
jne 0x1400224f9
mov dword [rdi + 0x3828], 0
mov r8d, r13d
xor edx, edx
mov rcx, rbx
call fcn.140025130
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 0x14002253b
movsd xmm0, qword [rbx + 0x18]
movsd qword [r14 + 0xe0], xmm0
cmp dword [rdi + 0x40c8], r15d
jne 0x140022625
bt r13d, 0x17
jb 0x140022625
cmp word [rbx + 0x13c], 0
jne 0x14002256a
cmp byte [rbx + 0x145], 0
je 0x140022625
mov rcx, rbx
call fcn.140027680
mov eax, dword [rbx + 0xc]
mov rdx, qword [0x140124520]
bt eax, 0x12
jae 0x14002258d
xor eax, eax
mov qword [rdx + 0x40c0], rax
jmp 0x14002260b
cmp rbx, qword [rbx + 0x360]
je 0x1400225b8
bt eax, 0x1a
jb 0x1400225b8
mov eax, dword [rbx + 0x388]
test eax, eax
je 0x1400225b8
mov dword [rdx + 0x40c0], eax
mov dword [rdx + 0x40c4], 0
jmp 0x14002260b
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.14001d920
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