Function at 0x504fa0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6a56e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 8]
add ecx, 0x10
mov dword [ebp + 8], ecx
mov edx, 4
imul eax, edx, 0
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [ecx + eax]
xor eax, dword [esi + edx]
mov ecx, 4
imul edx, ecx, 0
mov dword [ebp + edx - 0x24], eax
mov eax, 4
shl eax, 0
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [edx + eax]
xor eax, dword [esi + ecx]
mov ecx, 4
shl ecx, 0
mov dword [ebp + ecx - 0x24], eax
mov edx, 4
shl edx, 1
mov eax, 4
shl eax, 1
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edx, dword [ecx + edx]
xor edx, dword [esi + eax]
mov eax, 4
shl eax, 1
mov dword [ebp + eax - 0x24], edx
mov ecx, 4
imul edx, ecx, 3
mov eax, 4
imul ecx, eax, 3
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edx, dword [eax + edx]
xor edx, dword [esi + ecx]
mov eax, 4
imul ecx, eax, 3
mov dword [ebp + ecx - 0x24], edx
mov edx, dword [ebp + 8]
add edx, 0x10
mov dword [ebp + 8], edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + ecx - 0x24]
and edx, 0xff
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + eax - 0x24]
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x6aa028]
xor edx, dword [ecx*4 + 0x6aa428]
mov eax, 4
shl eax, 1
mov ecx, dword [ebp + eax - 0x24]
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x6aa828]
mov eax, 4
imul ecx, eax, 3
mov eax, dword [ebp + ecx - 0x24]
shr eax, 0x18
xor edx, dword [eax*4 + 0x6aac28]
mov ecx, 4
imul eax, ecx, 0
mov ecx, dword [ebp + 8]
xor edx, dword [ecx + eax]
mov eax, 4
imul ecx, eax, 0
mov dword [ebp + ecx - 0x14], edx
mov edx, 4
shl edx, 0
mov eax, dword [ebp + edx - 0x24]
and eax, 0xff
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + ecx - 0x24]
shr edx, 8
and edx, 0xff
mov eax, dword [eax*4 + 0x6aa028]
xor eax, dword [edx*4 + 0x6aa428]
mov ecx, 4
imul edx, ecx, 3
mov ecx, dword [ebp + edx - 0x24]
shr ecx, 0x10
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6aa828]
mov edx, 4
imul ecx, edx, 0
mov edx, dword [ebp + ecx - 0x24]
shr edx, 0x18
xor eax, dword [edx*4 + 0x6aac28]
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
xor eax, dword [edx + ecx]
mov ecx, 4
shl ecx, 0
mov dword [ebp + ecx - 0x14], eax
mov edx, 4
shl edx, 1
mov eax, dword [ebp + edx - 0x24]
and eax, 0xff
mov ecx, 4
imul edx, ecx, 3
mov ecx, dword [ebp + edx - 0x24]
shr ecx, 8
and ecx, 0xff
mov edx, dword [eax*4 + 0x6aa028]
xor edx, dword [ecx*4 + 0x6aa428]
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp + ecx - 0x24]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x6aa828]
mov ecx, 4
shl ecx, 0
mov eax, dword [ebp + ecx - 0x24]
shr eax, 0x18
xor edx, dword [eax*4 + 0x6aac28]
mov ecx, 4
shl ecx, 1
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
mov ecx, 4
shl ecx, 1
mov dword [ebp + ecx - 0x14], edx
mov edx, 4
imul eax, edx, 3
mov ecx, dword [ebp + eax - 0x24]
and ecx, 0xff
mov edx, 4
imul eax, edx, 0
mov edx, dword [ebp + eax - 0x24]
shr edx, 8
and edx, 0xff
mov eax, dword [ecx*4 + 0x6aa028]
xor eax, dword [edx*4 + 0x6aa428]
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + ecx - 0x24]
shr edx, 0x10
and edx, 0xff
xor eax, dword [edx*4 + 0x6aa828]
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + ecx - 0x24]
shr edx, 0x18
xor eax, dword [edx*4 + 0x6aac28]
mov ecx, 4
imul edx, ecx, 3
mov ecx, dword [ebp + 8]
xor eax, dword [ecx + edx]
mov edx, 4
imul ecx, edx, 3
mov dword [ebp + ecx - 0x14], eax
mov edx, dword [ebp - 0x28]
sub edx, 1
mov dword [ebp - 0x28], edx
jne 0x50527c
jmp 0x505485
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + ecx - 0x14]
and edx, 0xff
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + eax - 0x14]
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x6aa028]
xor edx, dword [ecx*4 + 0x6aa428]
mov eax, 4
shl eax, 1
mov ecx, dword [ebp + eax - 0x14]
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x6aa828]
mov eax, 4
imul ecx, eax, 3
mov eax, dword [ebp + ecx - 0x14]
shr eax, 0x18
xor edx, dword [eax*4 + 0x6aac28]
mov ecx, 4
shl ecx, 2
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
mov ecx, 4
imul eax, ecx, 0
mov dword [ebp + eax - 0x24], edx
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + ecx - 0x14]
and edx, 0xff
mov eax, 4
shl eax, 1
mov ecx, dword [ebp + eax - 0x14]
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x6aa028]
xor edx, dword [ecx*4 + 0x6aa428]
mov eax, 4
imul ecx, eax, 3
mov eax, dword [ebp + ecx - 0x14]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x6aa828]
mov ecx, 4
imul eax, ecx, 0
mov ecx, dword [ebp + eax - 0x14]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x6aac28]
mov eax, 4
imul ecx, eax, 5
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
mov ecx, 4
shl ecx, 0
mov dword [ebp + ecx - 0x24], edx
mov edx, 4
shl edx, 1
mov eax, dword [ebp + edx - 0x14]
and eax, 0xff
mov ecx, 4
imul edx, ecx, 3
mov ecx, dword [ebp + edx - 0x14]
shr ecx, 8
and ecx, 0xff
mov edx, dword [eax*4 + 0x6aa028]
xor edx, dword [ecx*4 + 0x6aa428]
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp + ecx - 0x14]
shr eax, 0x10
and eax, 0xff
xor edx, dword [eax*4 + 0x6aa828]
mov ecx, 4
shl ecx, 0
mov eax, dword [ebp + ecx - 0x14]
shr eax, 0x18
xor edx, dword [eax*4 + 0x6aac28]
mov ecx, 4
imul eax, ecx, 6
mov ecx, dword [ebp + 8]
xor edx, dword [ecx + eax]
mov eax, 4
shl eax, 1
mov dword [ebp + eax - 0x24], edx
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebp + edx - 0x14]
and eax, 0xff
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + edx - 0x14]
shr ecx, 8
and ecx, 0xff
mov edx, dword [eax*4 + 0x6aa028]
xor edx, dword [ecx*4 + 0x6aa428]
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + eax - 0x14]
shr ecx, 0x10
and ecx, 0xff
xor edx, dword [ecx*4 + 0x6aa828]
mov eax, 4
shl eax, 1
mov ecx, dword [ebp + eax - 0x14]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x6aac28]
mov eax, 4
imul ecx, eax, 7
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
mov ecx, 4
imul eax, ecx, 3
mov dword [ebp + eax - 0x24], edx
mov ecx, dword [ebp + 8]
add ecx, 0x20
mov dword [ebp + 8], ecx
jmp 0x505071
mov edx, dword [ebp + 8]
add edx, 0x10
mov dword [ebp + 8], edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + ecx - 0x14]
and edx, 0xff
movzx eax, byte [edx + str.cw]
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + ecx - 0x14]
shr edx, 8
and edx, 0xff
movzx ecx, byte [edx + str.cw]
shl ecx, 8
or eax, ecx
mov edx, 4
shl edx, 1
mov ecx, dword [ebp + edx - 0x14]
shr ecx, 0x10
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
shl edx, 0x10
or eax, edx
mov ecx, 4
imul edx, ecx, 3
mov ecx, dword [ebp + edx - 0x14]
shr ecx, 0x18
movzx edx, byte [ecx + str.cw]
shl edx, 0x18
or eax, edx
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
xor eax, dword [ecx + edx]
mov edx, 4
imul ecx, edx, 0
mov edx, dword [ebp + 0xc]
mov dword [edx + ecx], eax
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + eax - 0x14]
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
mov eax, 4
shl eax, 1
mov ecx, dword [ebp + eax - 0x14]
shr ecx, 8
and ecx, 0xff
movzx eax, byte [ecx + str.cw]
shl eax, 8
or edx, eax
mov ecx, 4
imul eax, ecx, 3
mov ecx, dword [ebp + eax - 0x14]
shr ecx, 0x10
and ecx, 0xff
movzx eax, byte [ecx + str.cw]
shl eax, 0x10
or edx, eax
mov ecx, 4
imul eax, ecx, 0
mov ecx, dword [ebp + eax - 0x14]
shr ecx, 0x18
movzx eax, byte [ecx + str.cw]
shl eax, 0x18
or edx, eax
mov ecx, 4
shl ecx, 0
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
mov ecx, 4
shl ecx, 0
mov eax, dword [ebp + 0xc]
mov dword [eax + ecx], edx
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + ecx - 0x14]
and edx, 0xff
movzx eax, byte [edx + str.cw]
mov ecx, 4
imul edx, ecx, 3
mov ecx, dword [ebp + edx - 0x14]
shr ecx, 8
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
shl edx, 8
or eax, edx
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + edx - 0x14]
shr ecx, 0x10
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
shl edx, 0x10
or eax, edx
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + ecx - 0x14]
shr edx, 0x18
movzx ecx, byte [edx + str.cw]
shl ecx, 0x18
or eax, ecx
mov edx, 4
shl edx, 1
mov ecx, dword [ebp + 8]
xor eax, dword [ecx + edx]
mov edx, 4
shl edx, 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx + edx], eax
mov edx, 4
imul eax, edx, 3
mov ecx, dword [ebp + eax - 0x14]
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp + ecx - 0x14]
shr eax, 8
and eax, 0xff
movzx ecx, byte [eax + str.cw]
shl ecx, 8
or edx, ecx
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + eax - 0x14]
shr ecx, 0x10
and ecx, 0xff
movzx eax, byte [ecx + str.cw]
shl eax, 0x10
or edx, eax
mov ecx, 4
shl ecx, 1
mov eax, dword [ebp + ecx - 0x14]
shr eax, 0x18
movzx ecx, byte [eax + str.cw]
shl ecx, 0x18
or edx, ecx
mov eax, 4
imul ecx, eax, 3
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
mov ecx, 4
imul eax, ecx, 3
mov ecx, dword [ebp + 0xc]
mov dword [ecx + eax], edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006158c5
mov esp, ebp
pop ebp
ret 0xc