Function at 0x100a3790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x1b
mov eax, edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x24], ebx
call fcn.100921b0
add esp, 0xc
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x100a3846
mov eax, dword [edi + 0xf8]
mov esi, dword [esp + 0x18]
cdq
push edx
push eax
push 1
push esi
call sym.SQLite.Interop.dll_sqlite3_bind_int64
add esp, 0x10
push esi
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x100a383d
push ebx
push esi
call sym.SQLite.Interop.dll_sqlite3_column_int
xor esi, esi
add esp, 8
cmp dword [edi + 0xf8], esi
mov ebx, eax
jle 0x100a3831
jmp 0x100a3810
lea ecx, [esp + 0x10]
push ecx
push esi
push ebx
push edi
call fcn.100a20f0
xor dword [esp + 0x58], eax
xor dword [esp + 0x5c], edx
inc esi
add esp, 0x10
cmp esi, dword [edi + 0xf8]
jl 0x100a3810
mov esi, dword [esp + 0x18]
xor ebx, ebx
cmp dword [esp + 0x10], ebx
je 0x100a37e7
push esi
call sym.SQLite.Interop.dll_sqlite3_reset
add esp, 4
push ebx
lea edx, [esp + 0x1c]
push edx
push 0x1b
mov eax, edi
call fcn.100921b0
add esp, 0xc
cmp eax, ebx
jne 0x100a3c02
mov edx, dword [edi + 0xd8]
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
push edx
push str.SELECT__s
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], ebx
call sym.SQLite.Interop.dll_sqlite3_mprintf
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100a3894
mov dword [esp + 0x10], 7
jmp 0x100a3bef
mov eax, dword [edi + 0xc]
push 0
push 0
push 1
push 0xffffffffffffffff
push ebx
lea esi, [esp + 0x2c]
call fcn.10091760
add esp, 0x14
mov esi, eax
push ebx
mov dword [esp + 0x14], esi
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
test esi, esi
jne 0x100a3bef
mov eax, dword [esp + 0x18]
push eax
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x100a3bef
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x100a394e
cmp dword [ebx + 0x14], 0
je 0x100a3907
xor ecx, ecx
cmp cx, word [ebx + 0x54]
jae 0x100a3907
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x100a3902
push eax
call dword [0x100cb414]
add esp, 4
mov ecx, dword [ebx + 0x14]
jmp 0x100a3953
mov eax, dword [ebx]
test eax, eax
je 0x100a394e
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100a391e
push eax
call dword [0x100cb414]
add esp, 4
mov eax, dword [ebx]
mov dword [eax + 0x34], 0x19
mov eax, dword [eax + 0xe8]
test eax, eax
je 0x100a394e
mov ecx, 0x2460
test word [eax + 8], cx
je 0x100a3945
mov esi, eax
call fcn.1002c240
jmp 0x100a394e
mov edx, 1
mov word [eax + 8], dx
mov ecx, 0x100b0be0
call fcn.100213e0
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
test ebx, ebx
je 0x100a39a7
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x50]
test eax, eax
jne 0x100a3977
and ecx, 0xff
mov eax, ecx
jmp 0x100a3991
cmp byte [eax + 0x41], 0
jne 0x100a398c
cmp ecx, 0xc0a
je 0x100a398c
mov eax, dword [eax + 0x38]
and eax, ecx
jmp 0x100a3991
call fcn.100322a0
mov dword [ebx + 0x50], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100a39a7
push eax
call dword [0x100cb41c]
add esp, 4
cmp dword [edi + 0x2c], 0
mov dword [esp + 0x1c], 0
je 0x100a3a17
mov edi, dword [edi + 0x18]
inc edi
mov eax, ebx
call fcn.10036a90
mov ecx, eax
call fcn.100213e0
mov esi, eax
test ebx, ebx
je 0x100a3a10
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x50]
test eax, eax
jne 0x100a39e0
and ecx, 0xff
mov eax, ecx
jmp 0x100a39fa
cmp byte [eax + 0x41], 0
jne 0x100a39f5
cmp ecx, 0xc0a
je 0x100a39f5
mov eax, dword [eax + 0x38]
and eax, ecx
jmp 0x100a39fa
call fcn.100322a0
mov ecx, dword [ebx]
mov dword [ebx + 0x50], eax
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x100a3a10
push eax
call dword [0x100cb41c]
add esp, 4
mov edi, dword [ebp + 8]
mov dword [esp + 0x1c], esi
xor esi, esi
lea esp, [esp]
cmp esi, dword [edi + 0x18]
jge 0x100a38c3
mov edx, dword [edi + 0x20]
cmp byte [esi + edx], 0
jne 0x100a3be3
lea edi, [esi + 1]
push edi
push ebx
call sym.SQLite.Interop.dll_sqlite3_column_text
push edi
push ebx
mov dword [esp + 0x34], eax
call sym.SQLite.Interop.dll_sqlite3_column_bytes
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x24]
mov ecx, dword [ebx]
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], 0
mov ecx, dword [ecx + 0xc]
push ebx
call ecx
mov edi, eax
add esp, 0x20
test edi, edi
jne 0x100a3ab5
mov edx, dword [esp + 0x14]
mov dword [edx], ebx
mov ebx, dword [esp + 0x20]
cmp dword [ebx], 1
jl 0x100a3ab5
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 0x18]
push eax
push ecx
call edx
mov edi, eax
add esp, 8
test edi, edi
je 0x100a3ab5
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x10]
push eax
call ecx
add esp, 4
mov dword [esp + 0x14], 0
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x10], edi
test edi, edi
jne 0x100a3bbc
mov ebx, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [ecx + 0x14]
lea eax, [esp + 0x38]
push eax
push ebx
call edx
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100a3bbc
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push esi
push ecx
mov ecx, dword [esp + 0x34]
push edx
push 0
push eax
push ecx
call fcn.10010e40
xor dword [esp + 0x60], edx
xor dword [esp + 0x5c], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xf8]
mov edi, 1
add esp, 0x1c
cmp eax, edi
mov dword [esp + 0x3c], eax
jle 0x100a3ac9
mov ecx, edx
mov ecx, dword [ecx + 0xfc]
add ecx, 0x18
mov dword [esp + 0x10], ecx
lea ebx, [ebx]
mov ebx, dword [ecx]
cmp ebx, dword [esp + 0x20]
jg 0x100a3bab
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x20]
push esi
push eax
mov eax, dword [esp + 0x34]
push ecx
push edi
push edx
push eax
call fcn.10010e40
xor dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x58]
add esp, 0x1c
xor dword [esp + 0x44], edx
inc edi
add ecx, 0x18
cmp edi, eax
mov dword [esp + 0x10], ecx
jl 0x100a3b70
jmp 0x100a3ac9
test ebx, ebx
je 0x100a3bcd
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x10]
push ebx
call edx
add esp, 4
cmp dword [esp + 0x10], 0x65
mov ebx, dword [esp + 0x18]
mov edi, dword [ebp + 8]
jne 0x100a3be3
mov dword [esp + 0x10], 0
inc esi
cmp dword [esp + 0x10], 0
je 0x100a3a20
mov eax, dword [esp + 0x18]
push eax
call sym.SQLite.Interop.dll_sqlite3_finalize
mov eax, dword [esp + 0x14]
add esp, 4
xor ebx, ebx
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x48], ecx
jne 0x100a3c27
mov edx, dword [esp + 0x44]
cmp dword [esp + 0x4c], edx
jne 0x100a3c27
mov edx, dword [ebp + 0xc]
mov ecx, 1
mov dword [edx], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
pop edi
xor ecx, ecx
pop esi
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret