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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004047b8
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x404d75
mov eax, dword [ebp - 0x10]
jmp 0x405099
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0xf0]
shl edx, 2
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
jge 0x404e63
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + eax*4]
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [eax + ebx*4], ecx
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov dword [ecx + edx*4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + edx*4 + 4]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + edx*4 + 4]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ecx + edx*4 + 4], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [edx + eax*4 + 4], ecx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + eax*4 + 8]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + eax*4 + 8]
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [eax + ebx*4 + 8], ecx
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov dword [ecx + edx*4 + 8], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + edx*4 + 0xc]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + edx*4 + 0xc]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ecx + edx*4 + 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [edx + eax*4 + 0xc], ecx
add dword [ebp - 8], 4
sub dword [ebp - 0xc], 4
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jl 0x404d9b
mov dword [ebp - 8], 1
jmp 0x405085
add dword [ebp - 4], 0x10
mov edx, dword [ebp - 4]
mov ecx, dword [edx]
shr ecx, 0x18
mov eax, dword [ecx*4 + 0x5e04fc]
and eax, 0xff
mov edx, dword [eax*4 + 0x5e10fc]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + 0x5e04fc]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x5e14fc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
shr ecx, 8
and ecx, 0xff
mov eax, dword [ecx*4 + 0x5e04fc]
and eax, 0xff
xor edx, dword [eax*4 + 0x5e18fc]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
and eax, 0xff
mov ecx, dword [eax*4 + 0x5e04fc]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x5e1cfc]
mov eax, dword [ebp - 4]
mov dword [eax], edx
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 4]
shr ecx, 0x18
mov eax, dword [ecx*4 + 0x5e04fc]
and eax, 0xff
mov edx, dword [eax*4 + 0x5e10fc]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 4]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + 0x5e04fc]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x5e14fc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
shr ecx, 8
and ecx, 0xff
mov eax, dword [ecx*4 + 0x5e04fc]
and eax, 0xff
xor edx, dword [eax*4 + 0x5e18fc]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 4]
and eax, 0xff
mov ecx, dword [eax*4 + 0x5e04fc]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x5e1cfc]
mov eax, dword [ebp - 4]
mov dword [eax + 4], edx
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 8]
shr ecx, 0x18
mov eax, dword [ecx*4 + 0x5e04fc]
and eax, 0xff
mov edx, dword [eax*4 + 0x5e10fc]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 8]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + 0x5e04fc]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x5e14fc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
shr ecx, 8
and ecx, 0xff
mov eax, dword [ecx*4 + 0x5e04fc]
and eax, 0xff
xor edx, dword [eax*4 + 0x5e18fc]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 8]
and eax, 0xff
mov ecx, dword [eax*4 + 0x5e04fc]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x5e1cfc]
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0xc]
shr ecx, 0x18
mov eax, dword [ecx*4 + 0x5e04fc]
and eax, 0xff
mov edx, dword [eax*4 + 0x5e10fc]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xc]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + 0x5e04fc]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x5e14fc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
shr ecx, 8
and ecx, 0xff
mov eax, dword [ecx*4 + 0x5e04fc]
and eax, 0xff
xor edx, dword [eax*4 + 0x5e18fc]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xc]
and eax, 0xff
mov ecx, dword [eax*4 + 0x5e04fc]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x5e1cfc]
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], edx
inc dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx + 0xf0]
cmp ecx, dword [ebp - 8]
jg 0x404e6f
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret