Function at 0x14006a6a0
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 rdi, rdx
mov rdx, qword [rcx + 0x18]
mov rax, rdx
inc rax
je 0x14006b1a7
mov rsi, rcx
mov r15, qword [rcx + 8]
lea r8, [r15 + 1]
mov rcx, r8
shr rcx, 3
mov rbx, r8
and rbx, 0xfffffffffffffff8
sub rbx, rcx
cmp r15, 8
cmovb rbx, r15
mov rcx, rbx
shr rcx, 1
cmp rax, rcx
mov qword [rsp + 0x50], r15
jbe 0x14006a730
inc rbx
cmp rax, rbx
cmova rbx, rax
cmp rbx, 8
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rdi
jae 0x14006a762
mov rbp, rdx
mov rdi, rsi
xor eax, eax
cmp rbx, 4
setae al
lea r14, [rax*4 + 4]
jmp 0x14006a7c2
mov qword [rsp + 0x48], rdx
mov r14, qword [rsi]
mov rcx, r8
shr rcx, 4
xor eax, eax
test r8b, 0xf
setne al
add rax, rcx
je 0x14006aaf3
cmp rax, 1
jne 0x14006aa7a
xor edx, edx
jmp 0x14006aad7
movabs rax, 0x1ffffffffffffffe
add rax, 2
cmp rbx, rax
jae 0x14006b1a7
mov rbp, rdx
mov rdi, rsi
shl rbx, 3
mov r14d, 1
cmp rbx, 0xe
jb 0x14006a7c2
movabs rcx, 0x2492492492492493
mov rax, rbx
mul rcx
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 2
dec rbx
bsr rcx, rbx
not ecx
mov r14, 0xffffffffffffffff
shr r14, cl
inc r14
mov ecx, 0x68
mov rax, r14
mul rcx
jo 0x14006b1a7
mov rsi, rax
add rsi, 0xf
and rsi, 0xfffffffffffffff0
lea r12, [r14 + 0x10]
mov r13, rsi
add r13, r12
jb 0x14006b1a7
movabs rax, 0x7ffffffffffffff0
cmp r13, rax
ja 0x14006b1a7
test r13, r13
je 0x14006a849
movzx eax, byte [0x1401be180]
mov rcx, qword [0x1401be0e8]
test rcx, rcx
jne 0x14006a82d
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14006a83f
mov rcx, rax
mov qword [0x1401be0e8], rax
xor edx, edx
mov r8, r13
call sub.kernel32.dll_HeapAlloc
mov rbx, rax
test rax, rax
jne 0x14006a84e
mov rcx, r13
call fcn.1400369e0
ud2
mov ebx, 0x10
lea r15, [r14 - 1]
mov rax, r14
shr rax, 3
mov rcx, r14
and rcx, 0xfffffffffffffff8
sub rcx, rax
cmp r14, 9
cmovb rcx, r15
mov qword [rsp + 0x28], rcx
add rbx, rsi
mov rcx, rbx
mov dl, 0xff
mov r8, r12
call sub.msvcrt.dll_memset
mov r13, qword [rdi]
test rbp, rbp
je 0x14006aa18
mov qword [rsp + 0x40], rdi
movdqa xmm0, xmmword [r13]
pmovmskb r12d, xmm0
not r12d
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
mov qword [rsp + 0x58], rcx
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
xor esi, esi
mov qword [rsp + 0x48], rbp
mov rdi, rbp
mov r14, r13
jmp 0x14006a957
lea ecx, [r12 - 1]
and ecx, r12d
dec rdi
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, r15
mov byte [rbx + rdx], al
mov byte [r8 + rbx + 0x10], al
not rbp
imul rax, rbp, 0x68
not rdx
imul rdx, rdx, 0x68
mov r8, qword [r13 + rax + 0x60]
mov qword [rbx + rdx + 0x60], r8
movups xmm0, xmmword [r13 + rax + 0x50]
movups xmmword [rbx + rdx + 0x50], xmm0
movups xmm0, xmmword [r13 + rax + 0x40]
movups xmmword [rbx + rdx + 0x40], xmm0
movdqu xmm0, xmmword [r13 + rax]
movdqu xmm1, xmmword [r13 + rax + 0x10]
movups xmm2, xmmword [r13 + rax + 0x20]
movups xmm3, xmmword [r13 + rax + 0x30]
movups xmmword [rbx + rdx + 0x30], xmm3
movups xmmword [rbx + rdx + 0x20], xmm2
movdqu xmmword [rbx + rdx + 0x10], xmm1
movdqu xmmword [rbx + rdx], xmm0
mov r12d, ecx
test rdi, rdi
je 0x14006aa0c
test r12w, r12w
jne 0x14006a97f
nop dword [rax]
movdqa xmm0, xmmword [r14 + 0x10]
add r14, 0x10
pmovmskb r12d, xmm0
add rsi, 0x10
cmp r12d, 0xffff
je 0x14006a960
not r12d
tzcnt ebp, r12d
add rbp, rsi
mov rax, rbp
neg rax
imul rax, rax, 0x68
mov r8, qword [r13 + rax - 0x68]
mov r9, qword [r13 + rax - 0x58]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x30]
call fcn.14006a510
mov rcx, rax
and rcx, r15
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x14006a9e7
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, r15
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x14006a9d0
tzcnt edx, edx
add rdx, rcx
and rdx, r15
cmp byte [rbx + rdx], 0
js 0x14006a8d0
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x14006a8d0
mov rdi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
jmp 0x14006aa1a
xor eax, eax
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov qword [rdi], rbx
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], rcx
mov qword [rdi + 0x18], rax
mov r8, qword [rsp + 0x50]
test r8, r8
je 0x14006b185
mov ecx, 0x68
mov rax, qword [rsp + 0x38]
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add r8, rax
cmp r8, 0xffffffffffffffef
je 0x14006b185
sub r13, rax
mov rcx, qword [0x1401be0e8]
xor edx, edx
mov r8, r13
call sub.kernel32.dll_HeapFree
jmp 0x14006b185
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r9d, r9d
movdqa xmm0, xmmword [0x140149aa0]
nop word cs:[rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [r14 + r9]
por xmm1, xmm0
movdqa xmmword [r14 + r9], xmm1
lea rdx, [r9 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [r14 + r9 + 0x10]
por xmm1, xmm0
movdqa xmmword [r14 + r9 + 0x10], xmm1
mov r9, rdx
add rcx, 0xfffffffffffffffe
jne 0x14006aaa0
test al, 1
je 0x14006aaf3
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [r14 + rdx]
por xmm0, xmmword [0x140149aa0]
movdqa xmmword [r14 + rdx], xmm0
cmp r8, 0x10
jae 0x14006ab12
lea rcx, [r14 + 0x10]
mov rdx, r14
call sub.msvcrt.dll_memmove
cmp r15, 0xffffffffffffffff
jne 0x14006ab1d
xor eax, eax
jmp 0x14006b17c
movdqu xmm0, xmmword [r14]
movdqu xmmword [r14 + r8], xmm0
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x40], rsi
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
mov qword [rsp + 0x28], rdx
movabs rdx, 0x646f72616e646f6d
xor rdx, rcx
mov qword [rsp + 0x38], rdx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x68], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x60], rax
mov r12, r14
xor r10d, r10d
jmp 0x14006aba8
shr rcx, 0x39
lea rax, [r10 - 0x10]
and rax, r15
mov byte [r14 + r10], cl
mov byte [rax + r14 + 0x10], cl
lea rax, [r10 + 1]
add r12, 0xffffffffffffff98
cmp r10, r15
mov r10, rax
je 0x14006b172
cmp byte [r14 + r10], 0x80
jne 0x14006ab94
imul rax, r10, 0xffffffffffffff98
lea rcx, [r14 + rax]
add rcx, 0xffffffffffffff98
mov qword [rsp + 0x80], rcx
add rax, r14
mov qword [rsp + 0x78], rax
mov rax, r10
not rax
imul rbp, rax, 0x68
add rbp, r14
mov qword [rsp + 0x58], r10
mov rax, r10
neg rax
imul rax, rax, 0x68
add rax, r14
mov qword [rsp + 0x30], rax
jmp 0x14006acce
mov rcx, qword [rbp]
mov rdx, qword [rax]
mov qword [rbp], rdx
mov qword [rax], rcx
mov rcx, qword [rbp + 8]
mov rdx, qword [rax + 8]
mov qword [rbp + 8], rdx
mov qword [rax + 8], rcx
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rax + 0x10]
mov qword [rbp + 0x10], rdx
mov qword [rax + 0x10], rcx
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rax + 0x18]
mov qword [rbp + 0x18], rdx
mov qword [rax + 0x18], rcx
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rax + 0x20]
mov qword [rbp + 0x20], rdx
mov qword [rax + 0x20], rcx
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rax + 0x28]
mov qword [rbp + 0x28], rdx
mov qword [rax + 0x28], rcx
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rax + 0x30]
mov qword [rbp + 0x30], rdx
mov qword [rax + 0x30], rcx
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rax + 0x38]
mov qword [rbp + 0x38], rdx
mov qword [rax + 0x38], rcx
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rax + 0x40]
mov qword [rbp + 0x40], rdx
mov qword [rax + 0x40], rcx
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rax + 0x48]
mov qword [rbp + 0x48], rdx
mov qword [rax + 0x48], rcx
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rax + 0x50]
mov qword [rbp + 0x50], rdx
mov qword [rax + 0x50], rcx
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rax + 0x58]
mov qword [rbp + 0x58], rdx
mov qword [rax + 0x58], rcx
mov rcx, qword [rbp + 0x60]
mov rdx, qword [rax + 0x60]
mov qword [rbp + 0x60], rdx
mov qword [rax + 0x60], rcx
mov rax, qword [rsp + 0x30]
mov rbx, qword [rax - 0x68]
mov r13, qword [rax - 0x58]
mov rax, r13
and rax, 0xfffffffffffffff8
je 0x14006ad70
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x38]
mov r10, qword [rsp + 0x60]
xor esi, esi
mov r11, qword [rsp + 0x28]
nop
add r11, r8
rol r8, 0xd
mov rcx, qword [rbx + rsi]
xor r8, r11
rol r11, 0x20
xor r10, rcx
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, r11
xor r11, rcx
add rsi, 8
cmp rsi, rax
jb 0x14006ad00
mov edx, r13d
and edx, 7
cmp edx, 3
jbe 0x14006ad91
mov r15d, dword [rbx + rsi]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rdx
jb 0x14006ada2
jmp 0x14006adbb
mov r10, qword [rsp + 0x60]
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x68]
mov r11, qword [rsp + 0x28]
xor esi, esi
mov edx, r13d
and edx, 7
cmp edx, 3
ja 0x14006ad4e
xor r15d, r15d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rdx
jae 0x14006adbb
lea rcx, [rax + rsi]
movzx edi, word [rbx + rcx]
lea ecx, [rax*8]
shl rdi, cl
or r15, rdi
or rax, 2
cmp rax, rdx
jae 0x14006ade0
add rsi, rax
movzx esi, byte [rbx + rsi]
shl eax, 3
mov ecx, eax
shl rsi, cl
or r15, rsi
jmp 0x14006ade5
test rdx, rdx
je 0x14006ae41
lea ecx, [rdx*8]
mov esi, 0xff
shl rsi, cl
or rsi, r15
cmp rdx, 7
jne 0x14006af1e
mov ecx, 8
add r11, r8
rol r8, 0xd
sub rcx, rdx
xor r8, r11
rol r11, 0x20
xor r10, rsi
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
xor r10, r11
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r11, rsi
jmp 0x14006ae43
xor ecx, ecx
mov edx, 1
sub rdx, rcx
mov eax, edx
and eax, 7
and rdx, 0xfffffffffffffff8
cmp rcx, rdx
jae 0x14006aed0
nop dword [rax]
add r11, r8
rol r8, 0xd
xor r8, r11
rol r11, 0x20
xor r10, 0xff
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, r11
xor r11, 0xff
add rcx, 8
cmp rcx, rdx
jb 0x14006ae60
xor edx, edx
cmp rax, 4
setae dl
cmp eax, 4
mov esi, 0
mov ecx, 0xff
cmovae rsi, rcx
shl rdx, 2
jmp 0x14006aed4
xor esi, esi
xor edx, edx
mov rdi, rdx
lea ecx, [rdx*8]
mov ebx, 0xff
shl rbx, cl
or rdi, 1
mov r15, rdx
or r15, 2
cmp rdi, rax
mov edi, 0
cmovae rbx, rdi
cmovae r15, rdx
or rbx, rsi
lea ecx, [r15*8]
mov esi, 0xff
shl rsi, cl
cmp r15, rax
cmovae rsi, rdi
or rsi, rbx
mov r15, qword [rsp + 0x50]
shl r13, 0x38
movabs rax, 0x100000000000000
add r13, rax
add r11, r8
rol r8, 0xd
or r13, rsi
xor r8, r11
rol r11, 0x20
xor r10, r13
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r10, r11
xor r8, r9
rol r9, 0x20
xor r11, r13
add r11, r8
rol r8, 0xd
xor r8, r11
rol r11, 0x20
xor r9, 0xff
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, r11
add r11, r8
rol r8, 0xd
xor r8, r11
rol r11, 0x20
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, r11
add r11, r8
rol r8, 0xd
add r9, r10
rol r10, 0x10
xor r10, r9
rol r10, 0x15
xor r8, r11
add r9, r8
rol r8, 0x11
mov rcx, r9
rol rcx, 0x20
xor rcx, r8
xor rcx, r10
xor rcx, r9
mov rax, r15
and rax, rcx
movdqu xmm0, xmmword [r14 + rax]
pmovmskb edx, xmm0
mov r8, rax
test edx, edx
mov r10, qword [rsp + 0x58]
jne 0x14006b048
mov r9d, 0x10
mov r8, rax
nop dword [rax + rax]
add r8, r9
and r8, r15
movdqu xmm0, xmmword [r14 + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x14006b030
tzcnt edx, edx
add rdx, r8
and rdx, r15
cmp byte [r14 + rdx], 0
js 0x14006b066
movdqa xmm0, xmmword [r14]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, r10
sub r8, rax
mov r9, rdx
sub r9, rax
xor r9, r8
and r9, r15
cmp r9, 0x10
jb 0x14006ab80
mov rax, rdx
not rax
imul rax, rax, 0x68
add rax, r14
movzx r8d, byte [r14 + rdx]
shr rcx, 0x39
lea r9, [rdx - 0x10]
and r9, r15
mov byte [r14 + rdx], cl
mov byte [r9 + r14 + 0x10], cl
cmp r8b, 0xff
je 0x14006b120
imul rcx, rdx, 0xffffffffffffff98
add rcx, r14
cmp qword [rsp + 0x80], rcx
jae 0x14006ac00
cmp rax, qword [rsp + 0x78]
jae 0x14006ac00
mov rax, 0xffffffffffffff98
nop word cs:[rax + rax]
movzx edx, byte [r12 + rax]
movzx r8d, byte [rcx + rax]
mov byte [r12 + rax], r8b
mov byte [rcx + rax], dl
movzx edx, byte [r12 + rax + 1]
movzx r8d, byte [rcx + rax + 1]
mov byte [r12 + rax + 1], r8b
mov byte [rcx + rax + 1], dl
add rax, 2
jne 0x14006b0e0
jmp 0x14006acce
lea rcx, [r10 - 0x10]
and rcx, r15
mov byte [r14 + r10], 0xff
mov byte [rcx + r14 + 0x10], 0xff
mov rcx, qword [rbp + 0x60]
mov qword [rax + 0x60], rcx
movups xmm0, xmmword [rbp + 0x50]
movups xmmword [rax + 0x50], xmm0
movups xmm0, xmmword [rbp + 0x40]
movups xmmword [rax + 0x40], xmm0
movdqu xmm0, xmmword [rbp]
movdqu xmm1, xmmword [rbp + 0x10]
movups xmm2, xmmword [rbp + 0x20]
movups xmm3, xmmword [rbp + 0x30]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rax], xmm0
jmp 0x14006ab94
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x70]
sub rax, qword [rsp + 0x48]
mov qword [rsi + 0x10], rax
movabs rax, 0x7ffffffffffffff0
add rax, 0x11
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400369a0
ud2