Function at 0x140111770
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov r14, r8
sub r14, 3
mov r8d, 3
cmovb r8, rdi
neg r14
lea rcx, [0x14024263d]
call sub.VCRUNTIME140.dll_memcmp
cdqe
test eax, eax
cmovne r14, rax
xor eax, eax
test r14, r14
mov r15d, 6
cmovg r15, rax
lea r12, [r15 + 3]
mov eax, r12d
shl eax, 5
lea r14, [0x140278880]
mov rcx, qword [rax + r14]
mov r8, qword [rax + r14 + 8]
mov r13, r8
sub r13, rdi
cmovae r8, rdi
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcmp
cdqe
test eax, eax
cmovne r13, rax
test r13, r13
cmovle r15, r12
lea r12, [r15 + 2]
mov eax, r12d
shl eax, 5
mov rcx, qword [rax + r14]
mov r8, qword [rax + r14 + 8]
mov r13, r8
sub r13, rdi
cmovae r8, rdi
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcmp
cdqe
test eax, eax
cmovne r13, rax
test r13, r13
cmovle r15, r12
lea r12, [r15 + 1]
mov rax, r12
shl rax, 5
mov rcx, qword [rax + r14]
mov r8, qword [rax + r14 + 8]
mov r13, r8
sub r13, rdi
cmovae r8, rdi
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcmp
cdqe
test eax, eax
cmovne r13, rax
test r13, r13
cmovg r12, r15
shl r12, 5
mov rcx, qword [r12 + r14]
mov rax, qword [r12 + r14 + 8]
mov r15, rax
sub r15, rdi
cmovb rdi, rax
mov rdx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcmp
cdqe
test eax, eax
cmovne r15, rax
test r15, r15
je 0x1401118a8
mov byte [rsi + 8], 1
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x1401119a4
mov rbx, qword [r12 + r14 + 0x18]
test rbx, rbx
je 0x14011196d
mov r14, qword [r12 + r14 + 0x10]
lea rdi, [rbx*8]
movzx eax, byte [0x1402a5340]
xor ecx, ecx
mov rdx, rdi
call fcn.1401af7e0
test rax, rax
je 0x140111a74
cmp rbx, 0x10
jae 0x1401119b4
xor ecx, ecx
mov rdx, rcx
or rdx, 1
test bl, 1
je 0x140111918
mov r8d, dword [r14 + rcx*8]
mov r9d, dword [r14 + rcx*8 + 4]
cmp r8d, r9d
mov r10d, r9d
cmovb r10d, r8d
cmova r9d, r8d
mov dword [rax + rcx*8], r10d
mov dword [rax + rcx*8 + 4], r9d
mov rcx, rdx
cmp rbx, rdx
je 0x140111972
nop dword [rax]
mov edx, dword [r14 + rcx*8]
mov r8d, dword [r14 + rcx*8 + 4]
cmp edx, r8d
mov r9d, r8d
cmovb r9d, edx
cmova r8d, edx
mov dword [rax + rcx*8], r9d
mov dword [rax + rcx*8 + 4], r8d
mov edx, dword [r14 + rcx*8 + 8]
mov r8d, dword [r14 + rcx*8 + 0xc]
cmp edx, r8d
mov r9d, r8d
cmovb r9d, edx
cmova r8d, edx
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], r8d
add rcx, 2
cmp rbx, rcx
jne 0x140111920
jmp 0x140111972
mov eax, 4
test rbx, rbx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rbx
sete byte [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.14010a370
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rax + rbx*8]
add rdx, 0xfffffffffffffff8
xor ecx, ecx
cmp rdx, rax
jb 0x1401118e9
lea rdx, [rax + rbx*8]
add rdx, 0xfffffffffffffffc
mov r8, rax
add r8, 4
cmp rdx, r8
jb 0x1401118e9
lea rdx, [rbx - 1]
shr rdx, 0x3d
jne 0x1401118e9
movabs rcx, 0x3ffffffffffffffe
and rcx, rbx
xor edx, edx
movdqa xmm0, xmmword [0x1401e0950]
nop word cs:[rax + rax]
movdqu xmm1, xmmword [r14 + rdx*8]
pshufd xmm2, xmm1, 0xe8
pshufd xmm1, xmm1, 0xed
movdqa xmm3, xmm2
pxor xmm3, xmm0
movdqa xmm4, xmm1
pxor xmm4, xmm0
pcmpgtd xmm4, xmm3
movdqa xmm3, xmm4
pandn xmm3, xmm1
movdqa xmm5, xmm4
pandn xmm5, xmm2
pand xmm2, xmm4
por xmm2, xmm3
pand xmm4, xmm1
por xmm4, xmm5
punpckldq xmm2, xmm4
movdqu xmmword [rax + rdx*8], xmm2
add rdx, 2
cmp rcx, rdx
jne 0x140111a10
cmp rbx, rcx
jne 0x1401118e9
jmp 0x140111972
mov ecx, 4
mov rdx, rdi
call fcn.1401d11bf
int3