Function at 0x180071230
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rdi, r9
mov r12, r8
mov rsi, rdx
mov qword [rbp + 0x28], rcx
cmp rdx, 0x21
mov qword [rbp + 0x10], r8
jae 0x1800712e2
cmp rsi, 2
jb 0x180071d59
lea rax, [rsi + 0x10]
cmp rax, rdi
ja 0x180071db6
mov r13, rsi
shr r13, 1
cmp rsi, 0xf
jbe 0x180071910
mov rdi, rsi
shl rdi, 4
lea r8, [r12 + rdi]
mov rbx, qword [rbp + 0x28]
mov rcx, rbx
mov rdx, r12
call fcn.1800705b0
mov rdx, r13
shl rdx, 4
lea rcx, [rbx + rdx]
add rdx, r12
lea r8, [r12 + rdi]
add r8, 0x80
call fcn.1800705b0
mov eax, 8
mov rcx, rsi
sub rcx, r13
cmp rax, r13
jb 0x180071b16
jmp 0x180071b9a
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x18], rax
mov r13d, dword [rbp + 0xa0]
lea rax, [r12 - 0x10]
mov qword [rbp], rax
mov qword [rbp - 8], rdi
mov rax, qword [rbp + 0x28]
add rax, 0x10
mov qword [rbp + 8], rax
mov r15, rsi
sub r13d, 1
jb 0x1800718f4
mov r9, r15
shr r9, 3
mov rax, r9
shl rax, 6
mov rsi, qword [rbp + 0x28]
add rax, rsi
imul r8, r9, 0x70
add r8, rsi
cmp r15, 0x40
mov dword [rbp + 0x24], r13d
jae 0x180071380
mov rcx, qword [rsi + 8]
mov rdx, qword [rax + 8]
mov ecx, dword [rcx]
mov edx, dword [rdx]
cmp ecx, edx
setl r9b
mov r10, qword [r8 + 8]
mov r10d, dword [r10]
cmp ecx, r10d
setl cl
xor cl, r9b
cmp edx, r10d
setl dl
xor dl, r9b
cmovne rax, r8
test cl, cl
cmovne rax, rsi
jmp 0x18007138b
mov rcx, rsi
mov rdx, rax
call fcn.1800704f0
mov r13, rax
sub r13, rsi
shr r13, 4
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp + 0x18], 0
je 0x1800713bd
mov rcx, qword [rbp + 0x18]
mov rcx, qword [rcx + 8]
mov ecx, dword [rcx]
cmp ecx, dword [rax]
jge 0x180071660
cmp r15, rdi
ja 0x180071db6
mov rbx, r15
shl rbx, 4
lea rdi, [r12 + rbx]
mov rax, r13
shl rax, 4
mov rcx, qword [rbp + 0x28]
add rax, rcx
add rax, 8
xor esi, esi
mov rdx, rdi
mov r8, r13
nop dword [rax + rax]
mov r10, r8
sub r10, 3
mov r9d, 0
cmovae r9, r10
shl r9, 4
add r9, qword [rbp + 0x28]
cmp rcx, r9
jae 0x1800714e4
nop word cs:[rax + rax]
mov r10, qword [rcx + 8]
mov r11, qword [rax]
mov r14d, dword [r10]
lea r12, [rdx - 0x10]
xor r10d, r10d
cmp r14d, dword [r11]
setl r10b
cmovl r12, qword [rbp + 0x10]
add r10, rsi
shl rsi, 4
movups xmm0, xmmword [rcx]
movups xmmword [r12 + rsi], xmm0
mov r11, qword [rcx + 0x18]
mov rsi, qword [rax]
mov r14d, dword [r11]
lea r12, [rdx - 0x20]
xor r11d, r11d
cmp r14d, dword [rsi]
cmovl r12, qword [rbp + 0x10]
setl r11b
add r11, r10
shl r10, 4
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [r12 + r10], xmm0
mov r12, qword [rbp + 0x10]
mov r10, qword [rcx + 0x28]
mov rsi, qword [rax]
mov r14d, dword [r10]
xor r10d, r10d
cmp r14d, dword [rsi]
lea rsi, [rdx - 0x30]
setl r10b
cmovl rsi, r12
add r10, r11
shl r11, 4
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rsi + r11], xmm0
mov r11, qword [rcx + 0x38]
mov r14, qword [rax]
mov r11d, dword [r11]
add rdx, 0xffffffffffffffc0
xor esi, esi
cmp r11d, dword [r14]
mov r11, rdx
cmovl r11, r12
setl sil
add rsi, r10
shl r10, 4
movups xmm0, xmmword [rcx + 0x30]
movups xmmword [r11 + r10], xmm0
add rcx, 0x40
cmp rcx, r9
jb 0x180071420
mov r9, r8
shl r9, 4
add r9, qword [rbp + 0x28]
jmp 0x180071535
mov r10, qword [rcx + 8]
mov r11, qword [rax]
mov r10d, dword [r10]
add rdx, 0xfffffffffffffff0
xor r14d, r14d
cmp r10d, dword [r11]
mov r10, rdx
cmovl r10, r12
setl r14b
mov r11, rsi
shl r11, 4
movups xmm0, xmmword [rcx]
movups xmmword [r10 + r11], xmm0
add rsi, r14
add rcx, 0x10
cmp rcx, r9
jb 0x180071500
cmp r8, r15
je 0x180071560
mov r8, rsi
shl r8, 4
movups xmm0, xmmword [rcx]
movups xmmword [rdx + r8 - 0x10], xmm0
add rdx, 0xfffffffffffffff0
add rcx, 0x10
mov r8, r15
jmp 0x1800713f0
mov r14, rsi
shl r14, 4
mov rcx, qword [rbp + 0x28]
mov rdx, r12
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
mov rdx, r15
sub rdx, rsi
movabs r10, 0xffffffffffffffe
je 0x18007160f
lea rax, [rsi + 1]
cmp r15, rax
jne 0x1800715a0
xor eax, eax
jmp 0x1800715ec
mov rcx, rdx
and rcx, 0xfffffffffffffffe
mov rax, qword [rbp + 8]
lea r8, [rax + r14]
add rbx, qword [rbp]
xor r9d, r9d
nop word cs:[rax + rax]
movups xmm0, xmmword [rbx]
movups xmmword [r8 - 0x10], xmm0
lea rax, [r9 + 2]
xor r9, r10
shl r9, 4
movups xmm0, xmmword [rdi + r9]
movups xmmword [r8], xmm0
add r8, 0x20
add rbx, 0xffffffffffffffe0
mov r9, rax
cmp rcx, rax
jne 0x1800715c0
test dl, 1
je 0x18007160f
mov rcx, qword [rbp + 0x28]
add rcx, r14
mov r8, rax
not r8
shl r8, 4
shl rax, 4
movups xmm0, xmmword [rdi + r8]
movups xmmword [rcx + rax], xmm0
test rsi, rsi
mov rdi, qword [rbp - 8]
je 0x180071660
cmp r15, rsi
jb 0x180071d6d
add r14, qword [rbp + 0x28]
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rax
mov r13d, dword [rbp + 0x24]
mov dword [rsp + 0x20], r13d
mov rcx, r14
mov r8, r12
mov r9, rdi
call fcn.180071230
mov r15, rsi
cmp rsi, 0x21
jae 0x180071310
jmp 0x18007126a
cmp r15, rdi
ja 0x180071db6
mov rax, r15
shl rax, 4
mov qword [rbp + 8], rax
lea rdx, [r12 + rax]
mov rax, r13
shl rax, 4
mov rcx, qword [rbp + 0x28]
add rax, rcx
add rax, 8
xor r14d, r14d
mov rdi, rcx
mov qword [rbp + 0x18], rdx
nop word cs:[rax + rax]
mov r9, r13
sub r9, 3
mov r8d, 0
cmovae r8, r9
shl r8, 4
add r8, rcx
cmp rdi, r8
jae 0x18007178f
nop word cs:[rax + rax]
mov r10, qword [rdi + 8]
mov r9, qword [rax]
mov r11d, dword [r9]
lea rsi, [rdx - 0x10]
xor r9d, r9d
cmp r11d, dword [r10]
setge r9b
cmovge rsi, r12
add r9, r14
shl r14, 4
movups xmm0, xmmword [rdi]
movups xmmword [rsi + r14], xmm0
mov r11, qword [rdi + 0x18]
mov r10, qword [rax]
mov esi, dword [r10]
lea rbx, [rdx - 0x20]
xor r10d, r10d
cmp esi, dword [r11]
cmovge rbx, r12
setge r10b
add r10, r9
shl r9, 4
movups xmm0, xmmword [rdi + 0x10]
movups xmmword [rbx + r9], xmm0
mov r11, qword [rdi + 0x28]
mov r9, qword [rax]
mov esi, dword [r9]
xor r9d, r9d
cmp esi, dword [r11]
lea r11, [rdx - 0x30]
setge r9b
cmovge r11, r12
add r9, r10
shl r10, 4
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [r11 + r10], xmm0
mov r10, qword [rdi + 0x38]
mov r11, qword [rax]
mov r11d, dword [r11]
add rdx, 0xffffffffffffffc0
xor r14d, r14d
cmp r11d, dword [r10]
mov r10, rdx
cmovge r10, r12
setge r14b
add r14, r9
shl r9, 4
movups xmm0, xmmword [rdi + 0x30]
movups xmmword [r10 + r9], xmm0
add rdi, 0x40
cmp rdi, r8
jb 0x1800716d0
mov r8, r13
shl r8, 4
mov rcx, qword [rbp + 0x28]
add r8, rcx
cmp rdi, r8
jae 0x1800717ea
nop word cs:[rax + rax]
mov r9, qword [rdi + 8]
mov r10, qword [rax]
mov r10d, dword [r10]
add rdx, 0xfffffffffffffff0
xor r11d, r11d
cmp r10d, dword [r9]
mov r9, rdx
cmovge r9, r12
setge r11b
mov r10, r14
shl r10, 4
movups xmm0, xmmword [rdi]
movups xmmword [r9 + r10], xmm0
add r14, r11
add rdi, 0x10
cmp rdi, r8
jb 0x1800717b0
cmp r13, r15
je 0x180071820
add rdx, 0xfffffffffffffff0
mov r8, r14
shl r8, 4
movups xmm0, xmmword [rdi]
movups xmmword [r12 + r8], xmm0
inc r14
add rdi, 0x10
mov r13, r15
jmp 0x1800716a0
mov rbx, r14
shl rbx, 4
mov rdx, r12
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rsi, r15
sub rsi, r14
mov rdi, qword [rbp - 8]
mov r13d, dword [rbp + 0x24]
movabs r9, 0xffffffffffffffe
mov r10, qword [rbp + 0x18]
je 0x1800718cf
lea rax, [r14 + 1]
cmp r15, rax
jne 0x18007185d
xor eax, eax
jmp 0x1800718ab
mov rcx, rsi
and rcx, 0xfffffffffffffffe
mov rax, qword [rbp + 0x28]
lea rdx, [rax + rbx]
add rdx, 0x10
mov r11, qword [rbp + 8]
add r11, qword [rbp]
xor r8d, r8d
nop dword [rax + rax]
movups xmm0, xmmword [r11]
movups xmmword [rdx - 0x10], xmm0
lea rax, [r8 + 2]
xor r8, r9
shl r8, 4
movups xmm0, xmmword [r10 + r8]
movups xmmword [rdx], xmm0
add rdx, 0x20
add r11, 0xffffffffffffffe0
mov r8, rax
cmp rcx, rax
jne 0x180071880
test sil, 1
je 0x1800718cf
mov rcx, qword [rbp + 0x28]
add rcx, rbx
mov rdx, rax
not rdx
shl rdx, 4
shl rax, 4
movups xmm0, xmmword [r10 + rdx]
movups xmmword [rcx + rax], xmm0
cmp r15, r14
jb 0x180071d9f
add qword [rbp + 0x28], rbx
mov eax, 0
mov qword [rbp + 0x18], rax
cmp rsi, 0x21
jae 0x180071301
jmp 0x18007126a
mov byte [rsp + 0x20], 1
mov rcx, qword [rbp + 0x28]
mov rdx, r15
mov r8, r12
mov r9, rdi
call fcn.180070b00
jmp 0x180071d59
cmp rsi, 7
jbe 0x180071ae6
mov r14, qword [rbp + 0x28]
mov rax, qword [r14 + 8]
mov rcx, qword [r14 + 0x18]
mov ecx, dword [rcx]
xor r9d, r9d
xor r10d, r10d
cmp ecx, dword [rax]
setge r9b
setl r10b
mov rax, qword [r14 + 0x38]
mov rcx, qword [r14 + 0x28]
mov eax, dword [rax]
xor edx, edx
cmp eax, dword [rcx]
setl dl
shl r10d, 4
lea rax, [r14 + r10]
shl r9d, 4
lea rcx, [r14 + r9]
mov r11d, edx
shl r11d, 4
lea r8, [r14 + r11]
add r8, 0x20
xor edx, 3
shl edx, 4
mov r11, qword [r14 + r11 + 0x28]
mov r10, qword [r14 + r10 + 8]
mov r11d, dword [r11]
mov rdi, qword [r14 + rdx + 8]
mov r9, qword [r14 + r9 + 8]
mov edi, dword [rdi]
mov r9d, dword [r9]
cmp edi, r9d
mov rbx, rcx
cmovl rbx, r8
cmp r11d, dword [r10]
cmovl rbx, rax
cmovl rax, r8
cmovl r8, rcx
add rdx, r14
cmp edi, r9d
cmovge rcx, rdx
cmovl r8, rdx
mov rdx, qword [r8 + 8]
mov r9, qword [rbx + 8]
mov edx, dword [rdx]
cmp edx, dword [r9]
mov rdx, rbx
cmovl rdx, r8
cmovl r8, rbx
movups xmm0, xmmword [rax]
movups xmmword [r12], xmm0
movups xmm0, xmmword [rdx]
movups xmmword [r12 + 0x10], xmm0
movups xmm0, xmmword [r8]
movups xmmword [r12 + 0x20], xmm0
movups xmm0, xmmword [rcx]
movups xmmword [r12 + 0x30], xmm0
mov rax, r13
shl rax, 4
lea rcx, [r14 + rax]
mov rdx, qword [r14 + rax + 8]
mov r8, qword [r14 + rax + 0x18]
mov r9d, dword [r8]
xor r11d, r11d
xor r8d, r8d
cmp r9d, dword [rdx]
setge r11b
setl r8b
mov rdx, qword [r14 + rax + 0x38]
mov r10, qword [r14 + rax + 0x28]
mov edx, dword [rdx]
xor r9d, r9d
cmp edx, dword [r10]
setl r9b
shl r8d, 4
shl r11d, 4
lea rdx, [rcx + r11]
mov edi, r9d
shl edi, 4
lea r10, [rdi + rcx]
add r10, 0x20
xor r9d, 3
shl r9d, 4
mov rdi, qword [rcx + rdi + 0x28]
mov rbx, qword [r8 + rcx + 8]
mov edi, dword [rdi]
mov r14, qword [r9 + rcx + 8]
mov r11, qword [r11 + rcx + 8]
mov r14d, dword [r14]
mov r11d, dword [r11]
cmp r14d, r11d
mov r15, rdx
cmovl r15, r10
cmp edi, dword [rbx]
lea r8, [rcx + r8]
cmovl r15, r8
cmovl r8, r10
cmovl r10, rdx
add rcx, r9
cmp r14d, r11d
cmovge rdx, rcx
cmovl r10, rcx
mov rcx, qword [r10 + 8]
mov r9, qword [r15 + 8]
mov ecx, dword [rcx]
cmp ecx, dword [r9]
mov rcx, r15
cmovl rcx, r10
cmovl r10, r15
movups xmm0, xmmword [r8]
movups xmmword [r12 + rax], xmm0
movups xmm0, xmmword [rcx]
movups xmmword [r12 + rax + 0x10], xmm0
movups xmm0, xmmword [r10]
movups xmmword [r12 + rax + 0x20], xmm0
movups xmm0, xmmword [rdx]
movups xmmword [r12 + rax + 0x30], xmm0
mov eax, 4
mov rcx, rsi
sub rcx, r13
cmp rax, r13
jb 0x180071b16
jmp 0x180071b9a
mov rcx, qword [rbp + 0x28]
movups xmm0, xmmword [rcx]
movups xmmword [r12], xmm0
mov rax, r13
shl rax, 4
movups xmm0, xmmword [rcx + rax]
movups xmmword [r12 + rax], xmm0
mov eax, 1
mov rcx, rsi
sub rcx, r13
cmp rax, r13
jae 0x180071b9a
mov edx, eax
shl edx, 4
mov r8, rax
jmp 0x180071b37
mov rdi, r12
mov qword [rdi], r10
mov qword [r12 + r11 - 8], r9
inc r8
add rdx, 0x10
cmp r8, r13
je 0x180071b9a
mov r10, r8
shl r10, 4
mov r9, qword [rbp + 0x28]
movups xmm0, xmmword [r9 + r10]
movups xmmword [r12 + r10], xmm0
mov r9, qword [r12 + r10 + 8]
mov r11, qword [r12 + r10 - 8]
mov edi, dword [r9]
cmp edi, dword [r11]
jge 0x180071b2b
add r10, r12
mov r10, qword [r10]
mov rdi, rdx
nop word [rax + rax]
mov r11, rdi
movups xmm0, xmmword [r12 + rdi - 0x10]
movups xmmword [r12 + rdi], xmm0
cmp rdi, 0x10
je 0x180071b20
mov rbx, qword [r12 + r11 - 0x18]
mov r14d, dword [r9]
lea rdi, [r11 - 0x10]
cmp r14d, dword [rbx]
jl 0x180071b70
add rdi, r12
jmp 0x180071b23
mov rdx, r13
shl rdx, 4
cmp rax, rcx
jae 0x180071c3a
mov r8, qword [rbp + 0x28]
add r8, rdx
lea r9, [r12 + rdx]
mov r10d, eax
shl r10d, 4
jmp 0x180071bdb
mov r14, r9
mov r12, qword [rbp + 0x10]
mov qword [r14], rdi
mov qword [r9 + rbx - 8], r11
inc rax
add r10, 0x10
cmp rax, rcx
je 0x180071c3a
mov rdi, rax
shl rdi, 4
movups xmm0, xmmword [r8 + rdi]
movups xmmword [r9 + rdi], xmm0
mov r11, qword [r9 + rdi + 8]
mov rbx, qword [r9 + rdi - 8]
mov r14d, dword [r11]
cmp r14d, dword [rbx]
jge 0x180071bcf
add rdi, r9
mov rdi, qword [rdi]
mov r14, r10
nop word [rax + rax]
mov rbx, r14
movups xmm0, xmmword [r9 + r14 - 0x10]
movups xmmword [r9 + r14], xmm0
cmp r14, 0x10
je 0x180071bc0
mov r15, qword [r9 + rbx - 0x18]
mov r12d, dword [r11]
lea r14, [rbx - 0x10]
cmp r12d, dword [r15]
jl 0x180071c10
add r14, r9
jmp 0x180071bc3
mov qword [rbp + 8], r13
lea rax, [r12 + rdx]
lea rcx, [r12 + rdx]
add rcx, 0xfffffffffffffff0
mov rdx, rsi
shl rdx, 4
lea r15, [r12 + rdx]
add r15, 0xfffffffffffffff0
mov r9, qword [rbp + 0x28]
mov qword [rbp], rdx
lea r10, [r9 + rdx]
add r10, 0xfffffffffffffff0
mov r8, r12
jmp 0x180071cbe
movzx edi, byte [rbp - 8]
mov r14b, dil
shl r14d, 4
add rax, r14
movzx edi, byte [rbp + 0x24]
mov r11b, dil
shl r11d, 4
add r8, r11
movups xmm0, xmmword [r13]
mov r15b, r12b
shl r15d, 4
sub rdx, r15
movzx r11d, byte [rbp + 0x18]
mov bl, r11b
shl ebx, 4
sub rcx, rbx
add r9, 0x10
movups xmmword [r10], xmm0
add r10, 0xfffffffffffffff0
dec qword [rbp + 8]
mov r15, rdx
je 0x180071d16
mov rdx, qword [rax + 8]
mov rdi, qword [r8 + 8]
mov ebx, dword [rdx]
xor r11d, r11d
xor r14d, r14d
mov rdx, rax
cmp ebx, dword [rdi]
setge byte [rbp + 0x24]
setl byte [rbp - 8]
jl 0x180071ce0
mov rdx, r8
movups xmm0, xmmword [rdx]
movups xmmword [r9], xmm0
mov rdx, qword [r15 + 8]
mov r12, qword [rcx + 8]
mov edi, dword [rdx]
xor ebx, ebx
mov rdx, r15
xor r15d, r15d
mov r13, rcx
cmp edi, dword [r12]
setl byte [rbp + 0x18]
setge r12b
jl 0x180071c70
mov r13, rdx
jmp 0x180071c70
add rcx, 0x10
test sil, 1
je 0x180071d4b
xor edx, edx
xor r10d, r10d
cmp r8, rcx
setae dl
setb r10b
mov r11, rax
cmovb r11, r8
movups xmm0, xmmword [r11]
movups xmmword [r9], xmm0
shl r10d, 4
add r8, r10
shl edx, 4
add rax, rdx
cmp r8, rcx
jne 0x180071db1
add r15, 0x10
cmp rax, r15
jne 0x180071db1
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rax, [0x18023bb18]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 1
mov qword [rbp - 0x38], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
lea rdx, [0x18023bb28]
lea rcx, [rbp - 0x48]
call fcn.180226a80
lea r8, [0x18023bb40]
mov rcx, r14
mov rdx, r15
call fcn.180226ec0
call fcn.180226e80
ud2