Function at 0x100be4f0
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]
push edi
xor edi, edi
push edi
lea eax, [esp + 0x18]
push eax
push 0x1b
mov eax, esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x20], edi
call fcn.100b67d0
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x1c], ebx
cmp ebx, edi
jne 0x100be844
mov eax, dword [esi + 0x118]
mov edi, dword [esp + 0x14]
cdq
push edx
push eax
push 1
push edi
call sym.MyService.dll_sqlite3_bind_int64
mov eax, dword [esi + 0x100]
cdq
push edx
push eax
push 2
push edi
call sym.MyService.dll_sqlite3_bind_int64
add esp, 0x20
mov edi, edi
push edi
call sym.MyService.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x100be5b8
push 0
push edi
call sym.MyService.dll_sqlite3_column_int
xor edi, edi
add esp, 8
mov dword [esp + 0x2c], eax
cmp dword [esi + 0x100], edi
jle 0x100be5b0
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
push ecx
push edi
push edx
push esi
call fcn.100be300
xor dword [esp + 0x58], eax
xor dword [esp + 0x5c], edx
inc edi
add esp, 0x10
cmp edi, dword [esi + 0x100]
jl 0x100be587
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
test ebx, ebx
je 0x100be560
push edi
call sym.MyService.dll_sqlite3_reset
add esp, 4
test ebx, ebx
jne 0x100be830
mov ebx, eax
test eax, eax
jne 0x100be830
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], ebx
call sym.MyService.dll_sqlite3_mprintf
mov edi, eax
add esp, 8
test edi, edi
jne 0x100be602
lea ebx, [eax + 7]
jmp 0x100be823
mov eax, dword [esi + 0xc]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push pe_nt_image_headers32
push 0xffffffffffffffff
push edi
push eax
call fcn.10074b10
add esp, 0x1c
push edi
mov ebx, eax
call sym.MyService.dll_sqlite3_free
add esp, 4
test ebx, ebx
jne 0x100be823
mov edx, dword [esp + 0x14]
push edx
call sym.MyService.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x100be823
mov edi, dword [esp + 0x14]
push 0
push edi
call sym.MyService.dll_sqlite3_column_int64
add esp, 8
cmp dword [esi + 0x2c], 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x18], 0
je 0x100be67f
mov eax, dword [esi + 0x18]
inc eax
push eax
push edi
call sym.MyService.dll_sqlite3_column_int
add esp, 8
mov dword [esp + 0x18], eax
xor edi, edi
cmp edi, dword [esi + 0x18]
jge 0x100be632
mov ecx, dword [esi + 0x20]
cmp byte [edi + ecx], 0
jne 0x100be81a
mov eax, dword [esp + 0x14]
lea edx, [edi + 1]
push edx
push eax
call sym.MyService.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 ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x100be705
mov ecx, dword [esp + 0x10]
mov dword [ecx], esi
mov esi, dword [esp + 0x28]
cmp dword [esi], 1
jl 0x100be705
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x18]
push edx
push eax
call ecx
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100be705
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 ebx, ebx
jne 0x100be7ff
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 ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x100be7ff
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x18]
push ebx
push edi
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x34]
push 0
push ecx
push edx
push eax
call fcn.100be240
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 0x100be715
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x104]
add edx, 0x18
mov dword [esp + 0x28], edx
mov eax, dword [edx]
cmp eax, dword [esp + 0x1c]
jg 0x100be7ee
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push ebx
push edi
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x34]
push esi
push ecx
push eax
push edx
call fcn.100be240
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 0x100be7b6
jmp 0x100be715
test esi, esi
je 0x100be810
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x10]
push esi
call ecx
add esp, 4
mov esi, dword [ebp + 8]
cmp ebx, 0x65
jne 0x100be81a
xor ebx, ebx
inc edi
test ebx, ebx
je 0x100be681
mov edx, dword [esp + 0x14]
push edx
call sym.MyService.dll_sqlite3_finalize
add esp, 4
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x48], eax
jne 0x100be857
mov ecx, dword [esp + 0x44]
cmp dword [esp + 0x4c], ecx
jne 0x100be857
mov edx, dword [ebp + 0xc]
mov eax, 1
mov dword [edx], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
xor eax, eax
pop edi
mov dword [ecx], eax
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret