Function at 0x4fad00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, edx
mov dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov dword [eax], 0
call fcn.004fbf00
test eax, eax
jne 0x4fb35e
mov ebx, dword [ebp + 8]
cmp dword [0x586ed4], eax
jne 0x4fad33
xor edi, edi
jmp 0x4fad53
test ebx, 0x8000
je 0x4fad3f
xor edi, edi
jmp 0x4fad53
mov edi, dword [0x586ed8]
test ebx, 0x10000
mov eax, 1
cmovne edi, eax
test ebx, 0x40000
je 0x4fad63
and ebx, 0xfffdffff
jmp 0x4fad72
cmp dword [0x586f84], 0
je 0x4fad72
or ebx, 0x20000
and ebx, 0xfffe00e7
push 0x1d8
mov dword [ebp + 8], ebx
call fcn.0054a0f0
mov esi, eax
add esp, 4
mov dword [ebp - 0xc], esi
test esi, esi
je 0x4fb348
push 0x1d8
push 0
push esi
call fcn.004359b0
add esp, 0xc
test edi, edi
je 0x4fadeb
cmp dword [0x586ed4], 0
jne 0x4fadc9
push esi
mov dword [esi + 0x44], 0
call fcn.00549d90
add esp, 4
xor ecx, ecx
jmp 0x4fb34a
push 1
call dword [0x586f10]
add esp, 4
mov dword [esi + 0x44], eax
test eax, eax
jne 0x4fadeb
push esi
call fcn.00549d90
add esp, 4
xor ecx, ecx
jmp 0x4fb34a
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4fadfc
push eax
call dword [0x586f18]
add esp, 4
mov dword [esi + 0x18], 0xff
lea eax, [esi + 0x1a0]
mov dword [esi + 4], 2
mov dword [esi + 0x38], 0xf03b7906
mov dword [esi + 8], eax
movups xmm0, xmmword [0x56c000]
movups xmmword [esi + 0x48], xmm0
movups xmm0, xmmword [0x56c010]
movups xmmword [esi + 0x58], xmm0
movq xmm0, qword [0x56c020]
movq qword [esi + 0x68], xmm0
mov eax, dword [0x56c028]
or dword [esi + 0xc], 0x8040
mov dword [esi + 0x70], eax
mov byte [esi + 0x1c], 1
mov byte [esi + 0x21], 0xff
mov dword [esi + 0x24], 0
mov dword [esi + 0x188], 0
mov dword [esi + 0x184], 0
mov dword [esi + 0x180], 0
mov dword [esi + 0x18c], 0
mov dword [esi + 0x10c], 0
mov dword [esi + 0x108], 0
mov dword [esi + 0x104], 0
mov dword [esi + 0x110], 0
call fcn.0054a8c0
mov dword [esi], eax
test eax, eax
jne 0x4faf19
push eax
push str.no_such_vfs:__s
push 1
push esi
call fcn.005475d0
add esp, 0x10
mov edi, esi
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4faeda
push eax
call dword [0x586f20]
add esp, 4
mov eax, dword [esi + 0x38]
cmp eax, 0x4b771290
je 0x4fb31b
cmp eax, 0xa029a697
je 0x4fb31b
cmp eax, 0xf03b7906
je 0x4fb31b
mov eax, dword [ebp - 0x10]
mov ebx, 0x15
mov dword [esi + 0x38], 0x4b771290
mov dword [eax], edi
movzx eax, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
push 0x4fbae0
push 0
push 1
push 1
mov edx, str.BINARY
mov ecx, esi
call fcn.004fb370
add esp, 0x10
mov edx, str.BINARY
mov ecx, esi
push 0x4fbae0
push 0
push 1
push 3
call fcn.004fb370
add esp, 0x10
mov edx, str.BINARY
mov ecx, esi
push 0x4fbae0
push 0
push 1
push 2
call fcn.004fb370
add esp, 0x10
mov edx, str.RTRIM
mov ecx, esi
push 0x4fbae0
push 1
push 0
push 1
call fcn.004fb370
add esp, 0x14
mov edi, esi
cmp byte [esi + 0x1e], 0
jne 0x4faec9
mov edi, str.BINARY
inc edi
cmp byte [edi], 0
jne 0x4faf93
sub edi, str.BINARY
lea eax, [esi + 0x180]
and edi, 0x3fffffff
cmp dword [eax + 0xc], 0
je 0x4fb000
mov ecx, str.BINARY
xor eax, eax
mov dword [ebp - 8], ecx
test edi, edi
je 0x4faff0
xor ebx, ebx
mov esi, edi
movzx eax, byte [ecx]
dec esi
lea ecx, [ebx*8]
movzx edx, byte [eax + 0x56c740]
xor edx, ecx
mov ecx, dword [ebp - 8]
inc ecx
xor ebx, edx
mov dword [ebp - 8], ecx
test esi, esi
jg 0x4fafc3
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 8]
xor edx, edx
div dword [esi + 0x180]
lea eax, [esi + 0x180]
jmp 0x4fb002
xor edx, edx
push edx
push edi
mov edx, str.BINARY
mov ecx, eax
call fcn.005461b0
add esp, 8
test eax, eax
je 0x4fb01c
mov eax, dword [eax + 8]
jmp 0x4fb01e
xor eax, eax
push ecx
push 0x4fbab0
push 0
push 2
push 1
mov edx, str.NOCASE
mov dword [esi + 0x2c], eax
mov ecx, esi
call fcn.004fb370
mov eax, dword [esi + 8]
add esp, 0x14
mov edx, dword [ebp - 4]
add eax, 4
mov dword [esi + 0x10], ebx
mov ecx, esi
or ebx, 0x100
push eax
push ebx
push 0x7d0
push 0
call fcn.004fb5d0
add esp, 0x10
test eax, eax
je 0x4fb083
cmp eax, 0xc0a
mov ecx, 7
push 0
cmove eax, ecx
push eax
push esi
call fcn.005475d0
add esp, 0xc
jmp 0x4faec7
mov edx, dword [esi + 8]
mov ecx, esi
mov edx, dword [edx + 4]
call fcn.0051ba20
mov ecx, dword [esi + 8]
xor edx, edx
mov dword [ecx + 0xc], eax
mov ecx, esi
call fcn.0051ba20
mov ecx, dword [esi + 8]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi + 8]
mov dword [eax], str.main
mov eax, dword [esi + 8]
mov byte [eax + 9], 3
mov eax, dword [esi + 8]
mov dword [eax + 0x10], str.temp
mov eax, dword [esi + 8]
mov byte [eax + 0x19], 1
cmp byte [esi + 0x1e], 0
mov dword [esi + 0x38], 0xa029a697
jne 0x4faec7
push 0
push 0
push esi
call fcn.005475d0
add esp, 4
mov edx, str.sqlite_rename_table
mov ecx, esi
push 0x523560
push 0
push 1
push 2
call fcn.004fb710
add esp, 0x18
cmp byte [esi + 0x1e], 0
jne 0x4fb1a4
mov edi, str.MATCH
nop dword [eax]
inc edi
cmp byte [edi], 0
jne 0x4fb110
mov eax, dword [esi + 0x44]
sub edi, str.MATCH
and edi, 0x3fffffff
test eax, eax
je 0x4fb133
push eax
call dword [0x586f18]
add esp, 4
push 0
push 1
push 2
push edi
mov edx, str.MATCH
mov ecx, esi
call fcn.0051bbd0
add esp, 0x10
test eax, eax
jne 0x4fb169
sub esp, 8
mov edx, str.MATCH
mov ecx, esi
push 0x532870
push eax
push 1
push 2
call fcn.004fb710
add esp, 0x18
xor eax, eax
cmp byte [esi + 0x1e], al
je 0x4fb185
push eax
push 7
push esi
call fcn.005475d0
add esp, 0xc
mov byte [esi + 0x1e], 0
mov eax, 7
mov edi, dword [esi + 0x18]
and edi, eax
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4fb19b
push eax
call dword [0x586f20]
add esp, 4
cmp edi, 7
jne 0x4fb1a4
mov byte [esi + 0x1e], 1
cmp dword [0x58956c], 0
mov dword [ebp - 8], 1
je 0x4fb2c1
xor ebx, ebx
mov dword [ebp - 0xc], ebx
nop dword [eax]
cmp dword [0x586ed4], 0
jne 0x4fb1cd
xor edi, edi
jmp 0x4fb1e8
push 2
call dword [0x586f10]
mov edi, eax
add esp, 4
test edi, edi
je 0x4fb1e8
push edi
call dword [0x586f18]
add esp, 4
cmp ebx, dword [0x58956c]
jl 0x4fb1f7
xor ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x4fb1ff
mov eax, dword [0x589570]
mov ebx, dword [eax + ebx*4]
test edi, edi
je 0x4fb20d
push edi
call dword [0x586f20]
add esp, 4
xor edi, edi
mov dword [ebp - 4], edi
test ebx, ebx
je 0x4fb242
push 0x56c4c8
lea eax, [ebp - 4]
push eax
push esi
call ebx
add esp, 0xc
test eax, eax
je 0x4fb23f
push dword [ebp - 4]
push str.automatic_extension_loading_failed:__s
push 1
push esi
call fcn.005475d0
add esp, 0x10
mov dword [ebp - 8], edi
mov edi, dword [ebp - 4]
test edi, edi
je 0x4fb2b0
cmp dword [0x586ed0], 0
je 0x4fb2a6
mov eax, dword [0x589800]
test eax, eax
je 0x4fb262
push eax
call dword [0x586f18]
add esp, 4
push edi
call dword [0x586ef4]
mov ecx, dword [0x589688]
neg eax
add ecx, eax
add esp, 4
mov dword [0x589688], ecx
cmp ecx, dword [0x5896ac]
jle 0x4fb28a
mov dword [0x5896ac], ecx
push edi
call dword [0x586eec]
mov eax, dword [0x589800]
add esp, 4
test eax, eax
je 0x4fb2b0
push eax
call dword [0x586f20]
jmp 0x4fb2ad
push edi
call dword [0x586eec]
add esp, 4
mov ebx, dword [ebp - 0xc]
inc ebx
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], ebx
jne 0x4fb1c0
mov eax, dword [esi + 0x38]
mov edi, esi
cmp eax, 0x4b771290
je 0x4fb2df
cmp eax, 0xa029a697
je 0x4fb2df
cmp eax, 0xf03b7906
jne 0x4faec9
cmp byte [esi + 0x1e], 0
jne 0x4faec9
mov eax, dword [esi + 0x18]
and eax, dword [esi + 0x14]
jne 0x4faec9
push eax
push eax
push esi
call fcn.005475d0
add esp, 0xc
mov ecx, esi
push dword [0x586ee4]
push dword [0x586ee0]
call fcn.004fbbd0
add esp, 8
jmp 0x4faec9
cmp byte [esi + 0x1e], 0
mov ecx, edi
jne 0x4fb34a
mov ebx, dword [esi + 0x18]
and ebx, dword [esi + 0x14]
cmp ebx, 7
je 0x4fb34f
test ebx, ebx
je 0x4fb356
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x38], 0x4b771290
mov dword [eax], edi
movzx eax, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
mov ebx, 7
call fcn.0054b110
xor edi, edi
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
movzx eax, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret