Function at 0x1009e010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
push esi
lea eax, [esp + 0x24]
push eax
push 0x1b
mov eax, ebx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x2c], esi
call fcn.1008bba0
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x10], eax
jne 0x1009e12c
mov eax, dword [ebx + 0xf8]
mov edi, dword [esp + 0x20]
cdq
push edx
push eax
push 1
push edi
call sym.SQLite.Interop.dll_sqlite3_bind_int64
add esp, 0x10
jmp 0x1009e070
push edi
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x1009e123
cmp edi, esi
je 0x1009e0d0
cmp dword [edi + 0x14], esi
je 0x1009e0a9
cmp word [edi + 0x54], si
jbe 0x1009e0a9
mov ecx, dword [edi]
mov eax, dword [ecx + 0xc]
cmp eax, esi
je 0x1009e0a4
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [edi + 0x14]
jmp 0x1009e0d5
mov eax, dword [edi]
cmp eax, esi
je 0x1009e0d0
mov eax, dword [eax + 0xc]
cmp eax, esi
je 0x1009e0c0
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [edi]
push esi
mov eax, 0x19
call fcn.100410b0
add esp, 4
mov ecx, 0x100abb60
call fcn.100204a0
mov dword [esp + 0x38], eax
call fcn.10044400
xor esi, esi
cmp dword [ebx + 0xf8], esi
jle 0x1009e117
lea ecx, [ecx]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x10]
push edx
push esi
push eax
push ebx
call fcn.1009ca10
xor dword [esp + 0x60], eax
xor dword [esp + 0x64], edx
add esi, 1
add esp, 0x10
cmp esi, dword [ebx + 0xf8]
jl 0x1009e0f0
xor esi, esi
cmp dword [esp + 0x10], esi
je 0x1009e070
push edi
call sym.SQLite.Interop.dll_sqlite3_reset
add esp, 4
push esi
lea ecx, [esp + 0x24]
push ecx
push 0x1b
mov eax, ebx
call fcn.1008bba0
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x10], eax
jne 0x1009e93e
mov esi, ebx
mov ecx, dword [esi + 0xd8]
mov edx, dword [esi + 0x24]
mov eax, dword [edx]
push ecx
push str.SELECT__s
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], 0
call sym.SQLite.Interop.dll_sqlite3_mprintf
mov edi, eax
add esp, 8
test edi, edi
jne 0x1009e184
mov dword [esp + 0x10], 7
jmp 0x1009e93e
mov eax, dword [esi + 0xc]
push 0
push 0
push 1
push 0xffffffffffffffff
push edi
lea esi, [esp + 0x30]
call fcn.1008ade0
add esp, 0x14
mov esi, eax
push edi
mov dword [esp + 0x14], esi
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
test esi, esi
jne 0x1009e85c
mov ebx, dword [esp + 0x1c]
push ebx
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x1009e860
test ebx, ebx
je 0x1009e21a
cmp dword [ebx + 0x14], 0
je 0x1009e1f2
cmp word [ebx + 0x54], 0
jbe 0x1009e1f2
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x1009e1ed
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [ebx + 0x14]
jmp 0x1009e21f
mov eax, dword [ebx]
test eax, eax
je 0x1009e21a
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1009e209
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [ebx]
push 0
mov eax, 0x19
call fcn.100410b0
add esp, 4
mov ecx, 0x100abb60
call fcn.100204a0
test ebx, ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
je 0x1009e283
mov edi, dword [ebx]
test edi, edi
mov ecx, dword [ebx + 0x50]
je 0x1009e266
cmp byte [edi + 0x40], 0
jne 0x1009e247
cmp ecx, 0xc0a
jne 0x1009e261
push 0
mov eax, 7
mov ecx, edi
call fcn.100410b0
add esp, 4
mov byte [edi + 0x40], 0
mov ecx, 7
mov eax, dword [edi + 0x38]
jmp 0x1009e26b
mov eax, 0xff
and eax, ecx
mov dword [ebx + 0x50], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1009e283
push eax
call dword [0x100c64ac]
add esp, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2c], 0
mov dword [esp + 0x20], 0
je 0x1009e361
mov edi, dword [eax + 0x18]
add edi, 1
test ebx, ebx
je 0x1009e2fa
cmp dword [ebx + 0x14], 0
je 0x1009e2d2
movzx ecx, word [ebx + 0x54]
cmp edi, ecx
jge 0x1009e2d2
test edi, edi
jl 0x1009e2d2
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x1009e2c7
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [ebx + 0x14]
lea eax, [edi + edi*4]
lea ecx, [ecx + eax*8]
jmp 0x1009e2ff
mov eax, dword [ebx]
test eax, eax
je 0x1009e2fa
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1009e2e9
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [ebx]
push 0
mov eax, 0x19
call fcn.100410b0
add esp, 4
mov ecx, 0x100abb60
call fcn.100204a0
test ebx, ebx
mov esi, eax
je 0x1009e35d
mov edi, dword [ebx]
test edi, edi
mov ecx, dword [ebx + 0x50]
je 0x1009e340
cmp byte [edi + 0x40], 0
jne 0x1009e321
cmp ecx, 0xc0a
jne 0x1009e33b
push 0
mov eax, 7
mov ecx, edi
call fcn.100410b0
add esp, 4
mov byte [edi + 0x40], 0
mov ecx, 7
mov eax, dword [edi + 0x38]
jmp 0x1009e345
mov eax, 0xff
mov edx, dword [ebx]
and eax, ecx
mov dword [ebx + 0x50], eax
mov eax, dword [edx + 0xc]
test eax, eax
je 0x1009e35d
push eax
call dword [0x100c64ac]
add esp, 4
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], 0
lea esp, [esp]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x18]
jge 0x1009e1b3
test ebx, ebx
lea esi, [eax + 1]
mov dword [esp + 0x38], esi
je 0x1009e4b3
cmp dword [ebx + 0x14], 0
je 0x1009e48b
movzx edx, word [ebx + 0x54]
cmp esi, edx
jge 0x1009e48b
test esi, esi
jl 0x1009e48b
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1009e3c0
push eax
call dword [0x100c64a4]
add esp, 4
mov edx, dword [ebx + 0x14]
lea ecx, [esi + esi*4]
lea edi, [edx + ecx*8]
test edi, edi
je 0x1009e4dc
movzx ecx, word [edi + 0x1c]
test cl, 1
jne 0x1009e4dc
movzx eax, cl
shr al, 3
and eax, 2
or eax, ecx
test eax, 0x4000
mov word [edi + 0x1c], ax
je 0x1009e431
mov eax, dword [edi + 0x18]
add eax, dword [edi + 0x10]
test eax, eax
jg 0x1009e403
mov eax, 1
push 1
call fcn.10030460
add esp, 4
test eax, eax
jne 0x1009e431
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 4]
add edx, dword [edi + 0x18]
push ecx
push eax
push edx
call fcn.10003bb0
mov eax, dword [edi + 0x10]
add dword [edi + 0x18], eax
add esp, 0xc
and word [edi + 0x1c], 0xbdff
test byte [edi + 0x1c], 2
je 0x1009e4bd
cmp byte [edi + 0x1e], 1
je 0x1009e44c
push 1
push edi
call fcn.100363d0
add esp, 8
movzx eax, word [edi + 0x1c]
test eax, 0x200
jne 0x1009e4cd
test al, 2
je 0x1009e4cd
mov eax, dword [edi + 0x18]
push 1
add eax, 2
call fcn.10030460
add esp, 4
test eax, eax
jne 0x1009e4cd
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 4]
mov byte [ecx + edx], al
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 4]
mov byte [eax + ecx + 1], 0
or word [edi + 0x1c], 0x200
jmp 0x1009e4cd
mov eax, dword [ebx]
test eax, eax
je 0x1009e4b3
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1009e4a2
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [ebx]
push 0
mov eax, 0x19
call fcn.100410b0
add esp, 4
mov edi, 0x100abb60
jmp 0x1009e3d1
mov esi, 1
mov eax, edi
call fcn.1003fd90
mov esi, dword [esp + 0x38]
cmp byte [edi + 0x1e], 1
jne 0x1009e4dc
mov edx, dword [edi + 4]
mov dword [esp + 0x10], edx
jmp 0x1009e4e4
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x1009e59b
mov edi, dword [ebx]
test edi, edi
mov ecx, dword [ebx + 0x50]
je 0x1009e522
cmp byte [edi + 0x40], 0
jne 0x1009e503
cmp ecx, 0xc0a
jne 0x1009e51d
push 0
mov eax, 7
mov ecx, edi
call fcn.100410b0
add esp, 4
mov byte [edi + 0x40], 0
mov ecx, 7
mov eax, dword [edi + 0x38]
jmp 0x1009e527
mov eax, 0xff
and eax, ecx
mov dword [ebx + 0x50], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1009e53f
push eax
call dword [0x100c64ac]
add esp, 4
test ebx, ebx
je 0x1009e59b
cmp dword [ebx + 0x14], 0
je 0x1009e573
movzx ecx, word [ebx + 0x54]
cmp esi, ecx
jge 0x1009e573
test esi, esi
jl 0x1009e573
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x1009e568
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [ebx + 0x14]
lea eax, [esi + esi*4]
lea edi, [ecx + eax*8]
jmp 0x1009e5a0
mov eax, dword [ebx]
test eax, eax
je 0x1009e59b
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1009e58a
push eax
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [ebx]
push 0
mov eax, 0x19
call fcn.100410b0
add esp, 4
mov edi, 0x100abb60
movzx ecx, word [edi + 0x1c]
test cl, 0x10
jne 0x1009e648
test cl, 1
jne 0x1009e644
movzx edx, cl
shr dl, 3
and edx, 2
mov eax, edx
or eax, ecx
test eax, 0x4000
mov word [edi + 0x1c], ax
je 0x1009e5d5
mov eax, edi
call fcn.10036000
test byte [edi + 0x1c], 2
je 0x1009e62c
cmp byte [edi + 0x1e], 1
je 0x1009e5ec
push 1
push edi
call fcn.100363d0
add esp, 8
movzx eax, word [edi + 0x1c]
test eax, 0x200
jne 0x1009e638
test al, 2
je 0x1009e638
mov eax, dword [edi + 0x18]
push 1
add eax, 2
call fcn.10030460
add esp, 4
test eax, eax
jne 0x1009e638
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 4]
mov byte [eax + ecx], 0
mov edx, dword [edi + 0x18]
mov eax, dword [edi + 4]
mov byte [edx + eax + 1], 0
or word [edi + 0x1c], 0x200
jmp 0x1009e638
mov esi, 1
mov eax, edi
call fcn.1003fd90
cmp byte [edi + 0x1e], 1
jne 0x1009e644
cmp dword [edi + 4], 0
jne 0x1009e648
xor esi, esi
jmp 0x1009e656
test word [edi + 0x1c], 0x4000
mov esi, dword [edi + 0x18]
je 0x1009e656
add esi, dword [edi + 0x10]
test ebx, ebx
je 0x1009e6ad
mov edi, dword [ebx]
test edi, edi
mov ecx, dword [ebx + 0x50]
je 0x1009e690
cmp byte [edi + 0x40], 0
jne 0x1009e671
cmp ecx, 0xc0a
jne 0x1009e68b
push 0
mov eax, 7
mov ecx, edi
call fcn.100410b0
add esp, 4
mov byte [edi + 0x40], 0
mov ecx, 7
mov eax, dword [edi + 0x38]
jmp 0x1009e695
mov eax, 0xff
and eax, ecx
mov ecx, dword [ebx]
mov dword [ebx + 0x50], eax
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x1009e6ad
push eax
call dword [0x100c64ac]
add esp, 4
mov edx, dword [ebp + 8]
mov edi, dword [edx + 0x24]
mov eax, dword [edi]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], 0
mov eax, dword [eax + 0xc]
push edi
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1009e717
mov ecx, dword [esp + 0x14]
mov dword [ecx], edi
mov edi, dword [esp + 0x30]
cmp dword [edi], 1
jl 0x1009e717
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x18]
push edx
push eax
call ecx
mov esi, eax
add esp, 8
test esi, esi
je 0x1009e717
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x10]
push edx
call eax
add esp, 4
mov dword [esp + 0x14], 0
test esi, esi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], esi
je 0x1009e764
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1009e73c
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x10]
push eax
call edx
add esp, 4
cmp esi, 0x65
jne 0x1009e747
xor esi, esi
mov dword [esp + 0x10], esi
test esi, esi
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
je 0x1009e370
jmp 0x1009e860
mov ebx, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x3c]
xor edi, edi
push eax
mov eax, dword [edx + 0x14]
push ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x40], edi
call eax
mov esi, eax
add esp, 0x18
cmp esi, edi
mov dword [esp + 0x10], esi
jne 0x1009e727
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x24]
push edi
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x38]
push eax
push 0
push ecx
push edx
call fcn.10010250
xor dword [esp + 0x64], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xf8]
xor dword [esp + 0x68], edx
mov esi, 1
add esp, 0x1c
cmp eax, esi
mov dword [esp + 0x44], eax
jle 0x1009e760
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xfc]
add eax, 0x18
mov dword [esp + 0x10], eax
lea esp, [esp]
mov ebx, dword [eax]
cmp ebx, dword [esp + 0x24]
jg 0x1009e847
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
push edi
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x38]
push ecx
push esi
push edx
push eax
call fcn.10010250
xor dword [esp + 0x64], eax
mov eax, dword [esp + 0x2c]
add esp, 0x1c
xor dword [esp + 0x4c], edx
add esi, 1
add eax, 0x18
cmp esi, dword [esp + 0x44]
mov dword [esp + 0x10], eax
jl 0x1009e810
jmp 0x1009e760
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x1009e93e
mov esi, dword [ebx]
test esi, esi
jne 0x1009e898
push str.API_called_with_finalized_prepared_statement
push 0x15
call sym.SQLite.Interop.dll_sqlite3_log
push 0x100b2e14
push 0x10119
push str.misuse_at_line__d_of___.10s_
push 0x15
call sym.SQLite.Interop.dll_sqlite3_log
add esp, 0x18
jmp 0x1009e93e
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1009e8a9
push eax
call dword [0x100c64a4]
add esp, 4
mov eax, dword [ebx + 0x28]
cmp eax, 0xbdf20da3
mov dword [esp + 0x38], 0
je 0x1009e8c2
cmp eax, 0x519c2973
jne 0x1009e8cd
mov eax, ebx
call fcn.1007f730
mov dword [esp + 0x38], eax
mov edi, dword [ebx]
push ebx
mov eax, edi
call fcn.1003a7b0
mov eax, dword [ebx + 0x30]
add esp, 4
test eax, eax
je 0x1009e8e9
mov ecx, dword [ebx + 0x34]
mov dword [eax + 0x34], ecx
jmp 0x1009e8ef
mov edx, dword [ebx + 0x34]
mov dword [edi + 4], edx
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x1009e8fc
mov ecx, dword [ebx + 0x30]
mov dword [eax + 0x30], ecx
mov eax, ebx
mov ecx, edi
mov dword [ebx + 0x28], 0xb606c3c8
mov dword [ebx], 0
call fcn.10021de0
cmp byte [esi + 0x40], 0
jne 0x1009e922
cmp dword [esp + 0x38], 0xc0a
jne 0x1009e937
push 0
mov eax, 7
mov ecx, esi
call fcn.100410b0
add esp, 4
mov byte [esi + 0x40], 0
mov eax, esi
call fcn.10075410
mov edx, dword [esp + 0x48]
cmp dword [esp + 0x50], edx
jne 0x1009e967
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x54], eax
jne 0x1009e967
mov ecx, dword [ebp + 0xc]
mov eax, 1
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
pop edi
xor eax, eax
pop esi
mov dword [edx], eax
mov eax, dword [esp + 8]
pop ebx
mov esp, ebp
pop ebp
ret