Function at 0x18012dfb0
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.1800360e0
mov dword [rbp - 0x58], 1
mov rdx, r15
lea rcx, [rbp - 0x40]
call fcn.1800360e0
nop
mov rdx, r15
lea rcx, [rbp - 0x28]
call fcn.1800360e0
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 0x18012e242
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 0x18012e066
inc rcx
cmp rcx, 0x20
jne 0x18012e052
mov rdx, rcx
mov rcx, rbx
call fcn.18012dd90
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 0x18012e098
lea rcx, [rbp - 0x40]
call fcn.180036440
mov rcx, qword [rbp - 0x40]
mov r8, qword [rbx]
mov r9, qword [rbx + 8]
sub r9, r8
cmp r9, 0x10
jb 0x18012e0e0
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 0x18012e0c0
test r9, r9
je 0x18012e101
sub r8, rcx
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x18012e0f0
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x28]
call fcn.18003ac90
mov r9, r15
mov r8, rdi
mov rsi, qword [rbp - 0x28]
mov rdx, rsi
cmp r15, 0x10
jb 0x18012e153
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 0x18012e130
test r9, r9
je 0x18012e171
sub r8, rdx
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x18012e160
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 0x18012e1b5
mov rdx, rdi
mov rcx, r13
call fcn.180036440
mov rdx, qword [r13]
mov r8, rsi
cmp rdi, 0x10
jb 0x18012e204
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 0x18012e1e0
test rdi, rdi
je 0x18012e221
sub r8, rdx
nop dword [rax]
movzx eax, byte [r8 + rdx]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub rdi, 1
jne 0x18012e210
inc r12
mov rdi, qword [rbp + 0x68]
add rdi, r15
mov qword [rbp + 0x68], rdi
cmp r12, r14
mov rbx, qword [rbp + 0x50]
jne 0x18012e050
mov rdi, qword [rbp - 0x50]
jmp 0x18012e246
mov rsi, qword [rbp - 0x28]
test rdi, rdi
je 0x18012e411
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 0x18012e274
lea rcx, [rbp - 0x40]
call fcn.180036440
mov r8, qword [rbp - 0x40]
mov rdx, qword [rbx + 0x28]
mov r9, qword [rbx + 0x30]
sub r9, rdx
cmp r9, 0x10
jb 0x18012e2bd
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 0x18012e2a0
test r9, r9
je 0x18012e2e2
sub rdx, r8
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
xor byte [r8], al
lea r8, [r8 + 1]
sub r9, 1
jne 0x18012e2d0
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x28]
call fcn.18003ac90
mov r8, rdi
imul r14, r15
add r14, qword [rbp + 0x60]
mov rsi, qword [rbp - 0x28]
mov rdx, rsi
cmp rdi, 0x10
jb 0x18012e343
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 0x18012e320
test r8, r8
je 0x18012e361
sub r14, rdx
nop dword [rax + rax]
movzx eax, byte [r14 + rdx]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne 0x18012e350
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 0x18012e3ab
mov rdx, rdi
mov rcx, r13
call fcn.180036440
mov rdx, qword [r13]
mov r8, rsi
cmp rdi, 0x10
jb 0x18012e3ed
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 0x18012e3d0
test rdi, rdi
je 0x18012e411
sub r8, rdx
nop word [rax + rax]
movzx eax, byte [rdx + r8]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub rdi, 1
jne 0x18012e400
test rsi, rsi
je 0x18012e42c
mov rdx, qword [rbp - 0x18]
sub rdx, rsi
mov r8d, 1
mov rcx, rsi
call fcn.180033660
nop
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x18012e448
mov rdx, qword [rbp - 0x30]
sub rdx, rcx
mov r8d, 1
call fcn.180033660
nop
mov rax, r13
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret