Function at 0x4f8bf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1a78
call fcn.0049b950
mov edi, dword [ebp + 0x10]
mov eax, dword [0x550014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x17f8]
push 0x17e8
push 0xff
push eax
call fcn.0049dcc0
add esp, 0xc
mov eax, 0xcc
lea ecx, [ebp - 0x1990]
lea esi, [ecx + eax]
push eax
push 0
push ecx
call fcn.0049dcc0
add esp, 0xc
mov ebx, 0x44
push ebx
push edi
push esi
call fcn.0049d740
add esp, 0xc
lea eax, [edi + ebx]
lea ecx, [ebp - 0x1880]
push ebx
push eax
push ecx
call fcn.0049d740
add esp, 0xc
add edi, 0x88
lea eax, [ebp - 0x183c]
push ebx
push edi
push eax
call fcn.0049d740
add esp, 0xc
mov ebx, 2
mov eax, esi
lea edi, [eax + 0xcc]
test bl, 1
jne 0x4f8cad
mov eax, ebx
shr eax, 1
imul eax, eax, 0xcc
add eax, ebp
add eax, 0xffffe670
push eax
push edi
push dword [ebp + 8]
call fcn.004f7a50
add esp, 0xc
jmp 0x4f8cbb
push eax
push esi
push edi
push dword [ebp + 8]
call fcn.004f6f70
add esp, 0x10
inc ebx
mov eax, edi
cmp ebx, 0x20
jne 0x4f8c82
mov esi, dword [ebp + 8]
lea eax, [esi + 8]
push eax
call fcn.0043b510
add esp, 4
test eax, eax
je 0x4f8f2d
mov ebx, eax
dec eax
mov edx, 0x88
lea ecx, [ebp - 0x1a5c]
add ecx, edx
mov dword [ebp - 0x1a7c], ecx
mov ecx, dword [ebp + 0xc]
add edx, ecx
mov dword [ebp - 0x1a80], edx
add ecx, 0x44
mov dword [ebp - 0x1a78], ecx
xor edx, edx
inc edx
mov edi, ebx
mov dword [ebp - 0x1a6c], ebx
mov ecx, eax
test edx, edx
je 0x4f8ee4
imul eax, ecx, 0xcccccccd
cmp eax, 0x33333333
jbe 0x4f8d34
lea eax, [ecx - 1]
mov edi, ecx
cmp eax, ebx
jb 0x4f8d0f
jmp 0x4f8f29
mov dword [ebp - 0x1a68], edx
mov dword [ebp - 0x1a60], ecx
mov ebx, dword [esi + 0xc]
lea edx, [edi + 3]
mov esi, edx
shr esi, 5
xor ecx, ecx
mov eax, 0
mov dword [ebp - 0x1a64], ebx
cmp esi, ebx
jae 0x4f8d6a
mov eax, dword [ebp + 0x14]
mov esi, dword [eax + esi*4]
xor eax, eax
bt esi, edx
setb al
lea edx, [edi + 2]
mov esi, edx
shr esi, 5
cmp esi, dword [ebp - 0x1a64]
jae 0x4f8d88
mov ecx, dword [ebp + 0x14]
mov esi, dword [ecx + esi*4]
xor ecx, ecx
bt esi, edx
setb cl
shl eax, 4
shl ecx, 3
lea esi, [edi + 1]
mov dword [ebp - 0x1a84], esi
shr esi, 5
xor ebx, ebx
mov edx, 0
cmp esi, dword [ebp - 0x1a64]
jae 0x4f8dd5
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + esi*4]
mov dword [ebp - 0x1a74], edx
xor edx, edx
mov esi, dword [ebp - 0x1a84]
mov dword [ebp - 0x1a70], eax
mov eax, dword [ebp - 0x1a74]
bt eax, esi
mov eax, dword [ebp - 0x1a70]
setb dl
or ecx, eax
shl edx, 2
mov eax, edi
shr eax, 5
cmp eax, dword [ebp - 0x1a64]
jae 0x4f8df5
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + eax*4]
xor ebx, ebx
bt eax, edi
setb bl
or edx, ecx
add ebx, ebx
mov eax, dword [ebp - 0x1a60]
shr eax, 5
xor edi, edi
mov esi, 0
cmp eax, dword [ebp - 0x1a64]
jae 0x4f8e27
mov ecx, dword [ebp + 0x14]
mov esi, dword [ecx + eax*4]
xor eax, eax
mov ecx, dword [ebp - 0x1a60]
bt esi, ecx
setb al
mov esi, eax
or ebx, edx
push 0xcc
push 0
lea eax, [ebp - 0x1a5c]
push eax
call fcn.0049dcc0
add esp, 0xc
or esi, ebx
mov dword [ebp - 0x1a64], esi
not ebx
lea esi, [ebp - 0x1990]
mov eax, edi
xor eax, dword [ebp - 0x1a64]
dec eax
and eax, ebx
sar eax, 0x1f
lea ecx, [ebp - 0x1a5c]
push ecx
push esi
push eax
push ecx
push dword [ebp + 8]
call fcn.004f6800
add esp, 0x14
inc edi
add esi, 0xcc
cmp edi, 0x20
jne 0x4f8e4f
cmp dword [ebp - 0x1a68], 0
je 0x4f8f0f
mov esi, 0x44
push esi
lea eax, [ebp - 0x1a5c]
push eax
push dword [ebp + 0xc]
call fcn.0049d740
add esp, 0xc
push esi
lea eax, [ebp - 0x1a18]
push eax
push dword [ebp - 0x1a78]
call fcn.0049d740
add esp, 0xc
push esi
push dword [ebp - 0x1a7c]
push dword [ebp - 0x1a80]
call fcn.0049d740
add esp, 0xc
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x1a6c]
mov ecx, dword [ebp - 0x1a60]
xor edx, edx
jmp 0x4f8d26
mov eax, dword [ebp + 0xc]
push eax
push eax
push esi
mov dword [ebp - 0x1a60], ecx
mov dword [ebp - 0x1a68], edx
call fcn.004f7a50
mov edx, dword [ebp - 0x1a68]
mov ecx, dword [ebp - 0x1a60]
add esp, 0xc
jmp 0x4f8d19
lea eax, [ebp - 0x1a5c]
push eax
mov eax, dword [ebp + 0xc]
push eax
push eax
mov esi, dword [ebp + 8]
push esi
call fcn.004f6f70
add esp, 0x10
jmp 0x4f8ed1
test edx, edx
je 0x4f8f3f
push 0xcc
push 0
push dword [ebp + 0xc]
call fcn.0049dcc0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b033
add esp, 0x1a78
pop esi
pop edi
pop ebx
pop ebp
ret