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
ZnJvbSBiaW5hc2NpaSBpbXBvcnQgaGV4bGlmeSwgdW5oZXhsaWZ5CmZyb20gQ3J5cHRvLkNpcGhlciBpbXBvcnQgQUVTCgpwaWNjID0gIkNBQ0RFQzZDNTQ1NUVFNTJCQjFEQTQwNDcwOTYzMTEzIgpteWFlcz0gQUVTLm5ldygxNioiXHgwMCIsIEFFUy5NT0RFX0NCQywgMTYqIlx4MDAiKQpva2F5ID0gbXlhZXMuZGVjcnlwdCh1bmhleGxpZnkocGljYykpCgpjb3VudGVyPWludCgiMHgiK2hleGxpZnkob2theVsxMDoxMV0pK2hleGxpZnkob2theVs5OjEwXSkraGV4bGlmeShva2F5Wzg6OV0pLDE2KQoKcHJpbnQgY291bnRlcgo=