Function at 0x18018f780
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x28], rcx
mov r12d, 0xe
xor r15d, r15d
lea rax, [0x180297220]
mov r13d, 0xe
nop
shr r12, 1
add r12, r15
mov rsi, r12
shl rsi, 5
mov rcx, qword [rsi + rax]
mov rbx, rax
mov r8, qword [rsi + rax + 8]
mov r14, r8
sub r14, rdi
cmovae r8, rdi
mov rdx, qword [rbp - 0x30]
call sub.VCRUNTIME140.dll_memcmp
cdqe
test eax, eax
cmovne r14, rax
test r14, r14
je 0x18018f82e
lea rax, [r12 + 1]
test r14, r14
cmovg r13, r12
cmovs r15, rax
mov r12, r13
sub r12, r15
mov rax, rbx
ja 0x18018f7c0
mov rcx, qword [rbp - 0x28]
mov byte [rcx + 8], 1
movabs rax, 0x8000000000000000
mov qword [rcx], rax
jmp 0x18018f956
mov rax, rbx
mov rbx, qword [rsi + rbx + 0x18]
test rbx, rbx
je 0x18018f8fd
mov r14, qword [rsi + rax + 0x10]
lea rdi, [rbx*8]
movzx eax, byte [0x1802ea611]
mov edx, 4
mov rcx, rdi
call fcn.180004690
test rax, rax
je 0x18018fa34
cmp rbx, 0x14
jae 0x18018f967
xor ecx, ecx
mov rdx, rcx
or rdx, 1
test bl, 1
je 0x18018f8a4
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 0x18018f902
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 0x18018f8b0
jmp 0x18018f902
mov eax, 4
lea rcx, [rax + rbx*8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x20]
call fcn.1801920c0
mov rax, qword [rbp - 0x38]
test rax, rax
mov qword [rbp - 0x10], rax
movups xmm0, xmmword [rbp - 0x48]
movaps xmmword [rbp - 0x20], xmm0
sete byte [rbp - 8]
lea rcx, [rbp - 0x20]
call fcn.180191bf0
movaps xmm0, xmmword [rbp - 0x20]
movaps xmm1, xmmword [rbp - 0x10]
mov rax, qword [rbp - 0x28]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rdx, [rax + rbx*8]
add rdx, 0xfffffffffffffff8
xor ecx, ecx
cmp rdx, rax
jb 0x18018f875
lea rdx, [rax + 4]
lea r8, [rax + rbx*8]
add r8, 0xfffffffffffffffc
cmp r8, rdx
jb 0x18018f875
lea rdx, [rbx - 1]
shr rdx, 0x3d
jne 0x18018f875
lea rcx, [r14 + rbx*8]
cmp rax, rcx
jae 0x18018f9b3
lea rcx, [rax + rbx*8]
cmp r14, rcx
jb 0x18018f873
mov rcx, rbx
and rcx, 0xfffffffffffffffe
xor edx, edx
movdqa xmm0, xmmword [0x180221660]
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 0x18018f9d0
cmp rbx, rcx
jne 0x18018f875
jmp 0x18018f902
mov ecx, 4
mov rdx, rdi
call fcn.180201570
int3