Function at 0x14016cfd0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x60], 0xfffffffffffffffe
mov r15, rdx
mov qword [rbp + 0x28], rcx
cmp rdx, 0x15
jae 0x14016d02f
cmp r15, 1
jbe 0x14016d6f5
mov r8d, 1
mov rcx, qword [rbp + 0x28]
mov rdx, r15
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.14016d940
lea rax, [r15*4]
movabs rsi, 0x7ffffffffffffff8
and rsi, rax
movzx eax, byte [0x1403361a1]
mov edx, 4
mov rcx, rsi
call fcn.140028fe0
test rax, rax
je 0x14016d87d
mov rbx, rax
mov qword [rbp], rsi
movzx eax, byte [0x1403361a1]
mov ecx, 0x100
mov edx, 8
call fcn.140028fe0
test rax, rax
mov qword [rbp + 0x38], rbx
je 0x14016d889
mov rcx, qword [rbp + 0x28]
lea rdx, [rcx + 0xc]
mov qword [rbp - 0x10], rdx
lea rdx, [rcx - 4]
mov qword [rbp - 8], rdx
add rcx, 0xfffffffffffffff8
mov qword [rbp - 0x18], rcx
mov ecx, 0x10
mov qword [rbp + 0x58], rcx
xor r11d, r11d
movabs r13, 0x1ffffffffffffffe
xor esi, esi
mov qword [rbp + 8], r15
jmp 0x14016d0da
mov r11d, 1
mov rsi, qword [rbp + 0x18]
mov r10, r15
sub r10, rsi
jbe 0x14016d6ba
mov rcx, qword [rbp + 0x28]
lea rcx, [rcx + rsi*8]
cmp r10, 2
mov qword [rbp + 0x40], rsi
jae 0x14016d1f0
mov r8, r10
lea r12, [r8 + rsi]
mov rdi, r12
sub rdi, rsi
jb 0x14016d7d9
cmp r12, r15
ja 0x14016d7d9
jae 0x14016d280
cmp r8, 0xa
jae 0x14016d280
lea r12, [rsi + 0xa]
cmp r12, r15
cmovae r12, r15
mov rdi, r12
sub rdi, rsi
jb 0x14016d802
mov rbx, r11
cmp r8, 1
adc r8, 0
mov r14, rax
mov qword [rbp + 0x50], rax
mov rsi, qword [rbp + 0x58]
mov qword [rbp + 0x48], rsi
mov rdx, rdi
call fcn.14016d940
mov r11, rbx
cmp r11, rsi
jne 0x14016d290
mov rbx, r12
mov r12, r11
lea rax, [rsi + rsi]
mov qword [rbp + 0x30], rax
mov rcx, rsi
shl rcx, 5
mov r13, rsi
movzx eax, byte [0x1403361a1]
mov edx, 8
call fcn.140028fe0
test rax, rax
je 0x14016d823
mov rsi, rax
shl r13, 4
mov rcx, rax
mov rdx, r14
mov r8, r13
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 8
mov rcx, r14
mov rdx, r13
call fcn.140028ff0
mov rax, rsi
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x58], rcx
movabs r13, 0x1ffffffffffffffe
mov r11, r12
mov r12, rbx
jmp 0x14016d293
movzx edx, byte [rcx + 8]
cmp dl, byte [rcx]
jae 0x14016d590
mov r8d, 2
cmp r10, 2
je 0x14016d228
nop dword [rax + rax]
mov r9d, edx
movzx edx, byte [rcx + r8*8]
cmp dl, r9b
jae 0x14016d228
inc r8
cmp r10, r8
jne 0x14016d210
mov r8, r10
mov r12, r8
add r12, rsi
jb 0x14016d85d
cmp r12, r15
ja 0x14016d83d
cmp r8, 2
jb 0x14016d103
mov qword [rbp + 0x30], r11
mov qword [rbp + 0x10], rax
mov rax, r8
shr rax, 1
lea rdx, [rcx + r8*8]
lea r9, [rax*8]
sub rdx, r9
cmp rax, 1
jne 0x14016d5cd
xor r9d, r9d
jmp 0x14016d657
mov r14, rax
mov rsi, qword [rbp + 0x58]
cmp r11, rsi
je 0x14016d16d
mov rax, r14
mov rcx, r11
shl rcx, 4
mov qword [rax + rcx], rdi
mov rdx, qword [rbp + 0x40]
mov qword [rax + rcx + 8], rdx
inc r11
mov rsi, r12
cmp r11, 2
mov rbx, qword [rbp + 0x38]
jb 0x14016d0da
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x10], rax
jmp 0x14016d32e
mov r15, rdi
mov rbx, qword [rbp + 0x38]
mov rdx, rbx
movabs r13, 0x1ffffffffffffffe
mov rsi, qword [rbp + 0x20]
sub r8, rdx
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x20]
add rax, qword [rbp + 0x40]
mov qword [r14], rax
mov rax, qword [rbp - 0x28]
mov qword [r14 + 8], rax
lea rdx, [rsi + 0x10]
mov rax, qword [rbp - 0x30]
not rax
add r12, rax
shl r12, 4
mov rcx, rsi
mov r8, r12
call sub.VCRUNTIME140.dll_memmove
mov r11, qword [rbp + 0x30]
cmp r11, 1
mov r15, qword [rbp + 8]
mov rax, qword [rbp + 0x10]
jbe 0x14016d0d0
mov r12, r11
dec r11
mov rcx, r11
shl rcx, 4
mov r10, qword [rax + rcx]
mov rcx, qword [rax + rcx + 8]
add rcx, r10
cmp rcx, r15
je 0x14016d3a0
mov rdx, r12
shl rdx, 4
mov r8, qword [rdx + rax - 0x20]
cmp r8, r10
jbe 0x14016d3a0
cmp r12, 2
jbe 0x14016d5be
lea rdi, [r12 - 3]
mov rcx, rdi
shl rcx, 4
mov rcx, qword [rax + rcx]
lea r9, [r8 + r10]
cmp rcx, r9
jbe 0x14016d3b6
cmp r12, 3
jbe 0x14016d69f
add r8, rcx
cmp qword [rdx + rax - 0x40], r8
jbe 0x14016d3b6
jmp 0x14016d6ae
cmp r12, 3
jb 0x14016d3bb
lea rdi, [r12 - 3]
mov rcx, rdi
shl rcx, 4
mov rcx, qword [rax + rcx]
cmp rcx, r10
jb 0x14016d3c0
lea rdi, [r12 - 2]
cmp r12, rdi
jbe 0x14016d70a
lea r14, [rdi + 1]
cmp r12, r14
jbe 0x14016d750
mov rdx, rdi
shl rdx, 4
mov rcx, qword [rax + rdx + 8]
shl r14, 4
mov r8, qword [rax + r14]
mov r13, qword [rax + r14 + 8]
add r13, r8
mov rsi, r13
sub rsi, rcx
jb 0x14016d7b9
cmp r13, r15
ja 0x14016d796
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x30], rdi
mov qword [rbp + 0x30], r11
lea r8, [rax + rdx]
mov qword [rbp + 0x20], r8
mov rdx, qword [rax + rdx]
add r14, rax
mov rax, qword [rbp + 0x28]
mov qword [rbp - 0x28], rcx
lea r15, [rax + rcx*8]
lea rdi, [r15 + rdx*8]
mov rbx, rsi
sub rbx, rdx
cmp rbx, rdx
mov qword [rbp + 0x40], rdx
jae 0x14016d4e0
lea r8, [rbx*8]
mov rsi, qword [rbp + 0x38]
mov rcx, rsi
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rsi + rbx*8]
cmp qword [rbp + 0x40], 0
jle 0x14016d2c5
test rbx, rbx
mov rsi, qword [rbp + 0x20]
jle 0x14016d573
mov rax, qword [rbp - 0x18]
lea rax, [rax + r13*8]
mov rbx, qword [rbp + 0x38]
movabs r13, 0x1ffffffffffffffe
nop
movzx ecx, byte [r8 - 8]
movzx edx, byte [rdi - 8]
cmp cl, dl
mov r9d, 0
sbb r9, r9
cmp cl, dl
mov r10d, 0
adc r10, 0xffffffffffffffff
cmp cl, dl
lea rdi, [rdi + r9*8]
lea r8, [r8 + r10*8]
mov rcx, r8
cmovb rcx, rdi
mov rcx, qword [rcx]
mov qword [rax], rcx
cmp rdi, r15
jbe 0x14016d4d5
add rax, 0xfffffffffffffff8
cmp r8, rbx
ja 0x14016d490
mov r15, rdi
mov rdx, rbx
jmp 0x14016d2dd
lea r8, [rdx*8]
mov rbx, qword [rbp + 0x38]
mov rcx, rbx
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp + 0x40]
lea r8, [rbx + rax*8]
test rax, rax
jle 0x14016d2cc
cmp rsi, rax
jle 0x14016d2cc
mov rax, qword [rbp + 0x28]
lea rax, [rax + r13*8]
mov rdx, rbx
movabs r13, 0x1ffffffffffffffe
mov rsi, qword [rbp + 0x20]
nop word [rax + rax]
movzx r9d, byte [rdi]
xor r10d, r10d
xor ecx, ecx
cmp r9b, byte [rdx]
setae r10b
setb r9b
mov r11, rdx
cmovb r11, rdi
mov r11, qword [r11]
mov qword [r15], r11
add r15, 8
lea rdx, [rdx + r10*8]
cmp rdx, r8
jae 0x14016d2dd
mov cl, r9b
lea rdi, [rdi + rcx*8]
cmp rdi, rax
jb 0x14016d530
jmp 0x14016d2dd
mov r15, rdi
mov rbx, qword [rbp + 0x38]
mov rdx, rbx
movabs r13, 0x1ffffffffffffffe
jmp 0x14016d2dd
mov r8d, 2
cmp r10, 2
je 0x14016d0ff
mov r9d, edx
movzx edx, byte [rcx + r8*8]
cmp dl, r9b
jb 0x14016d0ff
inc r8
cmp r10, r8
jne 0x14016d5a0
jmp 0x14016d0fc
mov r11d, 2
mov rsi, qword [rbp + 0x18]
jmp 0x14016d0da
mov r10, rax
and r10, 0xfffffffffffffffe
mov r9, qword [rbp - 0x10]
lea r11, [r9 + rsi*8]
mov r9, qword [rbp - 8]
lea rsi, [r9 + r12*8]
xor r9d, r9d
nop word [rax + rax]
movzx ebx, byte [r11 + r9*8 - 0xc]
mov edi, dword [r11 + r9*8 - 8]
movzx r14d, byte [rsi - 4]
mov r15d, dword [rsi]
mov byte [r11 + r9*8 - 0xc], r14b
mov dword [r11 + r9*8 - 8], r15d
mov byte [rsi - 4], bl
mov dword [rsi], edi
mov rdi, r9
xor rdi, r13
add rdi, rax
movzx ebx, byte [r11 + r9*8 - 4]
mov r14d, dword [r11 + r9*8]
movzx r15d, byte [rdx + rdi*8]
mov r13d, dword [rdx + rdi*8 + 4]
mov byte [r11 + r9*8 - 4], r15b
mov dword [r11 + r9*8], r13d
movabs r13, 0x1ffffffffffffffe
mov byte [rdx + rdi*8], bl
mov dword [rdx + rdi*8 + 4], r14d
add r9, 2
add rsi, 0xfffffffffffffff0
cmp r10, r9
jne 0x14016d5f0
test r8b, 2
je 0x14016d68a
mov r10, r9
not r10
add rax, r10
movzx r10d, byte [rcx + r9*8]
mov r11d, dword [rcx + r9*8 + 4]
movzx ebx, byte [rdx + rax*8]
mov esi, dword [rdx + rax*8 + 4]
mov byte [rcx + r9*8], bl
mov dword [rcx + r9*8 + 4], esi
mov byte [rdx + rax*8], r10b
mov dword [rdx + rax*8 + 4], r11d
mov r15, qword [rbp + 8]
mov rax, qword [rbp + 0x10]
mov r11, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x40]
jmp 0x14016d103
mov r11d, 3
mov rsi, qword [rbp + 0x18]
jmp 0x14016d0da
mov r11, r12
mov rsi, qword [rbp + 0x18]
jmp 0x14016d0da
mov rdx, qword [rbp + 0x58]
shl rdx, 4
mov r8d, 8
mov rcx, rax
call fcn.140028ff0
mov r8d, 4
mov rcx, rbx
mov rdx, qword [rbp]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.140028ff0
nop
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [0x14028e318]
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x58], 1
lea rcx, [0x14028e328]
mov qword [rbp - 0x50], rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x48], rax
lea rdx, [0x14028e390]
lea rcx, [rbp - 0x60]
call fcn.14020a230
jmp 0x14016d895
lea rcx, [0x14028e318]
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x58], 1
lea rcx, [0x14028e328]
mov qword [rbp - 0x50], rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x48], rax
lea rdx, [0x14028e3a8]
lea rcx, [rbp - 0x60]
call fcn.14020a230
jmp 0x14016d895
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x48], rax
lea r8, [0x14028e3c0]
mov rcx, r13
mov rdx, r15
call fcn.14020a830
jmp 0x14016d895
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x48], rax
lea r8, [0x14028e3c0]
mov rdx, r13
call fcn.14020a8b0
jmp 0x14016d895
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x48], rax
lea rcx, [0x14028e420]
lea r8, [0x14028e450]
mov edx, 0x2c
call fcn.14020a300
jmp 0x14016d895
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x48], rax
lea r8, [0x14028e468]
mov rcx, qword [rbp + 0x40]
mov rdx, r12
call fcn.14020a8b0
jmp 0x14016d895
mov qword [rbp + 0x50], r14
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x48], rax
lea rcx, [0x14028e408]
call fcn.14020a1a0
jmp 0x14016d895
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x48], rax
lea r8, [0x14028e378]
mov rcx, r12
mov rdx, r15
call fcn.14020a830
jmp 0x14016d895
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x48], rax
lea r8, [0x14028e378]
mov rcx, rsi
mov rdx, r12
call fcn.14020a8b0
jmp 0x14016d895
lea rcx, [0x14028e3d8]
call fcn.14020a1a0
lea rcx, [0x14028e3f0]
call fcn.14020a1a0
ud2