Function at 0x140081510
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x140176810]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rcx]
movsxd r10, edx
mov qword [rsp + 0x30], r9
mov rdx, qword [rax + 0x20]
shl r10, 5
mov r13, r8
mov rsi, qword [r10 + rdx]
mov r12, rcx
mov r15d, 1
lea rdi, [rsp + 0x40]
nop dword [rax + rax]
lea r8, str.sqlite_stat_d
lea rdx, [rsp + 0x40]
mov r9d, r15d
mov ecx, 0x18
call fcn.140042b20
mov rbp, qword [r12]
xor r10d, r10d
lea rbx, [rsp + 0x40]
cmp byte [rsp + 0x40], r10b
je 0x140081598
nop dword [rax]
inc rbx
cmp byte [rbx], r10b
jne 0x140081590
mov r14d, dword [rbp + 0x28]
sub ebx, edi
xor edi, edi
and ebx, 0x3fffffff
test r14d, r14d
jle 0x140081765
nop
mov r9d, edi
cmp edi, 2
jge 0x1400815bc
xor r9d, 1
test rsi, rsi
je 0x140081629
mov rax, qword [rbp + 0x20]
movsxd rcx, r9d
mov rdx, rsi
shl rcx, 5
lea r11, [0x140138ef0]
mov r8, qword [rcx + rax]
movzx ecx, byte [rsi]
test cl, cl
je 0x140081610
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8]
movzx ecx, cl
movzx eax, byte [rax + r11]
cmp byte [rcx + r11], al
jne 0x140081610
movzx ecx, byte [rdx + 1]
inc rdx
inc r8
test cl, cl
jne 0x1400815f0
movzx eax, byte [r8]
movzx ecx, byte [rax + r11]
movzx eax, byte [rdx]
movzx eax, byte [rax + r11]
cmp eax, ecx
jne 0x14008172f
mov rax, qword [rbp + 0x20]
movsxd rcx, r9d
shl rcx, 5
mov r11, qword [rcx + rax + 0x18]
mov r10, qword [r11 + 0x18]
test r10, r10
je 0x14008168c
xor eax, eax
mov r8d, ebx
lea r9, [rsp + 0x40]
test ebx, ebx
jle 0x140081684
lea r14, [0x140138ef0]
nop word [rax + rax]
movzx ecx, byte [r9]
dec r8d
lea r9, [r9 + 1]
movzx edx, byte [rcx + r14]
lea ecx, [rax*8]
xor edx, ecx
xor eax, edx
test r8d, r8d
jg 0x140081660
mov r14d, dword [rbp + 0x28]
xor edx, edx
div dword [r11 + 8]
jmp 0x14008168e
xor edx, edx
test r10, r10
je 0x1400816a5
mov eax, edx
shl rax, 4
add rax, r10
mov r10, qword [rax + 8]
mov r11d, dword [rax]
jmp 0x1400816ad
mov r10, qword [r11 + 0x10]
mov r11d, dword [r11 + 0xc]
test r11d, r11d
je 0x14008172c
dec r11d
test r10, r10
je 0x14008172c
cmp dword [r10 + 0x20], ebx
jne 0x140081724
mov r8, qword [r10 + 0x18]
mov eax, ebx
lea r9, [rsp + 0x40]
test ebx, ebx
jle 0x1400816ff
nop
movzx edx, byte [r8]
dec eax
test dl, dl
je 0x140081701
movzx ecx, byte [r9]
lea rbp, [0x140138ef0]
movzx edx, dl
movzx ecx, byte [rcx + rbp]
cmp byte [rdx + rbp], cl
mov rbp, qword [r12]
jne 0x140081701
inc r8
inc r9
test eax, eax
jg 0x1400816d0
dec eax
test eax, eax
js 0x140081795
movzx eax, byte [r9]
lea rcx, [0x140138ef0]
movzx edx, byte [rax + rcx]
movzx eax, byte [r8]
movzx ecx, byte [rax + rcx]
sub ecx, edx
je 0x140081795
mov r10, qword [r10]
test r11d, r11d
jne 0x1400816b2
xor r10d, r10d
inc edi
cmp edi, r14d
jl 0x1400815b0
test r10, r10
je 0x140081765
mov rax, qword [rsp + 0x30]
lea r9, [rsp + 0x40]
lea rdx, str.DELETE_FROM__Q._s_WHERE__s_Q
mov qword [rsp + 0x28], rax
mov r8, rsi
mov rcx, r12
mov qword [rsp + 0x20], r13
call fcn.14007de30
inc r15d
lea rdi, [rsp + 0x40]
cmp r15d, 4
jle 0x140081560
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400dc400
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x14008173f
jmp 0x14008172f