Function at 0x4f8080
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.004f9280
test eax, eax
jne 0x4f86de
mov ebx, dword [ebp + 8]
cmp dword [0x583ed4], eax
jne 0x4f80b3
xor edi, edi
jmp 0x4f80d3
test ebx, 0x8000
je 0x4f80bf
xor edi, edi
jmp 0x4f80d3
mov edi, dword [0x583ed8]
test ebx, 0x10000
mov eax, 1
cmovne edi, eax
test ebx, 0x40000
je 0x4f80e3
and ebx, 0xfffdffff
jmp 0x4f80f2
cmp dword [0x583f84], 0
je 0x4f80f2
or ebx, 0x20000
and ebx, 0xfffe00e7
push 0x1d8
mov dword [ebp + 8], ebx
call fcn.00547470
mov esi, eax
add esp, 4
mov dword [ebp - 0xc], esi
test esi, esi
je 0x4f86c8
push 0x1d8
push 0
push esi
call fcn.004359a0
add esp, 0xc
test edi, edi
je 0x4f816b
cmp dword [0x583ed4], 0
jne 0x4f8149
push esi
mov dword [esi + 0x44], 0
call fcn.00547110
add esp, 4
xor ecx, ecx
jmp 0x4f86ca
push 1
call dword [0x583f10]
add esp, 4
mov dword [esi + 0x44], eax
test eax, eax
jne 0x4f816b
push esi
call fcn.00547110
add esp, 4
xor ecx, ecx
jmp 0x4f86ca
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4f817c
push eax
call dword [0x583f18]
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 [0x569010]
movups xmmword [esi + 0x48], xmm0
movups xmm0, xmmword [0x569020]
movups xmmword [esi + 0x58], xmm0
movq xmm0, qword [0x569030]
movq qword [esi + 0x68], xmm0
mov eax, dword [0x569038]
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.00547c40
mov dword [esi], eax
test eax, eax
jne 0x4f8299
push eax
push str.no_such_vfs:__s
push 1
push esi
call fcn.00544950
add esp, 0x10
mov edi, esi
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4f825a
push eax
call dword [0x583f20]
add esp, 4
mov eax, dword [esi + 0x38]
cmp eax, 0x4b771290
je 0x4f869b
cmp eax, 0xa029a697
je 0x4f869b
cmp eax, 0xf03b7906
je 0x4f869b
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 0x4f8e60
push 0
push 1
push 1
mov edx, str.BINARY
mov ecx, esi
call fcn.004f86f0
add esp, 0x10
mov edx, str.BINARY
mov ecx, esi
push 0x4f8e60
push 0
push 1
push 3
call fcn.004f86f0
add esp, 0x10
mov edx, str.BINARY
mov ecx, esi
push 0x4f8e60
push 0
push 1
push 2
call fcn.004f86f0
add esp, 0x10
mov edx, str.RTRIM
mov ecx, esi
push 0x4f8e60
push 1
push 0
push 1
call fcn.004f86f0
add esp, 0x14
mov edi, esi
cmp byte [esi + 0x1e], 0
jne 0x4f8249
mov edi, str.BINARY
inc edi
cmp byte [edi], 0
jne 0x4f8313
sub edi, str.BINARY
lea eax, [esi + 0x180]
and edi, 0x3fffffff
cmp dword [eax + 0xc], 0
je 0x4f8380
mov ecx, str.BINARY
xor eax, eax
mov dword [ebp - 8], ecx
test edi, edi
je 0x4f8370
xor ebx, ebx
mov esi, edi
movzx eax, byte [ecx]
dec esi
lea ecx, [ebx*8]
movzx edx, byte [eax + 0x569750]
xor edx, ecx
mov ecx, dword [ebp - 8]
inc ecx
xor ebx, edx
mov dword [ebp - 8], ecx
test esi, esi
jg 0x4f8343
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 0x4f8382
xor edx, edx
push edx
push edi
mov edx, str.BINARY
mov ecx, eax
call fcn.00543530
add esp, 8
test eax, eax
je 0x4f839c
mov eax, dword [eax + 8]
jmp 0x4f839e
xor eax, eax
push ecx
push 0x4f8e30
push 0
push 2
push 1
mov edx, str.NOCASE
mov dword [esi + 0x2c], eax
mov ecx, esi
call fcn.004f86f0
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.004f8950
add esp, 0x10
test eax, eax
je 0x4f8403
cmp eax, 0xc0a
mov ecx, 7
push 0
cmove eax, ecx
push eax
push esi
call fcn.00544950
add esp, 0xc
jmp 0x4f8247
mov edx, dword [esi + 8]
mov ecx, esi
mov edx, dword [edx + 4]
call fcn.00518da0
mov ecx, dword [esi + 8]
xor edx, edx
mov dword [ecx + 0xc], eax
mov ecx, esi
call fcn.00518da0
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 0x4f8247
push 0
push 0
push esi
call fcn.00544950
add esp, 4
mov edx, str.sqlite_rename_table
mov ecx, esi
push 0x5208e0
push 0
push 1
push 2
call fcn.004f8a90
add esp, 0x18
cmp byte [esi + 0x1e], 0
jne 0x4f8524
mov edi, str.MATCH
nop dword [eax]
inc edi
cmp byte [edi], 0
jne 0x4f8490
mov eax, dword [esi + 0x44]
sub edi, str.MATCH
and edi, 0x3fffffff
test eax, eax
je 0x4f84b3
push eax
call dword [0x583f18]
add esp, 4
push 0
push 1
push 2
push edi
mov edx, str.MATCH
mov ecx, esi
call fcn.00518f50
add esp, 0x10
test eax, eax
jne 0x4f84e9
sub esp, 8
mov edx, str.MATCH
mov ecx, esi
push 0x52fbf0
push eax
push 1
push 2
call fcn.004f8a90
add esp, 0x18
xor eax, eax
cmp byte [esi + 0x1e], al
je 0x4f8505
push eax
push 7
push esi
call fcn.00544950
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 0x4f851b
push eax
call dword [0x583f20]
add esp, 4
cmp edi, 7
jne 0x4f8524
mov byte [esi + 0x1e], 1
cmp dword [0x58656c], 0
mov dword [ebp - 8], 1
je 0x4f8641
xor ebx, ebx
mov dword [ebp - 0xc], ebx
nop dword [eax]
cmp dword [0x583ed4], 0
jne 0x4f854d
xor edi, edi
jmp 0x4f8568
push 2
call dword [0x583f10]
mov edi, eax
add esp, 4
test edi, edi
je 0x4f8568
push edi
call dword [0x583f18]
add esp, 4
cmp ebx, dword [0x58656c]
jl 0x4f8577
xor ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x4f857f
mov eax, dword [0x586570]
mov ebx, dword [eax + ebx*4]
test edi, edi
je 0x4f858d
push edi
call dword [0x583f20]
add esp, 4
xor edi, edi
mov dword [ebp - 4], edi
test ebx, ebx
je 0x4f85c2
push 0x5694d8
lea eax, [ebp - 4]
push eax
push esi
call ebx
add esp, 0xc
test eax, eax
je 0x4f85bf
push dword [ebp - 4]
push str.automatic_extension_loading_failed:__s
push 1
push esi
call fcn.00544950
add esp, 0x10
mov dword [ebp - 8], edi
mov edi, dword [ebp - 4]
test edi, edi
je 0x4f8630
cmp dword [0x583ed0], 0
je 0x4f8626
mov eax, dword [0x586800]
test eax, eax
je 0x4f85e2
push eax
call dword [0x583f18]
add esp, 4
push edi
call dword [0x583ef4]
mov ecx, dword [0x586688]
neg eax
add ecx, eax
add esp, 4
mov dword [0x586688], ecx
cmp ecx, dword [0x5866ac]
jle 0x4f860a
mov dword [0x5866ac], ecx
push edi
call dword [0x583eec]
mov eax, dword [0x586800]
add esp, 4
test eax, eax
je 0x4f8630
push eax
call dword [0x583f20]
jmp 0x4f862d
push edi
call dword [0x583eec]
add esp, 4
mov ebx, dword [ebp - 0xc]
inc ebx
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], ebx
jne 0x4f8540
mov eax, dword [esi + 0x38]
mov edi, esi
cmp eax, 0x4b771290
je 0x4f865f
cmp eax, 0xa029a697
je 0x4f865f
cmp eax, 0xf03b7906
jne 0x4f8249
cmp byte [esi + 0x1e], 0
jne 0x4f8249
mov eax, dword [esi + 0x18]
and eax, dword [esi + 0x14]
jne 0x4f8249
push eax
push eax
push esi
call fcn.00544950
add esp, 0xc
mov ecx, esi
push dword [0x583ee4]
push dword [0x583ee0]
call fcn.004f8f50
add esp, 8
jmp 0x4f8249
cmp byte [esi + 0x1e], 0
mov ecx, edi
jne 0x4f86ca
mov ebx, dword [esi + 0x18]
and ebx, dword [esi + 0x14]
cmp ebx, 7
je 0x4f86cf
test ebx, ebx
je 0x4f86d6
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.00548490
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