Function at 0x18006b120
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
mov r15, r9
mov rdi, r8
mov rbx, rdx
mov r12, rcx
cmp rdx, 0x21
jae 0x18006b1a0
cmp rbx, 2
jb 0x18006bb84
lea rax, [rbx + 0x10]
cmp rax, r15
ja 0x18006bb98
mov rsi, rbx
shr rsi, 1
mov rbp, rsi
shl rbp, 5
lea r15, [r12 + rbp]
lea r14, [rdi + rbp]
cmp rbx, 7
mov qword [rsp + 0x70], r15
jbe 0x18006b6c0
mov rcx, r12
mov rdx, rdi
call fcn.180069c50
mov rcx, r15
mov rdx, r14
call fcn.180069c50
mov eax, 4
jmp 0x18006b6e9
mov rsi, qword [rsp + 0x160]
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x40], rax
mov r14d, dword [rsp + 0x150]
lea rax, [rdi - 0x20]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x68], r15
lea rax, [r12 + 0x20]
mov qword [rsp + 0x88], rax
mov r13, rbx
mov qword [rsp + 0x48], r12
sub r14d, 1
jb 0x18006b6a0
mov dword [rsp + 0x50], r14d
mov rcx, r12
mov rdx, r13
mov r8, rsi
call fcn.180074980
mov qword [rsp + 0x58], rax
shl rax, 5
lea r14, [r12 + rax]
movups xmm0, xmmword [r12 + rax]
movups xmm1, xmmword [r12 + rax + 0x10]
movaps xmmword [rsp + 0xd0], xmm1
movaps xmmword [rsp + 0xc0], xmm0
cmp qword [rsp + 0x40], 0
mov qword [rsp + 0x60], r13
je 0x18006b280
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rbx + 8]
mov rax, qword [rbx + 0x10]
mov rdx, qword [r14 + 8]
mov r8, qword [r14 + 0x10]
mov rsi, rax
sub rsi, r8
cmovb r8, rax
call sub.VCRUNTIME140.dll_memcmp
cdqe
test eax, eax
cmovne rsi, rax
movzx eax, byte [rbx + 0x18]
sub al, byte [r14 + 0x18]
xor ecx, ecx
cmp al, 0xff
setne cl
xor eax, eax
test rsi, rsi
setns al
cmovne ecx, eax
test cl, cl
jne 0x18006b4a0
cmp r13, r15
ja 0x18006bb98
shl r13, 5
mov qword [rsp + 0x80], r13
lea r15, [rdi + r13]
xor ebx, ebx
mov rbp, r12
mov qword [rsp + 0x70], r15
mov rsi, qword [rsp + 0x58]
nop dword [rax + rax]
mov r13, rsi
shl r13, 5
add r13, r12
cmp rbp, r13
jae 0x18006b335
nop
mov rcx, qword [rbp + 8]
mov rax, qword [rbp + 0x10]
mov rdx, qword [r14 + 8]
mov r8, qword [r14 + 0x10]
mov r12, rax
sub r12, r8
cmovb r8, rax
call sub.VCRUNTIME140.dll_memcmp
cdqe
test eax, eax
cmovne r12, rax
movzx eax, byte [rbp + 0x18]
sub al, byte [r14 + 0x18]
xor ecx, ecx
cmp al, 0xff
sete cl
xor eax, eax
test r12, r12
sets al
cmovne ecx, eax
add r15, 0xffffffffffffffe0
test cl, cl
mov rax, r15
cmovne rax, rdi
mov rdx, rbx
shl rdx, 5
movups xmm0, xmmword [rbp]
movups xmm1, xmmword [rbp + 0x10]
movups xmmword [rax + rdx + 0x10], xmm1
movups xmmword [rax + rdx], xmm0
movzx eax, cl
add rbx, rax
add rbp, 0x20
cmp rbp, r13
jb 0x18006b2c0
mov r13, qword [rsp + 0x60]
cmp rsi, r13
je 0x18006b370
mov rax, rbx
shl rax, 5
movups xmm0, xmmword [rbp]
movups xmm1, xmmword [rbp + 0x10]
movups xmmword [r15 + rax - 0x10], xmm1
movups xmmword [r15 + rax - 0x20], xmm0
add r15, 0xffffffffffffffe0
add rbp, 0x20
mov rsi, r13
mov r12, qword [rsp + 0x48]
jmp 0x18006b2b0
mov rbp, rbx
shl rbp, 5
mov r12, qword [rsp + 0x48]
mov rcx, r12
mov rdx, rdi
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rdx, r13
sub rdx, rbx
mov r15, qword [rsp + 0x68]
mov r11, qword [rsp + 0x70]
je 0x18006b44b
lea rax, [rbx + 1]
cmp r13, rax
jne 0x18006b3b0
xor eax, eax
jmp 0x18006b420
mov rcx, rdx
and rcx, 0xfffffffffffffffe
mov rax, qword [rsp + 0x88]
lea r8, [rax + rbp]
mov rsi, qword [rsp + 0x80]
add rsi, qword [rsp + 0x78]
xor r9d, r9d
movabs r10, 0x7fffffffffffffe
nop dword [rax]
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [r8 - 0x10], xmm1
movups xmmword [r8 - 0x20], xmm0
lea rax, [r9 + 2]
xor r9, r10
shl r9, 5
movups xmm0, xmmword [r11 + r9]
movups xmm1, xmmword [r11 + r9 + 0x10]
movups xmmword [r8], xmm0
movups xmmword [r8 + 0x10], xmm1
add r8, 0x40
add rsi, 0xffffffffffffffc0
mov r9, rax
cmp rcx, rax
jne 0x18006b3e0
test dl, 1
je 0x18006b44b
lea rcx, [r12 + rbp]
mov r8, rax
not r8
shl r8, 5
shl rax, 5
movups xmm0, xmmword [r11 + r8]
movups xmm1, xmmword [r11 + r8 + 0x10]
movups xmmword [rcx + rax + 0x10], xmm1
movups xmmword [rcx + rax], xmm0
test rbx, rbx
je 0x18006b4a0
cmp r13, rbx
jb 0x18006bb9a
add rbp, r12
mov rsi, qword [rsp + 0x160]
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x28], rax
mov r14d, dword [rsp + 0x50]
mov dword [rsp + 0x20], r14d
mov rcx, rbp
mov r8, rdi
mov r9, r15
call fcn.18006b120
mov r13, rbx
cmp rbx, 0x21
jae 0x18006b1e0
jmp 0x18006b145
cmp r13, r15
ja 0x18006bb98
shl r13, 5
mov qword [rsp + 0x40], r13
lea rax, [rdi + r13]
xor ebp, ebp
mov rbx, r12
mov qword [rsp + 0x70], rax
mov r12, rax
mov rsi, qword [rsp + 0x58]
nop dword [rax + rax]
mov r15, rsi
shl rsi, 5
add rsi, qword [rsp + 0x48]
cmp rbx, rsi
jae 0x18006b564
nop word cs:[rax + rax]
mov rcx, qword [r14 + 8]
mov rax, qword [r14 + 0x10]
mov rdx, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
mov r13, rax
sub r13, r8
cmovb r8, rax
call sub.VCRUNTIME140.dll_memcmp
cdqe
test eax, eax
cmovne r13, rax
movzx eax, byte [r14 + 0x18]
sub al, byte [rbx + 0x18]
xor ecx, ecx
cmp al, 0xff
setne cl
xor eax, eax
test r13, r13
setns al
cmovne ecx, eax
add r12, 0xffffffffffffffe0
test cl, cl
mov rax, r12
cmovne rax, rdi
mov rdx, rbp
shl rdx, 5
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rax + rdx + 0x10], xmm1
movups xmmword [rax + rdx], xmm0
movzx eax, cl
add rbp, rax
add rbx, 0x20
cmp rbx, rsi
jb 0x18006b4f0
mov rsi, qword [rsp + 0x60]
cmp r15, rsi
je 0x18006b5a0
add r12, 0xffffffffffffffe0
mov rax, rbp
shl rax, 5
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdi + rax + 0x10], xmm1
movups xmmword [rdi + rax], xmm0
inc rbp
add rbx, 0x20
jmp 0x18006b4d0
mov r14, rbp
shl r14, 5
mov r12, qword [rsp + 0x48]
mov rcx, r12
mov rdx, rdi
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
mov rbx, rsi
sub rbx, rbp
movabs r9, 0x7fffffffffffffe
mov r10, qword [rsp + 0x70]
je 0x18006b669
lea rax, [rbp + 1]
cmp rsi, rax
jne 0x18006b5e2
xor eax, eax
jmp 0x18006b63e
mov rcx, rbx
and rcx, 0xfffffffffffffffe
lea rdx, [r12 + r14]
add rdx, 0x20
mov r11, qword [rsp + 0x40]
add r11, qword [rsp + 0x78]
xor r8d, r8d
nop
movups xmm0, xmmword [r11]
movups xmm1, xmmword [r11 + 0x10]
movups xmmword [rdx - 0x10], xmm1
movups xmmword [rdx - 0x20], xmm0
lea rax, [r8 + 2]
xor r8, r9
shl r8, 5
movups xmm0, xmmword [r10 + r8]
movups xmm1, xmmword [r10 + r8 + 0x10]
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm1
add rdx, 0x40
add r11, 0xffffffffffffffc0
mov r8, rax
cmp rcx, rax
jne 0x18006b600
test bl, 1
je 0x18006b669
lea rcx, [r12 + r14]
mov rdx, rax
not rdx
shl rdx, 5
shl rax, 5
movups xmm0, xmmword [r10 + rdx]
movups xmm1, xmmword [r10 + rdx + 0x10]
movups xmmword [rcx + rax + 0x10], xmm1
movups xmmword [rcx + rax], xmm0
cmp rsi, rbp
jb 0x18006bbe0
add r12, r14
mov eax, 0
mov qword [rsp + 0x40], rax
cmp rbx, 0x21
mov r15, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x160]
mov r14d, dword [rsp + 0x50]
jae 0x18006b1cb
jmp 0x18006b145
mov qword [rsp + 0x28], rsi
mov byte [rsp + 0x20], 1
mov rcx, r12
mov rdx, r13
mov r8, rdi
mov r9, r15
call fcn.18006aae0
jmp 0x18006bb84
movups xmm0, xmmword [r12]
movups xmm1, xmmword [r12 + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
movups xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0x10]
movups xmmword [r14 + 0x10], xmm1
movups xmmword [r14], xmm0
mov eax, 1
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x48], r12
mov rcx, rbx
sub rcx, rsi
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rax
cmp rax, rsi
jae 0x18006b88d
mov rax, qword [rsp + 0x58]
mov ecx, eax
shl ecx, 5
mov qword [rsp + 0x40], rcx
mov r13, rax
jmp 0x18006b77a
mov rax, rdi
mov rcx, qword [rsp + 0x88]
mov qword [rax], rcx
mov qword [rdi + r13 - 0x18], r12
mov qword [rdi + r13 - 0x10], r15
mov byte [rdi + r13 - 8], sil
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
mov ecx, dword [rcx + 3]
mov dword [rdi + r13 - 7], eax
mov dword [rdi + r13 - 4], ecx
mov r13, qword [rsp + 0x50]
inc r13
add qword [rsp + 0x40], 0x20
cmp r13, qword [rsp + 0x60]
je 0x18006b88d
mov qword [rsp + 0x50], r13
shl r13, 5
mov rax, qword [rsp + 0x48]
movups xmm0, xmmword [rax + r13]
movups xmm1, xmmword [rax + r13 + 0x10]
movups xmmword [rdi + r13], xmm0
movups xmmword [rdi + r13 + 0x10], xmm1
mov r12, qword [rdi + r13 + 8]
mov r15, qword [rdi + r13 + 0x10]
mov rdx, qword [rdi + r13 - 0x18]
mov r8, qword [rdi + r13 - 0x10]
mov r14, r15
sub r14, r8
cmovb r8, r15
mov rcx, r12
call sub.VCRUNTIME140.dll_memcmp
cdqe
test eax, eax
cmovne r14, rax
movzx esi, byte [rdi + r13 + 0x18]
mov eax, esi
sub al, byte [rdi + r13 - 8]
xor ecx, ecx
cmp al, 0xff
sete cl
xor eax, eax
test r14, r14
sets al
cmovne ecx, eax
cmp cl, 1
jne 0x18006b761
mov rax, qword [rsp + 0x48]
add rax, r13
add r13, rdi
mov rcx, qword [r13]
mov qword [rsp + 0x88], rcx
add rax, 0x19
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x40]
nop dword [rax]
mov r13, rax
movups xmm0, xmmword [rdi + rax - 0x20]
movups xmm1, xmmword [rdi + rax - 0x10]
movups xmmword [rdi + rax + 0x10], xmm1
movups xmmword [rdi + rax], xmm0
cmp rax, 0x20
je 0x18006b730
mov rdx, qword [rdi + r13 - 0x38]
mov r8, qword [rdi + r13 - 0x30]
mov r14, r15
sub r14, r8
cmovb r8, r15
mov rcx, r12
call sub.VCRUNTIME140.dll_memcmp
cdqe
test eax, eax
cmovne r14, rax
mov eax, esi
sub al, byte [rdi + r13 - 0x28]
xor ecx, ecx
cmp al, 0xff
sete cl
xor eax, eax
test r14, r14
sets al
cmovne ecx, eax
lea rax, [r13 - 0x20]
test cl, cl
jne 0x18006b820
add rax, rdi
jmp 0x18006b733
mov r15, qword [rsp + 0x58]
cmp r15, qword [rsp + 0x80]
jae 0x18006ba0e
add rbp, rdi
mov eax, r15d
shl eax, 5
mov qword [rsp + 0x50], rax
jmp 0x18006b8fa
mov rax, rbp
mov rcx, qword [rsp + 0x68]
mov qword [rax], rcx
mov qword [rbp + r15 - 0x18], r12
mov qword [rbp + r15 - 0x10], r13
mov byte [rbp + r15 - 8], sil
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
mov ecx, dword [rcx + 3]
mov dword [rbp + r15 - 7], eax
mov dword [rbp + r15 - 4], ecx
mov r15, qword [rsp + 0x58]
inc r15
add qword [rsp + 0x50], 0x20
cmp r15, qword [rsp + 0x80]
je 0x18006ba0e
mov qword [rsp + 0x58], r15
shl r15, 5
mov rax, qword [rsp + 0x70]
movups xmm0, xmmword [rax + r15]
movups xmm1, xmmword [rax + r15 + 0x10]
movups xmmword [rbp + r15], xmm0
movups xmmword [rbp + r15 + 0x10], xmm1
mov r12, qword [rbp + r15 + 8]
mov r13, qword [rbp + r15 + 0x10]
mov rdx, qword [rbp + r15 - 0x18]
mov r8, qword [rbp + r15 - 0x10]
mov r14, r13
sub r14, r8
cmovb r8, r13
mov rcx, r12
call sub.VCRUNTIME140.dll_memcmp
cdqe
test eax, eax
cmovne r14, rax
movzx esi, byte [rbp + r15 + 0x18]
mov eax, esi
sub al, byte [rbp + r15 - 8]
xor ecx, ecx
cmp al, 0xff
sete cl
xor eax, eax
test r14, r14
sets al
cmovne ecx, eax
cmp cl, 1
jne 0x18006b8de
mov rax, qword [rsp + 0x70]
add rax, r15
add r15, rbp
mov rcx, qword [r15]
mov qword [rsp + 0x68], rcx
add rax, 0x19
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x50]
nop word cs:[rax + rax]
mov r15, rax
movups xmm0, xmmword [rbp + rax - 0x20]
movups xmm1, xmmword [rbp + rax - 0x10]
movups xmmword [rbp + rax + 0x10], xmm1
movups xmmword [rbp + rax], xmm0
cmp rax, 0x20
je 0x18006b8b0
mov rdx, qword [rbp + r15 - 0x38]
mov r8, qword [rbp + r15 - 0x30]
mov r14, r13
sub r14, r8
cmovb r8, r13
mov rcx, r12
call sub.VCRUNTIME140.dll_memcmp
cdqe
test eax, eax
cmovne r14, rax
mov eax, esi
sub al, byte [rbp + r15 - 0x28]
xor ecx, ecx
cmp al, 0xff
sete cl
xor eax, eax
test r14, r14
sets al
cmovne ecx, eax
lea rax, [r15 - 0x20]
test cl, cl
jne 0x18006b9a0
add rax, rbp
jmp 0x18006b8b3
mov r13, qword [rsp + 0x78]
lea r12, [r13 - 0x20]
mov rax, rbx
shl rax, 5
lea r15, [rdi + rax]
add r15, 0xffffffffffffffe0
mov r14, qword [rsp + 0x48]
lea rbp, [r14 + rax]
add rbp, 0xffffffffffffffe0
mov rax, qword [rsp + 0x60]
nop dword [rax + rax]
mov qword [rsp + 0x60], rax
mov rsi, rdi
mov rcx, qword [r13 + 8]
mov rax, qword [r13 + 0x10]
mov rdx, qword [rdi + 8]
mov r8, qword [rdi + 0x10]
mov rdi, rax
sub rdi, r8
cmovb r8, rax
call sub.VCRUNTIME140.dll_memcmp
cdqe
test eax, eax
cmovne rdi, rax
movzx eax, byte [r13 + 0x18]
sub al, byte [rsi + 0x18]
xor ecx, ecx
cmp al, 0xff
sete cl
xor eax, eax
test rdi, rdi
sets al
cmovne ecx, eax
test cl, cl
mov rax, rsi
cmovne rax, r13
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r14 + 0x10], xmm1
movups xmmword [r14], xmm0
movzx eax, cl
xor cl, 1
shl eax, 5
add rax, r13
mov r13, rax
movzx edi, cl
shl edi, 5
add rdi, rsi
add r14, 0x20
mov rcx, qword [r15 + 8]
mov rax, qword [r15 + 0x10]
mov rdx, qword [r12 + 8]
mov r8, qword [r12 + 0x10]
mov rsi, rax
sub rsi, r8
cmovb r8, rax
call sub.VCRUNTIME140.dll_memcmp
cdqe
test eax, eax
cmovne rsi, rax
movzx eax, byte [r15 + 0x18]
sub al, byte [r12 + 0x18]
xor ecx, ecx
cmp al, 0xff
sete cl
xor eax, eax
test rsi, rsi
sets al
cmovne ecx, eax
test cl, cl
mov rax, r15
cmovne rax, r12
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x10], xmm1
movups xmmword [rbp], xmm0
movzx eax, cl
shl eax, 5
add r15, rax
add r15, 0xffffffffffffffe0
sub r12, rax
mov rax, qword [rsp + 0x60]
add rbp, 0xffffffffffffffe0
dec rax
jne 0x18006ba40
add r12, 0x20
test bl, 1
je 0x18006bb76
xor eax, eax
xor ecx, ecx
cmp rdi, r12
setae al
setb cl
mov rdx, r13
cmovb rdx, rdi
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [r14 + 0x10], xmm1
movups xmmword [r14], xmm0
shl ecx, 5
add rdi, rcx
shl eax, 5
add r13, rax
cmp rdi, r12
jne 0x18006bbf2
add r15, 0x20
cmp r13, r15
jne 0x18006bbf2
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
lea rax, [0x180133da8]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 1
mov qword [rsp + 0xa0], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0xa8], xmm0
lea rdx, [0x180133db8]
lea rcx, [rsp + 0x90]
call fcn.18010e8f0
lea r8, [0x180133dd0]
mov rcx, rbp
mov rdx, rsi
call fcn.18010ed10
call fcn.1801052f0
int3