Function at 0x1001d1f0
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x84
call sym.nss3.dll_sqlite3_initialize
test eax, eax
jne 0x1001d6fc
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp byte [0x101ef024], 0
je 0x1001d689
mov ecx, dword [0x101ef068]
call dword [section..00cfg]
push 5
call ecx
add esp, 4
test eax, eax
je 0x1001d689
mov edi, eax
mov ecx, dword [0x101ef070]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
test ebx, ebx
jle 0x1001d69f
test esi, esi
je 0x1001d69f
mov dword [ebp - 0x34], 0
cmp dword [0x101f2160], 0
je 0x1001d626
mov al, byte [0x101f21e0]
movzx eax, al
cmp eax, ebx
jb 0x1001d2b8
sub eax, ebx
lea eax, [eax + 0x101f21a0]
push ebx
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
sub byte [0x101f21e0], bl
cmp byte [ebp - 0x34], 0
jne 0x1001d6fc
mov ecx, dword [0x101ef078]
call dword [section..00cfg]
push edi
call ecx
add esp, 0x88
pop esi
pop edi
pop ebx
pop ebp
ret
test eax, eax
sete cl
mov dword [ebp - 0x74], edi
test cl, 1
je 0x1001d601
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], ebx
mov eax, dword [0x101f2190]
inc eax
mov dword [0x101f2190], eax
mov ecx, dword [0x101f2160]
mov dword [ebp - 0x48], ecx
mov ecx, dword [0x101f2164]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [0x101f2168]
mov dword [ebp - 0x50], ecx
mov ecx, dword [0x101f216c]
mov dword [ebp - 0x54], ecx
mov esi, dword [0x101f2170]
mov ecx, dword [0x101f2174]
mov dword [ebp - 0x58], ecx
mov ecx, dword [0x101f2178]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [0x101f217c]
mov dword [ebp - 0x60], ecx
mov ebx, dword [0x101f2180]
mov ecx, dword [0x101f2184]
mov dword [ebp - 0x64], ecx
mov ecx, dword [0x101f2188]
mov dword [ebp - 0x68], ecx
mov ecx, dword [0x101f218c]
mov dword [ebp - 0x6c], ecx
mov edx, dword [0x101f2194]
mov edi, dword [0x101f2198]
mov dword [ebp - 0x8c], 0xa
mov ecx, dword [0x101f219c]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x78], esi
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x84], edi
mov ecx, edi
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x70]
mov dword [ebp - 0x38], edi
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x18]
add edi, esi
mov dword [ebp - 0x18], edi
xor dword [ebp - 0x10], edi
rol dword [ebp - 0x10], 0x10
mov edi, dword [ebp - 0x10]
add dword [ebp - 0x20], edi
xor esi, dword [ebp - 0x20]
rol esi, 0xc
mov edi, dword [ebp - 0x18]
add edi, esi
mov dword [ebp - 0x18], edi
xor dword [ebp - 0x10], edi
rol dword [ebp - 0x10], 8
mov edi, dword [ebp - 0x10]
add dword [ebp - 0x20], edi
xor esi, dword [ebp - 0x20]
rol esi, 7
mov dword [ebp - 0x90], esi
add dword [ebp - 0x2c], ebx
mov edi, dword [ebp - 0x30]
xor edi, dword [ebp - 0x2c]
rol edi, 0x10
add dword [ebp - 0x1c], edi
xor ebx, dword [ebp - 0x1c]
rol ebx, 0xc
add dword [ebp - 0x2c], ebx
xor edi, dword [ebp - 0x2c]
rol edi, 8
mov dword [ebp - 0x30], edi
add dword [ebp - 0x1c], edi
xor ebx, dword [ebp - 0x1c]
rol ebx, 7
mov edi, dword [ebp - 0x28]
add edi, eax
xor ecx, edi
rol ecx, 0x10
mov esi, dword [ebp - 0x3c]
add esi, ecx
xor eax, esi
rol eax, 0xc
add edi, eax
mov dword [ebp - 0x28], edi
xor ecx, edi
rol ecx, 8
mov edi, esi
add edi, ecx
xor eax, edi
mov esi, edi
rol eax, 7
add dword [ebp - 0x24], edx
mov edi, dword [ebp - 0x38]
xor edi, dword [ebp - 0x24]
rol edi, 0x10
add dword [ebp - 0x14], edi
xor edx, dword [ebp - 0x14]
rol edx, 0xc
add dword [ebp - 0x24], edx
xor edi, dword [ebp - 0x24]
rol edi, 8
add dword [ebp - 0x14], edi
xor edx, dword [ebp - 0x14]
rol edx, 7
add dword [ebp - 0x18], ebx
xor edi, dword [ebp - 0x18]
rol edi, 0x10
add esi, edi
xor ebx, esi
rol ebx, 0xc
add dword [ebp - 0x18], ebx
xor edi, dword [ebp - 0x18]
rol edi, 8
mov dword [ebp - 0x38], edi
add esi, edi
mov dword [ebp - 0x3c], esi
xor ebx, esi
rol ebx, 7
mov edi, dword [ebp - 0x2c]
add edi, eax
xor dword [ebp - 0x10], edi
rol dword [ebp - 0x10], 0x10
mov esi, dword [ebp - 0x14]
add esi, dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
xor eax, dword [ebp - 0x14]
rol eax, 0xc
add edi, eax
mov dword [ebp - 0x2c], edi
xor dword [ebp - 0x10], edi
rol dword [ebp - 0x10], 8
mov edi, dword [ebp - 0x14]
add edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
xor eax, edi
rol eax, 7
add dword [ebp - 0x28], edx
mov edi, dword [ebp - 0x30]
xor edi, dword [ebp - 0x28]
rol edi, 0x10
add dword [ebp - 0x20], edi
xor edx, dword [ebp - 0x20]
rol edx, 0xc
add dword [ebp - 0x28], edx
xor edi, dword [ebp - 0x28]
rol edi, 8
mov dword [ebp - 0x30], edi
add dword [ebp - 0x20], edi
xor edx, dword [ebp - 0x20]
rol edx, 7
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x90]
add edi, esi
xor ecx, edi
rol ecx, 0x10
add dword [ebp - 0x1c], ecx
xor esi, dword [ebp - 0x1c]
rol esi, 0xc
add edi, esi
mov dword [ebp - 0x24], edi
xor ecx, edi
rol ecx, 8
add dword [ebp - 0x1c], ecx
xor esi, dword [ebp - 0x1c]
rol esi, 7
dec dword [ebp - 0x8c]
jne 0x1001d3b8
mov edi, ecx
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x48]
mov dword [0x101f21a0], ecx
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x4c]
mov dword [0x101f21a4], ecx
mov ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x50]
mov dword [0x101f21a8], ecx
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x54]
mov dword [0x101f21ac], ecx
add esi, dword [ebp - 0x78]
mov dword [0x101f21b0], esi
add ebx, dword [ebp - 0x58]
mov dword [0x101f21b4], ebx
add eax, dword [ebp - 0x5c]
mov dword [0x101f21b8], eax
add edx, dword [ebp - 0x60]
mov dword [0x101f21bc], edx
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x7c]
mov dword [0x101f21c0], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x64]
mov dword [0x101f21c4], eax
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x68]
mov dword [0x101f21c8], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x6c]
mov dword [0x101f21cc], eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x88]
mov dword [0x101f21d0], eax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x80]
mov dword [0x101f21d4], eax
add edi, dword [ebp - 0x84]
mov dword [0x101f21d8], edi
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x70]
mov dword [0x101f21dc], eax
mov byte [0x101f21e0], 0x40
mov eax, 0x40
xor ecx, ecx
mov ebx, dword [ebp - 0x44]
cmp ebx, 0x40
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x74]
jle 0x1001d27b
jmp 0x1001d2c0
push eax
push 0x101f21a0
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movzx eax, byte [0x101f21e0]
sub ebx, eax
mov dword [ebp - 0x44], ebx
add esi, eax
mov dword [ebp - 0x40], esi
jmp 0x1001d2cf
push 0
call sym.nss3.dll_sqlite3_vfs_find
add esp, 4
movups xmm0, xmmword [0x101af7d8]
movups xmmword [0x101f2160], xmm0
test eax, eax
je 0x1001d6ae
mov ecx, dword [0x101ef134]
test ecx, ecx
jne 0x1001d6ca
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x10], eax
call dword [section..00cfg]
push 0x101f2170
push 0x2c
push dword [ebp - 0x10]
call ecx
add esp, 0xc
mov eax, dword [0x101f2190]
mov dword [0x101f219c], eax
mov dword [0x101f2190], 0
mov byte [0x101f21e0], 0
xor eax, eax
jmp 0x1001d274
test ebx, ebx
jle 0x1001d6f2
test esi, esi
je 0x1001d6f2
mov eax, ebx
xor edi, edi
mov cl, 1
mov dword [ebp - 0x34], ecx
jmp 0x1001d262
mov dword [0x101f2160], 0
jmp 0x1001d29e
xorps xmm0, xmm0
movups xmmword [0x101f218c], xmm0
movups xmmword [0x101f2180], xmm0
movups xmmword [0x101f2170], xmm0
xor eax, eax
jmp 0x1001d66c
xor eax, eax
mov dword [0x101f2198], eax
mov dword [0x101f2194], eax
xorps xmm0, xmm0
movups xmmword [0x101f2184], xmm0
movups xmmword [0x101f2174], xmm0
mov dword [0x101f2170], ecx
jmp 0x1001d66c
mov dword [0x101f2160], 0
add esp, 0x84
jmp 0x1001d2b3