Function at 0x10091fa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, edx
push esi
push edi
mov dword [esp + 0xc], ebx
mov esi, ecx
cmp dword [ebx + 0x10], 0
je 0x100922bc
cmp dword [ebx + 4], 0
je 0x100922bc
cmp dword [esi + 0x3c], 0
je 0x10091fdb
call fcn.10091980
test eax, eax
jne 0x100922c1
mov eax, dword [esi + 0x10]
lea ecx, [eax + eax]
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], eax
lea eax, [ecx + 3]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + 4]
cmp ecx, eax
jne 0x10092085
mov eax, dword [ebx + 0x10]
mov edx, 2
mov dword [esp + 0x18], eax
test eax, eax
je 0x10092085
mov edi, eax
mov ebx, 0x102e41dc
mov al, byte [edi]
dec edx
test al, al
je 0x10092033
movzx ecx, byte [ebx]
movzx eax, al
mov al, byte [eax + 0x102dd8e0]
cmp al, byte [ecx + 0x102dd8e0]
jne 0x10092033
inc edi
inc ebx
test edx, edx
jg 0x10092011
dec edx
test edx, edx
js 0x1009204f
movzx eax, byte [ebx]
movzx ecx, byte [eax + 0x102dd8e0]
movzx eax, byte [edi]
movzx eax, byte [eax + 0x102dd8e0]
sub eax, ecx
jne 0x1009207d
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add ecx, 2
call fcn.1008e670
mov ebx, dword [esp + 0xc]
test eax, eax
je 0x10092081
mov edx, dword [ebx + 4]
push dword [ebx + 8]
lea edx, [edx - 3]
call fcn.1008e5a0
add esp, 4
jmp 0x10092172
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 0x10]
add eax, edi
add eax, eax
mov dword [esp + 0x18], eax
add eax, 3
cmp ecx, eax
jne 0x10092148
mov eax, dword [ebx + 0x10]
mov edx, 2
test eax, eax
je 0x10092148
mov ecx, 0x102e41dc
mov edi, eax
mov dword [esp + 0xc], ecx
nop dword [eax]
mov al, byte [edi]
dec edx
test al, al
je 0x100920ea
movzx ecx, byte [ecx]
movzx eax, al
mov al, byte [eax + 0x102dd8e0]
cmp al, byte [ecx + 0x102dd8e0]
mov ecx, dword [esp + 0xc]
jne 0x100920ea
inc ecx
inc edi
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x100920c0
dec edx
test edx, edx
js 0x10092106
movzx eax, byte [ecx]
movzx ecx, byte [eax + 0x102dd8e0]
movzx eax, byte [edi]
movzx eax, byte [eax + 0x102dd8e0]
sub eax, ecx
jne 0x10092142
mov edi, dword [ebx + 0x10]
mov edx, dword [esp + 0x18]
add edi, 2
mov ecx, edi
call fcn.1008e670
test eax, eax
je 0x10092142
push dword [ebx + 8]
mov edx, dword [esp + 0x18]
call fcn.1008e5a0
mov eax, dword [esi + 0x10]
add esp, 4
mov edx, dword [esi + 0xc]
add edx, edx
push dword [esi + 0x44]
lea ecx, [edi + eax*2]
call fcn.1008e5a0
add esp, 4
jmp 0x10092172
mov edi, dword [esi + 0x10]
mov ecx, dword [ebx + 4]
push dword [ebx + 8]
mov eax, dword [esi + 0x5c]
push edi
push dword [esi + 4]
push dword [esi + 0xc]
mov eax, dword [eax + 0x18]
push dword [esi + 0x44]
push ecx
push dword [ebx + 0x10]
push dword [esi + 0x34]
push dword [esi + 0x60]
call eax
add esp, 0x24
test eax, eax
jne 0x100922bc
mov edi, dword [ebx + 0x14]
mov eax, dword [ebx + 8]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x18], eax
test edi, edi
je 0x10092199
xor eax, eax
test ecx, ecx
jle 0x10092199
nop dword [eax]
mov byte [eax + edi], 0
inc eax
cmp eax, ecx
jl 0x10092190
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push edi
call sym.BasicBusinessConfigCenter.dll_sqlite3_free
add esp, 4
mov dword [ebx + 0x14], 0
mov eax, dword [esi + 0x20]
mov dword [esp + 0x14], eax
cdq
push edx
push eax
call fcn.100961d0
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x14]
test edi, edi
je 0x100921dc
xor ecx, ecx
test eax, eax
jle 0x100921dc
mov byte [ecx + edi], 0
inc ecx
cmp ecx, eax
jl 0x100921d3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualLock]
mov dword [ebx + 0x14], edi
test edi, edi
je 0x100922b0
mov ecx, dword [esp + 0x18]
mov byte [edi], 0x78
mov eax, dword [ebx + 0x14]
mov byte [eax + 1], 0x27
mov eax, dword [ebx + 0x14]
mov edx, dword [esi + 0x10]
add eax, 2
push eax
call fcn.1008e620
mov ecx, dword [esi + 0x10]
add esp, 4
mov eax, dword [ebx + 0x14]
mov edx, dword [esi + 0xc]
lea eax, [eax + ecx*2]
mov ecx, dword [esi + 0x44]
add eax, 2
push eax
call fcn.1008e620
mov ecx, dword [esi + 0x20]
add esp, 4
mov eax, dword [ebx + 0x14]
mov byte [ecx + eax - 1], 0x27
test byte [esi + 0x40], 1
je 0x100922a1
push dword [esi + 0xc]
push dword [esi + 0x44]
push dword [esi + 0x48]
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [esi + 0xc]
add esp, 0xc
xor edx, edx
test edi, edi
jle 0x1009227a
nop word [eax + eax]
mov eax, dword [esi + 0x48]
mov cl, byte [0x10311640]
xor cl, byte [eax + edx]
mov eax, dword [esi + 0x48]
mov byte [edx + eax], cl
inc edx
mov edi, dword [esi + 0xc]
cmp edx, edi
jl 0x10092260
push dword [ebx + 0xc]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x5c]
push eax
push dword [esi + 8]
push edi
push dword [esi + 0x48]
push eax
push dword [ebx + 8]
mov eax, dword [ecx + 0x18]
push dword [esi + 0x34]
push dword [esi + 0x60]
call eax
add esp, 0x24
test eax, eax
jne 0x100922bc
mov dword [ebx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret