Function at 0x10091b60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
push esi
lea eax, [esp + 0x58]
push eax
push 0x1b
mov eax, ebx
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x60], esi
call fcn.10089310
mov edi, eax
add esp, 0xc
mov dword [esp + 0x44], edi
cmp edi, esi
jne 0x10091db3
mov eax, dword [ebx + 0x110]
mov esi, dword [esp + 0x54]
cdq
push edx
push eax
push 1
push esi
call sym.SQLite3Encrypt.dll_sqlite3_bind_int64
mov eax, dword [ebx + 0xf8]
cdq
push edx
push eax
push 2
push esi
call sym.SQLite3Encrypt.dll_sqlite3_bind_int64
add esp, 0x20
lea ecx, [ecx]
push esi
call sym.SQLite3Encrypt.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x10091d39
xor edi, edi
cmp esi, edi
je 0x10091c45
cmp dword [esi + 0x14], edi
je 0x10091c1d
xor ecx, ecx
cmp cx, word [esi + 0x54]
jae 0x10091c1d
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
cmp eax, edi
je 0x10091c18
push eax
call dword [0x100d3428]
add esp, 4
mov ecx, dword [esi + 0x14]
jmp 0x10091c4a
mov eax, dword [esi]
cmp eax, edi
je 0x10091c45
mov eax, dword [eax + 0xc]
cmp eax, edi
je 0x10091c34
push eax
call dword [0x100d3428]
add esp, 4
mov ebx, dword [esi]
mov eax, 0x19
mov dword [ebx + 0x34], eax
call fcn.10006cf0
xor edi, edi
mov ecx, 0x100b9380
movzx eax, word [ecx + 8]
test al, 4
je 0x10091c61
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
jmp 0x10091cbc
test al, 8
je 0x10091c7f
fld qword [ecx]
sub esp, 8
fstp qword [esp]
call fcn.10023040
add esp, 8
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
jmp 0x10091cbc
test al, 0x12
je 0x10091cb4
mov edx, dword [ecx + 0xc]
lea eax, [esp + 0x70]
push edx
push eax
mov al, byte [ecx + 0xa]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
call fcn.10007680
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
add esp, 8
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
jmp 0x10091cbc
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
cmp esi, edi
je 0x10091cf5
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
mov ecx, dword [esi + 0x50]
jne 0x10091cda
cmp ecx, 0xc0a
je 0x10091cda
mov eax, dword [eax + 0x38]
and eax, ecx
jmp 0x10091cdf
call fcn.10004830
mov dword [esi + 0x50], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
cmp eax, edi
je 0x10091cf5
push eax
call dword [0x100d3430]
add esp, 4
mov ebx, dword [ebp + 8]
xor edi, edi
cmp dword [ebx + 0xf8], edi
jle 0x10091d2d
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x44]
push ecx
push edi
push edx
push ebx
call fcn.100919a0
xor dword [esp + 0x98], eax
xor dword [esp + 0x9c], edx
inc edi
add esp, 0x10
cmp edi, dword [ebx + 0xf8]
jl 0x10091d02
mov edi, dword [esp + 0x44]
test edi, edi
je 0x10091be0
push esi
call sym.SQLite3Encrypt.dll_sqlite3_reset
add esp, 4
test edi, edi
jne 0x10091d8b
mov edi, eax
test eax, eax
jne 0x10091d8b
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0xd8]
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edx
push str.SELECT__s
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x50], edi
call sym.SQLite3Encrypt.dll_sqlite3_mprintf
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10091dc6
mov dword [esp + 0x44], 7
push edi
call sym.SQLite3Encrypt.dll_sqlite3_finalize
mov edi, dword [esp + 0x48]
add esp, 4
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x88], eax
jne 0x10092313
mov ecx, dword [esp + 0x84]
cmp dword [esp + 0x8c], ecx
jne 0x10092313
mov edx, dword [ebp + 0xc]
mov eax, 1
mov dword [edx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
push 0
push 0
push 1
push 0xffffffffffffffff
push ebx
lea edi, [esp + 0x5c]
call fcn.10059520
add esp, 0x14
mov edi, eax
push ebx
mov dword [esp + 0x48], edi
call sym.SQLite3Encrypt.dll_sqlite3_free
add esp, 4
test edi, edi
mov edi, dword [esp + 0x48]
jne 0x10091d7e
push edi
xor ebx, ebx
call sym.SQLite3Encrypt.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x10091d7e
cmp edi, ebx
je 0x10091e5a
cmp dword [edi + 0x14], ebx
je 0x10091e32
xor eax, eax
cmp ax, word [edi + 0x54]
jae 0x10091e32
mov ecx, dword [edi]
mov eax, dword [ecx + 0xc]
cmp eax, ebx
je 0x10091e2d
push eax
call dword [0x100d3428]
add esp, 4
mov ecx, dword [edi + 0x14]
jmp 0x10091e5f
mov eax, dword [edi]
cmp eax, ebx
je 0x10091e5a
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x10091e49
push eax
call dword [0x100d3428]
add esp, 4
mov ebx, dword [edi]
mov eax, 0x19
mov dword [ebx + 0x34], eax
call fcn.10006cf0
xor ebx, ebx
mov ecx, 0x100b9380
movzx eax, word [ecx + 8]
test al, 4
je 0x10091e79
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
jmp 0x10091f50
test al, 8
je 0x10091f04
fld qword [ecx]
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], 0x80000000
fild qword [esp + 0xa0]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x10091ebb
xor eax, eax
fstp st(0)
mov edx, 0x80000000
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
jmp 0x10091f50
mov dword [esp + 0xa8], 0xffffffff
mov dword [esp + 0xac], 0x7fffffff
fild qword [esp + 0xa8]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x10091ef5
or eax, 0xffffffff
fstp st(0)
mov edx, 0x7fffffff
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
jmp 0x10091f50
call fcn.100b06e6
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
jmp 0x10091f50
test al, 0x12
je 0x10091f48
mov edx, dword [ecx + 0xc]
lea eax, [esp + 0x90]
push edx
push eax
mov al, byte [ecx + 0xa]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
call fcn.10007680
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
add esp, 8
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
jmp 0x10091f50
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
cmp edi, ebx
je 0x10091f89
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
mov ecx, dword [edi + 0x50]
jne 0x10091f6e
cmp ecx, 0xc0a
je 0x10091f6e
mov eax, dword [eax + 0x38]
and eax, ecx
jmp 0x10091f73
call fcn.10004830
mov dword [edi + 0x50], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x10091f89
push eax
call dword [0x100d3430]
add esp, 4
mov dword [esp + 0x50], ebx
cmp dword [esi + 0x2c], ebx
je 0x1009211d
mov ebx, dword [esi + 0x18]
inc ebx
test edi, edi
je 0x10091ff4
cmp dword [edi + 0x14], 0
je 0x10091fce
movzx ecx, word [edi + 0x54]
cmp ebx, ecx
jge 0x10091fce
test ebx, ebx
js 0x10091fce
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x10091fc3
push eax
call dword [0x100d3428]
add esp, 4
mov ecx, dword [edi + 0x14]
lea eax, [ebx + ebx*4]
lea ecx, [ecx + eax*8]
jmp 0x10091ff9
mov eax, dword [edi]
test eax, eax
je 0x10091ff4
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10091fe5
push eax
call dword [0x100d3428]
add esp, 4
mov ebx, dword [edi]
mov eax, 0x19
mov dword [ebx + 0x34], eax
call fcn.10006cf0
mov ecx, 0x100b9380
movzx eax, word [ecx + 8]
test al, 4
je 0x1009200f
mov edx, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [esp + 0x74], edx
jmp 0x100920e0
test al, 8
je 0x10092098
fld qword [ecx]
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0x80000000
fild qword [esp + 0xb0]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x10092053
xor eax, eax
fstp st(0)
mov edx, 0x80000000
mov ebx, eax
mov dword [esp + 0x74], edx
jmp 0x100920e0
mov dword [esp + 0xb8], 0xffffffff
mov dword [esp + 0xbc], 0x7fffffff
fild qword [esp + 0xb8]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1009208b
or eax, 0xffffffff
fstp st(0)
mov edx, 0x7fffffff
mov ebx, eax
mov dword [esp + 0x74], edx
jmp 0x100920e0
call fcn.100b06e6
mov ebx, eax
mov dword [esp + 0x74], edx
jmp 0x100920e0
test al, 0x12
je 0x100920da
xor eax, eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov eax, dword [ecx + 0xc]
push eax
mov al, byte [ecx + 0xa]
mov ecx, dword [ecx + 0x10]
lea edx, [esp + 0x9c]
push edx
call fcn.10007680
mov eax, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa0]
add esp, 8
mov dword [esp + 0x74], eax
jmp 0x100920e0
xor ebx, ebx
mov dword [esp + 0x74], ebx
test edi, edi
je 0x10092119
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
mov ecx, dword [edi + 0x50]
jne 0x100920fe
cmp ecx, 0xc0a
je 0x100920fe
mov eax, dword [eax + 0x38]
and eax, ecx
jmp 0x10092103
call fcn.10004830
mov ecx, dword [edi]
mov dword [edi + 0x50], eax
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x10092119
push eax
call dword [0x100d3430]
add esp, 4
mov dword [esp + 0x50], ebx
xor ebx, ebx
nop
mov esi, dword [ebp + 8]
cmp ebx, dword [esi + 0x18]
jge 0x1009230a
mov edx, dword [esi + 0x20]
cmp byte [ebx + edx], 0
jne 0x100922f5
mov eax, dword [esp + 0x48]
lea esi, [ebx + 1]
push esi
push eax
call sym.SQLite3Encrypt.dll_sqlite3_column_text
mov ecx, dword [esp + 0x50]
push esi
push ecx
mov edi, eax
call sym.SQLite3Encrypt.dll_sqlite3_column_bytes
mov edx, dword [ebp + 8]
mov esi, dword [edx + 0x24]
mov ecx, dword [esi]
lea edx, [esp + 0x5c]
push edx
push eax
mov dword [esp + 0x64], 0
mov eax, dword [ecx + 0xc]
push edi
push esi
mov dword [esp + 0x64], ecx
call eax
mov edi, eax
add esp, 0x20
test edi, edi
jne 0x100921be
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov dword [ecx], esi
cmp dword [edx], 1
jl 0x100921be
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push eax
mov eax, dword [edx + 0x18]
push ecx
call eax
mov edi, eax
add esp, 8
test edi, edi
je 0x100921be
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 0x10]
push ecx
call eax
add esp, 4
mov dword [esp + 0x4c], 0
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x44], edi
test edi, edi
jne 0x100922cf
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x60]
push edx
mov edx, dword [esp + 0x74]
lea eax, [esp + 0x6c]
xor edi, edi
push eax
mov eax, dword [edx + 0x14]
push ecx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x70], edi
call eax
mov esi, eax
add esp, 0x18
mov dword [esp + 0x44], esi
cmp esi, edi
jne 0x100922d3
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x50]
push esi
push ebx
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x6c]
push edi
push eax
push ecx
push edx
call fcn.100918e0
xor dword [esp + 0xa0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xf8]
xor dword [esp + 0xa4], edx
mov edi, 1
add esp, 0x20
mov dword [esp + 0x70], eax
cmp eax, edi
jle 0x100921d2
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xfc]
add ecx, 0x18
mov dword [esp + 0x44], ecx
mov eax, dword [ecx]
cmp eax, dword [esp + 0x54]
jg 0x100922bc
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
push esi
push ebx
push edx
mov edx, dword [esp + 0x5c]
push ecx
push edi
push edx
push eax
mov eax, dword [esp + 0x78]
push eax
call fcn.100918e0
xor dword [esp + 0xa0], eax
mov ecx, dword [esp + 0x64]
add esp, 0x20
xor dword [esp + 0x84], edx
inc edi
add ecx, 0x18
mov dword [esp + 0x44], ecx
cmp edi, dword [esp + 0x70]
jl 0x10092282
jmp 0x100921d2
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x100922e8
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 0x10]
push eax
call edx
add esp, 4
cmp esi, 0x65
jne 0x100922f5
mov dword [esp + 0x44], 0
inc ebx
cmp dword [esp + 0x44], 0
je 0x10092120
mov edi, dword [esp + 0x48]
jmp 0x10091d7e
mov edi, dword [esp + 0x48]
jmp 0x10091df5
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret