Function at 0x1005e010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
push edi
xorps xmm0, xmm0
mov dword [esp + 0x4c], edx
lea eax, [esp + 0x28]
movlpd qword [esp + 0x50], xmm0
mov edi, ecx
movlpd qword [esp + 0x58], xmm0
push 0
push eax
mov edx, 0x1b
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], 0
call fcn.10066930
mov esi, eax
add esp, 8
mov dword [esp + 0x30], esi
test esi, esi
jne 0x1005e445
mov eax, dword [edi + 0x118]
mov ebx, dword [esp + 0x28]
cdq
push edx
push eax
push 1
push ebx
call sym.SQLite.Interop.dll_SI46481015c7f49c68
mov eax, dword [edi + 0x100]
cdq
push edx
push eax
push 2
push ebx
call sym.SQLite.Interop.dll_SI46481015c7f49c68
mov eax, dword [esp + 0x74]
add esp, 0x20
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x34], eax
push ebx
call sym.SQLite.Interop.dll_SI9c6d7cd7b7d38055
add esp, 4
cmp eax, 0x64
jne 0x1005e0f4
push 0
push ebx
call sym.SQLite.Interop.dll_SIbff6307869d58daf
mov ebx, eax
xor edi, edi
mov eax, dword [esp + 0x18]
add esp, 8
cmp dword [eax + 0x100], edi
jle 0x1005e0ec
lea ecx, [esp + 0x30]
mov edx, ebx
push ecx
push edi
mov ecx, eax
call fcn.1005e460
xor dword [esp + 0x3c], eax
inc edi
mov eax, dword [esp + 0x18]
add esp, 8
xor dword [esp + 0x38], edx
cmp edi, dword [eax + 0x100]
jl 0x1005e0c1
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
test esi, esi
je 0x1005e098
push ebx
call fcn.100e6880
add esp, 4
test esi, esi
jne 0x1005e41e
mov esi, eax
test eax, eax
jne 0x1005e41e
mov esi, dword [esp + 0x10]
mov dword [esp + 0x28], 0
mov eax, dword [esi + 0x24]
push dword [esi + 0xe0]
push str.SELECT__s
mov eax, dword [eax]
mov dword [esp + 0x50], eax
call sym.SQLite.Interop.dll_SI1c7a7970970b9619
mov edi, eax
add esp, 8
test edi, edi
jne 0x1005e159
push dword [esp + 0x28]
mov edi, dword [esp + 0x60]
lea esi, [eax + 7]
mov ebx, dword [esp + 0x5c]
call fcn.100e6950
add esp, 4
jmp 0x1005e426
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x28]
push 0
push eax
push 0
push 0x80
push 0xffffffffffffffff
mov edx, edi
call fcn.100a7a30
add esp, 0x14
mov esi, eax
push edi
call sym.SQLite.Interop.dll_SIfc350ae509dc2b53
mov edi, dword [esp + 0x60]
add esp, 4
mov ebx, dword [esp + 0x58]
test esi, esi
jne 0x1005e410
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x10]
push edi
call sym.SQLite.Interop.dll_SI9c6d7cd7b7d38055
add esp, 4
cmp eax, 0x64
jne 0x1005e408
test edi, edi
je 0x1005e1f2
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1005e1ca
push eax
call dword [0x10142318]
add esp, 4
mov ecx, dword [edi + 0x80]
test ecx, ecx
je 0x1005e1df
xor eax, eax
cmp ax, word [edi + 0x98]
jb 0x1005e1f7
mov ecx, dword [edi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.1010e180
mov ecx, 0x10137230
call fcn.100ee0b0
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edx
test edi, edi
je 0x1005e236
mov ecx, dword [edi]
mov edx, dword [edi + 0x28]
cmp byte [ecx + 0x53], 0
jne 0x1005e21b
test edx, edx
jne 0x1005e21b
xor eax, eax
jmp 0x1005e220
call fcn.10111120
mov dword [edi + 0x28], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1005e236
push eax
call dword [0x10142320]
add esp, 4
cmp dword [ebx + 0x2c], 0
mov dword [esp + 0x20], 0
je 0x1005e256
mov eax, dword [ebx + 0x18]
inc eax
push eax
push edi
call sym.SQLite.Interop.dll_SIbff6307869d58daf
add esp, 8
mov dword [esp + 0x20], eax
xor ecx, ecx
mov dword [esp + 0x1c], ecx
nop dword [eax]
cmp ecx, dword [ebx + 0x18]
jge 0x1005e1a1
mov eax, dword [ebx + 0x20]
cmp byte [ecx + eax], 0
jne 0x1005e3fb
lea eax, [ecx + 1]
push eax
push edi
call fcn.100e4de0
mov ebx, dword [ebx + 0x24]
lea ecx, [esp + 0x14]
push ecx
push 0xffffffffffffffff
push eax
mov edi, dword [ebx]
mov dword [esp + 0x20], 0
push ebx
mov eax, dword [edi + 0xc]
call eax
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x1005e2d9
mov eax, dword [esp + 0xc]
mov dword [eax], ebx
cmp dword [edi], 1
jl 0x1005e2d9
push dword [esp + 0x20]
mov eax, dword [edi + 0x18]
push dword [esp + 0x10]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x1005e2d9
push dword [esp + 0xc]
mov eax, dword [edi + 0x10]
call eax
add esp, 4
xor ecx, ecx
mov dword [esp + 0xc], ecx
jmp 0x1005e2dd
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x24], ecx
test esi, esi
jne 0x1005e3d2
mov edi, dword [esp + 0x1c]
nop dword [eax]
mov ebx, dword [esp + 0x48]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x30], 0
push eax
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x5c], 0
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x40], 0
push eax
mov eax, dword [ebx + 0x14]
push ecx
call eax
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x1005e3d6
push dword [esp + 0x30]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
push edi
push dword [esp + 0x44]
push dword [esp + 0x4c]
push eax
push dword [esp + 0x34]
call fcn.1005e630
xor dword [esp + 0x30], eax
mov esi, 1
mov eax, dword [esp + 0x28]
add esp, 0x18
xor dword [esp + 0x14], edx
mov ecx, dword [esp + 0x24]
mov ebx, dword [eax + 0x100]
cmp ebx, esi
jle 0x1005e2f0
mov edi, dword [eax + 0x104]
add edi, 0x18
nop
mov edx, dword [edi]
cmp edx, dword [esp + 0x2c]
jg 0x1005e3c1
push dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
push dword [esp + 0x20]
push dword [esp + 0x44]
push dword [esp + 0x4c]
push esi
push dword [esp + 0x34]
call fcn.1005e630
xor dword [esp + 0x30], eax
add esp, 0x18
xor dword [esp + 0x14], edx
inc esi
add edi, 0x18
cmp esi, ebx
jl 0x1005e390
mov ecx, dword [esp + 0x24]
jmp 0x1005e2e9
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1005e3e7
push eax
mov eax, dword [ebx + 0x10]
call eax
add esp, 4
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov ebx, dword [esp + 0x10]
cmp esi, 0x65
mov edi, dword [esp + 0x28]
cmove esi, eax
inc ecx
mov dword [esp + 0x1c], ecx
test esi, esi
je 0x1005e260
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
push dword [esp + 0x28]
call fcn.100e6950
add esp, 4
jmp 0x1005e426
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
cmp dword [esp + 0x34], ebx
jne 0x1005e432
cmp dword [esp + 0x38], edi
je 0x1005e445
mov eax, dword [esp + 0x4c]
mov dword [eax], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x4c]
pop edi
mov dword [eax], 1
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret