Function at 0x10da0
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 [0x00014a08], ebx
jne 0x10dce
call fcn.00010aa8
mov dword [0x00014a08], 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 0x10de3
cmp dword [rdi], 0xa
je 0x10fc3
cmp dword [rdi], 0xc
je 0x10f21
cmp dword [rdi], 0xe
jne 0x11048
lea rbx, [0x00013070]
lea r11, [0x00012770]
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, [0x0001308c]
mov dword [r10 + 0x18], ecx
xor ecx, dword [r10 - 4]
cmp rbx, rax
mov dword [r10 + 0x1c], ecx
jl 0x10e47
jmp 0x11048
lea rbx, [0x00013070]
lea r11, [0x00012770]
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, [0x00013090]
mov dword [r10 + 0x10], ecx
xor ecx, dword [r10 - 4]
cmp rbx, rax
mov dword [r10 + 0x14], ecx
jl 0x10f2f
jmp 0x11048
lea rbx, [0x00013070]
lea r11, [0x00012770]
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, [0x00013098]
mov dword [r10 + 8], ecx
xor ecx, dword [r10 - 4]
cmp rbx, rax
mov dword [r10 + 0xc], ecx
jl 0x10fd1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret