Function at 0x52e3c0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x52e67c
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x60], rcx
call sym.modernc.org_sqlite_lib.Xsqlite3_initialize
test eax, eax
jne 0x52e529
cmp byte [0x009c0324], 0
jne 0x52e3fa
xor eax, eax
jmp 0x52e410
mov rdx, qword [0x009c0390]
mov rcx, qword [rdx]
mov rax, qword [rsp + 0x50]
mov ebx, 5
call rcx
mov qword [rsp + 0x30], rax
nop
test rax, rax
je 0x52e434
mov rdx, qword [0x009c03a0]
mov rcx, qword [rdx]
mov rbx, rax
mov rax, qword [rsp + 0x50]
call rcx
mov rax, qword [rsp + 0x30]
mov esi, dword [rsp + 0x58]
nop dword [rax + rax]
test esi, esi
jle 0x52e4ff
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x52e4fa
cmp dword [0x00a31a40], 0
nop dword [rax]
jne 0x52e4f0
mov rax, qword [rsp + 0x50]
xor ebx, ebx
call sym.modernc.org_sqlite_lib.Xsqlite3_vfs_find
movups xmm0, xmmword [str.expand_32_byte_k]
nop
movups xmmword [0x00a31a40], xmm0
test rax, rax
jne 0x52e4a7
lea rbx, [0x00a31a40]
add rbx, 0x10
mov rax, qword [rsp + 0x50]
xor ecx, ecx
mov edi, 0x2c
nop dword [rax]
call sym.modernc.org_libc.Xmemset
jmp 0x52e4c5
lea rdi, [0x00a31a40]
add rdi, 0x10
mov rbx, rax
mov ecx, 0x2c
mov rax, qword [rsp + 0x50]
nop
call sym.modernc.org_sqlite_lib._sqlite3OsRandomness
mov esi, dword [0x00a31a70]
mov dword [0x00a31a7c], esi
mov dword [0x00a31a70], 0
mov byte [0x00a31ac0], 0
mov rax, qword [rsp + 0x30]
mov esi, dword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r8, qword [rsp + 0x50]
jmp 0x52e579
test rax, rax
jmp 0x52e502
test rax, rax
mov dword [0x00a31a40], 0
nop
je 0x52e523
mov rdx, qword [0x009c03b0]
mov rcx, qword [rdx]
mov rbx, rax
mov rax, qword [rsp + 0x50]
call rcx
add rsp, 0x40
pop rbp
ret
add rsp, 0x40
pop rbp
ret
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x24], esi
inc dword [0x00a31a70]
lea rbx, [0x00a31a40]
lea rdx, [rbx + 0x40]
mov rax, r8
mov rcx, rbx
mov rbx, rdx
call sym.modernc.org_sqlite_lib._chacha_block
mov byte [0x00a31ac0], 0x40
mov rax, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x28]
mov esi, dword [rsp + 0x24]
mov rax, qword [rsp + 0x30]
mov r8, qword [rsp + 0x50]
mov rdi, rdx
mov dword [rsp + 0x24], esi
movzx edx, byte [0x00a31ac0]
cmp esi, edx
jle 0x52e5f4
test edx, edx
je 0x52e52f
movabs rbx, 0x3ffffffffffff
cmp rbx, rdx
jb 0x52e676
mov r9, rdi
test byte [rdi], al
lea r10, [0x00a31a80]
cmp rdi, r10
je 0x52e5e2
mov qword [rsp + 0x38], r9
mov rax, rdi
mov rbx, r10
mov ecx, edx
nop dword [rax]
call sym.runtime.memmove
mov rax, qword [rsp + 0x30]
movabs rbx, 0x3ffffffffffff
mov esi, dword [rsp + 0x24]
mov r8, qword [rsp + 0x50]
mov r9, qword [rsp + 0x38]
movzx edx, byte [0x00a31ac0]
sub esi, edx
lea rdi, [r9 + rdx]
jmp 0x52e52f
lea r9, [0x00a31a40]
sub edx, esi
movsxd r10, edx
movsxd rdx, esi
lea rbx, [r10 + r9]
lea rbx, [rbx + 0x40]
test rdx, rdx
je 0x52e641
movabs r9, 0x3ffffffffffff
cmp r9, rdx
jb 0x52e66e
test byte [rdi], al
test byte [rbx], al
cmp rbx, rdi
je 0x52e641
mov rax, rdi
mov rcx, rdx
call sym.runtime.memmove
mov rax, qword [rsp + 0x30]
mov esi, dword [rsp + 0x24]
mov r8, qword [rsp + 0x50]
movzx ecx, byte [0x00a31ac0]
sub ecx, esi
mov byte [0x00a31ac0], cl
nop
test rax, rax
je 0x52e668
mov rdx, qword [0x009c03b0]
mov rcx, qword [rdx]
mov rbx, rax
mov rax, r8
call rcx
add rsp, 0x40
pop rbp
ret
mov rbx, r9
call sym.runtime.panicSlice3AlenU
call sym.runtime.panicSlice3AlenU
nop
mov qword [rsp + 8], rax
mov dword [rsp + 0x10], ebx
mov qword [rsp + 0x18], rcx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov ebx, dword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
nop dword [rax]
jmp sym.modernc.org_sqlite_lib.Xsqlite3_randomness