Function at 0x100614b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, edx
push esi
push edi
mov dword [esp + 0xc], ebx
mov esi, ecx
cmp dword [ebx + 0x10], 0
je 0x100617cc
cmp dword [ebx + 4], 0
je 0x100617cc
cmp dword [esi + 0x3c], 0
je 0x100614eb
call fcn.10060ea0
test eax, eax
jne 0x100617d1
mov eax, dword [esi + 0x10]
lea ecx, [eax + eax]
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], eax
lea eax, [ecx + 3]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + 4]
cmp ecx, eax
jne 0x10061595
mov eax, dword [ebx + 0x10]
mov edx, 2
mov dword [esp + 0x18], eax
test eax, eax
je 0x10061595
mov edi, eax
mov ebx, 0x102b461c
mov al, byte [edi]
dec edx
test al, al
je 0x10061543
movzx ecx, byte [ebx]
movzx eax, al
mov al, byte [eax + 0x102a9778]
cmp al, byte [ecx + 0x102a9778]
jne 0x10061543
inc edi
inc ebx
test edx, edx
jg 0x10061521
dec edx
test edx, edx
js 0x1006155f
movzx eax, byte [ebx]
movzx ecx, byte [eax + 0x102a9778]
movzx eax, byte [edi]
movzx eax, byte [eax + 0x102a9778]
sub eax, ecx
jne 0x1006158d
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add ecx, 2
call fcn.1005dba0
mov ebx, dword [esp + 0xc]
test eax, eax
je 0x10061591
mov edx, dword [ebx + 4]
push dword [ebx + 8]
lea edx, [edx - 3]
call fcn.1005dad0
add esp, 4
jmp 0x10061682
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 0x10]
add eax, edi
add eax, eax
mov dword [esp + 0x18], eax
add eax, 3
cmp ecx, eax
jne 0x10061658
mov eax, dword [ebx + 0x10]
mov edx, 2
test eax, eax
je 0x10061658
mov ecx, 0x102b461c
mov edi, eax
mov dword [esp + 0xc], ecx
nop dword [eax]
mov al, byte [edi]
dec edx
test al, al
je 0x100615fa
movzx ecx, byte [ecx]
movzx eax, al
mov al, byte [eax + 0x102a9778]
cmp al, byte [ecx + 0x102a9778]
mov ecx, dword [esp + 0xc]
jne 0x100615fa
inc ecx
inc edi
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x100615d0
dec edx
test edx, edx
js 0x10061616
movzx eax, byte [ecx]
movzx ecx, byte [eax + 0x102a9778]
movzx eax, byte [edi]
movzx eax, byte [eax + 0x102a9778]
sub eax, ecx
jne 0x10061652
mov edi, dword [ebx + 0x10]
mov edx, dword [esp + 0x18]
add edi, 2
mov ecx, edi
call fcn.1005dba0
test eax, eax
je 0x10061652
push dword [ebx + 8]
mov edx, dword [esp + 0x18]
call fcn.1005dad0
mov eax, dword [esi + 0x10]
add esp, 4
mov edx, dword [esi + 0xc]
add edx, edx
push dword [esi + 0x44]
lea ecx, [edi + eax*2]
call fcn.1005dad0
add esp, 4
jmp 0x10061682
mov edi, dword [esi + 0x10]
mov ecx, dword [ebx + 4]
push dword [ebx + 8]
mov eax, dword [esi + 0x5c]
push edi
push dword [esi + 4]
push dword [esi + 0xc]
mov eax, dword [eax + 0x18]
push dword [esi + 0x44]
push ecx
push dword [ebx + 0x10]
push dword [esi + 0x34]
push dword [esi + 0x60]
call eax
add esp, 0x24
test eax, eax
jne 0x100617cc
mov edi, dword [ebx + 0x14]
mov eax, dword [ebx + 8]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x18], eax
test edi, edi
je 0x100616a9
xor eax, eax
test ecx, ecx
jle 0x100616a9
nop dword [eax]
mov byte [eax + edi], 0
inc eax
cmp eax, ecx
jl 0x100616a0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push edi
call sym.BasicSQLite.dll_sqlite3_free
add esp, 4
mov dword [ebx + 0x14], 0
mov eax, dword [esi + 0x20]
mov dword [esp + 0x14], eax
cdq
push edx
push eax
call fcn.100656f0
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x14]
test edi, edi
je 0x100616ec
xor ecx, ecx
test eax, eax
jle 0x100616ec
mov byte [ecx + edi], 0
inc ecx
cmp ecx, eax
jl 0x100616e3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualLock]
mov dword [ebx + 0x14], edi
test edi, edi
je 0x100617c0
mov ecx, dword [esp + 0x18]
mov byte [edi], 0x78
mov eax, dword [ebx + 0x14]
mov byte [eax + 1], 0x27
mov eax, dword [ebx + 0x14]
mov edx, dword [esi + 0x10]
add eax, 2
push eax
call fcn.1005db50
mov ecx, dword [esi + 0x10]
add esp, 4
mov eax, dword [ebx + 0x14]
mov edx, dword [esi + 0xc]
lea eax, [eax + ecx*2]
mov ecx, dword [esi + 0x44]
add eax, 2
push eax
call fcn.1005db50
mov ecx, dword [esi + 0x20]
add esp, 4
mov eax, dword [ebx + 0x14]
mov byte [ecx + eax - 1], 0x27
test byte [esi + 0x40], 1
je 0x100617b1
push dword [esi + 0xc]
push dword [esi + 0x44]
push dword [esi + 0x48]
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [esi + 0xc]
add esp, 0xc
xor edx, edx
test edi, edi
jle 0x1006178a
nop word [eax + eax]
mov eax, dword [esi + 0x48]
mov cl, byte [0x102d3638]
xor cl, byte [eax + edx]
mov eax, dword [esi + 0x48]
mov byte [edx + eax], cl
inc edx
mov edi, dword [esi + 0xc]
cmp edx, edi
jl 0x10061770
push dword [ebx + 0xc]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x5c]
push eax
push dword [esi + 8]
push edi
push dword [esi + 0x48]
push eax
push dword [ebx + 8]
mov eax, dword [ecx + 0x18]
push dword [esi + 0x34]
push dword [esi + 0x60]
call eax
add esp, 0x24
test eax, eax
jne 0x100617cc
mov dword [ebx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret