Function at 0x18010a320
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
push rsi
push r13
sub rsp, 0x38
mov rsi, qword [rsp + 0x70]
mov r13, rcx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rbp, rdx
mov qword [rax + 0x18], rdi
mov qword [rax - 0x18], r12
mov qword [rax - 0x20], r14
mov qword [rax - 0x28], r15
mov eax, r9d
movsxd rbx, r8d
test rdx, rdx
je 0x18010a477
test al, 8
jne 0x18010a477
mov r10, qword [rcx + 0x18]
lea eax, [rbx - 1]
mov qword [rsp + 0x70], r10
mov r9d, 0xd
movsxd r8, eax
test eax, eax
js 0x18010a399
movzx edx, byte [r8 + rbp]
lea ecx, [r9*8]
xor edx, ecx
xor r9d, edx
sub r8, 1
jns 0x18010a381
xor edx, edx
mov eax, r9d
div dword [r10 + 0x14]
mov rax, qword [r10 + 0x20]
mov rdi, qword [rax + rdx*8]
test rdi, rdi
je 0x18010a3d4
nop
mov eax, dword [rdi + 0x1c]
inc eax
cmp ebx, eax
jne 0x18010a3cc
mov r8, rbx
lea rcx, [rdi + 0x30]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18010a404
mov rdi, qword [rdi]
test rdi, rdi
jne 0x18010a3b0
xor r14d, r14d
xor r15d, r15d
mov dword [r13 + 0x34], 0
lea r12, [r13 + 0x34]
test r14, r14
je 0x18010a3f2
lea rax, [r14 + 0x10]
mov qword [r14], rax
or dword [rsi + 8], 1
test r14, r14
je 0x18010a65d
jmp 0x18010a53d
mov r12d, dword [rdi + 0x18]
lea r15d, [rbx + 0x31]
sub r12d, r15d
call sym.QoOBJSl.dll_hqlite3_initialize
test eax, eax
je 0x18010a42c
xor r14d, r14d
lea r12, [r13 + 0x34]
xor r15d, r15d
mov dword [r12], 7
jmp 0x18010a3f2
lea eax, [r12 + 0x1a]
movsxd rcx, eax
call fcn.180005840
mov r14, rax
test rax, rax
je 0x18010a41b
movsxd rdx, r15d
lea rcx, [rax + 0x10]
add rdx, rdi
movsxd r8, r12d
call sub.VCRUNTIME140.dll_memcpy
mov ecx, 0x10
mov rdx, rdi
sub ecx, r15d
movsxd r8, ecx
mov rcx, qword [rsp + 0x70]
add r8, r14
call fcn.180104270
lea r15d, [r12 + rax]
jmp 0x18010a3da
mov rcx, qword [rcx + 0x18]
lea r12, [r13 + 0x34]
mov r8d, ebx
lea r9, [rcx + 0x18]
call fcn.180104a90
mov rcx, qword [r13 + 0x18]
mov dword [r12], eax
mov r14, qword [rcx + 0x18]
test r14, r14
je 0x18010a4ec
mov rbx, 0xffffffffffffffff
lea rbp, [r14 + 0x30]
mov rdi, rbx
nop word [rax + rax]
inc rdi
cmp byte [rdi + rbp], 0
jne 0x18010a4b0
xor r8d, r8d
mov rdx, r14
call fcn.180104270
mov r15d, dword [r14 + 0x18]
lea eax, [rdi + 1]
sub r15d, edi
cdqe
add rax, rbp
sub r15d, 0x31
mov qword [rsp + 0x70], rax
test rbp, rbp
je 0x18010a4f8
inc rbx
cmp byte [rbx + rbp], 0
jne 0x18010a4e1
jmp 0x18010a4fa
xor eax, eax
xor ebp, ebp
mov qword [rsp + 0x70], rax
xor r15d, r15d
xor ebx, ebx
test rax, rax
je 0x18010a65d
cmp dword [r12], 0
jne 0x18010a65d
call sym.QoOBJSl.dll_hqlite3_initialize
test eax, eax
jne 0x18010a655
lea ecx, [rax + 0x10]
call fcn.180005840
mov r14, rax
test rax, rax
je 0x18010a655
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov rax, qword [rsp + 0x70]
mov qword [r14], rax
mov dword [rsi + 0x60], 0
test ebx, ebx
je 0x18010a576
cmp ebx, dword [rsi + 0x64]
jbe 0x18010a560
mov r8d, ebx
lea rdx, [rsi + 0x58]
mov rcx, r12
call fcn.1800f8690
test eax, eax
jne 0x18010a576
movsxd rcx, dword [rsi + 0x60]
mov rdx, rbp
add rcx, qword [rsi + 0x58]
mov r8d, ebx
call sub.VCRUNTIME140.dll_memcpy
add dword [rsi + 0x60], ebx
mov dword [r14 + 0xc], r15d
lea rdx, [rsi + 0x68]
mov dword [r14 + 8], r15d
mov qword [rsi + 0x10], r14
mov rcx, qword [r14]
call fcn.1801296c0
test byte [rsp + 0x68], 2
movzx edx, al
mov dword [rsi + 0x20], edx
mov r8d, dword [r14 + 8]
mov dword [rsi + 0x3c], r8d
je 0x18010a5b7
or dword [rsi + 8], 2
mov rdx, rsi
mov rcx, r13
call fcn.180108850
jmp 0x18010a65d
cmp dword [r12], 0
jne 0x18010a65d
mov rax, qword [r13]
mov ebx, edx
mov r9, qword [rsi + 0x10]
cmp dword [rax + 0x5c], 1
jne 0x18010a61e
cmp r8d, dword [r9 + 0xc]
cmovge r8d, dword [r9 + 0xc]
mov byte [rsi + 0x74], 0
mov dword [rsi + 0x70], 1
cmp edx, r8d
jge 0x18010a650
mov rax, qword [r9]
movsxd rcx, edx
cmp byte [rcx + rax], 0
jne 0x18010a650
inc edx
mov byte [rsi + 0x74], 1
cmp edx, r8d
jge 0x18010a612
mov rax, qword [r9]
cmp byte [rdx + rax], 0
jne 0x18010a612
inc edx
mov dword [rsi + 0x20], edx
jmp 0x18010a65d
mov dword [rsi + 0x70], 0
mov dword [rsi + 0x20], edx
jmp 0x18010a65d
mov rcx, rdx
inc edx
add rcx, qword [r9]
movzx eax, byte [rcx]
mov dword [rsp + 0x70], eax
test al, al
jns 0x18010a642
lea rdx, [rsp + 0x70]
call fcn.180129630
lea edx, [rbx + rax]
mov eax, dword [rsp + 0x70]
movzx ecx, al
and cl, 1
sar eax, 1
mov dword [rsi + 0x70], eax
mov byte [rsi + 0x74], cl
mov dword [rsi + 0x20], edx
jmp 0x18010a65d
mov dword [r12], 7
test byte [rsi + 8], 2
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
je 0x18010a694
lea rax, [0x180108ca0]
mov qword [rsi + 0x28], rax
add rsp, 0x38
pop r13
pop rsi
ret
mov rax, qword [r13]
lea rcx, [0x180108f60]
lea rdx, [0x180108d30]
cmp dword [rax + 0x5c], 1
cmove rcx, rdx
mov qword [rsi + 0x28], rcx
add rsp, 0x38
pop r13
pop rsi
ret