Function at 0x13dcc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
cmp dword [0x0001a5a8], ebx
jne 0x13dfa
call fcn.00013ad4
mov dword [0x0001a5a8], 1
lea r10, [rdi + 0x10]
mov dword [rdi], 0xa
lea r8, [rsi + 2]
mov qword [rdi + 8], r10
mov r9, r10
movzx eax, byte [r8]
movzx edx, byte [r8 + 1]
add r8, 4
shl edx, 8
or edx, eax
movzx eax, byte [r8 - 5]
shl edx, 8
or edx, eax
mov eax, ebx
inc ebx
shl eax, 2
shl edx, 8
movsxd rcx, eax
movzx eax, byte [rcx + rsi]
or edx, eax
mov dword [r9], edx
add r9, 4
cmp ebx, 4
jl 0x13e0f
cmp dword [rdi], 0xa
je 0x13fef
cmp dword [rdi], 0xc
je 0x13f4d
cmp dword [rdi], 0xe
jne 0x14074
lea rbx, [0x00018308]
lea r11, [0x00018330]
movzx eax, byte [r10 + 0x1c]
movzx edx, byte [rax + r11]
movzx eax, byte [r10 + 0x1f]
movzx ecx, byte [rax + r11]
movzx eax, byte [r10 + 0x1e]
shl edx, 8
xor edx, ecx
movzx ecx, byte [rax + r11]
movzx eax, byte [r10 + 0x1d]
shl edx, 8
xor edx, ecx
movzx ecx, byte [rax + r11]
mov eax, dword [r10 + 4]
shl edx, 8
xor edx, ecx
mov ecx, dword [r10 + 8]
xor edx, dword [r10]
add r10, 0x20
xor edx, dword [rbx]
add rbx, 4
xor eax, edx
mov dword [r10], edx
mov edx, dword [r10 - 0x14]
xor ecx, eax
mov dword [r10 + 4], eax
xor edx, ecx
mov dword [r10 + 8], ecx
mov dword [r10 + 0xc], edx
movzx eax, byte [r10 + 0xf]
movzx r8d, byte [rax + r11]
movzx eax, byte [r10 + 0xe]
movzx ecx, byte [rax + r11]
movzx eax, byte [r10 + 0xd]
shl r8d, 8
xor r8d, ecx
movzx ecx, byte [rax + r11]
movzx eax, dl
shl r8d, 8
xor r8d, ecx
movzx ecx, byte [rax + r11]
mov eax, dword [r10 - 0xc]
shl r8d, 8
xor r8d, ecx
mov ecx, dword [r10 - 8]
xor r8d, dword [r10 - 0x10]
xor eax, r8d
mov dword [r10 + 0x10], r8d
xor ecx, eax
mov dword [r10 + 0x14], eax
lea rax, [0x00018324]
mov dword [r10 + 0x18], ecx
xor ecx, dword [r10 - 4]
cmp rbx, rax
mov dword [r10 + 0x1c], ecx
jl 0x13e73
jmp 0x14074
lea rbx, [0x00018308]
lea r11, [0x00018330]
movzx eax, byte [r10 + 0x14]
movzx r8d, byte [rax + r11]
movzx eax, byte [r10 + 0x17]
movzx ecx, byte [rax + r11]
movzx eax, byte [r10 + 0x16]
shl r8d, 8
xor r8d, ecx
movzx ecx, byte [rax + r11]
movzx eax, byte [r10 + 0x15]
shl r8d, 8
xor r8d, ecx
movzx ecx, byte [rax + r11]
mov eax, dword [r10 + 4]
shl r8d, 8
xor r8d, ecx
mov ecx, dword [r10 + 8]
xor r8d, dword [rbx]
add rbx, 4
xor r8d, dword [r10]
add r10, 0x18
xor eax, r8d
mov dword [r10], r8d
xor ecx, eax
mov dword [r10 + 4], eax
mov eax, dword [r10 - 0xc]
xor eax, ecx
mov dword [r10 + 8], ecx
mov ecx, dword [r10 - 8]
xor ecx, eax
mov dword [r10 + 0xc], eax
lea rax, [0x00018328]
mov dword [r10 + 0x10], ecx
xor ecx, dword [r10 - 4]
cmp rbx, rax
mov dword [r10 + 0x14], ecx
jl 0x13f5b
jmp 0x14074
lea rbx, [0x00018308]
lea r11, [0x00018330]
movzx eax, byte [r10 + 0xc]
movzx r8d, byte [rax + r11]
movzx eax, byte [r10 + 0xf]
movzx ecx, byte [rax + r11]
movzx eax, byte [r10 + 0xe]
shl r8d, 8
xor r8d, ecx
movzx ecx, byte [rax + r11]
movzx eax, byte [r10 + 0xd]
shl r8d, 8
xor r8d, ecx
movzx ecx, byte [rax + r11]
mov eax, dword [r10 + 4]
shl r8d, 8
xor r8d, ecx
mov ecx, dword [r10 + 8]
xor r8d, dword [r10]
add r10, 0x10
xor r8d, dword [rbx]
add rbx, 4
xor eax, r8d
mov dword [r10], r8d
xor ecx, eax
mov dword [r10 + 4], eax
lea rax, [0x00018330]
mov dword [r10 + 8], ecx
xor ecx, dword [r10 - 4]
cmp rbx, rax
mov dword [r10 + 0xc], ecx
jl 0x13ffd
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret