Function at 0x1800d5230
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
xor r13d, r13d
lea r8, [rax + 0x20]
xor r9d, r9d
lea edx, [r13 + 0x1b]
mov r15, rcx
mov r14, r13
mov qword [rsp + 0x70], r13
mov r12, r13
mov qword [rax + 0x20], r13
call fcn.1800bdd10
mov ebx, 0x2460
mov ebp, eax
mov dword [rsp + 0xf0], eax
test eax, eax
jne 0x1800d53d7
mov rdi, qword [rsp + 0xf8]
movsxd r8, dword [r15 + 0x1d8]
mov r12d, 1
mov rcx, rdi
mov edx, r12d
call sym.SQLite.Interop.dll_sqlite3_bind_int64
mov rcx, rdi
call sym.SQLite.Interop.dll_sqlite3_step
cmp eax, 0x64
jne 0x1800d53cc
test rdi, rdi
je 0x1800d5325
cmp qword [rdi + 0x28], r13
je 0x1800d52e6
cmp r13w, word [rdi + 0x88]
jae 0x1800d52e6
mov rax, qword [rdi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1800d52e0
call qword [0x18010b5e8]
mov rcx, qword [rdi + 0x28]
jmp 0x1800d532c
mov rax, qword [rdi]
test rax, rax
je 0x1800d5325
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1800d52fd
call qword [0x18010b5e8]
mov rax, qword [rdi]
mov rcx, qword [rax + 0x138]
mov dword [rax + 0x44], 0x19
test rcx, rcx
je 0x1800d5325
test word [rcx + 8], bx
je 0x1800d5320
call fcn.1800336d0
jmp 0x1800d5325
mov word [rcx + 8], r12w
lea rcx, [0x1800e73c0]
call fcn.180023670
mov rsi, rax
test rdi, rdi
je 0x1800d537e
mov rcx, qword [rdi]
mov edx, dword [rdi + 0x84]
test rcx, rcx
jne 0x1800d534c
movzx eax, dl
jmp 0x1800d5366
cmp byte [rcx + 0x51], r13b
jne 0x1800d5361
cmp edx, 0xc0a
je 0x1800d5361
mov eax, dword [rcx + 0x48]
and eax, edx
jmp 0x1800d5366
call fcn.18003bc30
mov dword [rdi + 0x84], eax
mov rax, qword [rdi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1800d537e
call qword [0x18010b5f8]
mov ebx, r13d
cmp dword [r15 + 0x1d8], ebx
jle 0x1800d53bf
nop word [rax + rax]
lea r9, [rsp + 0xf0]
mov r8d, ebx
mov edx, esi
mov rcx, r15
call fcn.1800d2fa0
inc ebx
xor r14, rax
cmp ebx, dword [r15 + 0x1d8]
jl 0x1800d5390
mov ebp, dword [rsp + 0xf0]
mov qword [rsp + 0x70], r14
mov ebx, 0x2460
test ebp, ebp
je 0x1800d52a8
mov rcx, rdi
call sym.SQLite.Interop.dll_sqlite3_reset
mov r12, r13
xor r9d, r9d
lea r8, [rsp + 0xf8]
mov rcx, r15
lea edx, [r9 + 0x1b]
call fcn.1800bdd10
mov ebx, eax
test eax, eax
jne 0x1800d575e
mov rax, qword [r15 + 0x48]
mov rdx, qword [r15 + 0x1a8]
mov rsi, r13
mov rcx, qword [rax]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x80], rcx
lea rcx, str.SELECT__s
call sym.SQLite.Interop.dll_sqlite3_mprintf
mov rdi, rax
test rax, rax
jne 0x1800d5432
lea ebx, [rax + 7]
jmp 0x1800d5756
mov rcx, qword [r15 + 0x18]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
mov ebp, 1
or r8d, 0xffffffff
mov r9d, ebp
mov rdx, rdi
mov qword [rsp + 0x20], r13
call fcn.1800bce80
mov rcx, rdi
mov ebx, eax
call sym.SQLite.Interop.dll_sqlite3_free
mov rsi, qword [rsp + 0x60]
test ebx, ebx
jne 0x1800d5756
mov rcx, rsi
movabs r14, 0x8000000000000000
movabs rdi, 0x7fffffffffffffff
call sym.SQLite.Interop.dll_sqlite3_step
cmp eax, 0x64
jne 0x1800d5751
test rsi, rsi
je 0x1800d550a
cmp qword [rsi + 0x28], r13
je 0x1800d54c7
cmp r13w, word [rsi + 0x88]
jae 0x1800d54c7
mov rax, qword [rsi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1800d54c1
call qword [0x18010b5e8]
mov rcx, qword [rsi + 0x28]
jmp 0x1800d5511
mov rax, qword [rsi]
test rax, rax
je 0x1800d550a
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1800d54de
call qword [0x18010b5e8]
mov rax, qword [rsi]
mov rcx, qword [rax + 0x138]
mov dword [rax + 0x44], 0x19
test rcx, rcx
je 0x1800d550a
mov eax, 0x2460
test word [rcx + 8], ax
je 0x1800d5506
call fcn.1800336d0
jmp 0x1800d550a
mov word [rcx + 8], bp
lea rcx, [0x1800e73c0]
movzx eax, word [rcx + 8]
test al, 4
je 0x1800d5523
mov rax, qword [rcx]
mov qword [rsp + 0x48], rax
jmp 0x1800d559d
test al, 8
je 0x1800d5563
movsd xmm1, qword [rcx]
pxor xmm0, xmm0
cvtsi2sd xmm0, r14
comisd xmm0, xmm1
jb 0x1800d5541
mov qword [rsp + 0x48], r14
jmp 0x1800d559d
pxor xmm0, xmm0
cvtsi2sd xmm0, rdi
comisd xmm1, xmm0
jb 0x1800d5557
mov qword [rsp + 0x48], rdi
jmp 0x1800d559d
cvttsd2si rax, xmm1
mov qword [rsp + 0x48], rax
jmp 0x1800d559d
test al, 0x12
je 0x1800d5598
movzx r9d, byte [rcx + 0xa]
mov r8d, dword [rcx + 0xc]
mov rcx, qword [rcx + 0x10]
lea rdx, [rsp + 0xf0]
mov qword [rsp + 0xf0], r13
call fcn.18001e970
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x48], rax
jmp 0x1800d559d
mov qword [rsp + 0x48], r13
test rsi, rsi
je 0x1800d55e7
mov rcx, qword [rsi]
mov edx, dword [rsi + 0x84]
test rcx, rcx
jne 0x1800d55b5
movzx eax, dl
jmp 0x1800d55cf
cmp byte [rcx + 0x51], r13b
jne 0x1800d55ca
cmp edx, 0xc0a
je 0x1800d55ca
mov eax, dword [rcx + 0x48]
and eax, edx
jmp 0x1800d55cf
call fcn.18003bc30
mov dword [rsi + 0x84], eax
mov rax, qword [rsi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1800d55e7
call qword [0x18010b5f8]
mov dword [rsp + 0x68], r13d
cmp qword [r15 + 0x58], r13
je 0x1800d5657
mov edx, dword [r15 + 0x30]
mov rcx, rsi
inc edx
call fcn.180041e90
mov rcx, rax
call fcn.180023670
mov qword [rsp + 0x68], rax
test rsi, rsi
je 0x1800d5657
mov rcx, qword [rsi]
mov edx, dword [rsi + 0x84]
test rcx, rcx
jne 0x1800d5625
movzx eax, dl
jmp 0x1800d563f
cmp byte [rcx + 0x51], r13b
jne 0x1800d563a
cmp edx, 0xc0a
je 0x1800d563a
mov eax, dword [rcx + 0x48]
and eax, edx
jmp 0x1800d563f
call fcn.18003bc30
mov dword [rsi + 0x84], eax
mov rax, qword [rsi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1800d5657
call qword [0x18010b5f8]
mov rcx, r13
mov r14d, r13d
mov dword [rsp + 0xf0], r13d
mov qword [rsp + 0x88], rcx
nop dword [rax]
cmp r14d, dword [r15 + 0x30]
jge 0x1800d58de
mov rax, qword [r15 + 0x40]
cmp byte [rcx + rax], r13b
jne 0x1800d5733
lea edx, [r14 + 1]
mov rcx, rsi
call sym.SQLite.Interop.dll_sqlite3_column_text
lea edx, [r14 + 1]
mov rcx, rsi
mov rdi, rax
call sym.SQLite.Interop.dll_sqlite3_column_bytes
mov rbp, qword [r15 + 0x48]
mov rsi, qword [rbp]
lea r9, [rsp + 0x40]
mov rdx, rdi
mov r8d, eax
mov rcx, rbp
mov qword [rsp + 0x40], r13
call qword [rsi + 0x18]
mov ebx, eax
test eax, eax
jne 0x1800d56f8
mov rax, qword [rsp + 0x40]
mov qword [rax], rbp
cmp dword [rsi], 1
jl 0x1800d56f8
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [rsi + 0x30]
mov ebx, eax
test eax, eax
je 0x1800d56f8
mov rcx, qword [rsp + 0x40]
call qword [rsi + 0x20]
mov rcx, r13
mov qword [rsp + 0x40], rcx
jmp 0x1800d56fd
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x58], rcx
test ebx, ebx
je 0x1800d57a0
mov rbp, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1800d571f
call qword [rbp + 0x20]
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x88]
cmp ebx, 0x65
cmove ebx, r13d
inc r14d
inc rcx
mov dword [rsp + 0xf0], r14d
mov qword [rsp + 0x88], rcx
test ebx, ebx
je 0x1800d5670
mov r14, qword [rsp + 0x70]
mov rcx, rsi
call sym.SQLite.Interop.dll_sqlite3_finalize
mov rax, qword [rsp + 0xe8]
cmp r14, r12
sete r13b
mov dword [rax], r13d
mov eax, ebx
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r14d, dword [rsp + 0xf0]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x80]
lea rax, [rsp + 0xf8]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x7c]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x90]
mov dword [rsp + 0x50], r13d
mov dword [rsp + 0x78], r13d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x7c], r13d
mov dword [rsp + 0xf8], r13d
call qword [rbp + 0x28]
mov ebx, eax
test eax, eax
jne 0x1800d5712
mov rax, qword [rsp + 0x48]
mov ebx, dword [rsp + 0x50]
mov rdi, qword [rsp + 0x90]
lea rsi, [rax + rax*8]
movsxd rax, dword [rsp + 0x68]
movsxd rbp, r14d
movsxd r14, dword [rsp + 0xf8]
add rsi, rax
mov rcx, rsi
imul rcx, rcx, 0x51
add rcx, rbp
lea rax, [r14 + rcx*8]
add rcx, rax
test ebx, ebx
jle 0x1800d5854
mov rdx, rdi
mov r8, rbx
nop dword [rax + rax]
movsx rax, byte [rdx]
lea rcx, [rcx + rcx*8]
inc rdx
add rcx, rax
sub r8, 1
jne 0x1800d5840
mov eax, dword [r15 + 0x1d8]
xor r12, rcx
mov rcx, qword [rsp + 0x58]
cmp eax, 1
jle 0x1800d5790
mov r9, qword [r15 + 0x1e0]
mov r10d, 1
lea r11d, [rax - 1]
add r9, 0x28
mov r8d, dword [r9]
cmp r8d, ebx
jg 0x1800d58c7
lea rax, [r10 + rsi*8]
lea rcx, [rsi + rax]
lea rax, [rbp + rcx*8]
add rcx, rax
lea rax, [r14 + rcx*8]
add rcx, rax
test r8d, r8d
jle 0x1800d58c4
mov rdx, rdi
nop dword [rax + rax]
movsx rax, byte [rdx]
lea rcx, [rcx + rcx*8]
inc rdx
add rcx, rax
sub r8, 1
jne 0x1800d58b0
xor r12, rcx
inc r10
add r9, 0x28
sub r11, 1
jne 0x1800d5881
mov rcx, qword [rsp + 0x58]
jmp 0x1800d5790
mov ebp, 1
jmp 0x1800d5475