Function at 0x4e0770
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov edx, dword [0xcc06c0]
test edx, edx
je 0x4e094f
cmp dword [esp + 0xd4], 0x1e
ja 0x4e0acc
mov eax, dword [esp + 0xd4]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0xdc]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0xd4]
sub eax, 2
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xd4]
cmp byte [eax + 0xcc00fe], 0
je 0x4e09c9
mov edi, dword [esp + 0x1c]
mov eax, edi
shl eax, 5
sub eax, edi
add eax, 0xcc0120
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x4e0916
mov eax, dword [esp + 0xd8]
mov ebp, 0x80808081
mov dword [esp + 0x1c], eax
add eax, dword [esp + 0xd0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xdc]
add eax, 1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xd4]
sub eax, 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xdc]
add eax, dword [esp + 0xd4]
mov dword [esp + 0x18], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0xdc]
movzx eax, byte [eax]
xor al, byte [edi]
movzx eax, al
movzx eax, byte [eax + 0xcc04c0]
cmp al, 0xff
je 0x4e0923
cmp dword [esp + 0xd4], 1
movzx edi, al
jbe 0x4e08ba
mov esi, dword [esp + 0x28]
add esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
nop
lea esi, [esi]
movzx ecx, byte [esi]
sub esi, 1
add ecx, edi
mov eax, ecx
mul ebp
shr edx, 7
mov eax, edx
shl eax, 8
sub eax, edx
sub ecx, eax
movzx eax, byte [ecx + 0xcc05c0]
xor byte [ebx], al
add ebx, 1
cmp dword [esp + 0x18], ebx
jne 0x4e0890
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 8], esi
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0xdc]
movzx eax, byte [eax]
add edi, eax
mov eax, edi
mul ebp
shr edx, 7
mov eax, edx
shl eax, 8
sub eax, edx
sub edi, eax
movzx eax, byte [edi + 0xcc05c0]
mov byte [ebx + esi], al
add dword [esp + 0x1c], 1
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jne 0x4e0850
add esp, 0xbc
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 8], edi
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov esi, dword [esp + 0xdc]
mov byte [esi + edi], 0
jmp 0x4e0903
mov byte [0xcc06bf], 0
mov byte [0xcc04c0], 0xff
xor edx, edx
mov byte [0xcc05c0], 1
mov byte [0xcc04c1], 0
mov eax, 2
jmp 0x4e0991
mov byte [edx + 0xcc05c0], al
lea eax, [ecx + ecx]
mov byte [ecx + 0xcc04c0], dl
mov ecx, eax
xor ecx, 0x11d
test ah, 1
cmovne eax, ecx
add edx, 1
movzx ecx, al
cmp edx, 0xff
jne 0x4e0974
xor eax, eax
mov dword [eax + 0xcc0100], 0
add eax, 4
cmp eax, 0x1c
jb 0x4e09a1
mov byte [eax + 0xcc0100], 0
mov dword [0xcc06c0], 1
jmp 0x4e0788
test eax, eax
mov dword [esp + 0x34], 1
je 0x4e0adc
lea eax, [esp + 0x38]
lea ebp, [esp + 0x34]
mov dword [esp + 0x38], 1
mov esi, 1
mov edi, 0x80808081
mov dword [esp + 0x18], eax
mov eax, 1
lea esi, [esi]
movzx eax, byte [eax + 0xcc04c0]
lea ecx, [esi + eax - 1]
mov eax, ecx
mul edi
shr edx, 7
mov eax, edx
shl eax, 8
sub eax, edx
sub ecx, eax
cmp dword [esp + 0xd4], esi
movzx edx, byte [ecx + 0xcc05c0]
mov dword [esp + 0x34], edx
je 0x4e0a7e
mov eax, dword [esp + 0x18]
test esi, esi
mov dword [eax + 4], 1
je 0x4e0a70
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx]
sub ebx, 4
movzx ecx, byte [eax + 0xcc04c0]
add ecx, esi
mov eax, ecx
mul edi
shr edx, 7
mov eax, edx
shl eax, 8
sub eax, edx
sub ecx, eax
movzx eax, byte [ecx + 0xcc05c0]
xor eax, dword [ebx]
mov dword [ebx + 4], eax
cmp ebp, ebx
jne 0x4e0a42
mov eax, dword [esp + 0x34]
add esi, 1
add dword [esp + 0x18], 4
jmp 0x4e0a00
mov eax, dword [esp + 0xd4]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x1c]
mov ecx, eax
shl ecx, 5
sub ecx, eax
xor eax, eax
jmp 0x4e0aa4
mov edx, dword [esp + eax*4 + 0x34]
movzx edx, byte [edx + 0xcc04c0]
mov byte [ecx + eax + 0xcc0120], dl
add eax, 1
cmp ebx, eax
jne 0x4e0aa0
mov eax, dword [esp + 0xd4]
mov byte [eax + 0xcc00fe], 1
jmp 0x4e07da
add esp, 0xbc
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x1c]
movzx edx, byte [0xcc04c1]
mov eax, edi
shl eax, 5
sub eax, edi
mov byte [eax + 0xcc0120], dl
jmp 0x4e0ab9