Function at 0x6add20
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x48], rax
inc rax
je 0x6ae56a
mov r13, rdx
mov r9, rcx
mov rbp, qword [rcx + 8]
lea r15, [rbp + 1]
mov rcx, r15
shr rcx, 3
mov r10, r15
and r10, 0xfffffffffffffff8
sub r10, rcx
cmp rbp, 8
mov rcx, r10
cmovb rcx, rbp
movabs r8, 0x7ffffffffffffff0
mov rdx, rcx
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x20], r9
jbe 0x6addac
inc rcx
cmp rax, rcx
cmova rcx, rax
cmp rcx, 8
jae 0x6addde
xor eax, eax
cmp rcx, 4
setae al
lea rdi, [rax*4 + 4]
jmp 0x6ade3f
mov qword [rsp + 0x60], r10
mov rbx, qword [r9]
mov rcx, r15
shr rcx, 4
xor eax, eax
test r15b, 0xf
setne al
add rax, rcx
je 0x6ae0f1
cmp rax, 1
jne 0x6ae07f
xor edx, edx
jmp 0x6ae0d7
movabs rax, 0x1ffffffffffffffe
or rax, 1
cmp rcx, rax
ja 0x6ae56a
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 rdi, 0xffffffffffffffff
shr rdi, cl
movabs rax, 0x7fffffffffffffe
cmp rdi, rax
ja 0x6ae56a
inc rdi
mov rsi, rdi
shl rsi, 5
lea r15, [rdi + 0x10]
mov r12, rsi
add r12, r15
jb 0x6ae56a
cmp r12, r8
ja 0x6ae56a
test r12, r12
je 0x6ade85
movzx eax, byte [0x0076d188]
xor ecx, ecx
mov rdx, r12
call fcn.0069df80
mov rbx, rax
test rax, rax
jne 0x6ade8a
mov rcx, r12
call fcn.0059f9c0
mov ebx, 0x10
add rbx, rsi
lea rsi, [rdi - 1]
mov rax, rdi
shr rax, 3
mov r14, rdi
and r14, 0xfffffffffffffff8
sub r14, rax
cmp rdi, 9
cmovb r14, rsi
mov rcx, rbx
mov dl, 0xff
mov r8, r15
call sub.msvcrt.dll_memset
mov r12, qword [rsp + 0x48]
test r12, r12
je 0x6ae022
mov qword [rsp + 0x28], r14
mov rax, qword [rsp + 0x20]
mov r8, qword [rax]
movdqa xmm0, xmmword [r8]
pmovmskb r14d, xmm0
not r14d
mov rax, qword [r13]
mov qword [rsp + 0x38], rax
mov rax, qword [r13 + 8]
mov qword [rsp + 0x30], rax
xor r13d, r13d
mov r15, r8
mov qword [rsp + 0x40], r8
jmp 0x6adf4f
lea ecx, [r14 - 1]
and ecx, r14d
dec r12
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rsi
mov byte [rbx + rdx], al
mov byte [rbx + r9 + 0x10], al
not rdi
shl rdi, 5
not rdx
shl rdx, 5
movdqu xmm0, xmmword [r8 + rdi]
movdqu xmm1, xmmword [r8 + rdi + 0x10]
movdqu xmmword [rbx + rdx + 0x10], xmm1
movdqu xmmword [rbx + rdx], xmm0
mov r14d, ecx
test r12, r12
je 0x6ae011
test r14w, r14w
jne 0x6adf7f
nop word cs:[rax + rax]
movdqa xmm0, xmmword [r15 + 0x10]
add r15, 0x10
pmovmskb r14d, xmm0
add r13, 0x10
cmp r14d, 0xffff
je 0x6adf60
not r14d
tzcnt edi, r14d
add rdi, r13
mov rax, rdi
shl rax, 5
mov rcx, r8
sub rcx, rax
mov r8, qword [rcx - 0x18]
mov r9, qword [rcx - 0x10]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
call fcn.006adaf0
mov rcx, rsi
and rcx, rax
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x6adfe7
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, rsi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x6adfd0
mov r8, qword [rsp + 0x40]
tzcnt edx, edx
add rdx, rcx
and rdx, rsi
cmp byte [rbx + rdx], 0
js 0x6adf00
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x6adf00
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
mov r14, qword [rsp + 0x28]
jmp 0x6ae02c
mov rax, qword [rsp + 0x20]
mov r8, qword [rax]
xor ecx, ecx
sub r14, rcx
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], rcx
test rbp, rbp
movabs rsi, 0x7ffffffffffffff0
je 0x6ae552
mov rax, rbp
shl rax, 5
add rbp, rax
cmp rbp, 0xffffffffffffffcf
je 0x6ae552
sub r8, rax
add r8, 0xffffffffffffffe0
mov rcx, qword [0x0076d128]
xor edx, edx
call fcn.006d3c74
jmp 0x6ae552
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r8d, r8d
movdqa xmm0, xmmword [0x006eaea0]
nop word [rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r8]
por xmm1, xmm0
movdqa xmmword [rbx + r8], xmm1
lea rdx, [r8 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r8 + 0x10]
por xmm1, xmm0
movdqa xmmword [rbx + r8 + 0x10], xmm1
mov r8, rdx
add rcx, 0xfffffffffffffffe
jne 0x6ae0a0
test al, 1
je 0x6ae0f1
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rdx]
por xmm0, xmmword [0x006eaea0]
movdqa xmmword [rbx + rdx], xmm0
cmp r15, 0x10
jae 0x6ae112
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, r15
call sub.msvcrt.dll_memmove
test r15, r15
jne 0x6ae11c
xor ecx, ecx
jmp 0x6ae53a
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + r15], xmm0
mov rax, qword [r13]
mov rcx, qword [r13 + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
mov qword [rsp + 0x30], rdx
movabs rdx, 0x646f72616e646f6d
xor rdx, rcx
mov qword [rsp + 0x28], rdx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x58], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x50], rax
xor r15d, r15d
jmp 0x6ae1a3
shr rax, 0x39
lea rcx, [r15 - 0x10]
and rcx, rbp
mov byte [rbx + r15], al
mov byte [rbx + rcx + 0x10], al
lea rax, [r15 + 1]
cmp r15, rbp
mov r15, rax
je 0x6ae52d
cmp byte [rbx + r15], 0x80
jne 0x6ae193
mov rax, r15
not rax
shl rax, 5
add rax, rbx
mov qword [rsp + 0x38], rax
mov rax, r15
shl rax, 5
mov rcx, rbx
sub rcx, rax
mov qword [rsp + 0x40], rcx
nop
mov rax, qword [rsp + 0x40]
mov r12, qword [rax - 0x18]
mov rdi, qword [rax - 0x10]
mov rax, rdi
and rax, 0xfffffffffffffff8
je 0x6ae280
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x28]
mov r10, qword [rsp + 0x50]
xor r13d, r13d
mov rdx, qword [rsp + 0x30]
nop word cs:[rax + rax]
add rdx, r8
rol r8, 0xd
mov rcx, qword [r12 + r13]
xor r8, rdx
rol rdx, 0x20
xor r10, rcx
add r9, r10
rol r10, 0x10
xor r10, r9
add rdx, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, rdx
xor rdx, rcx
add r13, 8
cmp r13, rax
jb 0x6ae210
mov r14d, edi
and r14d, 7
cmp r14d, 4
jb 0x6ae2a4
mov r11d, dword [r12 + r13]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r14
jb 0x6ae2b5
jmp 0x6ae2d0
mov r10, qword [rsp + 0x50]
mov r8, qword [rsp + 0x28]
mov r9, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x30]
xor r13d, r13d
mov r14d, edi
and r14d, 7
cmp r14d, 4
jae 0x6ae260
xor r11d, r11d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r14
jae 0x6ae2d0
lea rcx, [r12 + rax]
movzx esi, word [r13 + rcx]
lea ecx, [rax*8]
shl rsi, cl
or r11, rsi
or rax, 2
cmp rax, r14
jae 0x6ae2f0
add r13, rax
movzx esi, byte [r12 + r13]
shl eax, 3
mov ecx, eax
shl rsi, cl
or r11, rsi
jmp 0x6ae2f5
test r14, r14
je 0x6ae348
lea ecx, [r14*8]
mov eax, 0xff
shl rax, cl
or rax, r11
cmp r14, 7
jne 0x6ae350
add rdx, r8
rol r8, 0xd
xor r10, rax
xor r8, rdx
rol rdx, 0x20
add r9, r10
rol r10, 0x10
xor r10, r9
add rdx, r10
rol r10, 0x15
xor r10, rdx
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor rdx, rax
xor eax, eax
jmp 0x6ae350
mov eax, 0xff
nop dword [rax]
shl rdi, 0x38
movabs rcx, 0x100000000000000
add rdi, rcx
add rdx, r8
rol r8, 0xd
or rdi, rax
xor r8, rdx
rol rdx, 0x20
xor r10, rdi
add r9, r10
rol r10, 0x10
xor r10, r9
add rdx, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r10, rdx
xor r8, r9
rol r9, 0x20
xor rdx, rdi
add rdx, r8
rol r8, 0xd
xor r8, rdx
rol rdx, 0x20
xor r9, 0xff
add r9, r10
rol r10, 0x10
xor r10, r9
add rdx, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, rdx
add rdx, r8
rol r8, 0xd
xor r8, rdx
rol rdx, 0x20
add r9, r10
rol r10, 0x10
xor r10, r9
add rdx, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, rdx
add rdx, r8
rol r8, 0xd
add r9, r10
rol r10, 0x10
xor r10, r9
rol r10, 0x15
xor r8, rdx
add r9, r8
rol r8, 0x11
mov rax, r9
rol rax, 0x20
xor rax, r8
xor rax, r10
xor rax, r9
mov rcx, rbp
and rcx, rax
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
jne 0x6ae468
mov r9d, 0x10
mov r8, rcx
nop
add r8, r9
and r8, rbp
movdqu xmm0, xmmword [rbx + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x6ae450
tzcnt edx, edx
add rdx, r8
and rdx, rbp
cmp byte [rbx + rdx], 0
js 0x6ae484
movdqa xmm0, xmmword [rbx]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, r15
sub r8, rcx
mov r9, rdx
sub r9, rcx
xor r9, r8
and r9, rbp
cmp r9, 0x10
jb 0x6ae180
mov rcx, rdx
not rcx
shl rcx, 5
add rcx, rbx
movzx r8d, byte [rbx + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rbp
mov byte [rbx + rdx], al
mov byte [rbx + r9 + 0x10], al
cmp r8b, 0xff
je 0x6ae500
mov rax, qword [rsp + 0x38]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rcx]
movups xmmword [rax], xmm1
movups xmmword [rcx], xmm0
movdqu xmm0, xmmword [rax + 0x10]
movdqu xmm1, xmmword [rcx + 0x10]
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rcx + 0x10], xmm0
jmp 0x6ae1d0
lea rax, [r15 - 0x10]
and rax, rbp
mov byte [rbx + r15], 0xff
mov byte [rbx + rax + 0x10], 0xff
mov rax, qword [rsp + 0x38]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 0x10]
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmmword [rcx], xmm0
jmp 0x6ae193
cmp rbp, 8
mov rcx, qword [rsp + 0x60]
cmovb rcx, rbp
sub rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x10], rcx
movabs rsi, 0x7ffffffffffffff0
add rsi, 0x11
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.0059f980
int3