Function at 0x18012ac20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov rsi, r9
mov rbx, rdx
mov r13, rcx
mov dword [rbp - 0x58], 0
mov rax, qword [r8]
mov rcx, r8
call qword [rax + 0x28]
mov r15, rax
mov rdx, rax
mov rcx, r13
call fcn.180032ca0
mov dword [rbp - 0x58], 1
mov rdx, r15
lea rcx, [rbp - 0x40]
call fcn.180032ca0
nop
mov rdx, r15
lea rcx, [rbp - 0x28]
call fcn.180032ca0
nop
xor edx, edx
mov rax, qword [rbp + 0x68]
div r15
mov rdi, rdx
mov qword [rbp - 0x50], rdx
mov r14, rax
xor r12d, r12d
test rax, rax
je 0x18012aeb2
mov rdi, rsi
mov qword [rbp + 0x68], rsi
nop dword [rax]
xor ecx, ecx
lea eax, [r12 + 1]
shr eax, cl
test al, 1
jne 0x18012acd6
inc rcx
cmp rcx, 0x20
jne 0x18012acc2
mov rdx, rcx
mov rcx, rbx
call fcn.18012aa00
mov rbx, rax
mov r8, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x40]
sub r8, rcx
mov rdx, qword [rax + 8]
sub rdx, qword [rax]
cmp r8, rdx
jae 0x18012ad08
lea rcx, [rbp - 0x40]
call fcn.180033000
mov rcx, qword [rbp - 0x40]
mov r8, qword [rbx]
mov r9, qword [rbx + 8]
sub r9, r8
cmp r9, 0x10
jb 0x18012ad50
mov r11, r8
sub r11, rcx
mov r10, r9
shr r10, 4
imul rax, r10, 0xfffffffffffffff0
add r9, rax
nop dword [rax]
mov rdx, qword [r11 + rcx + 8]
mov rax, qword [rcx]
xor rax, qword [r8]
xor qword [rcx + 8], rdx
mov qword [rcx], rax
add rcx, 0x10
add r8, 0x10
sub r10, 1
jne 0x18012ad30
test r9, r9
je 0x18012ad71
sub r8, rcx
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x18012ad60
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x28]
call fcn.1800379b0
mov r9, r15
mov r8, rdi
mov rsi, qword [rbp - 0x28]
mov rdx, rsi
cmp r15, 0x10
jb 0x18012adc3
mov r10, r15
shr r10, 4
imul r9, r10, 0xfffffffffffffff0
add r9, r15
nop
mov rcx, qword [rdx]
xor rcx, qword [r8]
mov rax, qword [rdx + 8]
xor rax, qword [r8 + 8]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
add rdx, 0x10
add r8, 0x10
sub r10, 1
jne 0x18012ada0
test r9, r9
je 0x18012ade1
sub r8, rdx
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x18012add0
mov rdi, qword [rbp - 0x20]
sub rdi, rsi
mov rcx, qword [rbp + 0x58]
mov rbx, qword [rcx]
call qword [rbx + 0x28]
mov rcx, rax
xor edx, edx
mov rax, rdi
div rcx
mov r9, rax
mov r8, rsi
mov rdx, rsi
mov rcx, qword [rbp + 0x58]
call qword [rbx + 0x40]
mov rax, qword [r13 + 8]
sub rax, qword [r13]
cmp rax, rdi
jae 0x18012ae25
mov rdx, rdi
mov rcx, r13
call fcn.180033000
mov rdx, qword [r13]
mov r8, rsi
cmp rdi, 0x10
jb 0x18012ae74
mov r10, rsi
sub r10, rdx
mov r9, rdi
shr r9, 4
imul rax, r9, 0xfffffffffffffff0
add rdi, rax
nop word [rax + rax]
mov rcx, qword [rdx]
xor rcx, qword [r8]
mov rax, qword [rdx + 8]
xor rax, qword [rdx + r10 + 8]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
add rdx, 0x10
add r8, 0x10
sub r9, 1
jne 0x18012ae50
test rdi, rdi
je 0x18012ae91
sub r8, rdx
nop dword [rax]
movzx eax, byte [r8 + rdx]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub rdi, 1
jne 0x18012ae80
inc r12
mov rdi, qword [rbp + 0x68]
add rdi, r15
mov qword [rbp + 0x68], rdi
cmp r12, r14
mov rbx, qword [rbp + 0x50]
jne 0x18012acc0
mov rdi, qword [rbp - 0x50]
jmp 0x18012aeb6
mov rsi, qword [rbp - 0x28]
test rdi, rdi
je 0x18012b081
mov rax, qword [rbp - 0x38]
mov r8, qword [rbp - 0x40]
sub rax, r8
mov rdx, qword [rbx + 0x30]
sub rdx, qword [rbx + 0x28]
cmp rax, rdx
jae 0x18012aee4
lea rcx, [rbp - 0x40]
call fcn.180033000
mov r8, qword [rbp - 0x40]
mov rdx, qword [rbx + 0x28]
mov r9, qword [rbx + 0x30]
sub r9, rdx
cmp r9, 0x10
jb 0x18012af2d
mov r11, rdx
sub r11, r8
mov r10, r9
shr r10, 4
imul rax, r10, 0xfffffffffffffff0
add r9, rax
nop dword [rax]
mov rax, qword [rdx]
mov rcx, qword [r8 + r11 + 8]
xor qword [r8], rax
xor qword [r8 + 8], rcx
add r8, 0x10
add rdx, 0x10
sub r10, 1
jne 0x18012af10
test r9, r9
je 0x18012af52
sub rdx, r8
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
xor byte [r8], al
lea r8, [r8 + 1]
sub r9, 1
jne 0x18012af40
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x28]
call fcn.1800379b0
mov r8, rdi
imul r14, r15
add r14, qword [rbp + 0x60]
mov rsi, qword [rbp - 0x28]
mov rdx, rsi
cmp rdi, 0x10
jb 0x18012afb3
mov r9, rdi
shr r9, 4
imul r8, r9, 0xfffffffffffffff0
add r8, rdi
nop word [rax + rax]
mov rcx, qword [rdx]
xor rcx, qword [r14]
mov rax, qword [rdx + 8]
xor rax, qword [r14 + 8]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
add rdx, 0x10
add r14, 0x10
sub r9, 1
jne 0x18012af90
test r8, r8
je 0x18012afd1
sub r14, rdx
nop dword [rax + rax]
movzx eax, byte [r14 + rdx]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne 0x18012afc0
xor byte [rsi + rdi], 0x80
mov rdi, qword [rbp - 0x20]
sub rdi, rsi
mov r14, qword [rbp + 0x58]
mov rbx, qword [r14]
mov rcx, r14
call qword [rbx + 0x28]
mov rcx, rax
xor edx, edx
mov rax, rdi
div rcx
mov r9, rax
mov r8, rsi
mov rdx, rsi
mov rcx, r14
call qword [rbx + 0x40]
mov rax, qword [r13 + 8]
sub rax, qword [r13]
cmp rax, rdi
jae 0x18012b01b
mov rdx, rdi
mov rcx, r13
call fcn.180033000
mov rdx, qword [r13]
mov r8, rsi
cmp rdi, 0x10
jb 0x18012b05d
mov r10, rsi
sub r10, rdx
mov r9, rdi
shr r9, 4
imul rax, r9, 0xfffffffffffffff0
add rdi, rax
nop dword [rax]
mov rax, qword [r8]
mov rcx, qword [rdx + r10 + 8]
xor qword [rdx], rax
xor qword [rdx + 8], rcx
add rdx, 0x10
add r8, 0x10
sub r9, 1
jne 0x18012b040
test rdi, rdi
je 0x18012b081
sub r8, rdx
nop word [rax + rax]
movzx eax, byte [rdx + r8]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub rdi, 1
jne 0x18012b070
test rsi, rsi
je 0x18012b09c
mov rdx, qword [rbp - 0x18]
sub rdx, rsi
mov r8d, 1
mov rcx, rsi
call fcn.1800302d0
nop
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x18012b0b8
mov rdx, qword [rbp - 0x30]
sub rdx, rcx
mov r8d, 1
call fcn.1800302d0
nop
mov rax, r13
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret