Function at 0x100e2390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov ecx, dword [ebp + 0x24]
push ebx
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], eax
mov dword [esp + 0x18], 0
sete al
mov edx, 0xd
mov dword [esp + 0x14], eax
lea eax, [ecx - 1]
test eax, eax
js 0x100e23d6
mov esi, dword [ebp + 0x20]
movzx esi, byte [eax + esi]
lea ebx, [edx*8]
xor esi, ebx
xor edx, esi
dec eax
jns 0x100e23c1
movzx esi, byte [ebp + 0x1c]
lea eax, [edx*8]
xor eax, esi
xor eax, edx
xor edx, edx
div dword [edi + 0xc]
mov dword [esp + 0x1c], esi
lea eax, [edx*4]
mov dword [esp + 0x10], edx
mov edx, dword [edi + 0x14]
mov ebx, dword [eax + edx]
mov dword [esp + 0x20], eax
test ebx, ebx
je 0x100e246f
mov al, byte [ebp + 0x1c]
cmp byte [ebx + 0x28], al
jne 0x100e2469
cmp dword [ebx + 0x14], ecx
jne 0x100e2469
mov esi, dword [ebp + 0x20]
mov eax, ecx
lea edi, [ebx + 0x29]
cmp ecx, 4
jb 0x100e2435
mov edx, dword [edi]
cmp edx, dword [esi]
jne 0x100e2469
sub eax, 4
add esi, 4
add edi, 4
cmp eax, 4
jae 0x100e2421
test eax, eax
je 0x100e25fc
mov dl, byte [esi]
cmp dl, byte [edi]
jne 0x100e2469
cmp eax, 1
jbe 0x100e25fc
mov dl, byte [esi + 1]
cmp dl, byte [edi + 1]
jne 0x100e2469
cmp eax, 2
jbe 0x100e25fc
mov al, byte [esi + 2]
cmp al, byte [edi + 2]
je 0x100e25fc
mov ebx, dword [ebx]
test ebx, ebx
jne 0x100e2407
xor esi, esi
lea edi, [ecx + 0x6a]
jg 0x100e2487
jl 0x100e2480
cmp edi, 0x80
jae 0x100e2487
mov edi, pe_nt_image_headers32
xor esi, esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
add ecx, ecx
cmp ecx, dword [eax + 0xc]
jl 0x100e24de
push eax
call fcn.100e2140
add esp, 4
test eax, eax
jne 0x100e2853
lea ecx, [eax + 0xd]
mov eax, dword [ebp + 0x24]
dec eax
js 0x100e24c5
mov edi, edi
mov edx, dword [ebp + 0x20]
movzx edx, byte [eax + edx]
lea ebx, [ecx*8]
xor edx, ebx
xor ecx, edx
dec eax
jns 0x100e24b0
lea eax, [ecx*8]
xor eax, dword [esp + 0x1c]
xor edx, edx
xor eax, ecx
mov ecx, dword [ebp + 8]
div dword [ecx + 0xc]
mov dword [esp + 0x10], edx
call sym.MyService.dll_sqlite3_initialize
test eax, eax
jne 0x100e2503
mov edx, edi
or edx, esi
je 0x100e24fb
push esi
push edi
call fcn.1000a580
add esp, 8
mov esi, eax
jmp 0x100e24fd
xor esi, esi
mov ebx, esi
test esi, esi
jne 0x100e250f
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x20]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov al, byte [ebp + 0x1c]
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x24]
push edi
push ecx
lea edx, [esi + 0x29]
push edx
mov byte [esi + 0x28], al
call fcn.101025e0
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x14], edi
mov byte [esi + edi + 0x29], 0
add eax, 0x2a
mov dword [esi + 0x10], eax
mov edx, dword [ecx + 0x14]
mov eax, dword [esp + 0x1c]
mov edx, dword [edx + eax*4]
lea edi, [esi + 0x10]
mov dword [esi], edx
mov edx, dword [ecx + 0x14]
mov dword [edx + eax*4], esi
inc dword [ecx + 8]
mov eax, dword [edi]
mov edx, dword [ebp + 0x10]
add esp, 0xc
add eax, esi
test edx, edx
ja 0x100e2599
jb 0x100e2587
cmp dword [ebp + 0xc], 0x7f
ja 0x100e2596
mov dl, byte [ebp + 0xc]
and dl, 0x7f
mov byte [eax], dl
mov eax, 1
jmp 0x100e25d5
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
test edx, edx
ja 0x100e25c6
jb 0x100e25aa
cmp ecx, 0x3fff
ja 0x100e25c6
shrd ecx, edx, 7
or cl, 0x80
mov byte [eax], cl
mov cl, byte [ebp + 0xc]
shr edx, 7
and cl, 0x7f
mov byte [eax + 1], cl
mov eax, 2
jmp 0x100e25d2
push edx
push ecx
mov ecx, eax
call fcn.1000f8b0
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add dword [edi], eax
mov eax, dword [edi]
mov dword [esi + 0x20], edx
mov edx, dword [ebp + 0x10]
mov dword [esi + 0x24], edx
mov dword [esi + 0xc], eax
cmp dword [ecx], 1
je 0x100e265e
inc eax
mov dword [edi], eax
mov eax, dword [ecx]
neg eax
sbb eax, eax
mov word [esi + 0x1a], ax
jmp 0x100e265e
mov eax, dword [ebx + 8]
mov ecx, eax
sub ecx, dword [ebx + 0x10]
cmp ecx, 0x16
jge 0x100e264f
add eax, eax
cdq
mov esi, eax
mov edi, edx
call sym.MyService.dll_sqlite3_initialize
test eax, eax
jne 0x100e2503
push edi
push esi
push ebx
call fcn.1000a850
add esp, 0xc
test eax, eax
je 0x100e2503
mov edx, dword [ebp + 8]
mov dword [eax + 8], esi
mov ecx, dword [edx + 0x14]
add ecx, dword [esp + 0x20]
mov edx, dword [ecx]
cmp edx, ebx
je 0x100e264b
mov ecx, edx
mov edx, dword [ecx]
cmp edx, ebx
jne 0x100e2643
mov dword [ecx], eax
mov ebx, eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp + 8]
lea edi, [ebx + 0x10]
neg eax
mov dword [esp + 0x18], eax
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
cmp dword [ebp + 0xc], esi
jne 0x100e2672
cmp dword [ebp + 0x10], edx
je 0x100e2711
mov eax, dword [ebp + 0xc]
sub eax, esi
mov esi, dword [ebp + 0x10]
push 0
push ecx
mov dword [esp + 0x28], eax
sbb esi, edx
call fcn.100e22a0
mov ecx, dword [edi]
mov eax, dword [esp + 0x28]
add esp, 8
add ecx, ebx
test esi, esi
ja 0x100e26d0
jb 0x100e269e
cmp eax, 0x7f
ja 0x100e26a9
and al, 0x7f
mov byte [ecx], al
mov eax, 1
jmp 0x100e26da
test esi, esi
ja 0x100e26d0
jb 0x100e26b6
cmp eax, 0x3fff
ja 0x100e26d0
mov edx, eax
shrd edx, esi, 7
or dl, 0x80
shr esi, 7
and al, 0x7f
mov byte [ecx + 1], al
mov byte [ecx], dl
mov eax, 2
jmp 0x100e26da
push esi
push eax
call fcn.1000f8b0
add esp, 8
mov ecx, dword [ebp + 0xc]
add dword [edi], eax
mov eax, dword [edi]
mov edx, dword [ebp + 0x10]
mov dword [ebx + 0x20], ecx
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x24], edx
mov dword [ebx + 0xc], eax
cmp dword [ecx], 1
mov dword [esp + 0x14], 1
je 0x100e2711
inc eax
mov dword [edi], eax
mov eax, dword [ecx]
neg eax
sbb eax, eax
mov word [ebx + 0x1a], ax
mov dword [ebx + 0x1c], 0
mov eax, dword [ebp + 0x14]
test eax, eax
js 0x100e2842
mov edx, dword [ecx]
cmp edx, 1
jne 0x100e273a
mov byte [ebx + 0x19], dl
mov edx, dword [edi]
add edx, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
add dword [ecx], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx esi, word [ebx + 0x1a]
cmp eax, esi
je 0x100e2776
test edx, edx
jne 0x100e27c9
mov ecx, dword [edi]
cdq
mov byte [ebx + ecx], 1
inc dword [edi]
mov esi, dword [edi]
push edx
push eax
lea esi, [esi + ebx]
call fcn.100f8420
mov dx, word [ebp + 0x14]
mov ecx, dword [ebp + 8]
add esp, 8
add dword [edi], eax
mov word [ebx + 0x1a], dx
mov dword [ebx + 0x1c], 0
cmp dword [esp + 0x14], 0
je 0x100e2846
mov eax, dword [ebp + 0x18]
sub eax, dword [ebx + 0x1c]
add eax, 2
cdq
mov esi, edx
mov edx, dword [edi]
add edx, ebx
mov dword [esp + 0x20], edx
test esi, esi
ja 0x100e2817
jb 0x100e27a4
cmp eax, 0x7f
ja 0x100e27d2
and al, 0x7f
mov byte [edx], al
mov eax, 1
add dword [edi], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [edi]
add edx, dword [esp + 0x18]
mov dword [ebx + 0x1c], eax
mov ecx, dword [ecx + 4]
add dword [ecx], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp + 0x18], eax
mov word [ebx + 0x1a], ax
jmp 0x100e2781
test esi, esi
ja 0x100e2817
jb 0x100e27df
cmp eax, 0x3fff
ja 0x100e2817
mov edx, eax
shrd edx, esi, 7
and al, 0x7f
shr esi, 7
mov esi, dword [esp + 0x20]
mov byte [esi + 1], al
or dl, 0x80
mov byte [esi], dl
mov eax, 2
add dword [edi], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [edi]
add edx, dword [esp + 0x18]
mov dword [ebx + 0x1c], eax
mov ecx, dword [ecx + 4]
add dword [ecx], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push eax
mov ecx, edx
call fcn.1000f8b0
add dword [edi], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [edi]
mov ecx, dword [ebp + 8]
add edx, dword [esp + 0x20]
mov dword [ebx + 0x1c], eax
mov ecx, dword [ecx + 4]
add dword [ecx], edx
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x18], 1
mov edx, dword [edi]
add edx, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
add dword [ecx], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret