Function at 0x4e0f80
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0x24
mov eax, edx
push ebx
push esi
sub eax, 0x80
mov esi, 6
je 0x4e0fba
sub eax, 0x40
je 0x4e0fb4
sub eax, 0x40
je 0x4e0faa
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret
mov dword [esp + 0x34], 8
jmp 0x4e0fc2
mov dword [esp + 0x34], esi
jmp 0x4e0fc2
mov dword [esp + 0x34], 4
mov ecx, dword [esp + 0x38]
mov eax, ecx
sub eax, 0x80
je 0x4e0ff4
sub eax, 0x40
je 0x4e0fee
sub eax, 0x40
je 0x4e0fe4
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 0x24
ret
mov dword [esp + 0x38], 8
jmp 0x4e0ffc
mov dword [esp + 0x38], esi
jmp 0x4e0ffc
mov dword [esp + 0x38], 4
cmp edx, ecx
mov eax, edx
jge 0x4e1004
mov eax, ecx
sub eax, 0x80
je 0x4e102e
sub eax, 0x40
je 0x4e1027
sub eax, 0x40
je 0x4e1020
pop esi
mov eax, 0xfffffffd
pop ebx
add esp, 0x24
ret
mov ebx, 0xe
jmp 0x4e1033
mov ebx, 0xc
jmp 0x4e1033
mov ebx, 0xa
mov eax, dword [esp + 0x34]
push ebp
push edi
xor edi, edi
test eax, eax
jle 0x4e1068
mov ebp, dword [esp + 0x38]
mov ecx, ebp
lea edx, [esp + 0x14]
lea eax, [esp + edi + 0x14]
sub ecx, edx
mov esi, 4
mov dl, byte [ecx + eax]
mov byte [eax], dl
add eax, 8
dec esi
jne 0x4e1054
mov eax, dword [esp + 0x3c]
inc edi
cmp edi, eax
jl 0x4e1043
mov eax, dword [esp + 0x3c]
xor ebp, ebp
test eax, eax
jle 0x4e10b8
lea edi, [ebx + 1]
imul edi, dword [esp + 0x40]
cmp ebp, edi
jge 0x4e10b8
mov eax, ebp
lea ecx, [esp + ebp + 0x14]
cdq
idiv dword [esp + 0x40]
mov esi, eax
mov eax, ebp
cdq
idiv dword [esp + 0x40]
mov eax, dword [esp + 0x44]
shl esi, 5
add eax, esi
mov esi, 4
add edx, eax
mov al, byte [ecx]
add ecx, 8
mov byte [edx], al
add edx, 8
dec esi
jne 0x4e10a2
mov eax, dword [esp + 0x3c]
inc ebp
cmp ebp, eax
jl 0x4e107a
lea edx, [ebx + 1]
imul edx, dword [esp + 0x40]
cmp ebp, edx
mov dword [esp + 0x38], edx
jge 0x4e11f7
mov dword [esp + 0x10], 0x4d9078
mov esi, dword [esp + 0x3c]
xor eax, eax
lea ecx, [esp + 0x14]
inc eax
mov edi, eax
and edi, 0x80000003
jns 0x4e10ee
dec edi
or edi, 0xfffffffc
inc edi
lea edi, [esi + edi*8]
xor ebx, ebx
add ecx, 8
mov bl, byte [esp + edi + 0x13]
mov bl, byte [ebx + 0x4d8e78]
xor byte [ecx - 8], bl
cmp eax, 4
jl 0x4e10de
mov eax, dword [esp + 0x10]
mov bl, byte [esp + 0x14]
mov cl, byte [eax]
add eax, 4
xor bl, cl
cmp esi, 8
mov byte [esp + 0x14], bl
mov dword [esp + 0x10], eax
mov esi, 1
je 0x4e1150
mov ebx, dword [esp + 0x3c]
cmp ebx, esi
jle 0x4e11aa
lea eax, [esp + esi + 0x14]
mov ecx, 4
mov dl, byte [eax - 1]
xor byte [eax], dl
add eax, 8
dec ecx
jne 0x4e113a
inc esi
cmp esi, ebx
jl 0x4e1131
mov edx, dword [esp + 0x38]
jmp 0x4e11aa
lea eax, [esp + esi + 0x14]
mov ecx, 4
mov bl, byte [eax - 1]
xor byte [eax], bl
add eax, 8
dec ecx
jne 0x4e1159
inc esi
cmp esi, 4
jl 0x4e1150
lea eax, [esp + 0x18]
mov ecx, 4
xor ebx, ebx
mov bl, byte [eax - 1]
add eax, 8
mov bl, byte [ebx + 0x4d8e78]
xor byte [eax - 8], bl
dec ecx
jne 0x4e1173
mov esi, 5
lea eax, [esp + esi + 0x14]
mov ecx, 4
mov bl, byte [eax - 1]
xor byte [eax], bl
add eax, 8
dec ecx
jne 0x4e1195
inc esi
cmp esi, 8
jl 0x4e118c
mov ebx, dword [esp + 0x3c]
xor edi, edi
test ebx, ebx
jle 0x4e11ef
cmp ebp, edx
jge 0x4e11f7
mov eax, ebp
lea ecx, [esp + edi + 0x14]
cdq
idiv dword [esp + 0x40]
mov esi, eax
mov eax, ebp
cdq
idiv dword [esp + 0x40]
mov eax, dword [esp + 0x44]
shl esi, 5
add eax, esi
mov esi, 4
add edx, eax
mov al, byte [ecx]
add ecx, 8
mov byte [edx], al
add edx, 8
dec esi
jne 0x4e11d8
mov edx, dword [esp + 0x38]
inc edi
inc ebp
cmp edi, ebx
jl 0x4e11b0
cmp ebp, edx
jl 0x4e10d4
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x24
ret