Function at 0x100ffb80
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x102d2008]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [edx + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
push esi
mov esi, dword [edx]
mov dword [esp + 0x2c], eax
inc esi
mov eax, dword [edx + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1c]
push edi
mov edi, dword [ebp + 0x20]
push esi
push dword [eax + 0xc]
mov dword [esp + 0x34], edi
mov dword [esp + 0x74], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], ebx
call sym.BasicSQLite.dll_sqlite3_column_text
mov ecx, dword [esp + 0x28]
add esp, 8
mov dword [esp + 0x14], eax
mov ecx, dword [ecx + 0xc]
push esi
push ecx
test eax, eax
jne 0x100ffc3a
call sym.BasicSQLite.dll_sqlite3_column_type
sub eax, 5
add esp, 8
neg eax
sbb eax, eax
and eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.1010eeaf
mov esp, ebp
pop ebp
ret
call sym.BasicSQLite.dll_sqlite3_column_bytes
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x58], eax
mov ecx, dword [ecx + 0x24]
mov edx, dword [ecx]
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x48]
push edx
push eax
mov eax, dword [esp + 0x30]
push dword [esp + 0x24]
mov edx, dword [eax + 0x14]
call fcn.100f3750
add esp, 0x14
test eax, eax
jne 0x10100283
lea eax, [esp + 0x6c]
mov dword [esp + 0x78], 0xffffffff
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x58], 0
push eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x78], 0
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x58]
push dword [esp + 0x54]
mov eax, dword [eax + 0x14]
call eax
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x101001de
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0x6c], ecx
jl 0x100ffc71
cmp dword [esp + 0x10], eax
jne 0x100fff85
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x54]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x54]
mov dword [esp + 0x60], eax
mov eax, ebx
or eax, dword [esp + 0x18]
je 0x100ffea1
mov eax, ebx
mov dword [esp + 0x10], esi
and eax, 1
or eax, esi
jne 0x100ffd30
mov edi, dword [esp + 0x18]
inc esi
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, ebx
and ecx, edi
or edx, ecx
je 0x100ffd08
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], esi
mov ebx, dword [ebp + 0x10]
xor edx, edx
dec ebx
mov dword [esp + 0x68], 0
xor ecx, ecx
mov eax, ebx
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x1c]
and ecx, dword [esp + 0x18]
or edx, ecx
jne 0x100ffd96
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x1c]
dec ebx
xor edx, edx
xor ecx, ecx
mov eax, ebx
bts edx, eax
inc edi
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, esi
and ecx, dword [esp + 0x18]
or edx, ecx
je 0x100ffd67
mov esi, dword [esp + 0x10]
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x2c]
sub esi, dword [esp + 0x68]
mov eax, esi
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
test ebx, ebx
jle 0x100ffea1
mov eax, dword [esp + 0x30]
mov dword [esp + 0x68], 0
mov ecx, dword [eax + 0x24]
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x24]
push dword [esp + 0x78]
push dword [esp + 0x68]
mov edx, dword [eax + 0x14]
call fcn.100f3750
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100ffdeb
mov ecx, dword [esp + 0xc]
jmp 0x100ffea7
add ebx, dword [ebp + 0x10]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x68], ebx
jge 0x100ffe40
lea ecx, [esp + 0x68]
mov dword [esp + 0x64], 0
push ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x78], 0
push ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x68], 0
push ecx
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x6c]
push ecx
push eax
mov eax, dword [edi + 0x14]
call eax
mov esi, eax
add esp, 0x18
mov eax, dword [esp + 0x34]
test esi, esi
je 0x100ffdf6
push eax
mov eax, edi
mov eax, dword [eax + 0x10]
call eax
mov edi, dword [esp + 0x30]
add esp, 4
test esi, esi
je 0x100ffe5e
cmp esi, 0x65
je 0x100ffe5e
mov ecx, dword [esp + 0xc]
jmp 0x100ffea7
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp esi, 0x65
sete al
sub eax, dword [ebp + 0x10]
add eax, dword [esp + 0x68]
test eax, eax
jle 0x100ffea5
movq xmm1, qword [esp + 0x48]
add ecx, eax
movd xmm0, eax
psrlq xmm1, xmm0
mov dword [esp + 0xc], ecx
movq qword [esp + 0x48], xmm1
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
jmp 0x100ffea5
mov ecx, dword [esp + 0xc]
xor esi, esi
mov dword [esp + 0x10], 1
test esi, esi
jne 0x10100271
test ecx, ecx
jg 0x100ffeea
cmp dword [ebp + 8], esi
jg 0x100ffeea
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x100fff73
mov edx, dword [esp + 0x14]
push ecx
mov ecx, edi
call fcn.100ffad0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10100271
jmp 0x100fff73
mov esi, dword [esp + 0x24]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100ffef1
mov edx, dword [edi + 4]
sub esi, ecx
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
add ecx, edx
cmp ecx, eax
jl 0x100fff53
cdq
mov ebx, eax
mov ecx, edx
mov eax, esi
cdq
add ebx, eax
mov eax, dword [edi]
mov dword [esp + 0x60], eax
adc ecx, edx
add ebx, 0x64
adc ecx, 0
mov dword [esp + 0x64], ecx
call sym.BasicSQLite.dll_sqlite3_initialize
test eax, eax
jne 0x101001d4
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push ebx
call fcn.10065a10
add esp, 8
test eax, eax
je 0x101001d4
mov edx, dword [edi + 4]
mov dword [edi], eax
mov dword [edi + 8], ebx
mov eax, dword [edi]
push esi
push dword [esp + 0x28]
add eax, edx
push eax
call sub.VCRUNTIME140.dll_memcpy
add dword [edi + 4], esi
add esp, 0xc
mov ecx, dword [edi + 4]
xor esi, esi
mov eax, dword [edi]
mov byte [ecx + eax], 0
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x6c], ecx
jl 0x100ffc71
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x6c]
add eax, ecx
cmp edx, eax
jge 0x1010015b
sub edx, ecx
xor eax, eax
xor ecx, ecx
bts ecx, edx
cmp edx, 0x20
cmovae eax, ecx
xor ecx, eax
cmp edx, 0x40
cmovae eax, ecx
and ecx, ebx
and eax, dword [esp + 0x18]
or ecx, eax
je 0x100fffbe
mov ebx, 1
jmp 0x100fffc0
xor ebx, ebx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x68], ebx
cmp dword [esp + 0x6c], ecx
jle 0x100ffff4
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x54]
sub eax, ecx
push eax
lea edx, [edx + ecx]
mov ecx, edi
call fcn.100ffad0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10100142
test ebx, ebx
je 0x10100087
mov esi, dword [esp + 0x38]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10100003
mov edx, dword [edi + 4]
sub esi, ecx
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
add ecx, edx
cmp ecx, eax
jl 0x10100069
cdq
mov ebx, eax
mov ecx, edx
mov eax, esi
cdq
add ebx, eax
mov eax, dword [edi]
mov dword [esp + 0x60], eax
adc ecx, edx
add ebx, 0x64
adc ecx, 0
mov dword [esp + 0x64], ecx
call sym.BasicSQLite.dll_sqlite3_initialize
test eax, eax
jne 0x101001d4
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push ebx
call fcn.10065a10
add esp, 8
test eax, eax
je 0x101001d4
mov edx, dword [edi + 4]
mov dword [edi + 8], ebx
mov ebx, dword [esp + 0x68]
mov dword [edi], eax
mov eax, dword [edi]
push esi
push dword [esp + 0x3c]
add eax, edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi]
add esp, 0xc
add dword [edi + 4], esi
mov ecx, dword [edi + 4]
mov byte [ecx + eax], 0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x70]
sub eax, ecx
push eax
lea edx, [ecx + edx]
mov ecx, edi
call fcn.100ffad0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10100142
test ebx, ebx
je 0x10100142
mov esi, dword [esp + 0x3c]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x101000c0
mov edx, dword [edi + 4]
sub esi, ecx
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
add ecx, edx
cmp ecx, eax
jl 0x10100122
cdq
mov ebx, eax
mov ecx, edx
mov eax, esi
cdq
add ebx, eax
mov eax, dword [edi]
mov dword [esp + 0x60], eax
adc ecx, edx
add ebx, 0x64
adc ecx, 0
mov dword [esp + 0x64], ecx
call sym.BasicSQLite.dll_sqlite3_initialize
test eax, eax
jne 0x101001d4
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push ebx
call fcn.10065a10
add esp, 8
test eax, eax
je 0x101001d4
mov edx, dword [edi + 4]
mov dword [edi], eax
mov dword [edi + 8], ebx
mov eax, dword [edi]
push esi
push dword [esp + 0x40]
add eax, edx
push eax
call sub.VCRUNTIME140.dll_memcpy
add dword [edi + 4], esi
add esp, 0xc
mov ecx, dword [edi + 4]
xor esi, esi
mov eax, dword [edi]
mov byte [ecx + eax], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0x28], eax
test esi, esi
jne 0x10100271
mov ebx, dword [esp + 0x1c]
jmp 0x100ffc71
cmp dword [ebp + 0xc], 0
je 0x10100271
mov esi, dword [esp + 0x24]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10100170
mov edx, dword [edi + 4]
sub esi, ecx
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
add ecx, edx
cmp ecx, eax
jl 0x101001ca
cdq
mov ebx, eax
mov ecx, edx
mov eax, esi
cdq
add ebx, eax
mov eax, dword [edi]
mov dword [esp + 0x60], eax
adc ecx, edx
add ebx, 0x64
adc ecx, 0
mov dword [esp + 0x64], ecx
call sym.BasicSQLite.dll_sqlite3_initialize
test eax, eax
jne 0x101001d4
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push ebx
call fcn.10065a10
add esp, 8
test eax, eax
je 0x101001d4
mov edx, dword [edi + 4]
mov dword [edi], eax
mov dword [edi + 8], ebx
push esi
push dword [esp + 0x28]
jmp 0x10100256
mov esi, 7
jmp 0x10100271
cmp esi, 0x65
jne 0x10100271
mov esi, dword [esp + 0x28]
add esi, dword [esp + 0x14]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x101001f2
mov edx, dword [edi + 4]
sub esi, ecx
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
add ecx, edx
cmp ecx, eax
jl 0x1010024c
cdq
mov ebx, eax
mov ecx, edx
mov eax, esi
cdq
add ebx, eax
mov eax, dword [edi]
mov dword [esp + 0x60], eax
adc ecx, edx
add ebx, 0x64
adc ecx, 0
mov dword [esp + 0x64], ecx
call sym.BasicSQLite.dll_sqlite3_initialize
test eax, eax
jne 0x101001d4
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push ebx
call fcn.10065a10
add esp, 8
test eax, eax
je 0x101001d4
mov edx, dword [edi + 4]
mov dword [edi], eax
mov dword [edi + 8], ebx
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x28]
push esi
push eax
mov eax, dword [edi]
add eax, edx
push eax
call sub.VCRUNTIME140.dll_memcpy
add dword [edi + 4], esi
add esp, 0xc
mov eax, dword [edi]
xor esi, esi
mov ecx, dword [edi + 4]
mov byte [ecx + eax], 0
mov eax, dword [esp + 0x44]
push dword [esp + 0x40]
mov eax, dword [eax + 0x10]
call eax
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010eeaf
mov esp, ebp
pop ebp
ret