Function at 0x180066970
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 - 0x58]
sub rsp, 0x158
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 0x180066af1
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x48], rax
add rsi, rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
imul rdi, rsi, 0x78
mov rax, qword [rdi + r14 + 0x78]
mov qword [rsp + 0x60], rax
lea rbx, [r14 + 0x80]
add rbx, rdi
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.18004f930
nop
lea rdx, [rbx + 0x20]
lea rcx, [rbp - 0x78]
call fcn.18004f930
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rbp - 0x48], xmm1
movups xmm1, xmmword [rbx + 0x60]
movups xmmword [rbp - 0x38], xmm1
mov rax, qword [rdi + r14 + 0xf0]
mov qword [rbp - 0x28], rax
lea rbx, [r14 + 0xf8]
add rbx, rdi
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.18004f930
nop
lea rdx, [rbx + 0x20]
lea rcx, [rbp]
call fcn.18004f930
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rbp + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rbp + 0x30], xmm1
movups xmm1, xmmword [rbx + 0x60]
movups xmmword [rbp + 0x40], xmm1
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x28]
call fcn.180064500
movzx eax, al
xor rax, 1
inc rax
add rsi, rax
imul rdx, rsi, 0x78
imul rcx, r12, 0x78
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.180054630
lea rdx, [rbx + 0x28]
lea rcx, [rdi + 0x28]
call fcn.180054630
movups xmm0, xmmword [rbx + 0x48]
movups xmmword [rdi + 0x48], xmm0
mov eax, dword [rbx + 0x58]
mov dword [rdi + 0x58], eax
movsd xmm0, qword [rbx + 0x5c]
movsd qword [rdi + 0x5c], xmm0
mov eax, dword [rbx + 0x64]
mov dword [rdi + 0x64], eax
mov eax, dword [rbx + 0x68]
mov dword [rdi + 0x68], eax
mov eax, dword [rbx + 0x6c]
mov dword [rdi + 0x6c], eax
mov eax, dword [rbx + 0x70]
mov dword [rdi + 0x70], eax
mov eax, dword [rbx + 0x74]
mov dword [rdi + 0x74], eax
mov r12, rsi
cmp rsi, r15
jl 0x1800669c2
mov rdx, rsi
cmp rsi, r15
jne 0x180066b6c
test r13b, 1
jne 0x180066b6c
imul rdx, r13, 0x78
imul rcx, rsi, 0x78
mov rax, qword [rdx + r14 - 0x78]
mov qword [rcx + r14], rax
lea rbx, [rdx + r14]
lea rdi, [rcx + r14]
lea rdx, [rbx - 0x70]
lea rcx, [rdi + 8]
call fcn.180054630
lea rdx, [rbx - 0x50]
lea rcx, [rdi + 0x28]
call fcn.180054630
movups xmm0, xmmword [rbx - 0x30]
movups xmmword [rdi + 0x48], xmm0
mov eax, dword [rbx - 0x20]
mov dword [rdi + 0x58], eax
movsd xmm0, qword [rbx - 0x1c]
movsd qword [rdi + 0x5c], xmm0
mov eax, dword [rbx - 0x14]
mov dword [rdi + 0x64], eax
mov eax, dword [rbx - 0x10]
mov dword [rdi + 0x68], eax
mov eax, dword [rbx - 0xc]
mov dword [rdi + 0x6c], eax
mov eax, dword [rbx - 8]
mov dword [rdi + 0x70], eax
mov eax, dword [rbx - 4]
mov dword [rdi + 0x74], eax
lea rdx, [r13 - 1]
movzx eax, byte [rbp + 0xc0]
mov byte [rbp + 0xc0], al
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov rcx, r14
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
jmp 0x180066f80
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov r12, r9
mov r13, r8
mov rbx, rdx
mov r14, rcx
lea rsi, [rdx - 1]
sar rsi, 1
cmp r8, rdx
jge 0x1800670f4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdi, [r9 + 0x28]
lea rax, [rbp - 0x40]
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.18004f930
nop
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.18004f930
movups xmm0, xmmword [r12 + 0x48]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [r12 + 0x58]
movups xmmword [rbp - 0x68], xmm1
movups xmm1, xmmword [r12 + 0x68]
movups xmmword [rbp - 0x58], xmm1
imul rcx, rsi, 0x78
mov qword [rsp + 0x20], rcx
mov rax, qword [rcx + r14]
mov qword [rbp - 0x48], rax
lea rdi, [rcx + r14]
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x40]
call fcn.18004f930
nop
lea rdx, [rdi + 0x28]
lea rcx, [rbp - 0x20]
call fcn.18004f930
movups xmm0, xmmword [rdi + 0x48]
movups xmmword [rbp], xmm0
movups xmm0, xmmword [rdi + 0x58]
movups xmmword [rbp + 0x10], xmm0
movups xmm0, xmmword [rdi + 0x68]
movups xmmword [rbp + 0x20], xmm0
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x48]
call fcn.180064500
test al, al
je 0x1800670f4
imul rcx, rbx, 0x78
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.180054630
lea rcx, [rbx + 0x28]
lea rdx, [rdi + 0x28]
call fcn.180054630
movups xmm0, xmmword [rdi + 0x48]
movups xmmword [rbx + 0x48], xmm0
mov eax, dword [rdi + 0x58]
mov dword [rbx + 0x58], eax
movsd xmm0, qword [rdi + 0x5c]
movsd qword [rbx + 0x5c], xmm0
mov eax, dword [rdi + 0x64]
mov dword [rbx + 0x64], eax
mov eax, dword [rdi + 0x68]
mov dword [rbx + 0x68], eax
mov eax, dword [rdi + 0x6c]
mov dword [rbx + 0x6c], eax
mov eax, dword [rdi + 0x70]
mov dword [rbx + 0x70], eax
mov eax, dword [rdi + 0x74]
mov dword [rbx + 0x74], eax
mov rbx, rsi
dec rsi
sar rsi, 1
cmp r13, rbx
lea rdi, [r12 + 0x28]
jl 0x180066fd0
imul rcx, rbx, 0x78
mov rax, qword [r12]
mov qword [rcx + r14], rax
lea rdi, [rcx + r14]
lea rdx, [r12 + 8]
lea rcx, [rdi + 8]
call fcn.180054630
lea rdx, [r12 + 0x28]
lea rcx, [rdi + 0x28]
call fcn.180054630
movups xmm0, xmmword [r12 + 0x48]
movups xmmword [rdi + 0x48], xmm0
mov eax, dword [r12 + 0x58]
mov dword [rdi + 0x58], eax
movsd xmm0, qword [r12 + 0x5c]
movsd qword [rdi + 0x5c], xmm0
mov eax, dword [r12 + 0x64]
mov dword [rdi + 0x64], eax
mov eax, dword [r12 + 0x68]
mov dword [rdi + 0x68], eax
mov eax, dword [r12 + 0x6c]
mov dword [rdi + 0x6c], eax
mov eax, dword [r12 + 0x70]
mov dword [rdi + 0x70], eax
mov eax, dword [r12 + 0x74]
mov dword [rdi + 0x74], eax
mov rbx, qword [rsp + 0x180]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret