Function at 0x140118560
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r14, rdx
mov rdx, qword [rcx + 0x18]
cmp rdx, 0xffffffffffffffff
je 0x140118f04
mov r8, rcx
mov rsi, qword [rcx + 8]
lea r15, [rsi + 1]
mov rax, r15
shr rax, 3
mov rbx, r15
and rbx, 0xfffffffffffffff8
sub rbx, rax
cmp rsi, 8
mov rcx, rbx
cmovb rcx, rsi
mov rax, rcx
shr rax, 1
cmp rdx, rax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x28], r8
jae 0x1401185ed
mov rdi, qword [r8]
mov rcx, r15
shr rcx, 4
xor eax, eax
test r15b, 0xf
setne al
add rax, rcx
je 0x140118981
cmp rax, 1
jne 0x14011890b
xor edx, edx
jmp 0x140118967
lea rax, [rdx + 1]
inc rcx
cmp rax, rcx
cmova rcx, rax
cmp rcx, 8
mov qword [rsp + 0x30], r15
jae 0x140118619
xor eax, eax
cmp rcx, 4
setae al
lea r15, [rax*4 + 4]
jmp 0x14011865d
mov rax, rcx
shr rax, 0x3d
jne 0x140118f04
shl rcx, 3
movabs rdx, 0x2492492492492493
mov rax, rcx
mul rdx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 2
dec rcx
bsr rcx, rcx
not ecx
mov r15, 0xffffffffffffffff
shr r15, cl
inc r15
mov ecx, 0x68
mov rax, r15
mul rcx
jo 0x140118f04
mov r12, rax
cmp rax, 0xfffffffffffffff0
ja 0x140118f04
add r12, 0xf
and r12, 0xfffffffffffffff0
lea r13, [r15 + 0x10]
mov rbp, r12
add rbp, r13
jb 0x140118f04
movabs rax, 0x7ffffffffffffff1
cmp rbp, rax
jae 0x140118f04
movzx eax, byte [0x140177ea0]
xor ecx, ecx
mov rdx, rbp
call fcn.1400f3650
test rax, rax
je 0x140118f09
mov rdi, rax
lea rbp, [r15 - 1]
mov rax, r15
shr rax, 3
mov rbx, r15
and rbx, 0xfffffffffffffff8
sub rbx, rax
cmp r15, 9
cmovb rbx, rbp
add rdi, r12
mov rcx, rdi
mov dl, 0xff
mov r8, r13
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140118898
mov qword [rsp + 0x50], rbx
mov rax, qword [rsp + 0x28]
mov r15, qword [rax]
movdqa xmm0, xmmword [r15]
pmovmskb r13d, xmm0
not r13d
lea rax, [r15 - 0x68]
mov qword [rsp + 0x58], rax
mov rax, qword [r14]
mov qword [rsp + 0x40], rax
mov rax, qword [r14 + 8]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x20], r15
mov r14, rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r8d, r8d
movdqa xmm0, xmmword [0x14011c6d0]
nop word cs:[rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdi + r8]
por xmm1, xmm0
movdqa xmmword [rdi + r8], xmm1
lea rdx, [r8 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rdi + r8 + 0x10]
por xmm1, xmm0
movdqa xmmword [rdi + r8 + 0x10], xmm1
mov r8, rdx
add rcx, 0xfffffffffffffffe
jne 0x140118930
test al, 1
je 0x140118981
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rdi + rdx]
por xmm0, xmmword [0x14011c6d0]
movdqa xmmword [rdi + rdx], xmm0
cmp r15, 0x10
jae 0x1401189a2
lea rcx, [rdi + 0x10]
mov rdx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memmove
test r15, r15
jne 0x1401189ac
xor ecx, ecx
jmp 0x140118ee2
movdqu xmm0, xmmword [rdi]
movdqu xmmword [rdi + r15], xmm0
mov qword [rsp + 0x68], rbx
mov rax, qword [r14]
mov rcx, qword [r14 + 8]
movabs rbp, 0x736f6d6570736575
xor rbp, rax
movabs rdx, 0x646f72616e646f6d
xor rdx, rcx
mov qword [rsp + 0x40], rdx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x38], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x30], rax
lea rax, [rdi - 0x68]
mov qword [rsp + 0x70], rax
xor ecx, ecx
mov r12, rdi
xor r11d, r11d
mov qword [rsp + 0x78], rsi
jmp 0x140118a49
call fcn.14002ad50
mov rcx, rbp
call fcn.14002ad90
int3