Function at 0x14002a110
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov r12, rdx
mov r14, rcx
xor ecx, ecx
mov dword [rbp - 0x48], ecx
mov esi, ecx
mov qword [rbp - 0x28], rcx
mov edi, ecx
mov qword [rbp - 0x20], rcx
mov ebx, ecx
mov qword [rbp - 0x18], rcx
mov rax, qword [rdx]
movzx eax, word [rax]
cmp ax, word [0x140158bec]
jne 0x14002a16a
mov eax, ecx
jmp 0x14002a16f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14002a1cb
mov qword [r14], rcx
mov qword [r14 + 8], rcx
mov qword [r14 + 0x10], rcx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rcx
mov dword [rbp - 0x48], 1
mov rdx, qword [rdx]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002a1ac
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8, qword [rbp + 0x58]
mov rdx, qword [r8]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002a1c3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r14
jmp 0x14002a524
mov r15d, ecx
nop
mov rdx, qword [r8]
test rdx, rdx
je 0x14002a208
mov rcx, qword [r12]
test r15d, r15d
js 0x14002a208
cmp r15d, dword [rcx - 0x10]
jg 0x14002a208
movsxd rax, r15d
lea rcx, [rcx + rax*2]
call fcn.1400d4634
mov r14, rax
test rax, rax
je 0x14002a208
sub r14, qword [r12]
sar r14, 1
cmp r14d, 0xffffffff
jne 0x14002a210
mov rax, qword [r12]
mov r14d, dword [rax - 0x10]
mov r9d, r14d
sub r9d, r15d
mov r8d, r15d
lea rdx, [rbp + 0x60]
mov rcx, r12
call fcn.14000fe20
nop
mov r8d, dword [0x1401d5d60]
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
imul ecx, r8d
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub ecx, edx
cmp ecx, 5
jne 0x14002a2fa
xor edx, edx
nop
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, r8d
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
add r8d, eax
inc edx
cmp edx, 0x100
jl 0x14002a260
mov dword [0x1401d5d60], r8d
lea rax, [rbp + 0x60]
cmp rax, rdi
jae 0x14002a3b8
lea rax, [rbp + 0x60]
cmp rsi, rax
ja 0x14002a3b8
lea r15, [rbp + 0x60]
sub r15, rsi
sar r15, 3
cmp rdi, rbx
jne 0x14002a392
mov rax, rbx
sub rax, rdi
sar rax, 3
cmp rax, 1
jae 0x14002a392
sub rdi, rsi
sar rdi, 3
movabs rdx, 0x1fffffffffffffff
mov rax, rdx
sub rax, rdi
cmp rax, 1
jb 0x14002a48b
inc rdi
sub rbx, rsi
sar rbx, 3
mov rcx, rbx
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp rax, rbx
jae 0x14002a374
xor ebx, ebx
jmp 0x14002a377
add rbx, rcx
cmp rbx, rdi
cmovb rbx, rdi
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.14001e270
mov rdi, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x28]
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rdi
test rdi, rdi
je 0x14002a3b3
mov rcx, qword [rsi + r15*8]
sub rcx, 0x18
call fcn.1400025c0
add rax, 0x18
mov qword [rdi], rax
jmp 0x14002a448
cmp rdi, rbx
jne 0x14002a427
mov rax, rbx
sub rax, rdi
sar rax, 3
cmp rax, 1
jae 0x14002a427
sub rdi, rsi
sar rdi, 3
movabs rdx, 0x1fffffffffffffff
mov rax, rdx
sub rax, rdi
cmp rax, 1
jb 0x14002a498
inc rdi
sub rbx, rsi
sar rbx, 3
mov rcx, rbx
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp rax, rbx
jae 0x14002a40d
xor ebx, ebx
jmp 0x14002a410
add rbx, rcx
cmp rbx, rdi
cmovb rbx, rdi
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.14001e270
mov rdi, qword [rbp - 0x20]
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x38], rdi
test rdi, rdi
je 0x14002a448
mov rcx, qword [rbp + 0x60]
add rcx, 0xffffffffffffffe8
call fcn.1400025c0
add rax, 0x18
mov qword [rdi], rax
add rdi, 8
mov qword [rbp - 0x20], rdi
mov rax, qword [r12]
cmp r14d, dword [rax - 0x10]
jge 0x14002a4a5
lea r15d, [r14 + 1]
mov rdx, qword [rbp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002a476
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x28]
mov r8, qword [rbp + 0x58]
jmp 0x14002a1d0
lea rcx, str.vector_T__too_long
call fcn.1400d2db8
int3
lea rcx, str.vector_T__too_long
call fcn.1400d2db8
nop
mov rdx, qword [rbp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002a4bd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp - 0x28]
mov rbx, qword [rbp + 0x48]
mov qword [rbx], rax
mov rax, qword [rbp - 0x20]
mov qword [rbx + 8], rax
mov rax, qword [rbp - 0x18]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x48], 1
mov rdx, qword [r12]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002a506
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x58]
mov rdx, qword [rdx]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002a521
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbx
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret