Function at 0x40c420
Capabilities:
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
rol ecx, 8
and ecx, 0xff00ff
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
ror eax, 8
and eax, 0xff00ff00
or ecx, eax
mov edx, 4
imul eax, edx, 0
mov edx, dword [ebp + 8]
mov dword [edx + eax], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
rol ecx, 8
and ecx, 0xff00ff
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
ror eax, 8
and eax, 0xff00ff00
or ecx, eax
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
rol edx, 8
and edx, 0xff00ff
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
ror ecx, 8
and ecx, 0xff00ff00
or edx, ecx
mov eax, 4
shl eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + eax], edx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
rol eax, 8
and eax, 0xff00ff
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
ror edx, 8
and edx, 0xff00ff00
or eax, edx
mov ecx, 4
imul edx, ecx, 3
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
cmp dword [ebp + 0x10], 0x80
jne 0x40c628
mov edx, 4
imul eax, edx, 3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax]
mov dword [ebp - 4], edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xff
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff000000
mov edx, dword [ebp + 8]
xor eax, dword [edx + ecx]
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov edx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff0000
xor eax, edx
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff00
xor eax, edx
mov ecx, dword [ebp - 4]
shr ecx, 0x18
mov edx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff
xor eax, edx
mov ecx, dword [ebp - 8]
xor eax, dword [ecx*4 + 0x426b20]
mov edx, 4
shl edx, 2
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
mov edx, 4
shl edx, 0
mov eax, 4
shl eax, 2
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov edx, dword [ecx + edx]
xor edx, dword [esi + eax]
mov eax, 4
imul ecx, eax, 5
mov eax, dword [ebp + 8]
mov dword [eax + ecx], edx
mov ecx, 4
shl ecx, 1
mov edx, 4
imul eax, edx, 5
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov ecx, dword [edx + ecx]
xor ecx, dword [esi + eax]
mov edx, 4
imul eax, edx, 6
mov edx, dword [ebp + 8]
mov dword [edx + eax], ecx
mov eax, 4
imul ecx, eax, 3
mov edx, 4
imul eax, edx, 6
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov ecx, dword [edx + ecx]
xor ecx, dword [esi + eax]
mov edx, 4
imul eax, edx, 7
mov edx, dword [ebp + 8]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xa
jne 0x40c61a
mov eax, 0xa
jmp 0x40cacb
mov ecx, dword [ebp + 8]
add ecx, 0x10
mov dword [ebp + 8], ecx
jmp 0x40c4ed
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
rol eax, 8
and eax, 0xff00ff
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
ror edx, 8
and edx, 0xff00ff00
or eax, edx
mov ecx, 4
shl ecx, 2
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
rol ecx, 8
and ecx, 0xff00ff
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
ror eax, 8
and eax, 0xff00ff00
or ecx, eax
mov edx, 4
imul eax, edx, 5
mov edx, dword [ebp + 8]
mov dword [edx + eax], ecx
cmp dword [ebp + 0x10], 0xc0
jne 0x40c81b
mov eax, 4
imul ecx, eax, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx]
mov dword [ebp - 4], eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff000000
mov eax, dword [ebp + 8]
xor ecx, dword [eax + edx]
mov edx, dword [ebp - 4]
shr edx, 8
and edx, 0xff
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff0000
xor ecx, eax
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff00
xor ecx, eax
mov edx, dword [ebp - 4]
shr edx, 0x18
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff
xor ecx, eax
mov edx, dword [ebp - 8]
xor ecx, dword [edx*4 + 0x426b20]
mov eax, 4
imul edx, eax, 6
mov eax, dword [ebp + 8]
mov dword [eax + edx], ecx
mov ecx, 4
shl ecx, 0
mov edx, 4
imul eax, edx, 6
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov ecx, dword [edx + ecx]
xor ecx, dword [esi + eax]
mov edx, 4
imul eax, edx, 7
mov edx, dword [ebp + 8]
mov dword [edx + eax], ecx
mov eax, 4
shl eax, 1
mov ecx, 4
imul edx, ecx, 7
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov eax, dword [ecx + eax]
xor eax, dword [esi + edx]
mov ecx, 4
shl ecx, 3
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, 4
imul ecx, eax, 3
mov edx, 4
shl edx, 3
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + ecx]
xor ecx, dword [esi + edx]
mov edx, 4
imul eax, edx, 9
mov edx, dword [ebp + 8]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 8
jne 0x40c7b9
mov eax, 0xc
jmp 0x40cacb
mov ecx, 4
shl ecx, 2
mov edx, 4
imul eax, edx, 9
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov ecx, dword [edx + ecx]
xor ecx, dword [esi + eax]
mov edx, 4
imul eax, edx, 0xa
mov edx, dword [ebp + 8]
mov dword [edx + eax], ecx
mov eax, 4
imul ecx, eax, 5
mov edx, 4
imul eax, edx, 0xa
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov ecx, dword [edx + ecx]
xor ecx, dword [esi + eax]
mov edx, 4
imul eax, edx, 0xb
mov edx, dword [ebp + 8]
mov dword [edx + eax], ecx
mov eax, dword [ebp + 8]
add eax, 0x18
mov dword [ebp + 8], eax
jmp 0x40c68f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
rol edx, 8
and edx, 0xff00ff
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
ror ecx, 8
and ecx, 0xff00ff00
or edx, ecx
mov eax, 4
imul ecx, eax, 6
mov eax, dword [ebp + 8]
mov dword [eax + ecx], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x1c]
rol edx, 8
and edx, 0xff00ff
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
ror ecx, 8
and ecx, 0xff00ff00
or edx, ecx
mov eax, 4
imul ecx, eax, 7
mov eax, dword [ebp + 8]
mov dword [eax + ecx], edx
cmp dword [ebp + 0x10], 0x100
jne 0x40cac9
mov ecx, 4
imul edx, ecx, 7
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx]
mov dword [ebp - 4], ecx
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff000000
mov ecx, dword [ebp + 8]
xor edx, dword [ecx + eax]
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xff
mov ecx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff0000
xor edx, ecx
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff00
xor edx, ecx
mov eax, dword [ebp - 4]
shr eax, 0x18
mov ecx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff
xor edx, ecx
mov eax, dword [ebp - 8]
xor edx, dword [eax*4 + 0x426b20]
mov ecx, 4
shl ecx, 3
mov eax, dword [ebp + 8]
mov dword [eax + ecx], edx
mov ecx, 4
shl ecx, 0
mov edx, 4
shl edx, 3
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + ecx]
xor ecx, dword [esi + edx]
mov edx, 4
imul eax, edx, 9
mov edx, dword [ebp + 8]
mov dword [edx + eax], ecx
mov eax, 4
shl eax, 1
mov ecx, 4
imul edx, ecx, 9
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov eax, dword [ecx + eax]
xor eax, dword [esi + edx]
mov ecx, 4
imul edx, ecx, 0xa
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
mov edx, 4
imul eax, edx, 3
mov ecx, 4
imul edx, ecx, 0xa
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov eax, dword [ecx + eax]
xor eax, dword [esi + edx]
mov ecx, 4
imul edx, ecx, 0xb
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 7
jne 0x40c9b0
mov eax, 0xe
jmp 0x40cacb
mov eax, 4
imul ecx, eax, 0xb
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx]
mov dword [ebp - 4], eax
mov ecx, 4
shl ecx, 2
mov edx, dword [ebp - 4]
shr edx, 0x18
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff000000
mov edx, dword [ebp + 8]
xor eax, dword [edx + ecx]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff0000
xor eax, edx
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
mov edx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff00
xor eax, edx
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff
xor eax, edx
mov ecx, 4
imul edx, ecx, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
mov edx, 4
imul eax, edx, 5
mov ecx, 4
imul edx, ecx, 0xc
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov eax, dword [ecx + eax]
xor eax, dword [esi + edx]
mov ecx, 4
imul edx, ecx, 0xd
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
mov edx, 4
imul eax, edx, 6
mov ecx, 4
imul edx, ecx, 0xd
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov eax, dword [ecx + eax]
xor eax, dword [esi + edx]
mov ecx, 4
imul edx, ecx, 0xe
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
mov edx, 4
imul eax, edx, 7
mov ecx, 4
imul edx, ecx, 0xe
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov eax, dword [ecx + eax]
xor eax, dword [esi + edx]
mov ecx, 4
imul edx, ecx, 0xf
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
mov edx, dword [ebp + 8]
add edx, 0x20
mov dword [ebp + 8], edx
jmp 0x40c884
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret