Function at 0x140022270
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 [0x14011d300]
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 0x1400222e5
cmp qword [rdi + 0x4308], 0
je 0x1400222ee
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 0x14002232a
jne 0x14002232a
mov eax, 1
jmp 0x14002232c
xor eax, eax
ucomiss xmm0, xmm5
jp 0x14002233b
jne 0x14002233b
mov r12d, 2
jmp 0x14002233e
xor r12d, r12d
movss xmm2, dword [0x1400ba364]
or r12d, eax
comiss xmm5, xmm1
jb 0x14002235a
addss xmm1, xmm4
comiss xmm1, xmm2
jae 0x14002235a
movaps xmm1, xmm2
comiss xmm5, xmm0
jb 0x14002236e
addss xmm3, xmm0
comiss xmm3, xmm2
movaps xmm0, xmm3
jae 0x14002236e
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 0x1400223f9
xor eax, eax
mov dword [rbp - 0x20], 0xede8b5e0
mov byte [rbp - 0x16], al
xor edx, edx
mov dword [rbp - 0x1c], 0xfcee95ba
mov word [rbp - 0x18], 0x96f5
nop dword [rax]
nop word [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x3b]
inc edx
xor byte [rbp + rcx - 0x20], al
cmp edx, 0xa
jb 0x1400223c0
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.14001b410
jmp 0x140022442
mov dword [rbp + 0x30], 0xede8b5e0
xor edx, edx
mov dword [rbp + 0x34], 0x93f2f9
nop dword [rax]
movsxd rcx, edx
lea eax, [rdx - 0x3b]
inc edx
xor byte [rbp + rcx + 0x30], al
cmp edx, 7
jb 0x140022410
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.14001b410
movss xmm6, dword [rdi + 0x3828]
test sil, sil
jne 0x140022459
mov dword [rdi + 0x3828], 0
mov r8d, r13d
xor edx, edx
mov rcx, rbx
call fcn.140025090
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 0x14002249b
movsd xmm0, qword [rbx + 0x18]
movsd qword [r14 + 0xe0], xmm0
cmp dword [rdi + 0x40c8], r15d
jne 0x140022585
bt r13d, 0x17
jb 0x140022585
cmp word [rbx + 0x13c], 0
jne 0x1400224ca
cmp byte [rbx + 0x145], 0
je 0x140022585
mov rcx, rbx
call fcn.1400275e0
mov eax, dword [rbx + 0xc]
mov rdx, qword [0x14011d300]
bt eax, 0x12
jae 0x1400224ed
xor eax, eax
mov qword [rdx + 0x40c0], rax
jmp 0x14002256b
cmp rbx, qword [rbx + 0x360]
je 0x140022518
bt eax, 0x1a
jb 0x140022518
mov eax, dword [rbx + 0x388]
test eax, eax
je 0x140022518
mov dword [rdx + 0x40c0], eax
mov dword [rdx + 0x40c4], 0
jmp 0x14002256b
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.14001d880
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