Function at 0x18005ea90
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
mov rax, qword [rcx + 0x20]
mov r13, r8
mov r15, rdx
mov rbp, rcx
cmp qword [rcx + 0x18], rax
jne 0x18005eab8
add rcx, 8
call fcn.180036630
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov r8, qword [rbp + 0x18]
mov r9, r15
mov r12, rax
sub r12, qword [rbp + 0x30]
cmp r13, r12
cmovb r12, r13
add r8, qword [rbp + 0x30]
mov r10, r12
cmp r12, 0x10
jb 0x18005eb20
mov rdx, r12
shr rdx, 4
imul r10, rdx, 0xfffffffffffffff0
add r10, r12
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [r9 + 8]
xor rcx, qword [r8 + 8]
mov rax, qword [r9]
add r9, 0x10
xor qword [r8], rax
mov qword [r8 + 8], rcx
add r8, 0x10
sub rdx, 1
jne 0x18005eb00
test r10, r10
je 0x18005eb42
sub r9, r8
nop dword [rax + rax]
movzx eax, byte [r9 + r8]
xor byte [r8], al
lea r8, [r8 + 1]
sub r10, 1
jne 0x18005eb30
add qword [rbp + 0x30], r12
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x28]
cmp qword [rbp + 0x30], rax
jb 0x18005ed05
mov qword [rsp + 0x50], rbx
mov rbx, qword [rbp + 0x20]
mov qword [rsp + 0x58], rsi
mov rsi, qword [rbp + 0x18]
mov qword [rsp + 0x60], rdi
sub rbx, rsi
mov qword [rsp + 0x20], r14
mov r14, qword [rbp + 0x10]
mov rcx, r14
mov rdi, qword [r14]
call qword [rdi + 0x28]
xor edx, edx
mov rcx, r14
mov r8, rax
mov rax, rbx
div r8
mov r8, rsi
mov rdx, rsi
mov r9, rax
call qword [rdi + 0x40]
mov rcx, qword [rbp + 0x10]
add r15, r12
sub r13, r12
mov rax, qword [rcx]
call qword [rax + 0x28]
cmp r13, rax
jb 0x18005ec90
nop dword [rax]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rbp + 0x18]
mov r8, r15
mov r9, rax
cmp rax, 0x10
jb 0x18005ec10
mov r10, rax
shr r10, 4
imul rdx, r10, 0xfffffffffffffff0
add r9, rdx
nop dword [rax + rax]
mov rdx, qword [r8 + 8]
xor rdx, qword [rcx + 8]
mov rax, qword [r8]
add r8, 0x10
xor qword [rcx], rax
mov qword [rcx + 8], rdx
add rcx, 0x10
sub r10, 1
jne 0x18005ebf0
test r9, r9
je 0x18005ec31
sub r8, rcx
nop dword [rax + rax]
movzx eax, byte [rcx + r8]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x18005ec20
mov r14, qword [rbp + 0x10]
mov rsi, qword [rbp + 0x18]
mov rcx, r14
mov rbx, qword [rbp + 0x20]
sub rbx, rsi
mov rdi, qword [r14]
call qword [rdi + 0x28]
xor edx, edx
mov rcx, r14
mov r8, rax
mov rax, rbx
div r8
mov r8, rsi
mov rdx, rsi
mov r9, rax
call qword [rdi + 0x40]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rbp + 0x10]
add r15, rax
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rbp + 0x10]
sub r13, rax
mov rax, qword [rcx]
call qword [rax + 0x28]
cmp r13, rax
jae 0x18005ebc0
mov rdx, qword [rbp + 0x18]
mov r8, r13
mov r14, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
cmp r13, 0x10
jb 0x18005ece0
mov r9, r13
shr r9, 4
imul r8, r9, 0xfffffffffffffff0
add r8, r13
nop
mov rcx, qword [r15 + 8]
xor rcx, qword [rdx + 8]
mov rax, qword [r15]
add r15, 0x10
xor qword [rdx], rax
mov qword [rdx + 8], rcx
add rdx, 0x10
sub r9, 1
jne 0x18005ecc0
test r8, r8
je 0x18005ed01
sub r15, rdx
nop dword [rax + rax]
movzx eax, byte [rdx + r15]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne 0x18005ecf0
mov qword [rbp + 0x30], r13
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret