Function at 0x10100240
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 [0x102d4008]
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 0x101002fa
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.1010f56f
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.100f3e10
add esp, 0x14
test eax, eax
jne 0x10100943
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 0x1010089e
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0x6c], ecx
jl 0x10100331
cmp dword [esp + 0x10], eax
jne 0x10100645
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 0x10100561
mov eax, ebx
mov dword [esp + 0x10], esi
and eax, 1
or eax, esi
jne 0x101003f0
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 0x101003c8
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 0x10100456
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 0x10100427
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 0x10100561
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.100f3e10
mov esi, eax
add esp, 0xc
test esi, esi
je 0x101004ab
mov ecx, dword [esp + 0xc]
jmp 0x10100567
add ebx, dword [ebp + 0x10]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x68], ebx
jge 0x10100500
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 0x101004b6
push eax
mov eax, edi
mov eax, dword [eax + 0x10]
call eax
mov edi, dword [esp + 0x30]
add esp, 4
test esi, esi
je 0x1010051e
cmp esi, 0x65
je 0x1010051e
mov ecx, dword [esp + 0xc]
jmp 0x10100567
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 0x10100565
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 0x10100565
mov ecx, dword [esp + 0xc]
xor esi, esi
mov dword [esp + 0x10], 1
test esi, esi
jne 0x10100931
test ecx, ecx
jg 0x101005aa
cmp dword [ebp + 8], esi
jg 0x101005aa
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x10100633
mov edx, dword [esp + 0x14]
push ecx
mov ecx, edi
call fcn.10100190
mov esi, eax
add esp, 4
test esi, esi
jne 0x10100931
jmp 0x10100633
mov esi, dword [esp + 0x24]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x101005b1
mov edx, dword [edi + 4]
sub esi, ecx
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
add ecx, edx
cmp ecx, eax
jl 0x10100613
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 0x10100894
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push ebx
call fcn.100660d0
add esp, 8
test eax, eax
je 0x10100894
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 0x10100331
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x6c]
add eax, ecx
cmp edx, eax
jge 0x1010081b
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 0x1010067e
mov ebx, 1
jmp 0x10100680
xor ebx, ebx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x68], ebx
cmp dword [esp + 0x6c], ecx
jle 0x101006b4
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.10100190
mov esi, eax
add esp, 4
test esi, esi
jne 0x10100802
test ebx, ebx
je 0x10100747
mov esi, dword [esp + 0x38]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x101006c3
mov edx, dword [edi + 4]
sub esi, ecx
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
add ecx, edx
cmp ecx, eax
jl 0x10100729
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 0x10100894
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push ebx
call fcn.100660d0
add esp, 8
test eax, eax
je 0x10100894
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.10100190
mov esi, eax
add esp, 4
test esi, esi
jne 0x10100802
test ebx, ebx
je 0x10100802
mov esi, dword [esp + 0x3c]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10100780
mov edx, dword [edi + 4]
sub esi, ecx
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
add ecx, edx
cmp ecx, eax
jl 0x101007e2
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 0x10100894
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push ebx
call fcn.100660d0
add esp, 8
test eax, eax
je 0x10100894
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 0x10100931
mov ebx, dword [esp + 0x1c]
jmp 0x10100331
cmp dword [ebp + 0xc], 0
je 0x10100931
mov esi, dword [esp + 0x24]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10100830
mov edx, dword [edi + 4]
sub esi, ecx
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
add ecx, edx
cmp ecx, eax
jl 0x1010088a
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 0x10100894
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push ebx
call fcn.100660d0
add esp, 8
test eax, eax
je 0x10100894
mov edx, dword [edi + 4]
mov dword [edi], eax
mov dword [edi + 8], ebx
push esi
push dword [esp + 0x28]
jmp 0x10100916
mov esi, 7
jmp 0x10100931
cmp esi, 0x65
jne 0x10100931
mov esi, dword [esp + 0x28]
add esi, dword [esp + 0x14]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x101008b2
mov edx, dword [edi + 4]
sub esi, ecx
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
add ecx, edx
cmp ecx, eax
jl 0x1010090c
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 0x10100894
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push ebx
call fcn.100660d0
add esp, 8
test eax, eax
je 0x10100894
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.1010f56f
mov esp, ebp
pop ebp
ret