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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
cmp byte [esi + 4], 0
je 0x4f7401
push ebx
push edi
mov edi, dword [ebp + 8]
movzx ebx, byte [edi]
movzx edx, byte [edi + 1]
movzx ecx, byte [edi + 2]
movzx eax, byte [edi + 3]
shl ebx, 8
or ebx, edx
movzx edx, byte [edi + 6]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edi + 7]
shl ebx, 8
or ebx, eax
movzx eax, byte [edi + 4]
xor ebx, dword [esi + 8]
movzx esi, byte [edi + 5]
shl eax, 8
or eax, esi
mov dword [ebp - 8], ebx
movzx esi, byte [edi + 9]
shl eax, 8
or eax, edx
movzx edx, byte [edi + 0xa]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp - 0x10]
xor eax, dword [ecx + 0xc]
movzx ecx, byte [edi + 8]
mov dword [ebp + 8], ecx
shl dword [ebp + 8], 8
or dword [ebp + 8], esi
mov esi, dword [ebp + 8]
movzx ecx, byte [edi + 0xb]
shl esi, 8
or esi, edx
mov edx, esi
mov dword [ebp + 8], esi
shl edx, 8
or edx, ecx
mov ecx, dword [ebp - 0x10]
xor edx, dword [ecx + 0x10]
movzx ecx, byte [edi + 0xd]
mov dword [ebp + 8], edx
movzx edx, byte [edi + 0xc]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 0xe]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 0xf]
mov edi, dword [ebp - 0x10]
shl edx, 8
or edx, ecx
xor edx, dword [edi + 0x14]
mov esi, dword [edi + 0x3d0]
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], esi
cmp esi, 1
jle 0x4f728b
lea ecx, [edi + 0x30]
mov dword [ebp - 8], ecx
lea ecx, [esi - 1]
mov dword [ebp - 0x14], ecx
nop
mov ecx, edx
sar ecx, 8
movzx edx, cl
mov ecx, dword [ebp + 8]
sar ecx, 0x10
movzx ecx, cl
mov edi, dword [edx*4 + 0x7fcbc8]
xor edi, dword [ecx*4 + 0x7fd7c8]
mov ecx, eax
sar ecx, 0x18
movzx ecx, cl
xor edi, dword [ecx*4 + 0x7fd3c8]
movzx ecx, bl
xor edi, dword [ecx*4 + 0x7fcfc8]
mov ecx, dword [ebp - 8]
xor edi, dword [ecx - 4]
mov ecx, dword [ebp - 4]
sar ecx, 0x10
movzx edx, cl
mov ecx, dword [ebp + 8]
sar ecx, 0x18
movzx ecx, cl
mov esi, dword [edx*4 + 0x7fd7c8]
xor esi, dword [ecx*4 + 0x7fd3c8]
mov ecx, ebx
sar ecx, 8
movzx ecx, cl
xor esi, dword [ecx*4 + 0x7fcbc8]
movzx ecx, al
xor esi, dword [ecx*4 + 0x7fcfc8]
mov ecx, dword [ebp - 8]
xor esi, dword [ecx]
mov ecx, dword [ebp - 4]
sar ecx, 0x18
movzx edx, cl
mov ecx, eax
sar ecx, 8
movzx ecx, cl
sar eax, 0x10
mov edx, dword [edx*4 + 0x7fd3c8]
movzx eax, al
xor edx, dword [ecx*4 + 0x7fcbc8]
mov ecx, ebx
sar ecx, 0x10
movzx ecx, cl
sar ebx, 0x18
xor edx, dword [ecx*4 + 0x7fd7c8]
mov ecx, dword [ebp + 8]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x7fcfc8]
mov ecx, dword [ebp - 8]
xor edx, dword [ecx + 4]
mov ecx, dword [ebp + 8]
sar ecx, 8
movzx ecx, cl
mov dword [ebp + 8], esi
mov ecx, dword [ecx*4 + 0x7fcbc8]
xor ecx, dword [eax*4 + 0x7fd7c8]
movzx eax, bl
xor ecx, dword [eax*4 + 0x7fd3c8]
mov eax, dword [ebp - 4]
movzx eax, al
mov dword [ebp - 4], edx
xor ecx, dword [eax*4 + 0x7fcfc8]
mov eax, dword [ebp - 8]
add dword [ebp - 8], 0x20
xor ecx, dword [eax - 8]
mov eax, edi
sub dword [ebp - 0x14], 1
mov ebx, ecx
jne 0x4f7170
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 8]
sar ecx, 0x18
movzx ecx, cl
shl esi, 5
mov dword [ebp - 0xc], esi
mov ebx, dword [esi + edi + 8]
mov edx, ebx
mov esi, dword [ebp + 0xc]
sar edx, 0x18
xor dl, byte [ecx + 0x7fdbc8]
mov ecx, eax
sar ecx, 0x10
movzx ecx, cl
mov byte [esi], dl
mov edx, ebx
sar edx, 0x10
xor dl, byte [ecx + 0x7fdbc8]
mov ecx, dword [ebp + 8]
sar ecx, 8
movzx ecx, cl
mov byte [esi + 1], dl
mov edx, ebx
sar edx, 8
xor dl, byte [ecx + 0x7fdbc8]
mov ecx, dword [ebp - 4]
movzx ecx, cl
mov byte [esi + 2], dl
movzx ecx, byte [ecx + 0x7fdbc8]
xor cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [esi + 3], cl
mov ecx, eax
sar ecx, 0x18
movzx ecx, cl
mov ebx, dword [ebx + edi + 0xc]
mov edx, ebx
sar edx, 0x18
xor dl, byte [ecx + 0x7fdbc8]
mov ecx, dword [ebp + 8]
sar ecx, 0x10
movzx ecx, cl
mov byte [esi + 4], dl
mov edx, ebx
sar edx, 0x10
xor dl, byte [ecx + 0x7fdbc8]
mov ecx, dword [ebp - 4]
sar ecx, 8
movzx ecx, cl
mov byte [esi + 5], dl
mov edx, ebx
sar edx, 8
xor dl, byte [ecx + 0x7fdbc8]
mov ecx, dword [ebp - 8]
movzx ecx, cl
mov byte [esi + 6], dl
movzx ecx, byte [ecx + 0x7fdbc8]
xor cl, bl
mov byte [esi + 7], cl
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ecx + edi + 0x10]
mov edx, ebx
mov ecx, dword [ebp + 8]
sar ecx, 0x18
movzx ecx, cl
sar edx, 0x18
xor dl, byte [ecx + 0x7fdbc8]
mov ecx, dword [ebp - 4]
sar ecx, 0x10
mov byte [esi + 8], dl
mov edx, ebx
movzx ecx, cl
sar edx, 0x10
xor dl, byte [ecx + 0x7fdbc8]
mov ecx, dword [ebp - 8]
sar ecx, 8
mov byte [esi + 9], dl
mov edx, ebx
movzx ecx, cl
sar edx, 8
xor dl, byte [ecx + 0x7fdbc8]
mov byte [esi + 0xa], dl
movzx ecx, al
sar eax, 8
movzx eax, al
movzx ecx, byte [ecx + 0x7fdbc8]
xor cl, bl
mov byte [esi + 0xb], cl
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ecx + edi + 0x14]
mov edx, ebx
mov ecx, dword [ebp - 4]
sar ecx, 0x18
movzx ecx, cl
sar edx, 0x18
pop edi
xor dl, byte [ecx + 0x7fdbc8]
mov ecx, dword [ebp - 8]
sar ecx, 0x10
movzx ecx, cl
mov byte [esi + 0xc], dl
mov edx, ebx
sar edx, 0x10
xor dl, byte [ecx + 0x7fdbc8]
mov ecx, ebx
sar ecx, 8
xor cl, byte [eax + 0x7fdbc8]
mov eax, dword [ebp + 8]
movzx eax, al
mov byte [esi + 0xd], dl
mov byte [esi + 0xe], cl
mov al, byte [eax + 0x7fdbc8]
xor al, bl
mov byte [esi + 0xf], al
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8