Function at 0x101fd6c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push ebx
lea eax, [esp + 0x18]
push eax
push 0x1b
mov eax, esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x20], ebx
call fcn.10180040
mov edi, eax
add esp, 0xc
mov dword [esp + 0x1c], edi
cmp edi, ebx
jne 0x101fda8e
mov eax, dword [esi + 0x118]
mov ebx, dword [esp + 0x14]
cdq
push edx
push eax
push 1
push ebx
call sym.SQLite.Interop.dll_sqlite3_bind_int64
mov eax, dword [esi + 0x100]
cdq
push edx
push eax
push 2
push ebx
call sym.SQLite.Interop.dll_sqlite3_bind_int64
add esp, 0x20
mov edi, edi
push ebx
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x101fd788
push 0
push ebx
call sym.SQLite.Interop.dll_sqlite3_column_int
xor ebx, ebx
add esp, 8
mov dword [esp + 0x2c], eax
cmp dword [esi + 0x100], ebx
jle 0x101fd780
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push edx
push esi
call fcn.101ddab0
xor dword [esp + 0x58], eax
xor dword [esp + 0x5c], edx
inc ebx
add esp, 0x10
cmp ebx, dword [esi + 0x100]
jl 0x101fd757
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
test edi, edi
je 0x101fd730
push ebx
call sym.SQLite.Interop.dll_sqlite3_reset
add esp, 4
test edi, edi
jne 0x101fda7a
mov edi, eax
test eax, eax
jne 0x101fda7a
mov edx, dword [esi + 0xe0]
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edx
push str.SELECT__s
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], edi
call sym.SQLite.Interop.dll_sqlite3_mprintf
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x101fd7d2
lea edi, [eax + 7]
jmp 0x101fda6d
mov eax, dword [esi + 0xc]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x80
push 0xffffffffffffffff
push ebx
push eax
call fcn.101fbc70
add esp, 0x1c
push ebx
mov edi, eax
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
test edi, edi
jne 0x101fda6d
mov edx, dword [esp + 0x14]
push edx
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x101fda6d
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x101fd858
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x101fd833
push eax
call dword [0x10292478]
add esp, 4
mov edx, dword [ebx + 0x78]
test edx, edx
je 0x101fd845
xor ecx, ecx
cmp cx, word [ebx + 0x90]
jb 0x101fd85d
mov ebx, dword [ebx]
mov eax, 0x19
mov dword [ebx + 0x40], eax
call fcn.10143850
mov ebx, dword [esp + 0x14]
mov edx, 0x1026de90
call fcn.1013bb70
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
test ebx, ebx
je 0x101fd8a3
mov eax, dword [ebx]
cmp byte [eax + 0x51], 0
mov ecx, dword [ebx + 0x28]
jne 0x101fd888
cmp ecx, 0xc0a
je 0x101fd888
mov eax, dword [eax + 0x44]
and eax, ecx
jmp 0x101fd88d
call fcn.10144890
mov edx, dword [ebx]
mov dword [ebx + 0x28], eax
mov eax, dword [edx + 0xc]
test eax, eax
je 0x101fd8a3
push eax
call dword [0x10292480]
add esp, 4
cmp dword [esi + 0x2c], 0
mov dword [esp + 0x18], 0
je 0x101fd8c3
mov eax, dword [esi + 0x18]
inc eax
push eax
push ebx
call sym.SQLite.Interop.dll_sqlite3_column_int
add esp, 8
mov dword [esp + 0x18], eax
xor ebx, ebx
cmp ebx, dword [esi + 0x18]
jge 0x101fd802
mov ecx, dword [esi + 0x20]
cmp byte [ebx + ecx], 0
jne 0x101fda64
mov eax, dword [esp + 0x14]
lea edx, [ebx + 1]
push edx
push eax
call sym.SQLite.Interop.dll_sqlite3_column_text
mov esi, dword [esi + 0x24]
mov ecx, dword [esi]
lea edx, [esp + 0x18]
push edx
push 0xffffffffffffffff
push eax
mov dword [esp + 0x24], 0
mov eax, dword [ecx + 0xc]
push esi
mov dword [esp + 0x40], ecx
call eax
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x101fd94d
mov ecx, dword [esp + 0x10]
mov dword [ecx], esi
mov esi, dword [esp + 0x28]
cmp dword [esi], 1
jl 0x101fd94d
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x18]
push edx
push eax
call ecx
mov edi, eax
add esp, 8
test edi, edi
je 0x101fd94d
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x10]
push edx
call eax
add esp, 4
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x10]
mov dword [esp + 0x38], esi
test edi, edi
jne 0x101fda49
mov esi, dword [esp + 0x38]
xor eax, eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [eax + 0x14]
lea edx, [esp + 0x34]
push edx
push esi
call ecx
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x101fda49
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x18]
push edi
push ebx
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x34]
push 0
push ecx
push edx
push eax
call fcn.101194a0
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x100]
xor dword [esp + 0x60], eax
xor dword [esp + 0x64], edx
mov esi, 1
add esp, 0x20
mov dword [esp + 0x3c], ecx
cmp ecx, esi
jle 0x101fd95d
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x104]
add edx, 0x18
mov dword [esp + 0x28], edx
mov edi, edi
mov eax, dword [edx]
cmp eax, dword [esp + 0x1c]
jg 0x101fda38
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push edi
push ebx
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x34]
push esi
push ecx
push eax
push edx
call fcn.101194a0
xor dword [esp + 0x60], eax
mov ecx, dword [esp + 0x5c]
add esp, 0x20
xor dword [esp + 0x44], edx
mov edx, dword [esp + 0x28]
inc esi
add edx, 0x18
mov dword [esp + 0x28], edx
cmp esi, ecx
jl 0x101fda00
jmp 0x101fd95d
test esi, esi
je 0x101fda5a
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x10]
push esi
call ecx
add esp, 4
mov esi, dword [ebp + 8]
cmp edi, 0x65
jne 0x101fda64
xor edi, edi
inc ebx
test edi, edi
je 0x101fd8c5
mov edx, dword [esp + 0x14]
push edx
call sym.SQLite.Interop.dll_sqlite3_finalize
add esp, 4
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x48], eax
jne 0x101fdaa1
mov ecx, dword [esp + 0x44]
cmp dword [esp + 0x4c], ecx
jne 0x101fdaa1
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 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