Function at 0x4f6d95
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
push 0
push eax
push 0x1b
push ebx
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x50], xmm0
call fcn.004fa9ab
mov esi, eax
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x24], esi
inc eax
mov dword [ebp - 0x3c], eax
test esi, esi
jne 0x4f6e4e
push dword [ebx + 0xf8]
mov edi, dword [ebp - 0xc]
push eax
push edi
call fcn.004e5a01
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
push edi
call fcn.004e6326
pop ecx
cmp eax, 0x64
jne 0x4f6e45
push 0
push edi
call fcn.004e693d
and dword [ebp - 0x38], 0
cmp dword [ebx + 0xf8], 0
pop ecx
pop ecx
mov dword [ebp - 0x34], eax
jle 0x4f6e41
mov edi, dword [ebp - 0x38]
lea ecx, [ebp - 0x24]
push ecx
push edi
push eax
push ebx
call fcn.004f260a
xor dword [ebp - 0x18], eax
add esp, 0x10
xor dword [ebp - 0x1c], edx
inc edi
mov eax, dword [ebp - 0x34]
cmp edi, dword [ebx + 0xf8]
jl 0x4f6e1a
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0xc]
test esi, esi
je 0x4f6df1
push edi
call fcn.004ddf9f
pop ecx
jmp 0x4f6e5a
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x1b
push ebx
call fcn.004fa9ab
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4f7072
mov eax, dword [ebx + 0x24]
push dword [ebx + 0xd8]
push str.SELECT__s
mov eax, dword [eax]
and dword [ebp - 4], esi
mov dword [ebp - 0x38], eax
call fcn.004e3a06
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4f6ea6
push 7
pop esi
mov edi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x50]
jmp 0x4f7067
push 0
lea eax, [ebp - 4]
push eax
push 0
push 1
push 0xffffffffffffffff
push edi
push dword [ebx + 0xc]
call fcn.005184c6
push edi
mov esi, eax
call fcn.004e3db5
add esp, 0x20
test esi, esi
jne 0x4f6e9b
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
call fcn.004e6326
pop ecx
cmp eax, 0x64
jne 0x4f7061
push 0
push dword [ebp - 4]
call fcn.004e6964
push dword [ebp - 4]
mov dword [ebp - 0x2c], eax
push ebx
mov dword [ebp - 0x28], edx
call fcn.004fde9c
xor ecx, ecx
mov dword [ebp - 0x24], eax
add esp, 0x10
mov dword [ebp - 0x14], ecx
test esi, esi
jne 0x4f7061
cmp ecx, dword [ebx + 0x18]
jge 0x4f7059
mov eax, dword [ebx + 0x20]
cmp byte [ecx + eax], 0
jne 0x4f704d
lea esi, [ecx + 1]
push esi
push dword [ebp - 4]
call fcn.004dd912
push esi
push dword [ebp - 4]
mov edi, eax
call fcn.004e6827
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push edi
push dword [ebp - 0x24]
push dword [ebx + 0x24]
call fcn.00513d37
mov esi, eax
add esp, 0x24
test esi, esi
jne 0x4f7032
mov edi, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x38]
push dword [ebp - 0x10]
call dword [eax + 0x14]
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4f702f
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0xc]
push dword [ebp - 0x30]
call fcn.004f256c
mov esi, dword [ebp - 8]
xor edi, eax
xor eax, eax
xor esi, edx
mov edx, dword [ebx + 0xf8]
inc eax
add esp, 0x20
mov dword [ebp - 8], esi
mov dword [ebp - 0x4c], edx
mov ecx, eax
mov dword [ebp - 0x34], ecx
cmp edx, eax
jle 0x4f6f66
mov eax, dword [ebx + 0xfc]
mov ebx, dword [ebp - 0x14]
add eax, 0x18
mov dword [ebp - 8], eax
mov edx, dword [eax]
cmp edx, dword [ebp - 0xc]
jg 0x4f7015
push dword [ebp - 0x20]
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push ecx
push dword [ebp - 0x24]
push edx
push dword [ebp - 0x30]
call fcn.004f256c
mov ecx, dword [ebp - 0x34]
xor edi, eax
mov eax, dword [ebp - 8]
add esp, 0x20
xor esi, edx
inc ecx
add eax, 0x18
mov dword [ebp - 0x34], ecx
mov dword [ebp - 8], eax
cmp ecx, dword [ebp - 0x4c]
jl 0x4f6fea
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
jmp 0x4f6f66
mov dword [ebp - 0xc], edi
cmp dword [ebp - 0x10], 0
je 0x4f7042
mov eax, dword [ebp - 0x38]
push dword [ebp - 0x10]
call dword [eax + 0x10]
pop ecx
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp esi, 0x65
cmove esi, eax
inc ecx
mov dword [ebp - 0x14], ecx
test esi, esi
je 0x4f6f14
test esi, esi
je 0x4f6ed6
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.004ddf53
pop ecx
jmp 0x4f7078
mov edi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x50]
cmp dword [ebp - 0x18], ebx
jne 0x4f7082
cmp dword [ebp - 0x1c], edi
je 0x4f7086
and dword [ebp - 0x3c], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x3c]
pop edi
mov dword [eax], ecx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret