Function at 0x10061b70
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 0x10061e8c
cmp dword [ebx + 4], 0
je 0x10061e8c
cmp dword [esi + 0x3c], 0
je 0x10061bab
call fcn.10061560
test eax, eax
jne 0x10061e91
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 0x10061c55
mov eax, dword [ebx + 0x10]
mov edx, 2
mov dword [esp + 0x18], eax
test eax, eax
je 0x10061c55
mov edi, eax
mov ebx, 0x102aeb58
mov al, byte [edi]
dec edx
test al, al
je 0x10061c03
movzx ecx, byte [ebx]
movzx eax, al
mov al, byte [eax + 0x102aac18]
cmp al, byte [ecx + 0x102aac18]
jne 0x10061c03
inc edi
inc ebx
test edx, edx
jg 0x10061be1
dec edx
test edx, edx
js 0x10061c1f
movzx eax, byte [ebx]
movzx ecx, byte [eax + 0x102aac18]
movzx eax, byte [edi]
movzx eax, byte [eax + 0x102aac18]
sub eax, ecx
jne 0x10061c4d
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add ecx, 2
call fcn.1005e260
mov ebx, dword [esp + 0xc]
test eax, eax
je 0x10061c51
mov edx, dword [ebx + 4]
push dword [ebx + 8]
lea edx, [edx - 3]
call fcn.1005e190
add esp, 4
jmp 0x10061d42
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 0x10061d18
mov eax, dword [ebx + 0x10]
mov edx, 2
test eax, eax
je 0x10061d18
mov ecx, 0x102aeb58
mov edi, eax
mov dword [esp + 0xc], ecx
nop dword [eax]
mov al, byte [edi]
dec edx
test al, al
je 0x10061cba
movzx ecx, byte [ecx]
movzx eax, al
mov al, byte [eax + 0x102aac18]
cmp al, byte [ecx + 0x102aac18]
mov ecx, dword [esp + 0xc]
jne 0x10061cba
inc ecx
inc edi
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x10061c90
dec edx
test edx, edx
js 0x10061cd6
movzx eax, byte [ecx]
movzx ecx, byte [eax + 0x102aac18]
movzx eax, byte [edi]
movzx eax, byte [eax + 0x102aac18]
sub eax, ecx
jne 0x10061d12
mov edi, dword [ebx + 0x10]
mov edx, dword [esp + 0x18]
add edi, 2
mov ecx, edi
call fcn.1005e260
test eax, eax
je 0x10061d12
push dword [ebx + 8]
mov edx, dword [esp + 0x18]
call fcn.1005e190
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.1005e190
add esp, 4
jmp 0x10061d42
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 0x10061e8c
mov edi, dword [ebx + 0x14]
mov eax, dword [ebx + 8]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x18], eax
test edi, edi
je 0x10061d69
xor eax, eax
test ecx, ecx
jle 0x10061d69
nop dword [eax]
mov byte [eax + edi], 0
inc eax
cmp eax, ecx
jl 0x10061d60
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.10065db0
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x14]
test edi, edi
je 0x10061dac
xor ecx, ecx
test eax, eax
jle 0x10061dac
mov byte [ecx + edi], 0
inc ecx
cmp ecx, eax
jl 0x10061da3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualLock]
mov dword [ebx + 0x14], edi
test edi, edi
je 0x10061e80
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.1005e210
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.1005e210
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 0x10061e71
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 0x10061e4a
nop word [eax + eax]
mov eax, dword [esi + 0x48]
mov cl, byte [0x102d5638]
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 0x10061e30
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 0x10061e8c
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