Function at 0x100a7440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push dword [ebp + 0x24]
mov dword [ebp - 0x1c], 0
push dword [ebp + 0x20]
cmp dword [esi], eax
push dword [ebp + 0x1c]
mov ebx, dword [esi + 0xc]
sete al
push ebx
mov dword [ebp - 0x18], eax
call fcn.10056560
mov ecx, dword [esi + 0x14]
mov edi, eax
add esp, 0x10
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], ecx
lea eax, [edi*4]
mov esi, dword [eax + ecx]
test esi, esi
je 0x100a7513
mov eax, dword [ebp + 0x1c]
cmp byte [esi + 0x28], al
jne 0x100a750a
mov eax, dword [ebp + 0x24]
cmp dword [esi + 0x14], eax
jne 0x100a7507
mov edx, dword [ebp + 0x20]
lea ecx, [esi + 0x29]
mov edi, eax
sub edi, 4
jb 0x100a74c1
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100a74ca
add ecx, 4
add edx, 4
sub edi, 4
jae 0x100a74b0
cmp edi, 0xfffffffc
je 0x100a7724
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100a7507
cmp edi, 0xfffffffd
je 0x100a7724
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100a7507
cmp edi, 0xfffffffe
je 0x100a7724
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100a7507
cmp edi, 0xffffffff
je 0x100a7724
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x100a7724
mov eax, dword [ebp + 0x1c]
mov esi, dword [esi]
test esi, esi
jne 0x100a7492
mov edi, dword [ebp - 4]
mov ecx, dword [ebp + 0x24]
add ecx, 0x6a
mov dword [ebp - 0x14], ecx
cmp ecx, 0x80
jae 0x100a752b
mov dword [ebp - 0x14], 0x80
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, eax
cmp eax, ebx
jl 0x100a762e
add ebx, ebx
mov dword [ebp - 0xc], ebx
call sym.e_sqlite3.dll_sqlite3_initialize
test eax, eax
jne 0x100a78d8
push eax
lea esi, [ebx*4]
push esi
call fcn.100b3720
mov edi, eax
add esp, 8
mov dword [ebp - 0x20], edi
test edi, edi
je 0x100a78d8
push esi
push 0
push edi
call fcn.100fc010
mov ecx, dword [ebp + 8]
xor eax, eax
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ecx + 0xc], eax
jle 0x100a7609
mov esi, dword [ebp - 0x10]
mov dword [ebp - 8], esi
nop
mov ebx, dword [esi]
test ebx, ebx
je 0x100a75f7
mov eax, dword [ebx]
mov dword [esi], eax
lea eax, [ebx + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100a75a0
sub eax, edx
mov edi, 0xd
add eax, 0xffffffff
js 0x100a75d9
lea esi, [eax + 0x28]
add esi, ebx
nop dword [eax + eax]
movzx ecx, byte [esi]
lea edx, [edi*8]
xor edx, ecx
lea esi, [esi - 1]
xor edi, edx
sub eax, 1
jns 0x100a75c0
mov esi, dword [ebp - 8]
mov eax, edi
xor edx, edx
div dword [ebp - 0xc]
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + edx*4]
mov dword [ebx], eax
mov dword [edi + edx*4], ebx
mov ebx, dword [esi]
test ebx, ebx
jne 0x100a7596
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
inc eax
add esi, 4
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
cmp eax, dword [ecx + 0xc]
jl 0x100a7590
mov ebx, dword [ebp - 0xc]
push dword [ebp - 0x10]
call sym.e_sqlite3.dll_sqlite3_free
push dword [ebp + 0x24]
mov eax, dword [ebp + 8]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
mov dword [eax + 0xc], ebx
push ebx
mov dword [eax + 0x14], edi
call fcn.10056560
add esp, 0x14
mov edi, eax
call sym.e_sqlite3.dll_sqlite3_initialize
test eax, eax
jne 0x100a78d8
mov ebx, dword [ebp - 0x14]
push eax
push ebx
call fcn.100b3720
mov esi, eax
add esp, 8
test esi, esi
je 0x100a78d8
mov eax, dword [ebp + 0x1c]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
movq qword [esi + 0x20], xmm0
mov dword [esi + 8], ebx
mov ebx, dword [ebp + 0x24]
push ebx
push dword [ebp + 0x20]
mov byte [esi + 0x28], al
lea eax, [esi + 0x29]
push eax
call fcn.100fba90
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + 0x2a]
mov dword [esi + 0x14], ebx
mov byte [esi + ebx + 0x29], 0
mov ebx, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + edi*4]
mov dword [esi], eax
mov eax, dword [ebx + 0x14]
mov dword [eax + edi*4], esi
inc dword [ebx + 8]
mov edi, dword [ebp + 0x10]
mov eax, dword [esi + 0x10]
push edi
push ecx
add eax, esi
push eax
call fcn.100a96d0
add dword [esi + 0x10], eax
add esp, 0x18
mov eax, dword [esi + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edi
mov dword [esi + 0xc], eax
cmp dword [ebx], 1
je 0x100a76d7
inc eax
mov dword [esi + 0x10], eax
mov eax, dword [ebx]
neg eax
sbb eax, eax
mov word [esi + 0x1a], ax
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
cmp edx, ecx
jne 0x100a76e9
cmp edi, eax
je 0x100a7814
push 0
mov ebx, edx
sub ebx, ecx
push esi
push dword [ebp + 8]
sbb edi, eax
call fcn.100563c0
mov ecx, dword [esi + 0x10]
add esp, 0xc
add ecx, esi
test edi, edi
ja 0x100a77d0
jb 0x100a7715
cmp ebx, 0x7f
ja 0x100a77ab
and bl, 0x7f
mov eax, 1
mov byte [ecx], bl
jmp 0x100a77db
mov ecx, dword [esi + 8]
mov eax, ecx
sub eax, dword [esi + 0x10]
cmp eax, 0x16
jge 0x100a7795
lea ebx, [ecx + ecx]
call sym.e_sqlite3.dll_sqlite3_initialize
test eax, eax
jne 0x100a78d8
mov eax, ebx
cdq
push edx
push eax
push esi
call fcn.100bc6c0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100a78d8
mov ecx, dword [ebp - 4]
mov dword [edi + 8], ebx
mov ebx, dword [ebp + 8]
lea eax, [ecx*4]
mov edx, dword [ebx + 0x14]
add edx, eax
mov ecx, dword [edx]
cmp ecx, esi
je 0x100a777e
mov eax, dword [ecx]
mov edx, ecx
mov ecx, eax
cmp eax, esi
jne 0x100a7774
mov esi, edi
mov dword [edx], edi
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 0x10]
neg eax
mov dword [ebp - 0x1c], eax
jmp 0x100a76d7
mov eax, dword [esi + 0x10]
mov ebx, dword [ebp + 8]
neg eax
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x100a76d7
test edi, edi
ja 0x100a77d0
jb 0x100a77b9
cmp ebx, 0x3fff
ja 0x100a77d0
mov eax, ebx
shrd eax, edi, 7
or al, 0x80
and bl, 0x7f
mov byte [ecx], al
mov eax, 2
mov byte [ecx + 1], bl
jmp 0x100a77db
push edi
push ebx
push ecx
call fcn.1005e3c0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x24], ecx
mov dword [esi + 0xc], eax
cmp dword [ebx], 1
mov dword [ebp - 0x18], 1
je 0x100a7814
inc eax
mov dword [esi + 0x10], eax
mov eax, dword [ebx]
neg eax
mov dword [esi + 0x1c], 0
sbb eax, eax
mov word [esi + 0x1a], ax
mov edx, dword [ebp + 0x14]
test edx, edx
js 0x100a78c0
mov ecx, dword [ebx]
cmp ecx, 1
jne 0x100a783d
mov eax, dword [esi + 0x10]
add eax, dword [ebp - 0x1c]
mov byte [esi + 0x19], cl
mov ecx, dword [ebx + 4]
pop edi
pop esi
pop ebx
add dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
movsx eax, word [esi + 0x1a]
cmp edx, eax
je 0x100a7878
movzx edi, dx
test ecx, ecx
jne 0x100a78ba
mov ecx, dword [esi + 0x10]
mov eax, edx
cdq
push edx
push eax
mov byte [esi + ecx], 1
inc dword [esi + 0x10]
mov ecx, dword [esi + 0x10]
lea eax, [ecx + esi]
push eax
call fcn.100a96d0
add esp, 0xc
mov word [esi + 0x1a], di
add dword [esi + 0x10], eax
mov dword [esi + 0x1c], 0
cmp dword [ebp - 0x18], 0
je 0x100a78c4
mov edx, dword [ebp + 0x18]
mov dword [ebp + 0x14], edx
mov eax, edx
sub eax, dword [esi + 0x1c]
add eax, 2
cdq
push edx
push eax
mov eax, dword [esi + 0x10]
add eax, esi
push eax
call fcn.100a96d0
add dword [esi + 0x10], eax
add esp, 0xc
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x1c], eax
mov ecx, dword [ebx + 4]
mov eax, dword [esi + 0x10]
add eax, dword [ebp - 0x1c]
pop edi
add dword [ecx], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov word [esi + 0x1a], di
jmp 0x100a7884
mov byte [esi + 0x18], 1
mov ecx, dword [ebx + 4]
mov eax, dword [esi + 0x10]
add eax, dword [ebp - 0x1c]
pop edi
add dword [ecx], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret