Function at 0x140012360
Capabilities:
Encode data using xor

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
push rsi
push r13
push r14
sub rsp, 0x28
mov rax, qword [rcx]
mov r9d, r8d
movsxd rbx, edx
mov rsi, rcx
mov edx, 8
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x68], r12
mov r8d, dword [rax]
cmp r8d, 1
mov r8, rbx
mov qword [rsp + 0x20], r15
lea ecx, [rdx + 0x40]
seta r13b
call qword [sym.imp.Qt5Core_conda.dll_public:_static_struct_QArrayData____ptr64___cdecl_QArrayData::allocate_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___class_QFlags_enum_QArrayData::AllocationOption__]
mov rdx, qword [rsi]
mov r14, rax
mov r12, qword [rax + 0x10]
mov ecx, dword [rdx + 4]
add r12, rax
mov dword [rax + 4], ecx
mov r9, qword [rsi]
mov r8, qword [r9 + 0x10]
movsxd rcx, dword [r9 + 4]
lea rbp, [r8 + r9]
lea rdx, [rcx + rcx*8]
lea r15, [r8 + rdx*8]
add r15, r9
test r13b, r13b
je 0x14001248f
cmp rbp, r15
je 0x1400124c0
mov qword [rsp + 0x60], rdi
nop dword [rax]
mov rdi, r12
mov rbx, rbp
mov rdx, rbx
mov rcx, rdi
add r12, 0x48
add rbp, 0x48
call qword [sym.imp.Qt5Core_conda.dll_public:_void___cdecl_QByteArray::constructor_class_QByteArray_const____ptr64____ptr64]
lea rdx, [rbx + 8]
lea rcx, [rdi + 8]
call qword [sym.imp.Qt5Core_conda.dll_public:_void___cdecl_QByteArray::constructor_class_QByteArray_const____ptr64____ptr64]
mov eax, dword [rdi + 0x10]
lea rdx, [rbx + 0x20]
xor eax, dword [rbx + 0x10]
and eax, 1
xor dword [rdi + 0x10], eax
mov ecx, dword [rdi + 0x10]
xor ecx, dword [rbx + 0x10]
and ecx, 2
xor dword [rdi + 0x10], ecx
lea rcx, [rdi + 0x20]
mov eax, dword [rbx + 0x14]
mov dword [rdi + 0x14], eax
mov eax, dword [rbx + 0x18]
mov dword [rdi + 0x18], eax
call qword [sym.imp.Qt5Core_conda.dll_public:_void___cdecl_QByteArray::constructor_class_QByteArray_const____ptr64____ptr64]
lea rdx, [rbx + 0x28]
lea rcx, [rdi + 0x28]
call qword [sym.imp.Qt5Core_conda.dll_public:_void___cdecl_QByteArray::constructor_class_QByteArray_const____ptr64____ptr64]
lea rdx, [rbx + 0x30]
lea rcx, [rdi + 0x30]
call qword [sym.imp.Qt5Core_conda.dll_public:_void___cdecl_QByteArray::constructor_class_QByteArray_const____ptr64____ptr64]
lea rdx, [rbx + 0x38]
lea rcx, [rdi + 0x38]
call qword [sym.imp.Qt5Core_conda.dll_public:_void___cdecl_QByteArray::constructor_class_QByteArray_const____ptr64____ptr64]
movzx eax, byte [rbx + 0x40]
mov byte [rdi + 0x40], al
cmp rbp, r15
jne 0x1400123f0
mov ebx, dword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
jmp 0x1400124c0
sub r15, rbp
movabs rax, 0xe38e38e38e38e39
imul r15
mov rcx, r12
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea r8, [rdx + rdx*8]
mov rdx, rbp
shl r8, 3
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi]
mov r15, qword [rsp + 0x20]
mov r12, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
mov ecx, dword [rax + 8]
xor ecx, dword [r14 + 8]
btr ecx, 0x1f
xor ecx, dword [rax + 8]
mov dword [r14 + 8], ecx
mov rcx, qword [rsi]
mov eax, dword [rcx]
test eax, eax
je 0x140012500
cmp eax, 0xffffffff
je 0x140012543
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140012543
test ebx, ebx
je 0x14001250e
test r13b, r13b
jne 0x14001250e
mov rcx, qword [rsi]
jmp 0x140012533
mov rbx, qword [rsi]
mov rcx, rsi
mov r9, qword [rbx + 0x10]
movsxd rax, dword [rbx + 4]
lea rdx, [rax + rax*8]
lea r8, [r9 + rdx*8]
add r8, rbx
lea rdx, [r9 + rbx]
call fcn.140006600
mov rcx, rbx
mov r8d, 8
lea edx, [r8 + 0x40]
call qword [sym.imp.Qt5Core_conda.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__]
mov qword [rsi], r14
add rsp, 0x28
pop r14
pop r13
pop rsi
pop rbx
ret