Function at 0x18012f140
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.18003d870
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.1800237d0
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 0x18012f2bc
movabs rdi, 0x2aaaaaaaaaaaaaab
mov r8, qword [rbp - 0x28]
sub r8, r10
mov rdx, r10
mov rcx, r10
call fcn.1800c2c70
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 0x18012f21e
lea rcx, [rbp - 0x30]
call fcn.180036440
mov r10, qword [rbp - 0x30]
mov r8, qword [rsi]
mov r9, qword [rsi + 8]
sub r9, r8
mov rax, r10
cmp r9, 0x10
jb 0x18012f267
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 0x18012f240
mov r10, qword [rbp - 0x30]
test r9, r9
je 0x18012f285
sub r8, rax
nop
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub r9, 1
jne 0x18012f270
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 0x18012f1e1
mov rdi, qword [rbp - 0x18]
mov rsi, qword [rbp + 0x48]
xor r15d, r15d
mov rax, qword [r14 + 0x40]
cmp rax, qword [r14 + 0x38]
je 0x18012f375
mov r8, qword [rbp - 0x28]
sub r8, r10
mov rdx, r10
mov rcx, r10
call fcn.1800c2c70
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 0x18012f301
lea rcx, [rbp - 0x30]
call fcn.180036440
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 0x18012f353
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 0x18012f330
mov r10, qword [rbp - 0x30]
test r9, r9
je 0x18012f375
sub r8, rdx
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x18012f360
mov r10, qword [rbp - 0x30]
mov rdx, qword [r14 + 0x80]
cmp r13, rdx
jae 0x18012f492
mov r8, qword [rbp - 0x28]
sub r8, r10
mov rdx, r10
mov rcx, r10
call fcn.1800c2c70
mov r8, r13
mov rdx, qword [rbp - 0x30]
cmp r13, 0x10
jb 0x18012f3d1
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 0x18012f3b2
test r8, r8
je 0x18012f3f0
sub rbx, rdx
nop dword [rax]
movzx eax, byte [rbx + rdx]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne 0x18012f3e0
mov rax, qword [rbp - 0x30]
xor byte [rax + r13], 0x80
lea r8, [rbp - 0x30]
mov rdx, rsi
mov rcx, qword [r14 + 0x30]
call fcn.180023790
mov dword [rbp - 0x40], 1
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x18012f437
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov r8d, 1
call fcn.180033660
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r15
test rdi, rdi
je 0x18012f48d
mov rax, qword [rbp - 8]
sub rax, rdi
cmp rax, 0x1000
jb 0x18012f484
test dil, 0x1f
je 0x18012f457
call fcn.1801a8e8c
int3
mov rax, qword [rdi - 8]
cmp rax, rdi
jb 0x18012f466
call fcn.1801a8e8c
int3
sub rdi, rax
cmp rdi, 8
jae 0x18012f475
call fcn.1801a8e8c
int3
cmp rdi, 0x27
jbe 0x18012f481
call fcn.1801a8e8c
int3
mov rdi, rax
mov rcx, rdi
call fcn.1801860f8
nop
jmp 0x18012f5b8
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 0x18012f4f7
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 0x18012f4d0
mov r9, qword [rbp - 0x30]
test r8, r8
je 0x18012f514
sub rbx, rdx
nop
movzx eax, byte [rdx + rbx]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne 0x18012f500
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.180023580
mov dword [rbp - 0x40], 1
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x18012f562
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov r8d, 1
call fcn.180033660
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r15
test rdi, rdi
je 0x18012f5b8
mov rax, qword [rbp - 8]
sub rax, rdi
cmp rax, 0x1000
jb 0x18012f5af
test dil, 0x1f
je 0x18012f582
call fcn.1801a8e8c
int3
mov rax, qword [rdi - 8]
cmp rax, rdi
jb 0x18012f591
call fcn.1801a8e8c
int3
sub rdi, rax
cmp rdi, 8
jae 0x18012f5a0
call fcn.1801a8e8c
int3
cmp rdi, 0x27
jbe 0x18012f5ac
call fcn.1801a8e8c
int3
mov rdi, rax
mov rcx, rdi
call fcn.1801860f8
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