Function at 0x18012cff0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push r13
sub rsp, 0x40
mov r13, r8
mov rbp, rdx
mov rdi, rcx
cmp r8, qword [rcx + 8]
ja 0x18012d29b
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rsi, qword [rcx + 0x70]
test dl, 3
jne 0x18012d1d1
mov qword [rsp + 0x70], r12
xor edx, edx
mov qword [rsp + 0x30], r15
call fcn.18012dd90
mov edx, 1
mov rcx, rdi
mov r12, rax
call fcn.18012dd90
mov r15, rax
cmp r13, 4
jb 0x18012d1c7
mov qword [rsp + 0x38], r14
mov r14, r13
shr r14, 2
imul rcx, r14, 0xfffffffffffffffc
add r13, rcx
nop dword [rax]
nop dword [rax + rax]
add rbp, 4
xor ebx, ebx
nop word [rax + rax]
mov eax, ebp
mov rcx, rbx
shr eax, cl
test al, 1
jne 0x18012d094
inc rbx
cmp rbx, 0x20
jne 0x18012d080
mov r9, qword [rdi]
mov rcx, rsi
mov r8, qword [r12]
mov rdx, qword [rdi + 0x40]
call fcn.180099de0
mov r9, qword [rdi]
mov r8, qword [r15]
add rsi, r9
mov rdx, rsi
mov rcx, rsi
sub rdx, r9
call fcn.180099de0
mov r9, qword [rdi]
mov r8, qword [r15]
add rsi, r9
mov rdx, qword [rdi + 0x40]
cmp r9, 0x10
jb 0x18012d100
mov r10, r9
shr r10, 4
imul rax, r10, 0xfffffffffffffff0
add r9, rax
nop
mov rcx, qword [r8 + 8]
xor rcx, qword [rdx + 8]
mov rax, qword [r8]
add r8, 0x10
xor qword [rdx], rax
mov qword [rdx + 8], rcx
add rdx, 0x10
sub r10, 1
jne 0x18012d0e0
test r9, r9
je 0x18012d121
sub r8, rdx
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x18012d110
mov r8, qword [rdi]
test r8, r8
je 0x18012d135
mov rdx, qword [rdi + 0x40]
mov rcx, rsi
call fcn.1801a4560
add rsi, qword [rdi]
mov rdx, rbx
mov rcx, rdi
call fcn.18012dd90
mov r9, qword [rdi]
mov rdx, qword [rdi + 0x40]
mov r8, qword [rax]
cmp r9, 0x10
jb 0x18012d181
mov r10, r9
shr r10, 4
imul rax, r10, 0xfffffffffffffff0
add r9, rax
mov rcx, qword [r8 + 8]
xor rcx, qword [rdx + 8]
mov rax, qword [r8]
add r8, 0x10
xor qword [rdx], rax
mov qword [rdx + 8], rcx
add rdx, 0x10
sub r10, 1
jne 0x18012d161
test r9, r9
je 0x18012d1a1
sub r8, rdx
nop dword [rax]
movzx eax, byte [r8 + rdx]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x18012d190
mov r8, qword [rdi]
test r8, r8
je 0x18012d1b5
mov rdx, qword [rdi + 0x40]
mov rcx, rsi
call fcn.1801a4560
add rsi, qword [rdi]
sub r14, 1
jne 0x18012d070
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
xor ebx, ebx
test r13, r13
je 0x18012d284
nop dword [rax]
xor ecx, ecx
lea edx, [rbx + rbp]
lea eax, [rdx + 1]
shr eax, cl
test al, 1
jne 0x18012d1f7
inc rcx
cmp rcx, 0x20
jne 0x18012d1e5
mov rdx, rcx
mov rcx, rdi
call fcn.18012dd90
mov r9, qword [rdi]
mov r8, qword [rax]
mov rax, qword [rdi + 0x40]
cmp r9, 0x10
jb 0x18012d240
mov r10, r9
shr r10, 4
imul rcx, r10, 0xfffffffffffffff0
add r9, rcx
mov rdx, qword [r8 + 8]
xor rdx, qword [rax + 8]
mov rcx, qword [r8]
add r8, 0x10
xor qword [rax], rcx
mov qword [rax + 8], rdx
add rax, 0x10
sub r10, 1
jne 0x18012d220
test r9, r9
je 0x18012d261
sub r8, rax
nop dword [rax + rax]
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub r9, 1
jne 0x18012d250
mov r8, qword [rdi]
test r8, r8
je 0x18012d275
mov rdx, qword [rdi + 0x40]
mov rcx, rsi
call fcn.1801a4560
add rsi, qword [rdi]
inc rbx
cmp rbx, r13
jne 0x18012d1e0
mov rax, qword [rdi + 0x70]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r13
pop rdi
pop rbp
ret
lea r9, str.gold
mov dword [rsp + 0x20], 0x37
lea r8, str.compute_offsets
lea rdx, str.OCB_offsets
lea rcx, str.blocks___m_max_blocks
call fcn.180043540
int3