Function at 0x4e0774
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e00
xor eax, eax
push ebp
push 0x4e09d4
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
call fcn.00404c10
mov dword [ebp - 0xc], eax
call fcn.0040315c
mov eax, dword [ebp - 0xc]
test eax, eax
jle 0x4e086e
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], 1
mov eax, 5
call fcn.0040342c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
movzx eax, byte [eax + edx - 1]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, 0x3e
cdq
idiv ecx
inc edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
mov ecx, 0x3e
cdq
idiv ecx
shl eax, 3
add eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x38]
push eax
mov ecx, 1
mov edx, dword [ebp - 0x10]
mov eax, 0x4e09e8
call fcn.00404e70
push dword [ebp - 0x38]
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x4e09e8
mov ecx, 1
mov edx, dword [ebp - 0x18]
call fcn.00404e70
push dword [ebp - 0x3c]
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404cd0
inc dword [ebp - 0x20]
dec dword [ebp - 0x34]
jne 0x4e07d8
mov edx, 0x4e0a30
mov eax, 0x4e0a3c
call fcn.004e069c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4e08d1
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x40]
push eax
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x28]
call fcn.00408ea8
mov edx, dword [ebp - 0x44]
pop eax
call fcn.00404f54
test eax, eax
jle 0x4e08c9
mov dword [ebp - 0x30], 1
inc dword [ebp - 0x24]
dec dword [ebp - 0x34]
jne 0x4e0898
cmp dword [ebp - 0x30], 1
jne 0x4e099e
lea eax, [ebp - 0x28]
call fcn.00404950
mov eax, dword [ebp - 4]
call fcn.00404c10
mov dword [ebp - 0xc], eax
call fcn.0040315c
mov eax, dword [ebp - 0xc]
test eax, eax
jle 0x4e099e
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], 1
mov eax, 5
call fcn.0040342c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
movzx eax, byte [eax + edx - 1]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, 0x3e
cdq
idiv ecx
inc edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
mov ecx, 0x3e
cdq
idiv ecx
shl eax, 3
add eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x48]
push eax
mov eax, 0x4e09e8
mov ecx, 1
mov edx, dword [ebp - 0x10]
call fcn.00404e70
push dword [ebp - 0x48]
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x4e09e8
mov ecx, 1
mov edx, dword [ebp - 0x18]
call fcn.00404e70
push dword [ebp - 0x4c]
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404cd0
inc dword [ebp - 0x20]
dec dword [ebp - 0x34]
jne 0x4e0908
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x28]
call fcn.004049a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e09db
lea eax, [ebp - 0x4c]
mov edx, 6
call fcn.00404974
lea eax, [ebp - 0x28]
call fcn.00404950
lea eax, [ebp - 4]
call fcn.00404950
ret