Function at 0x688ff417
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x8c], eax
call sym.sqlite.dll_sqlite3_initialize
mov dword [ebp - 0x60], eax
test eax, eax
jne 0x688ff801
mov eax, 5
call fcn.688c8519
mov dword [esp], eax
mov dword [ebp - 0x90], eax
call sym.sqlite.dll_sqlite3_mutex_enter
cmp dword [ebp - 0x5c], 0
jle 0x688ff469
cmp dword [ebp - 0x8c], 0
jne 0x688ff476
xor ecx, ecx
mov dword [0x68abf220], ecx
jmp 0x688ff51e
cmp dword [0x68abf220], 0
mov ebx, 0x68abf220
jne 0x688ff4f3
xor edx, edx
mov esi, str.expand_32_byte_kthstndrd
mov edi, ebx
mov dword [esp], edx
call sym.sqlite.dll_sqlite3_vfs_find
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
test eax, eax
jne 0x688ff4a9
mov ecx, 0xb
rep stosd dword es:[edi], eax
jmp 0x688ff4db
mov ebx, dword [0x68a2bdf4]
test ebx, ebx
je 0x688ff4c5
mov eax, dword [ebp - 0x60]
mov ecx, 0xb
rep stosd dword es:[edi], eax
mov dword [0x68abf230], ebx
jmp 0x688ff4db
mov dword [esp + 8], 0x68abf230
mov dword [esp + 4], 0x2c
mov dword [esp], eax
call dword [eax + 0x38]
mov eax, dword [0x68abf250]
mov byte [0x68abf2a0], 0
mov dword [0x68abf25c], eax
xor eax, eax
mov dword [0x68abf250], eax
movzx ecx, byte [0x68abf2a0]
mov edi, dword [ebp - 0x5c]
cmp ecx, edi
jl 0x688ff536
mov eax, edi
sub ecx, edi
mov edi, dword [ebp - 0x8c]
lea esi, [ecx + 0x68abf260]
mov ecx, eax
mov al, byte [ebp - 0x5c]
rep movsb byte es:[edi], byte [esi]
sub byte [0x68abf2a0], al
mov eax, dword [ebp - 0x90]
mov dword [ebp + 8], eax
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
jmp sym.sqlite.dll_sqlite3_mutex_leave
test cl, cl
je 0x688ff557
mov edi, dword [ebp - 0x8c]
mov esi, 0x68abf260
rep movsb byte es:[edi], byte [esi]
movzx eax, byte [0x68abf2a0]
sub dword [ebp - 0x5c], eax
add dword [ebp - 0x8c], eax
mov eax, dword [0x68abf250]
lea edi, [ebp - 0x58]
mov ecx, 0x10
mov esi, 0x68abf220
mov dword [ebp - 0xa8], 0xa
inc eax
mov dword [0x68abf250], eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x40]
mov edx, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x60], edi
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x80], esi
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x78], edi
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x70], esi
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x74], edi
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x88], esi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x84], edi
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x6c], esi
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x64], edi
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x7c], esi
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x68], edi
mov edi, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x60]
add esi, edx
xor eax, esi
rol eax, 0x10
add ebx, eax
xor edx, ebx
rol edx, 0xc
add esi, edx
xor eax, esi
mov dword [ebp - 0x60], esi
rol eax, 8
mov dword [ebp - 0x94], eax
add eax, ebx
mov ebx, dword [ebp - 0x84]
xor edx, eax
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x74]
rol edx, 7
mov dword [ebp - 0x9c], edx
mov edx, dword [ebp - 0x78]
add edx, eax
xor ebx, edx
rol ebx, 0x10
add ecx, ebx
xor eax, ecx
rol eax, 0xc
lea esi, [edx + eax]
mov edx, dword [ebp - 0x80]
xor ebx, esi
mov dword [ebp - 0x78], esi
mov esi, dword [ebp - 0x64]
rol ebx, 8
mov dword [ebp - 0x84], ebx
add ebx, ecx
mov ecx, dword [ebp - 0x80]
xor eax, ebx
mov dword [ebp - 0xa0], ebx
mov ebx, dword [ebp - 0x70]
add esi, ecx
mov ecx, dword [ebp - 0x68]
rol eax, 7
xor ecx, esi
rol ecx, 0x10
add ebx, ecx
xor edx, ebx
rol edx, 0xc
add esi, edx
xor ecx, esi
mov dword [ebp - 0x64], esi
mov esi, dword [ebp - 0x88]
rol ecx, 8
add ebx, ecx
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0x88]
xor edx, ebx
rol edx, 7
add edi, ecx
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], edx
mov edx, dword [ebp - 0x6c]
xor edx, edi
rol edx, 0x10
add ecx, edx
xor esi, ecx
rol esi, 0xc
add edi, esi
xor edx, edi
mov dword [ebp - 0xa4], edi
rol edx, 8
add ecx, edx
xor esi, ecx
mov edi, esi
mov esi, dword [ebp - 0x60]
rol edi, 7
add esi, eax
xor edx, esi
rol edx, 0x10
add ebx, edx
xor eax, ebx
rol eax, 0xc
add esi, eax
xor edx, esi
mov dword [ebp - 0x60], esi
rol edx, 8
add ebx, edx
mov dword [ebp - 0x6c], edx
xor eax, ebx
mov dword [ebp - 0x70], ebx
mov ebx, dword [ebp - 0x80]
rol eax, 7
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x78]
lea edx, [eax + ebx]
mov eax, dword [ebp - 0x94]
xor eax, edx
rol eax, 0x10
add ecx, eax
xor ebx, ecx
rol ebx, 0xc
lea esi, [edx + ebx]
xor eax, esi
mov dword [ebp - 0x78], esi
mov edx, dword [ebp - 0x84]
rol eax, 8
mov esi, dword [ebp - 0x68]
add ecx, eax
xor ebx, ecx
mov dword [ebp - 0x7c], ecx
rol ebx, 7
mov dword [ebp - 0x80], ebx
mov ebx, dword [ebp - 0x64]
lea ecx, [ebx + edi]
mov ebx, dword [ebp - 0x98]
xor edx, ecx
rol edx, 0x10
add ebx, edx
xor edi, ebx
rol edi, 0xc
add ecx, edi
xor edx, ecx
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0xa4]
rol edx, 8
add ebx, edx
mov dword [ebp - 0x84], edx
mov edx, dword [ebp - 0x9c]
xor edi, ebx
rol edi, 7
mov dword [ebp - 0x88], edi
mov edi, dword [ebp - 0x9c]
add edi, ecx
mov ecx, dword [ebp - 0xa0]
xor esi, edi
rol esi, 0x10
add ecx, esi
xor edx, ecx
rol edx, 0xc
add edi, edx
xor esi, edi
rol esi, 8
add ecx, esi
mov dword [ebp - 0x68], esi
xor edx, ecx
rol edx, 7
dec dword [ebp - 0xa8]
jne 0x688ff5cf
mov esi, dword [ebp - 0x60]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x58], esi
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x70]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x74]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x44], esi
mov esi, dword [ebp - 0x78]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x20], eax
xor eax, eax
mov edx, dword [eax*4 + 0x68abf220]
add edx, dword [ebp + eax*4 - 0x58]
mov dword [eax*4 + 0x68abf260], edx
inc eax
cmp eax, 0x10
jne 0x688ff7dd
mov byte [0x68abf2a0], 0x40
jmp 0x688ff4f3
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret