Function at 0x18012bdb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov r13, r9
mov rbx, r8
mov rsi, rdx
mov r14, rcx
xor r15d, r15d
mov dword [rbp - 0x40], r15d
mov rdx, qword [rcx + 0x80]
lea rcx, [rbp - 0x18]
call fcn.18003a590
nop
mov r9, qword [rbp - 0x10]
mov rdi, qword [rbp - 0x18]
sub r9, rdi
mov r8, rdi
lea rdx, [rbp - 0x30]
mov rcx, qword [r14 + 0x30]
call fcn.180020b70
nop
mov r12d, r15d
mov rcx, qword [r14 + 0x70]
sub rcx, qword [r14 + 0x68]
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov r10, qword [rbp - 0x30]
je 0x18012bf2c
movabs rdi, 0x2aaaaaaaaaaaaaab
mov r8, qword [rbp - 0x28]
sub r8, r10
mov rdx, r10
mov rcx, r10
call fcn.1800bf8e0
mov rsi, qword [r14 + 0x68]
add rsi, r15
mov rax, qword [rbp - 0x28]
mov r10, qword [rbp - 0x30]
sub rax, r10
mov rdx, qword [rsi + 8]
sub rdx, qword [rsi]
cmp rax, rdx
jae 0x18012be8e
lea rcx, [rbp - 0x30]
call fcn.180033000
mov r10, qword [rbp - 0x30]
mov r8, qword [rsi]
mov r9, qword [rsi + 8]
sub r9, r8
mov rax, r10
cmp r9, 0x10
jb 0x18012bed7
mov r10, r9
shr r10, 4
imul rcx, r10, 0xfffffffffffffff0
add r9, rcx
nop
mov rdx, qword [rax]
xor rdx, qword [r8]
mov rcx, qword [rax + 8]
xor rcx, qword [r8 + 8]
mov qword [rax], rdx
mov qword [rax + 8], rcx
add rax, 0x10
add r8, 0x10
sub r10, 1
jne 0x18012beb0
mov r10, qword [rbp - 0x30]
test r9, r9
je 0x18012bef5
sub r8, rax
nop
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub r9, 1
jne 0x18012bee0
mov r10, qword [rbp - 0x30]
inc r12
add r15, 0x18
mov rcx, qword [r14 + 0x70]
sub rcx, qword [r14 + 0x68]
mov rax, rdi
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r12, rdx
jne 0x18012be51
mov rdi, qword [rbp - 0x18]
mov rsi, qword [rbp + 0x48]
xor r15d, r15d
mov rax, qword [r14 + 0x40]
cmp rax, qword [r14 + 0x38]
je 0x18012bfe5
mov r8, qword [rbp - 0x28]
sub r8, r10
mov rdx, r10
mov rcx, r10
call fcn.1800bf8e0
mov rax, qword [rbp - 0x28]
mov r10, qword [rbp - 0x30]
sub rax, r10
mov rdx, qword [r14 + 0x40]
sub rdx, qword [r14 + 0x38]
cmp rax, rdx
jae 0x18012bf71
lea rcx, [rbp - 0x30]
call fcn.180033000
mov r10, qword [rbp - 0x30]
mov r8, qword [r14 + 0x38]
mov r9, qword [r14 + 0x40]
sub r9, r8
mov rdx, r10
cmp r9, 0x10
jb 0x18012bfc3
mov r10, r9
shr r10, 4
imul rax, r10, 0xfffffffffffffff0
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [r8 + 8]
mov rax, qword [rdx]
xor rax, qword [r8]
xor qword [rdx + 8], rcx
mov qword [rdx], rax
add rdx, 0x10
add r8, 0x10
sub r10, 1
jne 0x18012bfa0
mov r10, qword [rbp - 0x30]
test r9, r9
je 0x18012bfe5
sub r8, rdx
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x18012bfd0
mov r10, qword [rbp - 0x30]
mov rdx, qword [r14 + 0x80]
cmp r13, rdx
jae 0x18012c102
mov r8, qword [rbp - 0x28]
sub r8, r10
mov rdx, r10
mov rcx, r10
call fcn.1800bf8e0
mov r8, r13
mov rdx, qword [rbp - 0x30]
cmp r13, 0x10
jb 0x18012c041
mov r9, r13
shr r9, 4
imul r8, r9, 0xfffffffffffffff0
add r8, r13
mov rcx, qword [rbx + 8]
mov rax, qword [rdx]
xor rax, qword [rbx]
xor qword [rdx + 8], rcx
mov qword [rdx], rax
add rdx, 0x10
add rbx, 0x10
sub r9, 1
jne 0x18012c022
test r8, r8
je 0x18012c060
sub rbx, rdx
nop dword [rax]
movzx eax, byte [rbx + rdx]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne 0x18012c050
mov rax, qword [rbp - 0x30]
xor byte [rax + r13], 0x80
lea r8, [rbp - 0x30]
mov rdx, rsi
mov rcx, qword [r14 + 0x30]
call fcn.180020b30
mov dword [rbp - 0x40], 1
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x18012c0a7
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov r8d, 1
call fcn.1800302d0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r15
test rdi, rdi
je 0x18012c0fd
mov rax, qword [rbp - 8]
sub rax, rdi
cmp rax, 0x1000
jb 0x18012c0f4
test dil, 0x1f
je 0x18012c0c7
call fcn.1801810ec
int3
mov rax, qword [rdi - 8]
cmp rax, rdi
jb 0x18012c0d6
call fcn.1801810ec
int3
sub rdi, rax
cmp rdi, 8
jae 0x18012c0e5
call fcn.1801810ec
int3
cmp rdi, 0x27
jbe 0x18012c0f1
call fcn.1801810ec
int3
mov rdi, rax
mov rcx, rdi
call fcn.18015dea0
nop
jmp 0x18012c228
mov rcx, qword [r14 + 0x30]
mov rax, qword [rcx]
mov r8, r13
sub r8, rdx
mov rdx, rbx
call qword [rax + 0x10]
mov r8, qword [r14 + 0x80]
sub rbx, r8
add rbx, r13
mov r9, qword [rbp - 0x30]
mov rdx, r9
cmp r8, 0x10
jb 0x18012c167
mov r9, r8
shr r9, 4
imul rax, r9, 0xfffffffffffffff0
add r8, rax
nop dword [rax]
mov rcx, qword [rbx]
xor rcx, qword [rdx]
mov rax, qword [rdx + 8]
xor rax, qword [rbx + 8]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
add rdx, 0x10
add rbx, 0x10
sub r9, 1
jne 0x18012c140
mov r9, qword [rbp - 0x30]
test r8, r8
je 0x18012c184
sub rbx, rdx
nop
movzx eax, byte [rdx + rbx]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne 0x18012c170
mov r9, qword [rbp - 0x30]
mov rcx, qword [r14 + 0x30]
mov r8, qword [rbp - 0x28]
sub r8, r9
mov rax, qword [rcx]
mov rdx, r9
call qword [rax + 0x10]
mov rdx, rsi
mov rcx, qword [r14 + 0x30]
call fcn.180020930
mov dword [rbp - 0x40], 1
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x18012c1d2
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov r8d, 1
call fcn.1800302d0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r15
test rdi, rdi
je 0x18012c228
mov rax, qword [rbp - 8]
sub rax, rdi
cmp rax, 0x1000
jb 0x18012c21f
test dil, 0x1f
je 0x18012c1f2
call fcn.1801810ec
int3
mov rax, qword [rdi - 8]
cmp rax, rdi
jb 0x18012c201
call fcn.1801810ec
int3
sub rdi, rax
cmp rdi, 8
jae 0x18012c210
call fcn.1801810ec
int3
cmp rdi, 0x27
jbe 0x18012c21c
call fcn.1801810ec
int3
mov rdi, rax
mov rcx, rdi
call fcn.18015dea0
nop
mov rax, rsi
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret