Function at 0x180129c60
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 0x180129f0b
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rsi, qword [rcx + 0x70]
test dl, 3
jne 0x180129e41
mov qword [rsp + 0x70], r12
xor edx, edx
mov qword [rsp + 0x30], r15
call fcn.18012aa00
mov edx, 1
mov rcx, rdi
mov r12, rax
call fcn.18012aa00
mov r15, rax
cmp r13, 4
jb 0x180129e37
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 0x180129d04
inc rbx
cmp rbx, 0x20
jne 0x180129cf0
mov r9, qword [rdi]
mov rcx, rsi
mov r8, qword [r12]
mov rdx, qword [rdi + 0x40]
call fcn.180096a50
mov r9, qword [rdi]
mov r8, qword [r15]
add rsi, r9
mov rdx, rsi
mov rcx, rsi
sub rdx, r9
call fcn.180096a50
mov r9, qword [rdi]
mov r8, qword [r15]
add rsi, r9
mov rdx, qword [rdi + 0x40]
cmp r9, 0x10
jb 0x180129d70
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 0x180129d50
test r9, r9
je 0x180129d91
sub r8, rdx
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x180129d80
mov r8, qword [rdi]
test r8, r8
je 0x180129da5
mov rdx, qword [rdi + 0x40]
mov rcx, rsi
call fcn.18017c7f0
add rsi, qword [rdi]
mov rdx, rbx
mov rcx, rdi
call fcn.18012aa00
mov r9, qword [rdi]
mov rdx, qword [rdi + 0x40]
mov r8, qword [rax]
cmp r9, 0x10
jb 0x180129df1
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 0x180129dd1
test r9, r9
je 0x180129e11
sub r8, rdx
nop dword [rax]
movzx eax, byte [r8 + rdx]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x180129e00
mov r8, qword [rdi]
test r8, r8
je 0x180129e25
mov rdx, qword [rdi + 0x40]
mov rcx, rsi
call fcn.18017c7f0
add rsi, qword [rdi]
sub r14, 1
jne 0x180129ce0
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
xor ebx, ebx
test r13, r13
je 0x180129ef4
nop dword [rax]
xor ecx, ecx
lea edx, [rbx + rbp]
lea eax, [rdx + 1]
shr eax, cl
test al, 1
jne 0x180129e67
inc rcx
cmp rcx, 0x20
jne 0x180129e55
mov rdx, rcx
mov rcx, rdi
call fcn.18012aa00
mov r9, qword [rdi]
mov r8, qword [rax]
mov rax, qword [rdi + 0x40]
cmp r9, 0x10
jb 0x180129eb0
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 0x180129e90
test r9, r9
je 0x180129ed1
sub r8, rax
nop dword [rax + rax]
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub r9, 1
jne 0x180129ec0
mov r8, qword [rdi]
test r8, r8
je 0x180129ee5
mov rdx, qword [rdi + 0x40]
mov rcx, rsi
call fcn.18017c7f0
add rsi, qword [rdi]
inc rbx
cmp rbx, r13
jne 0x180129e50
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.1800401f0
int3