Function at 0x10130680
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 [0x1030f644]
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.BasicBusinessConfigCenter.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 0x1013073a
call sym.BasicBusinessConfigCenter.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.101afab5
mov esp, ebp
pop ebp
ret
call sym.BasicBusinessConfigCenter.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.10124250
add esp, 0x14
test eax, eax
jne 0x10130d83
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 0x10130cde
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0x6c], ecx
jl 0x10130771
cmp dword [esp + 0x10], eax
jne 0x10130a85
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 0x101309a1
mov eax, ebx
mov dword [esp + 0x10], esi
and eax, 1
or eax, esi
jne 0x10130830
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 0x10130808
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 0x10130896
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 0x10130867
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 0x101309a1
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.10124250
mov esi, eax
add esp, 0xc
test esi, esi
je 0x101308eb
mov ecx, dword [esp + 0xc]
jmp 0x101309a7
add ebx, dword [ebp + 0x10]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x68], ebx
jge 0x10130940
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 0x101308f6
push eax
mov eax, edi
mov eax, dword [eax + 0x10]
call eax
mov edi, dword [esp + 0x30]
add esp, 4
test esi, esi
je 0x1013095e
cmp esi, 0x65
je 0x1013095e
mov ecx, dword [esp + 0xc]
jmp 0x101309a7
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 0x101309a5
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 0x101309a5
mov ecx, dword [esp + 0xc]
xor esi, esi
mov dword [esp + 0x10], 1
test esi, esi
jne 0x10130d71
test ecx, ecx
jg 0x101309ea
cmp dword [ebp + 8], esi
jg 0x101309ea
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x10130a73
mov edx, dword [esp + 0x14]
push ecx
mov ecx, edi
call fcn.101305d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10130d71
jmp 0x10130a73
mov esi, dword [esp + 0x24]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x101309f1
mov edx, dword [edi + 4]
sub esi, ecx
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
add ecx, edx
cmp ecx, eax
jl 0x10130a53
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.BasicBusinessConfigCenter.dll_sqlite3_initialize
test eax, eax
jne 0x10130cd4
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push ebx
call fcn.100964f0
add esp, 8
test eax, eax
je 0x10130cd4
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 0x10130771
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x6c]
add eax, ecx
cmp edx, eax
jge 0x10130c5b
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 0x10130abe
mov ebx, 1
jmp 0x10130ac0
xor ebx, ebx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x68], ebx
cmp dword [esp + 0x6c], ecx
jle 0x10130af4
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.101305d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10130c42
test ebx, ebx
je 0x10130b87
mov esi, dword [esp + 0x38]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10130b03
mov edx, dword [edi + 4]
sub esi, ecx
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
add ecx, edx
cmp ecx, eax
jl 0x10130b69
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.BasicBusinessConfigCenter.dll_sqlite3_initialize
test eax, eax
jne 0x10130cd4
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push ebx
call fcn.100964f0
add esp, 8
test eax, eax
je 0x10130cd4
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.101305d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10130c42
test ebx, ebx
je 0x10130c42
mov esi, dword [esp + 0x3c]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10130bc0
mov edx, dword [edi + 4]
sub esi, ecx
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
add ecx, edx
cmp ecx, eax
jl 0x10130c22
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.BasicBusinessConfigCenter.dll_sqlite3_initialize
test eax, eax
jne 0x10130cd4
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push ebx
call fcn.100964f0
add esp, 8
test eax, eax
je 0x10130cd4
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 0x10130d71
mov ebx, dword [esp + 0x1c]
jmp 0x10130771
cmp dword [ebp + 0xc], 0
je 0x10130d71
mov esi, dword [esp + 0x24]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10130c70
mov edx, dword [edi + 4]
sub esi, ecx
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
add ecx, edx
cmp ecx, eax
jl 0x10130cca
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.BasicBusinessConfigCenter.dll_sqlite3_initialize
test eax, eax
jne 0x10130cd4
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push ebx
call fcn.100964f0
add esp, 8
test eax, eax
je 0x10130cd4
mov edx, dword [edi + 4]
mov dword [edi], eax
mov dword [edi + 8], ebx
push esi
push dword [esp + 0x28]
jmp 0x10130d56
mov esi, 7
jmp 0x10130d71
cmp esi, 0x65
jne 0x10130d71
mov esi, dword [esp + 0x28]
add esi, dword [esp + 0x14]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10130cf2
mov edx, dword [edi + 4]
sub esi, ecx
mov eax, dword [edi + 8]
lea ecx, [esi + 1]
add ecx, edx
cmp ecx, eax
jl 0x10130d4c
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.BasicBusinessConfigCenter.dll_sqlite3_initialize
test eax, eax
jne 0x10130cd4
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push ebx
call fcn.100964f0
add esp, 8
test eax, eax
je 0x10130cd4
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.101afab5
mov esp, ebp
pop ebp
ret