from binascii import hexlify, unhexlify
from Crypto.Cipher import AES
picc = "CACDEC6C5455EE52BB1DA40470963113"
myaes= AES.new(16*"\x00", AES.MODE_CBC, 16*"\x00")
okay = myaes.decrypt(unhexlify(picc))
counter=int("0x"+hexlify(okay[10:11])+hexlify(okay[9:10])+hexlify(okay[8:9]),16)
print counter
ZnJvbSBiaW5hc2NpaSBpbXBvcnQgaGV4bGlmeSwgdW5oZXhsaWZ5CmZyb20gQ3J5cHRvLkNpcGhlciBpbXBvcnQgQUVTCnBpY2MgPSAiQ0FDREVDNkM1NDU1RUU1MkJCMURBNDA0NzA5NjMxMTMiCm15YWVzPSBBRVMubmV3KDE2KiJceDAwIiwgQUVTLk1PREVfQ0JDLCAxNioiXHgwMCIpCm9rYXkgPSBteWFlcy5kZWNyeXB0KHVuaGV4bGlmeShwaWNjKSkKY291bnRlcj1pbnQoIjB4IitoZXhsaWZ5KG9rYXlbMTA6MTFdKStoZXhsaWZ5KG9rYXlbOToxMF0pK2hleGxpZnkob2theVs4OjldKSwxNikKcHJpbnQgY291bnRlcgo=