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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xf0]
shr eax, 1
mov dword [ebp - 0x14], eax
cmp eax, 7
ja 0x490d6d
test eax, eax
je 0x490d6d
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ecx, dword [eax]
mov ebx, ecx
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
rol ecx, 8
and ecx, 0xff00ff
mov eax, dword [eax + 0xc]
ror ebx, 8
and ebx, 0xff00ff00
or ebx, ecx
mov ecx, edx
ror ecx, 8
and ecx, 0xff00ff00
xor ebx, dword [edi]
rol edx, 8
and edx, 0xff00ff
or ecx, edx
xor ecx, dword [edi + 4]
mov dword [ebp + 8], ecx
mov ecx, esi
ror ecx, 8
and ecx, 0xff00ff00
rol esi, 8
and esi, 0xff00ff
or ecx, esi
xor ecx, dword [edi + 8]
mov dword [ebp - 0xc], ecx
mov ecx, eax
ror ecx, 8
rol eax, 8
and ecx, 0xff00ff00
and eax, 0xff00ff
or ecx, eax
mov eax, 0x527310
xor ecx, dword [edi + 0xc]
xor edx, edx
mov dword [ebp - 4], ecx
nop dword [eax + eax]
mov ecx, 0x20
and edx, dword [eax]
add eax, 0x20
sub ecx, 1
jne 0x4908a5
cmp eax, 0x528310
jl 0x4908a0
mov eax, dword [ebp - 4]
or ebx, edx
shr eax, 0x10
movzx ecx, al
mov eax, dword [ebp - 0xc]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x527710]
mov edx, dword [ebp + 8]
xor ecx, dword [eax*4 + 0x527b10]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x527310]
movzx eax, dl
xor ecx, dword [eax*4 + 0x527f10]
xor ecx, dword [edi + 0x10]
mov eax, dword [ebp - 4]
shr eax, 8
mov dword [ebp + 8], ecx
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x527b10]
xor ecx, dword [eax*4 + 0x527710]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x527310]
mov eax, dword [ebp - 0xc]
movzx eax, al
xor ecx, dword [eax*4 + 0x527f10]
mov eax, edx
xor ecx, dword [edi + 0x14]
shr eax, 0x10
mov dword [ebp - 0x10], ecx
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
shr edx, 8
mov ecx, dword [ecx*4 + 0x527710]
xor ecx, dword [eax*4 + 0x527b10]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
mov eax, ecx
mov esi, dword [ebp - 8]
shr eax, 0x18
shr ecx, 0x10
movzx ecx, cl
xor esi, dword [eax*4 + 0x527310]
mov eax, dword [ebp - 4]
mov ecx, dword [ecx*4 + 0x527710]
movzx eax, al
xor esi, dword [eax*4 + 0x527f10]
xor esi, dword [edi + 0x18]
movzx eax, dl
mov dword [ebp - 8], esi
xor ecx, dword [eax*4 + 0x527b10]
mov eax, dword [ebp - 4]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x527310]
movzx eax, bl
xor ecx, dword [eax*4 + 0x527f10]
xor ecx, dword [edi + 0x1c]
add edi, 0x20
sub dword [ebp - 0x14], 1
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edi
je 0x490bbc
mov ebx, dword [ebp - 8]
mov eax, ecx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov esi, dword [ebp + 8]
mov ecx, dword [ecx*4 + 0x527710]
mov edx, dword [ebp - 0x10]
xor ecx, dword [eax*4 + 0x527b10]
mov eax, esi
shr eax, 0x18
xor ecx, dword [eax*4 + 0x527310]
movzx eax, dl
xor ecx, dword [eax*4 + 0x527f10]
xor ecx, dword [edi]
mov eax, dword [ebp - 4]
shr eax, 8
mov dword [ebp - 0x1c], ecx
movzx ecx, al
mov eax, esi
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x527b10]
xor ecx, dword [eax*4 + 0x527710]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x527310]
movzx eax, bl
xor ecx, dword [eax*4 + 0x527f10]
mov eax, edx
xor ecx, dword [edi + 4]
shr eax, 0x10
mov dword [ebp - 0x18], ecx
movzx ecx, al
mov eax, esi
shr eax, 8
movzx eax, al
shr edx, 8
mov ebx, dword [ecx*4 + 0x527710]
mov ecx, dword [ebp - 8]
xor ebx, dword [eax*4 + 0x527b10]
mov eax, ecx
shr eax, 0x18
shr ecx, 0x10
movzx ecx, cl
xor ebx, dword [eax*4 + 0x527310]
mov eax, dword [ebp - 4]
movzx eax, al
xor ebx, dword [eax*4 + 0x527f10]
xor ebx, dword [edi + 8]
movzx eax, dl
mov edx, dword [ecx*4 + 0x527710]
xor edx, dword [eax*4 + 0x527b10]
mov eax, dword [ebp - 4]
shr eax, 0x18
xor edx, dword [eax*4 + 0x527310]
mov eax, esi
movzx eax, al
mov esi, dword [ebp - 0x1c]
xor edx, dword [eax*4 + 0x527f10]
xor edx, dword [edi + 0xc]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x527710]
xor ecx, dword [eax*4 + 0x527b10]
mov eax, esi
shr eax, 0x18
xor ecx, dword [eax*4 + 0x527310]
mov eax, dword [ebp - 0x18]
movzx eax, al
xor ecx, dword [eax*4 + 0x527f10]
mov eax, edx
xor ecx, dword [edi + 0x10]
mov dword [ebp + 8], ecx
shr eax, 8
movzx ecx, al
mov eax, esi
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x527b10]
xor ecx, dword [eax*4 + 0x527710]
mov eax, dword [ebp - 0x18]
mov edi, ecx
shr eax, 0x18
mov dword [ebp - 0x10], ecx
xor edi, dword [eax*4 + 0x527310]
movzx eax, bl
xor edi, dword [eax*4 + 0x527f10]
mov eax, dword [ebp - 0xc]
xor edi, dword [eax + 0x14]
mov eax, dword [ebp - 0x18]
shr eax, 0x10
movzx ecx, al
mov eax, esi
shr eax, 8
movzx eax, al
mov dword [ebp - 0x10], edi
mov ecx, dword [ecx*4 + 0x527710]
mov edi, dword [ebp - 0xc]
xor ecx, dword [eax*4 + 0x527b10]
mov eax, ebx
shr eax, 0x18
shr ebx, 0x10
xor ecx, dword [eax*4 + 0x527310]
movzx eax, dl
shr edx, 0x18
xor ecx, dword [eax*4 + 0x527f10]
xor ecx, dword [edi + 0x18]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
shr eax, 8
movzx ecx, bl
movzx eax, al
mov ecx, dword [ecx*4 + 0x527710]
xor ecx, dword [eax*4 + 0x527b10]
mov eax, esi
xor ecx, dword [edx*4 + 0x527310]
movzx eax, al
xor ecx, dword [eax*4 + 0x527f10]
xor ecx, dword [edi + 0x1c]
add edi, 0x20
sub dword [ebp - 0x14], 1
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edi
jne 0x4909c2
xor edx, edx
xor ecx, ecx
movzx eax, byte [ecx + 0x528310]
add ecx, 0x20
and edx, eax
cmp ecx, 0x100
jl 0x490bc0
mov eax, dword [ebp - 4]
shr eax, 0x10
movzx eax, al
mov ebx, dword [ebp + 8]
or ebx, edx
mov edx, dword [ebp - 8]
mov dword [ebp + 8], ebx
movzx ecx, byte [eax + 0x528310]
mov eax, ebx
shr eax, 0x18
mov ebx, dword [ebp - 0x10]
movzx eax, byte [eax + 0x528310]
shl eax, 8
xor ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x528310]
xor ecx, eax
movzx eax, bl
shl ecx, 8
movzx eax, byte [eax + 0x528310]
xor ecx, eax
mov eax, ebx
xor ecx, dword [edi]
shr eax, 0x18
movzx edi, byte [eax + 0x528310]
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
shl edi, 8
movzx eax, byte [eax + 0x528310]
xor edi, eax
mov eax, dword [ebp - 4]
shr eax, 8
movzx eax, al
shl edi, 8
movzx eax, byte [eax + 0x528310]
xor edi, eax
movzx eax, dl
shl edi, 8
movzx eax, byte [eax + 0x528310]
xor edi, eax
mov eax, dword [ebp - 0xc]
xor edi, dword [eax + 4]
mov eax, edx
shr eax, 0x18
mov edx, dword [ebp - 4]
movzx esi, byte [eax + 0x528310]
mov eax, ebx
shr eax, 0x10
movzx eax, al
shl esi, 8
shr ebx, 8
movzx eax, byte [eax + 0x528310]
xor esi, eax
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + 0x528310]
xor esi, eax
movzx eax, dl
shl esi, 8
shr edx, 0x18
movzx eax, byte [eax + 0x528310]
xor esi, eax
mov eax, dword [ebp - 0xc]
movzx edx, byte [edx + 0x528310]
shl edx, 8
xor esi, dword [eax + 8]
mov eax, dword [ebp - 8]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x528310]
xor edx, eax
movzx eax, bl
shl edx, 8
movzx eax, byte [eax + 0x528310]
xor edx, eax
mov eax, dword [ebp + 8]
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x528310]
xor edx, eax
mov eax, dword [ebp - 0xc]
xor edx, dword [eax + 0xc]
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, edi
ror eax, 8
and eax, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or eax, edi
mov dword [ecx + 4], eax
mov eax, esi
ror eax, 8
and eax, 0xff00ff00
rol esi, 8
and esi, 0xff00ff
or eax, esi
mov dword [ecx + 8], eax
mov eax, edx
ror eax, 8
rol edx, 8
and eax, 0xff00ff00
and edx, 0xff00ff
or eax, edx
pop esi
mov dword [ecx + 0xc], eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret