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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040c420
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
shl eax, 2
mov dword [ebp - 8], eax
jmp 0x40cb12
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
sub edx, 4
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jge 0x40cbd7
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4 + 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 4]
mov dword [edx + ecx*4 + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + ecx*4 + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4 + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 8]
mov dword [edx + ecx*4 + 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + ecx*4 + 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4 + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0xc]
mov dword [edx + ecx*4 + 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + ecx*4 + 0xc], eax
jmp 0x40cb00
mov dword [ebp - 4], 1
jmp 0x40cbe9
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jge 0x40cebc
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [ebp + 8], eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx]
shr ecx, 0x18
mov edx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + ecx]
shr ecx, 0x10
and ecx, 0xff
mov eax, dword [ecx*4 + str.ccccwwww]
and eax, 0xff
mov ecx, dword [edx*4 + 0x426720]
xor ecx, dword [eax*4 + 0x425f20]
mov edx, 4
imul eax, edx, 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax]
shr eax, 8
and eax, 0xff
mov edx, dword [eax*4 + str.ccccwwww]
and edx, 0xff
xor ecx, dword [edx*4 + 0x425b20]
mov eax, 4
imul edx, eax, 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx]
and edx, 0xff
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff
xor ecx, dword [eax*4 + 0x426b48]
mov edx, 4
imul eax, edx, 0
mov edx, dword [ebp + 8]
mov dword [edx + eax], ecx
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax]
shr edx, 0x18
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff
mov eax, dword [eax*4 + 0x426720]
xor eax, dword [edx*4 + 0x425f20]
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx]
shr ecx, 8
and ecx, 0xff
mov edx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff
xor eax, dword [edx*4 + 0x425b20]
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx]
and ecx, 0xff
mov edx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff
xor eax, dword [edx*4 + 0x426b48]
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, 4
shl eax, 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax]
shr edx, 0x18
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff
mov eax, dword [eax*4 + 0x426720]
xor eax, dword [edx*4 + 0x425f20]
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx]
shr ecx, 8
and ecx, 0xff
mov edx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff
xor eax, dword [edx*4 + 0x425b20]
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx]
and ecx, 0xff
mov edx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff
xor eax, dword [edx*4 + 0x426b48]
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, 4
imul ecx, eax, 3
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx]
shr eax, 0x18
mov ecx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff
mov edx, 4
imul eax, edx, 3
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax]
shr eax, 0x10
and eax, 0xff
mov edx, dword [eax*4 + str.ccccwwww]
and edx, 0xff
mov eax, dword [ecx*4 + 0x426720]
xor eax, dword [edx*4 + 0x425f20]
mov ecx, 4
imul edx, ecx, 3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + edx]
shr edx, 8
and edx, 0xff
mov ecx, dword [edx*4 + str.ccccwwww]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x425b20]
mov edx, 4
imul ecx, edx, 3
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx]
and ecx, 0xff
mov edx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff
xor eax, dword [edx*4 + 0x426b48]
mov ecx, 4
imul edx, ecx, 3
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
jmp 0x40cbe0
mov eax, dword [ebp - 0x10]
pop esi
mov esp, ebp
pop ebp
ret