Function at 0x14016a690
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r8, qword [rcx + 0x18]
mov rax, r8
inc rax
je 0x14016af76
mov r15, rdx
mov r13, qword [rcx + 8]
lea rsi, [r13 + 1]
mov rdx, rsi
shr rdx, 3
mov r9, rsi
and r9, 0xfffffffffffffff8
sub r9, rdx
cmp r13, 8
cmovb r9, r13
mov rdx, r9
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], r8
jbe 0x14016a70f
inc r9
cmp rax, r9
cmova r9, rax
cmp r9, 8
jae 0x14016a741
xor eax, eax
cmp r9, 4
setae al
lea r14, [rax*4 + 4]
jmp 0x14016a7a4
mov qword [rsp + 0x68], r9
mov rbx, qword [rcx]
mov rcx, rsi
shr rcx, 4
xor eax, eax
test sil, 0xf
setne al
add rax, rcx
je 0x14016aa2a
cmp rax, 1
jne 0x14016a9bc
xor ecx, ecx
jmp 0x14016aa14
mov rax, r9
shr rax, 0x3d
jne 0x14016af76
shl r9, 3
mov r14d, 1
cmp r9, 0xe
jb 0x14016a7a4
movabs rcx, 0x2492492492492493
mov rax, r9
mul rcx
sub r9, rdx
shr r9, 1
add r9, rdx
shr r9, 2
dec r9
bsr rcx, r9
not ecx
mov r14, 0xffffffffffffffff
shr r14, cl
movabs rax, 0x7fffffffffffffe
cmp r14, rax
ja 0x14016af76
inc r14
mov rbp, r14
shl rbp, 5
lea rbx, [r14 + 0x10]
mov r12, rbp
add r12, rbx
jb 0x14016af76
movabs rax, 0x7ffffffffffffff1
cmp r12, rax
jae 0x14016af76
test r12, r12
je 0x14016a818
movzx eax, byte [0x1402448a8]
mov rcx, qword [0x1402443c8]
test rcx, rcx
jne 0x14016a7fb
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14016a80e
mov rcx, rax
mov qword [0x1402443c8], rax
xor edx, edx
mov r8, r12
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14016a81d
mov rcx, r12
call fcn.140052e20
ud2
mov edi, 0x10
mov qword [rsp + 0x30], rsi
lea rsi, [r14 - 1]
mov rax, r14
shr rax, 3
mov r12, r14
and r12, 0xfffffffffffffff8
sub r12, rax
cmp r14, 9
cmovb r12, rsi
add rdi, rbp
mov rcx, rdi
mov dl, 0xff
mov r8, rbx
call sub.VCRUNTIME140.dll_memset
sub r12, qword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
mov rbx, qword [rax]
cmp r13, 0xffffffffffffffff
je 0x14016a981
mov qword [rsp + 0x28], r12
lea r14, [rbx - 0x20]
mov r12, qword [r15]
mov r15, qword [r15 + 8]
xor ebp, ebp
jmp 0x14016a8c9
shr rax, 0x39
lea rcx, [rdx - 0x10]
and rcx, rsi
mov byte [rdi + rdx], al
mov byte [rcx + rdi + 0x10], al
mov rax, rbp
not rax
shl rax, 5
not rdx
shl rdx, 5
movdqu xmm0, xmmword [rbx + rax]
movdqu xmm1, xmmword [rbx + rax + 0x10]
movdqu xmmword [rdi + rdx + 0x10], xmm1
movdqu xmmword [rdi + rdx], xmm0
lea rax, [rbp + 1]
cmp rbp, r13
mov rbp, rax
je 0x14016a94c
cmp byte [rbx + rbp], 0
js 0x14016a8b9
mov rax, rbp
shl rax, 5
mov rcx, r14
sub rcx, rax
mov r8, qword [rcx]
mov r9, qword [rcx + 0x10]
mov rcx, r12
mov rdx, r15
call fcn.140029e30
mov rcx, rax
and rcx, rsi
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x14016a927
mov r8d, 0x10
nop word [rax + rax]
add rcx, r8
and rcx, rsi
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x14016a910
tzcnt edx, edx
add rdx, rcx
and rdx, rsi
cmp byte [rdi + rdx], 0
js 0x14016a880
movdqa xmm0, xmmword [rdi]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x14016a880
mov rax, qword [rsp + 0x38]
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
test r13, r13
mov rax, qword [rsp + 0x30]
je 0x14016af5b
shl rax, 5
add r13, rax
cmp r13, 0xffffffffffffffef
jne 0x14016a9a2
jmp 0x14016af5b
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r12
mov rax, qword [rsp + 0x30]
shl rax, 5
add r13, rax
cmp r13, 0xffffffffffffffef
je 0x14016af5b
sub rbx, rax
mov rcx, qword [0x1402443c8]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x14016af5b
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x14016e160]
nop word cs:[rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + rcx]
por xmm1, xmm0
movdqa xmmword [rbx + rcx], xmm1
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + rcx + 0x10]
por xmm1, xmm0
movdqa xmmword [rbx + rcx + 0x10], xmm1
add rcx, 0x20
add rdx, 0xfffffffffffffffe
jne 0x14016a9e0
test al, 1
je 0x14016aa2a
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rcx]
por xmm0, xmmword [0x14016e160]
movdqa xmmword [rbx + rcx], xmm0
cmp rsi, 0x10
jae 0x14016aa4c
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, rsi
call sub.VCRUNTIME140.dll_memmove
cmp r13, 0xffffffffffffffff
jne 0x14016aa55
xor ecx, ecx
jmp 0x14016af4d
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + rsi], xmm0
lea rax, [rbx - 0x20]
mov qword [rsp + 0x70], rax
mov rax, qword [r15]
mov rcx, qword [r15 + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
mov qword [rsp + 0x60], rdx
movabs rdx, 0x646f72616e646f6d
xor rdx, rcx
mov qword [rsp + 0x58], rdx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x50], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x48], rax
xor esi, esi
jmp 0x14016aae2
shr rax, 0x39
lea rcx, [rsi - 0x10]
and rcx, r13
mov byte [rbx + rsi], al
mov byte [rcx + rbx + 0x10], al
lea rax, [rsi + 1]
cmp rsi, r13
mov rsi, rax
je 0x14016af48
cmp byte [rbx + rsi], 0x80
jne 0x14016aad2
mov rbp, rsi
not rbp
shl rbp, 5
add rbp, rbx
mov rax, rsi
shl rax, 5
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rsi
nop
mov rax, qword [rsp + 0x30]
mov r12, qword [rax]
mov r15, qword [rax + 0x10]
mov rax, r15
and rax, 0xfffffffffffffff8
je 0x14016abb0
mov r10, qword [rsp + 0x50]
mov r9, qword [rsp + 0x58]
mov r11, qword [rsp + 0x48]
xor edi, edi
mov r8, qword [rsp + 0x60]
nop
add r8, r9
rol r9, 0xd
mov rcx, qword [r12 + rdi]
xor r9, r8
rol r8, 0x20
xor r11, rcx
add r10, r11
rol r11, 0x10
xor r11, r10
add r8, r11
rol r11, 0x15
add r10, r9
rol r9, 0x11
xor r9, r10
rol r10, 0x20
xor r11, r8
xor r8, rcx
add rdi, 8
cmp rdi, rax
jb 0x14016ab40
mov r14d, r15d
and r14d, 7
cmp r14d, 3
jbe 0x14016abd3
mov esi, dword [r12 + rdi]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r14
jb 0x14016abe3
jmp 0x14016abfd
mov r11, qword [rsp + 0x48]
mov r9, qword [rsp + 0x58]
mov r10, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
xor edi, edi
mov r14d, r15d
and r14d, 7
cmp r14d, 3
ja 0x14016ab90
xor esi, esi
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r14
jae 0x14016abfd
lea rcx, [rax + rdi]
movzx edx, word [r12 + rcx]
lea ecx, [rax*8]
shl rdx, cl
or rsi, rdx
or rax, 2
cmp rax, r14
jae 0x14016ac20
add rdi, rax
movzx edx, byte [r12 + rdi]
shl eax, 3
mov ecx, eax
shl rdx, cl
or rsi, rdx
jmp 0x14016ac25
test r14, r14
je 0x14016ac82
lea ecx, [r14*8]
mov edi, 0xff
shl rdi, cl
or rdi, rsi
cmp r14, 7
jne 0x14016ad5f
mov ecx, 8
add r8, r9
rol r9, 0xd
sub rcx, r14
xor r9, r8
rol r8, 0x20
xor r11, rdi
add r10, r11
rol r11, 0x10
xor r11, r10
add r8, r11
rol r11, 0x15
xor r11, r8
add r10, r9
rol r9, 0x11
xor r9, r10
rol r10, 0x20
xor r8, rdi
jmp 0x14016ac84
xor ecx, ecx
mov esi, 1
sub rsi, rcx
mov eax, esi
and eax, 7
and rsi, 0xfffffffffffffff8
cmp rcx, rsi
jae 0x14016ad10
nop word [rax + rax]
add r8, r9
rol r9, 0xd
xor r9, r8
rol r8, 0x20
xor r11, 0xff
add r10, r11
rol r11, 0x10
xor r11, r10
add r8, r11
rol r11, 0x15
add r10, r9
rol r9, 0x11
xor r9, r10
rol r10, 0x20
xor r11, r8
xor r8, 0xff
add rcx, 8
cmp rcx, rsi
jb 0x14016aca0
xor esi, esi
cmp rax, 4
setae sil
cmp eax, 4
mov edi, 0
mov ecx, 0xff
cmovae rdi, rcx
shl rsi, 2
jmp 0x14016ad14
xor edi, edi
xor esi, esi
mov rdx, rsi
lea ecx, [rsi*8]
mov r14d, 0xff
shl r14, cl
or rdx, 1
mov r12, rsi
or r12, 2
cmp rdx, rax
mov edx, 0
cmovae r14, rdx
cmovae r12, rsi
or r14, rdi
lea ecx, [r12*8]
mov edi, 0xff
shl rdi, cl
cmp r12, rax
cmovae rdi, rdx
or rdi, r14
mov rsi, qword [rsp + 0x28]
shl r15, 0x38
movabs rax, 0x100000000000000
add r15, rax
add r8, r9
rol r9, 0xd
or r15, rdi
xor r9, r8
rol r8, 0x20
xor r11, r15
add r10, r11
rol r11, 0x10
xor r11, r10
add r8, r11
rol r11, 0x15
add r10, r9
rol r9, 0x11
xor r11, r8
xor r9, r10
rol r10, 0x20
xor r8, r15
add r8, r9
rol r9, 0xd
xor r9, r8
rol r8, 0x20
xor r10, 0xff
add r10, r11
rol r11, 0x10
xor r11, r10
add r8, r11
rol r11, 0x15
add r10, r9
rol r9, 0x11
xor r9, r10
rol r10, 0x20
xor r11, r8
add r8, r9
rol r9, 0xd
xor r9, r8
rol r8, 0x20
add r10, r11
rol r11, 0x10
xor r11, r10
add r8, r11
rol r11, 0x15
add r10, r9
rol r9, 0x11
xor r9, r10
rol r10, 0x20
xor r11, r8
add r8, r9
rol r9, 0xd
add r10, r11
rol r11, 0x10
xor r11, r10
rol r11, 0x15
xor r9, r8
add r10, r9
rol r9, 0x11
mov rax, r10
rol rax, 0x20
xor rax, r9
xor rax, r11
xor rax, r10
mov rcx, rax
and rcx, r13
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb r8d, xmm0
mov r9, rcx
test r8d, r8d
jne 0x14016ae8a
mov r10d, 0x10
mov r9, rcx
nop word cs:[rax + rax]
add r9, r10
and r9, r13
movdqu xmm0, xmmword [rbx + r9]
pmovmskb r8d, xmm0
add r10, 0x10
test r8d, r8d
je 0x14016ae70
tzcnt r8d, r8d
add r8, r9
and r8, r13
cmp byte [rbx + r8], 0
js 0x14016aea9
movdqa xmm0, xmmword [rbx]
pmovmskb edx, xmm0
tzcnt r8d, edx
mov rdx, rsi
sub rdx, rcx
mov r9, r8
sub r9, rcx
xor r9, rdx
and r9, r13
cmp r9, 0x10
jb 0x14016aac0
mov rcx, r8
not rcx
shl rcx, 5
add rcx, rbx
movzx edx, byte [rbx + r8]
shr rax, 0x39
lea r9, [r8 - 0x10]
and r9, r13
mov byte [rbx + r8], al
mov byte [r9 + rbx + 0x10], al
cmp dl, 0xff
je 0x14016af20
movups xmm0, xmmword [rbp]
movups xmm1, xmmword [rcx]
movups xmmword [rbp], xmm1
movups xmmword [rcx], xmm0
movdqu xmm0, xmmword [rbp + 0x10]
movdqu xmm1, xmmword [rcx + 0x10]
movdqu xmmword [rbp + 0x10], xmm1
movdqu xmmword [rcx + 0x10], xmm0
jmp 0x14016ab10
lea rax, [rsi - 0x10]
and rax, r13
mov byte [rbx + rsi], 0xff
mov byte [rax + rbx + 0x10], 0xff
movdqu xmm0, xmmword [rbp]
movdqu xmm1, xmmword [rbp + 0x10]
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmmword [rcx], xmm0
jmp 0x14016aad2
mov rcx, qword [rsp + 0x68]
sub rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x10], rcx
movabs rax, 0x8000000000000001
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140052de0
ud2