Function at 0x4163d0
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
test eax, eax
je 0x416667
mov dword [eax + 0xf0], 0xe
mov ecx, dword [0x4aa69c]
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
mov dword [eax], edx
mov ecx, dword [0x4aa6a0]
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
mov dword [eax + 4], edx
mov ecx, dword [0x4aa6a4]
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
mov dword [eax + 8], edx
mov ecx, dword [0x4aa6a8]
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
mov dword [eax + 0xc], edx
mov ecx, dword [0x4aa6ac]
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
mov dword [eax + 0x10], edx
mov ecx, dword [0x4aa6b0]
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
mov dword [eax + 0x14], edx
mov ecx, dword [0x4aa6b4]
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
mov dword [eax + 0x18], edx
mov ecx, dword [0x4aa6b8]
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
push esi
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
mov esi, edx
shr esi, 8
and esi, 0xff
mov dword [eax + 0x1c], edx
mov ecx, dword [ecx*4 + 0x4a8d48]
mov esi, dword [esi*4 + 0x4a9148]
xor ecx, 0x1000000
and esi, 0xff0000
and ecx, 0xff000000
xor ecx, esi
mov esi, edx
push edi
shr esi, 0x18
movzx esi, byte [esi*4 + 0x4a8948]
and edx, 0xff
mov edx, dword [edx*4 + 0x4a8548]
xor ecx, esi
and edx, 0xff00
xor ecx, edx
xor ecx, dword [eax]
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x24], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], edx
add eax, 0x30
mov esi, 0x4aa64c
lea esp, [esp]
mov edx, dword [eax - 4]
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4a9148]
mov edi, edx
shr edi, 8
and ecx, 0xff0000
and edi, 0xff
mov edi, dword [edi*4 + 0x4a8548]
and edi, 0xff00
xor ecx, edi
mov edi, edx
and edx, 0xff
movzx edx, byte [edx*4 + 0x4a8948]
shr edi, 0x18
mov edi, dword [edi*4 + 0x4a8d48]
and edi, 0xff000000
xor ecx, edi
xor ecx, edx
xor ecx, dword [eax - 0x20]
mov edx, dword [eax - 0x1c]
xor edx, ecx
mov dword [eax], ecx
mov ecx, dword [eax - 0x18]
xor ecx, edx
mov dword [eax + 4], edx
mov edx, dword [eax - 0x14]
xor edx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov edx, dword [eax + 0xc]
add eax, 0x20
mov ecx, edx
shr ecx, 8
mov edi, edx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4a9148]
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4a8d48]
and ecx, 0xff0000
and edi, 0xff000000
xor ecx, edi
mov edi, edx
and edx, 0xff
mov edx, dword [edx*4 + 0x4a8548]
shr edi, 0x18
movzx edi, byte [edi*4 + 0x4a8948]
xor ecx, edi
and edx, 0xff00
xor ecx, edx
xor ecx, dword [eax - 0x30]
add esi, 4
xor ecx, dword [esi - 4]
mov dword [eax - 0x10], ecx
mov edx, dword [eax - 0x2c]
xor edx, ecx
mov dword [eax - 0xc], edx
mov ecx, dword [eax - 0x28]
xor ecx, edx
mov dword [eax - 8], ecx
mov edx, dword [eax - 0x24]
xor edx, ecx
mov dword [eax - 4], edx
cmp esi, 0x4aa664
jne 0x416560
pop edi
xor eax, eax
pop esi
ret
or eax, 0xffffffff
ret