Function at 0x14016d4c0
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 r14, r9
mov rdi, r8
mov r12, rdx
mov rbx, rcx
cmp rdx, 0x21
jae 0x14016d505
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, r12
mov r8, rdi
mov r9, r14
call fcn.14016e4e0
jmp 0x14016daab
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x40], rax
mov ebp, dword [rsp + 0xe0]
lea rax, [rdi - 0x10]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x60], r14
lea rax, [rbx + 0x10]
mov qword [rsp + 0x58], rax
mov rsi, r12
nop word cs:[rax + rax]
sub ebp, 1
jb 0x14016da88
mov dword [rsp + 0x3c], ebp
mov r9, rsi
shr r9, 3
mov r15, r9
shl r15, 6
add r15, rbx
imul r8, r9, 0x70
add r8, rbx
cmp rsi, 0x40
jae 0x14016d5a0
mov rax, qword [rbx]
mov rcx, qword [r15]
cmp rax, rcx
setb dl
mov r9, qword [r8]
cmp rax, r9
setb al
xor al, dl
cmp rcx, r9
setb cl
xor cl, dl
cmovne r15, r8
test al, al
cmovne r15, rbx
jmp 0x14016d5ae
mov rcx, rbx
mov rdx, r15
call fcn.140167760
mov r15, rax
mov rax, r15
sub rax, rbx
shr rax, 4
mov qword [rsp + 0x50], rax
mov rax, qword [r15]
mov ecx, dword [r15 + 8]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], ecx
cmp qword [rsp + 0x40], 0
je 0x14016d5e3
mov rcx, qword [rsp + 0x40]
cmp qword [rcx], rax
jae 0x14016d860
cmp rsi, r14
ja 0x14016dabd
mov r14, rsi
shl r14, 4
lea rax, [rdi + r14]
xor r12d, r12d
mov rcx, rbx
mov rdx, qword [rsp + 0x50]
nop word cs:[rax + rax]
mov r9, rdx
sub r9, 3
mov r8d, 0
cmovae r8, r9
shl r8, 4
add r8, rbx
cmp rcx, r8
jae 0x14016d6e1
nop word cs:[rax + rax]
mov r9, qword [rcx]
lea r10, [rax - 0x10]
xor r11d, r11d
cmp r9, qword [r15]
cmovb r10, rdi
setb r11b
mov r9, r12
shl r9, 4
lea r13, [r12 + r11]
mov rbp, qword [rcx + 0x10]
shl r13, 4
cmp rbp, qword [r15]
movups xmm0, xmmword [rcx]
lea rbp, [rax - 0x20]
cmovb rbp, rdi
movups xmmword [r10 + r9], xmm0
movups xmm0, xmmword [rcx + 0x10]
adc r12, r11
movups xmmword [rbp + r13], xmm0
mov r9, qword [rcx + 0x20]
lea r10, [rax - 0x30]
xor r11d, r11d
cmp r9, qword [r15]
cmovb r10, rdi
setb r11b
mov r9, r12
shl r9, 4
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [r10 + r9], xmm0
lea r9, [r12 + r11]
mov r10, qword [rcx + 0x30]
add rax, 0xffffffffffffffc0
shl r9, 4
cmp r10, qword [r15]
mov r10, rax
cmovb r10, rdi
movups xmm0, xmmword [rcx + 0x30]
movups xmmword [r10 + r9], xmm0
adc r12, r11
add rcx, 0x40
cmp rcx, r8
jb 0x14016d640
mov r8, rdx
shl r8, 4
add r8, rbx
cmp rcx, r8
jae 0x14016d71d
mov r9, qword [rcx]
add rax, 0xfffffffffffffff0
mov r10, r12
shl r10, 4
cmp r9, qword [r15]
mov r9, rax
cmovb r9, rdi
movups xmm0, xmmword [rcx]
movups xmmword [r9 + r10], xmm0
adc r12, 0
add rcx, 0x10
cmp rcx, r8
jb 0x14016d6f0
cmp rdx, rsi
je 0x14016d750
mov rdx, r12
shl rdx, 4
movups xmm0, xmmword [rcx]
movups xmmword [rax + rdx - 0x10], xmm0
add rax, 0xfffffffffffffff0
add rcx, 0x10
mov rdx, rsi
jmp 0x14016d610
mov r13, r12
shl r13, 4
mov rcx, rbx
mov rdx, rdi
mov r8, r13
call fcn.1401ef240
mov rdx, rsi
sub rdx, r12
movabs r10, 0xffffffffffffffe
je 0x14016d801
lea rax, [r12 + 1]
cmp rsi, rax
jne 0x14016d790
xor eax, eax
jmp 0x14016d7e0
mov rcx, rdx
and rcx, 0xfffffffffffffffe
mov rax, qword [rsp + 0x58]
lea r8, [rax + r13]
add r14, qword [rsp + 0x48]
xor r9d, r9d
nop dword [rax + rax]
movups xmm0, xmmword [r14]
movups xmmword [r8 - 0x10], xmm0
lea rax, [r9 + 2]
xor r9, r10
add r9, rsi
shl r9, 4
movups xmm0, xmmword [rdi + r9]
movups xmmword [r8], xmm0
add r8, 0x20
add r14, 0xffffffffffffffe0
mov r9, rax
cmp rcx, rax
jne 0x14016d7b0
test dl, 1
je 0x14016d801
mov rcx, rax
not rcx
add rcx, rsi
shl rcx, 4
add rax, r12
shl rax, 4
movups xmm0, xmmword [rdi + rcx]
movups xmmword [rbx + rax], xmm0
test r12, r12
mov r14, qword [rsp + 0x60]
je 0x14016d860
cmp rsi, r12
jb 0x14016dabd
add r13, rbx
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov ebp, dword [rsp + 0x3c]
mov dword [rsp + 0x20], ebp
mov rcx, r13
mov r8, rdi
mov r9, r14
call fcn.14016d4c0
mov rsi, r12
cmp r12, 0x21
jae 0x14016d540
jmp 0x14016d4e2
cmp rsi, r14
ja 0x14016dabd
mov rbp, r14
mov r14, rsi
shl r14, 4
lea rax, [rdi + r14]
xor r13d, r13d
mov rcx, rbx
mov r12, qword [rsp + 0x50]
nop word cs:[rax + rax]
mov r8, r12
sub r8, 3
mov edx, 0
cmovae rdx, r8
shl rdx, 4
add rdx, rbx
cmp rcx, rdx
jae 0x14016d94a
mov r8, qword [r15]
lea r9, [rax - 0x10]
mov r10, r13
shl r10, 4
cmp r8, qword [rcx]
cmovae r9, rdi
sbb r13, 0xffffffffffffffff
mov r8, qword [r15]
mov r11, r13
shl r11, 4
cmp r8, qword [rcx + 0x10]
movups xmm0, xmmword [rcx]
lea r8, [rax - 0x20]
cmovae r8, rdi
movups xmmword [r9 + r10], xmm0
sbb r13, 0xffffffffffffffff
mov r9, qword [r15]
mov r10, r13
shl r10, 4
cmp r9, qword [rcx + 0x20]
movups xmm0, xmmword [rcx + 0x10]
lea r9, [rax - 0x30]
cmovae r9, rdi
movups xmmword [r8 + r11], xmm0
movups xmm0, xmmword [rcx + 0x20]
sbb r13, 0xffffffffffffffff
movups xmmword [r9 + r10], xmm0
mov r8, qword [r15]
add rax, 0xffffffffffffffc0
mov r9, r13
shl r9, 4
cmp r8, qword [rcx + 0x30]
mov r8, rax
cmovae r8, rdi
movups xmm0, xmmword [rcx + 0x30]
movups xmmword [r8 + r9], xmm0
sbb r13, 0xffffffffffffffff
add rcx, 0x40
cmp rcx, rdx
jb 0x14016d8b0
mov rdx, r12
shl rdx, 4
add rdx, rbx
cmp rcx, rdx
jae 0x14016d98d
nop dword [rax]
mov r8, qword [r15]
add rax, 0xfffffffffffffff0
mov r9, r13
shl r9, 4
cmp r8, qword [rcx]
mov r8, rax
cmovae r8, rdi
movups xmm0, xmmword [rcx]
movups xmmword [r8 + r9], xmm0
sbb r13, 0xffffffffffffffff
add rcx, 0x10
cmp rcx, rdx
jb 0x14016d960
cmp r12, rsi
je 0x14016d9c0
add rax, 0xfffffffffffffff0
mov rdx, r13
shl rdx, 4
movups xmm0, xmmword [rcx]
movups xmmword [rdi + rdx], xmm0
inc r13
add rcx, 0x10
mov r12, rsi
jmp 0x14016d890
mov r15, r13
shl r15, 4
mov rcx, rbx
mov rdx, rdi
mov r8, r15
call fcn.1401ef240
movabs r9, 0xffffffffffffffe
mov r12, rsi
sub r12, r13
je 0x14016da60
lea rax, [r13 + 1]
cmp rsi, rax
jne 0x14016d9f4
xor eax, eax
jmp 0x14016da3e
mov rcx, r12
and rcx, 0xfffffffffffffffe
lea rdx, [rbx + r15]
add rdx, 0x10
add r14, qword [rsp + 0x48]
xor r8d, r8d
nop dword [rax + rax]
movups xmm0, xmmword [r14]
movups xmmword [rdx - 0x10], xmm0
lea rax, [r8 + 2]
xor r8, r9
add r8, rsi
shl r8, 4
movups xmm0, xmmword [rdi + r8]
movups xmmword [rdx], xmm0
add rdx, 0x20
add r14, 0xffffffffffffffe0
mov r8, rax
cmp rcx, rax
jne 0x14016da10
test r12b, 1
je 0x14016da60
mov rcx, rax
not rcx
add rcx, rsi
shl rcx, 4
add rax, r13
shl rax, 4
movups xmm0, xmmword [rdi + rcx]
movups xmmword [rbx + rax], xmm0
cmp rsi, r13
jb 0x14016dabd
add rbx, r15
mov eax, 0
mov qword [rsp + 0x40], rax
cmp r12, 0x21
mov r14, rbp
mov ebp, dword [rsp + 0x3c]
jae 0x14016d527
jmp 0x14016d4e2
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 1
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
mov r9, r14
call fcn.14016c940
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2