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

Disassembly:
sub esp, 0x10
movzx eax, byte [edx + 2]
push ebx
push ebp
push esi
movzx esi, byte [edx + 3]
mov ebx, 0x5782e0
shl esi, 8
mov ebp, 0x5784e0
or esi, eax
movzx eax, byte [edx + 1]
push edi
mov edi, ecx
shl esi, 8
movzx ecx, byte [edx + 7]
or esi, eax
movzx eax, byte [edx]
shl ecx, 8
shl esi, 8
or esi, eax
movzx eax, byte [edx + 6]
or ecx, eax
xor esi, dword [edi + 4]
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x10], esi
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xa]
xor ecx, dword [edi + 8]
mov dword [esp + 0x14], ecx
movzx ecx, byte [edx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xe]
xor ecx, dword [edi + 0xc]
mov dword [esp + 0x18], ecx
movzx ecx, byte [edx + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
push ebx
push ebp
shl ecx, 8
lea edx, [esp + 0x1c]
or ecx, eax
lea eax, [esp + 0x24]
xor ecx, dword [edi + 0x10]
push 0x5783e0
push str.cw
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], ecx
push eax
lea ecx, [esp + 0x28]
call fcn.004e7371
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x34]
push eax
lea edx, [esp + 0x34]
lea ecx, [esp + 0x30]
call fcn.004e726c
mov eax, dword [edi + 0x14]
xor dword [esp + 0x30], eax
mov eax, dword [edi + 0x18]
xor dword [esp + 0x34], eax
mov eax, dword [edi + 0x1c]
xor dword [esp + 0x38], eax
mov eax, dword [edi + 0x20]
xor dword [esp + 0x3c], eax
push 2
pop esi
push 0x5783e0
push str.cw
push ebx
push ebp
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x48]
call fcn.004e7371
movzx ebp, byte [edi]
add esp, 0x38
cmp ebp, esi
jbe 0x4e7bf2
lea ebx, [edi + 0x28]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x18]
call fcn.004e726c
mov eax, dword [ebx - 4]
lea edx, [esp + 0x1c]
xor dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov eax, dword [ebx]
xor dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
xor dword [esp + 0x20], eax
mov eax, dword [ebx + 8]
xor dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push 0x5782e0
push 0x5784e0
push 0x5783e0
push str.cw
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004e7371
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x3c]
push eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x38]
call fcn.004e726c
mov eax, dword [ebx + 0xc]
lea edx, [esp + 0x3c]
xor dword [esp + 0x38], eax
lea ecx, [esp + 0x38]
mov eax, dword [ebx + 0x10]
add esi, 2
xor dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x14]
xor dword [esp + 0x40], eax
mov eax, dword [ebx + 0x18]
xor dword [esp + 0x44], eax
lea eax, [esp + 0x44]
push 0x5783e0
push str.cw
push 0x5782e0
push 0x5784e0
push eax
lea eax, [esp + 0x54]
push eax
call fcn.004e7371
add esp, 0x40
lea ebx, [ebx + 0x20]
cmp esi, ebp
jl 0x4e7b26
mov eax, dword [esp + 0x1c]
add esi, esi
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
xor eax, dword [edi + esi*8 + 0x10]
xor ecx, dword [edi + esi*8 + 4]
xor ebx, dword [edi + esi*8 + 0xc]
xor edx, dword [edi + esi*8 + 8]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, ecx
shr eax, 8
pop edi
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ebx
shr eax, 8
mov byte [esi + 9], al
mov eax, ebx
mov byte [esi], cl
shr eax, 0x10
shr ecx, 0x18
mov byte [esi + 0xa], al
mov byte [esi + 3], cl
mov ecx, dword [esp + 0x18]
mov eax, ecx
shr eax, 8
mov byte [esi + 0xd], al
mov eax, ecx
mov byte [esi + 8], bl
mov byte [esi + 4], dl
shr ebx, 0x18
mov byte [esi + 0xc], cl
shr edx, 0x18
shr eax, 0x10
shr ecx, 0x18
mov byte [esi + 0xb], bl
mov byte [esi + 0xe], al
xor eax, eax
mov byte [esi + 7], dl
mov byte [esi + 0xf], cl
pop esi
pop ebp
pop ebx
add esp, 0x10
ret