Function at 0x100768a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x30]
movzx eax, byte [ebp + 0x1b6]
push esi
mov esi, dword [ebp]
test dword [esi + 0x18], 0x80000
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], eax
je 0x10076e8b
mov edi, dword [ebx + 0x44]
xor ecx, ecx
cmp edi, ecx
mov eax, 0xfff0bdc0
mov dword [esp + 0x14], eax
je 0x10076907
mov edx, dword [esi + 0x14]
xor eax, eax
cmp edx, ecx
mov dword [esp + 0x14], eax
jle 0x10076907
mov ecx, dword [esi + 0x10]
add ecx, 0xc
cmp dword [ecx], edi
je 0x10076901
add eax, 1
add ecx, 0x10
cmp eax, edx
jl 0x100768f3
mov dword [esp + 0x14], eax
xor ecx, ecx
mov edx, dword [esi + 0x10]
mov esi, dword [ebx + 0x10]
shl eax, 4
cmp esi, ecx
mov eax, dword [eax + edx]
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], esi
je 0x10076ad7
jmp 0x10076927
xor ecx, ecx
cmp dword [esp + 0x48], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ecx
je 0x1007696f
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
push ecx
push eax
call sym.SQLite.Interop.dll_sqlite3_stricmp
add esp, 8
test eax, eax
je 0x1007696f
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
push ecx
mov eax, esi
call fcn.10012250
add esp, 4
test eax, eax
je 0x10076ac8
cmp byte [ebp + 0x1b6], 0
je 0x10076993
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x38]
push edx
push eax
push ecx
call fcn.10023ff0
add esp, 0xc
jmp 0x10076b42
mov eax, dword [ebp]
cmp byte [eax + 0x89], 0
mov edi, dword [esi + 8]
jne 0x10076af2
lea edx, [ebp + 4]
push edx
push eax
call fcn.10097aa0
add esp, 8
test eax, eax
je 0x10076af2
add dword [ebp + 0x40], 1
mov dword [ebp + 0xc], eax
xor edi, edi
cmp dword [esp + 0x28], 0
je 0x10076e8b
mov ecx, dword [esp + 0x38]
cmp byte [ecx + 0x40], 0
jne 0x10076e8b
test edi, edi
jne 0x10076ac8
mov eax, ebp
call fcn.100389a0
mov edi, eax
mov eax, dword [esi + 0x14]
test eax, eax
mov edx, dword [edi + 0x20]
lea ecx, [eax + edx + 1]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], 0
jle 0x10076a7b
mov edx, dword [esp + 0x10]
add edx, 0x24
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov ebx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], ebx
mov edx, dword [esp + 0x40]
lea esi, [ecx + edx + 1]
jg 0x10076a39
push edi
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10076a62
mov edx, dword [edi + 4]
add dword [edi + 0x20], 1
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x4c
mov byte [eax + 3], 0
mov dword [eax + 4], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add dword [esp + 0x20], 8
add eax, 1
cmp eax, dword [edx + 0x14]
mov dword [esp + 0x1c], eax
jl 0x10076a13
mov esi, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
cmp dword [ecx + 0x54], esi
mov eax, dword [esp + 0x10]
movzx ebx, byte [eax + 0x18]
jg 0x10076a9b
push edi
call fcn.1002cfc0
add esp, 4
test eax, eax
jne 0x10076ac4
mov eax, dword [edi + 4]
add dword [edi + 0x20], 1
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
xor ecx, ecx
mov byte [eax], 0x82
mov byte [eax + 3], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov esi, dword [esp + 0x10]
mov esi, dword [esi + 4]
test esi, esi
mov dword [esp + 0x10], esi
jne 0x10076925
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx]
test ecx, ecx
mov eax, ecx
jne 0x10076c79
xor esi, esi
mov dword [esp + 0x24], esi
jmp 0x10076c95
mov ebx, dword [esp + 0x24]
mov eax, dword [ebp]
push ebx
push edi
push eax
call fcn.10023ff0
add esp, 0xc
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x10076b42
test ebx, ebx
push edi
mov edi, ebp
je 0x10076b28
push ebx
push str.no_such_table
push str._s:__s._s
call fcn.10030a70
add esp, 0x10
jmp 0x10076b3a
push str.no_such_table
push str._s:__s
call fcn.10030a70
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov byte [ebp + 0x11], 1
mov edi, eax
test edi, edi
je 0x100769c4
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
push edi
push ebp
call fcn.10033880
add esp, 0x14
test eax, eax
jne 0x100769c4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10076b77
mov dword [esp + 0x10], eax
jmp 0x10076b86
mov eax, dword [esi + 0x24]
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x18]
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jle 0x10076bff
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
movsx edx, word [edx + 0x24]
cmp dword [eax + ebx*4], edx
jne 0x10076ba9
mov dword [eax + ebx*4], 0xffffffff
mov edx, dword [esp + 0x38]
cmp dword [edx + 0x114], 0
je 0x10076bf7
test ecx, ecx
je 0x10076bc3
mov eax, dword [ecx + 4]
movsx eax, word [eax + ebx*2]
jmp 0x10076bc7
movsx eax, word [edi + 0x24]
mov edx, dword [edi + 4]
lea ecx, [eax + eax*2]
mov eax, dword [edx + ecx*8]
mov ecx, dword [esp + 0x14]
mov edx, dword [edi]
push ecx
push eax
push edx
mov eax, ebp
call fcn.10039b80
xor ecx, ecx
add esp, 0xc
cmp eax, 2
mov eax, dword [esp + 0x10]
sete cl
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
add ebx, 1
cmp ebx, dword [esi + 0x14]
jl 0x10076b95
mov edx, dword [edi]
mov eax, dword [edi + 0x20]
mov ebx, dword [esp + 0x14]
push edx
push 0
push eax
push ebx
mov eax, ebp
call fcn.1002f210
mov eax, dword [esp + 0x50]
add dword [ebp + 0x44], 1
add esp, 0x10
test eax, eax
je 0x10076c41
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push ecx
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x24]
push edx
push esi
push eax
push edi
push ebx
push ebp
call fcn.1004fd00
add esp, 0x24
mov eax, dword [esp + 0x44]
test eax, eax
je 0x10076c67
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push ecx
push 1
push eax
mov eax, dword [esp + 0x24]
push edx
push esi
push eax
push edi
push ebx
push ebp
call fcn.1004fd00
add esp, 0x24
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
call fcn.10021de0
jmp 0x10076ac8
cmp byte [ecx], 0
je 0x10076c88
mov edi, edi
add eax, 1
cmp byte [eax], 0
jne 0x10076c80
sub eax, ecx
and eax, 0x3fffffff
mov esi, eax
mov dword [esp + 0x24], eax
mov edi, dword [edx + 0x44]
add edi, 0x38
cmp dword [edi + 0xc], 0
mov dword [esp + 0x30], edi
je 0x10076cdd
xor eax, eax
test esi, esi
mov edx, ecx
jle 0x10076cd7
lea ecx, [ecx]
movzx edi, byte [edx]
movzx edi, byte [edi + 0x100ab370]
lea ebx, [eax*8]
xor edi, ebx
sub esi, 1
xor eax, edi
add edx, 1
test esi, esi
jg 0x10076cb0
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x24]
xor edx, edx
div dword [edi]
jmp 0x10076cdf
xor edx, edx
push ecx
mov ebx, esi
mov ecx, edi
call fcn.1001cea0
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x10076e8b
mov ebx, dword [eax + 8]
cmp ebx, ecx
je 0x10076e8b
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x3c]
lea esp, [esp]
cmp edi, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ecx
je 0x10076d35
mov ecx, dword [esp + 0x4c]
push ecx
push edi
push esi
mov eax, ebx
call fcn.10019fb0
add esp, 0xc
test eax, eax
je 0x10076e7e
cmp byte [ebx + 0x18], 0
jne 0x10076d5b
mov edx, dword [esp + 0x38]
test dword [edx + 0x18], 0x1000000
jne 0x10076d5b
cmp dword [ebp + 0x198], 0
jne 0x10076d5b
cmp byte [ebp + 0x14], 0
je 0x10076e7e
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push esi
push ebp
call fcn.10033880
add esp, 0x14
test eax, eax
je 0x10076d92
cmp dword [esp + 0x28], 0
je 0x10076e8b
mov edx, dword [esp + 0x38]
cmp byte [edx + 0x40], 0
jne 0x10076e8b
jmp 0x10076e7e
mov esi, dword [esp + 0x38]
mov ecx, 0x58
call fcn.10027660
mov edi, eax
test edi, edi
je 0x10076e69
push 0x58
push 0
push edi
call fcn.10003bb0
add esp, 0xc
mov dword [edi + 4], 1
mov eax, dword [edi]
push eax
push 1
push esi
mov eax, edi
call fcn.1002c0f0
add esp, 0xc
cmp byte [esi + 0x40], 0
mov edi, eax
jne 0x10076e60
mov eax, dword [edi]
mov esi, dword [esp + 0x24]
lea ecx, [eax + eax*4]
shl ecx, 4
lea eax, [ecx + edi - 0x48]
xor edx, edx
mov dword [eax + 8], edx
mov dword [eax + 4], edx
mov eax, dword [ebx]
mov dword [edi + 0x18], eax
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x18]
mov ecx, 1
add word [eax + 0x28], cx
mov eax, dword [ebp + 0x44]
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x44]
add dword [ebp + 0x44], ecx
cmp eax, edx
je 0x10076e34
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
push 0xffffffffffffffff
push eax
push ecx
push ebx
push esi
push edx
push edi
push ebp
call fcn.10071bb0
add esp, 0x20
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10076e55
mov ecx, dword [esp + 0x3c]
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ebx
push esi
push ecx
push edi
push ebp
call fcn.10071bb0
add esp, 0x20
mov esi, dword [esp + 0x38]
mov dword [edi + 0x10], 0
push edi
call fcn.100267c0
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
call fcn.10021de0
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x3c]
mov ebx, dword [ebx + 0xc]
xor ecx, ecx
cmp ebx, ecx
jne 0x10076d10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret