Function at 0x18012b260
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov qword [rsp + 0x30], r9
mov r13, r8
mov r12, rdx
mov r14, rcx
mov qword [rsp + 0x38], rdx
mov rsi, rdx
lea r15, [r8 - 1]
sar r15, 1
cmp rdx, r15
jge 0x18012b3f9
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
add rsi, rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
imul rdi, rsi, 0x68
mov rax, qword [rdi + r14 + 0x68]
mov qword [rsp + 0x60], rax
lea rbx, [rdi + r14]
lea rdx, [rbx + 0x70]
lea rcx, [rsp + 0x68]
call fcn.180007b90
nop
lea rdx, [rbx + 0x90]
lea rcx, [rbp - 0x78]
call fcn.180007b90
movups xmm0, xmmword [rbx + 0xb0]
movups xmmword [rbp - 0x58], xmm0
movss xmm0, dword [rbx + 0xc0]
movss dword [rbp - 0x48], xmm0
movss xmm1, dword [rbx + 0xc4]
movss dword [rbp - 0x44], xmm1
movss xmm0, dword [rbx + 0xc8]
movss dword [rbp - 0x40], xmm0
mov rax, qword [rdi + r14 + 0xd0]
mov qword [rbp - 0x38], rax
lea rbx, [r14 + 0xd8]
add rbx, rdi
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.180007b90
nop
lea rdx, [rbx + 0x20]
lea rcx, [rbp - 0x10]
call fcn.180007b90
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rbp + 0x10], xmm0
movss xmm0, dword [rbx + 0x50]
movss dword [rbp + 0x20], xmm0
movss xmm1, dword [rbx + 0x54]
movss dword [rbp + 0x24], xmm1
movss xmm0, dword [rbx + 0x58]
movss dword [rbp + 0x28], xmm0
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x38]
call fcn.180128ed0
movzx eax, al
xor rax, 1
inc rax
add rsi, rax
imul rdx, rsi, 0x68
imul rcx, r12, 0x68
mov rax, qword [rdx + r14]
mov qword [rcx + r14], rax
lea rbx, [rdx + r14]
lea rdi, [rcx + r14]
lea rdx, [rbx + 8]
lea rcx, [rdi + 8]
call fcn.180015e60
lea rdx, [rbx + 0x28]
lea rcx, [rdi + 0x28]
call fcn.180015e60
movsd xmm0, qword [rbx + 0x48]
movsd qword [rdi + 0x48], xmm0
mov eax, dword [rbx + 0x50]
mov dword [rdi + 0x50], eax
mov eax, dword [rbx + 0x54]
mov dword [rdi + 0x54], eax
mov eax, dword [rbx + 0x58]
mov dword [rdi + 0x58], eax
mov eax, dword [rbx + 0x5c]
mov dword [rdi + 0x5c], eax
mov eax, dword [rbx + 0x60]
mov dword [rdi + 0x60], eax
mov r12, rsi
cmp rsi, r15
jl 0x18012b2b2
mov rdx, rsi
cmp rsi, r15
jne 0x18012b466
test r13b, 1
jne 0x18012b466
imul rdx, r13, 0x68
imul rcx, rsi, 0x68
mov rax, qword [rdx + r14 - 0x68]
mov qword [rcx + r14], rax
lea rbx, [rdx + r14]
lea rdi, [rcx + r14]
lea rdx, [rbx - 0x60]
lea rcx, [rdi + 8]
call fcn.180015e60
lea rdx, [rbx - 0x40]
lea rcx, [rdi + 0x28]
call fcn.180015e60
movsd xmm0, qword [rbx - 0x20]
movsd qword [rdi + 0x48], xmm0
mov eax, dword [rbx - 0x18]
mov dword [rdi + 0x50], eax
mov eax, dword [rbx - 0x14]
mov dword [rdi + 0x54], eax
mov eax, dword [rbx - 0x10]
mov dword [rdi + 0x58], eax
mov eax, dword [rbx - 0xc]
mov dword [rdi + 0x5c], eax
mov eax, dword [rbx - 8]
mov dword [rdi + 0x60], eax
lea rdx, [r13 - 1]
movzx eax, byte [rbp + 0xa0]
mov byte [rbp + 0xa0], al
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov rcx, r14
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
jmp 0x18012b620
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov r12, r9
mov r13, r8
mov rbx, rdx
mov r14, rcx
lea rsi, [rdx - 1]
sar rsi, 1
cmp r8, rdx
jge 0x18012b7a4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdi, [r9 + 0x28]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x30], rax
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov rax, qword [r12]
mov qword [rsp + 0x40], rax
lea rdx, [r12 + 8]
lea rcx, [rsp + 0x48]
call fcn.180007b90
nop
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.180007b90
movups xmm0, xmmword [r12 + 0x48]
movups xmmword [rbp - 0x78], xmm0
movss xmm0, dword [r12 + 0x58]
movss dword [rbp - 0x68], xmm0
movss xmm1, dword [r12 + 0x5c]
movss dword [rbp - 0x64], xmm1
movss xmm0, dword [r12 + 0x60]
movss dword [rbp - 0x60], xmm0
imul rcx, rsi, 0x68
mov qword [rsp + 0x20], rcx
mov rax, qword [rcx + r14]
mov qword [rbp - 0x58], rax
lea rdi, [rcx + r14]
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x50]
call fcn.180007b90
nop
lea rdx, [rdi + 0x28]
lea rcx, [rbp - 0x30]
call fcn.180007b90
movups xmm0, xmmword [rdi + 0x48]
movups xmmword [rbp - 0x10], xmm0
movss xmm0, dword [rdi + 0x58]
movss dword [rbp], xmm0
movss xmm0, dword [rdi + 0x5c]
movss dword [rbp + 4], xmm0
movss xmm0, dword [rdi + 0x60]
movss dword [rbp + 8], xmm0
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x58]
call fcn.180128ed0
test al, al
je 0x18012b7a4
imul rcx, rbx, 0x68
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + r14]
mov qword [rcx + r14], rax
lea rbx, [rcx + r14]
lea rdx, [rdi + 8]
lea rcx, [rbx + 8]
call fcn.180015e60
lea rcx, [rbx + 0x28]
lea rdx, [rdi + 0x28]
call fcn.180015e60
movsd xmm0, qword [rdi + 0x48]
movsd qword [rbx + 0x48], xmm0
mov eax, dword [rdi + 0x50]
mov dword [rbx + 0x50], eax
mov eax, dword [rdi + 0x54]
mov dword [rbx + 0x54], eax
mov eax, dword [rdi + 0x58]
mov dword [rbx + 0x58], eax
mov eax, dword [rdi + 0x5c]
mov dword [rbx + 0x5c], eax
mov eax, dword [rdi + 0x60]
mov dword [rbx + 0x60], eax
mov rbx, rsi
dec rsi
sar rsi, 1
cmp r13, rbx
lea rdi, [r12 + 0x28]
jl 0x18012b670
imul rcx, rbx, 0x68
mov rax, qword [r12]
mov qword [rcx + r14], rax
lea rdi, [rcx + r14]
lea rdx, [r12 + 8]
lea rcx, [rdi + 8]
call fcn.180015e60
lea rdx, [r12 + 0x28]
lea rcx, [rdi + 0x28]
call fcn.180015e60
movsd xmm0, qword [r12 + 0x48]
movsd qword [rdi + 0x48], xmm0
mov eax, dword [r12 + 0x50]
mov dword [rdi + 0x50], eax
mov eax, dword [r12 + 0x54]
mov dword [rdi + 0x54], eax
mov eax, dword [r12 + 0x58]
mov dword [rdi + 0x58], eax
mov eax, dword [r12 + 0x5c]
mov dword [rdi + 0x5c], eax
mov eax, dword [r12 + 0x60]
mov dword [rdi + 0x60], eax
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret