Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.48 KB | None | 0 0
  1. #!/usr/bin/python
  2. import idc
  3.  
  4. print("DECRYPTED STRINGS: \n")
  5.  
  6. # 1st string
  7. v27 = b"\x6D\x68\x66\x45"[::-1]
  8. v28 = b"\x7B\x6B\x60\x45"[::-1]
  9. v29 = b"\x4B\x70\x7B\x68"[::-1]
  10. encrypted = bytearray(v27 + v28 + v29)
  11. decrypted = bytearray(b"")
  12.  
  13. for i in range(len(encrypted)):
  14.     decrypted.append(encrypted[i] ^ ((i // 0xB) + 9))
  15.  
  16. address = 0x00BD138E
  17. print("Make comment to address: : " + hex(address) + " ; value: " + str(decrypted))
  18. idc.MakeComm(address, str(decrypted))
  19.  
  20. # 2nd string
  21. v27 = b"\xA5\x81\x90\xB2"[::-1]
  22. v28 = b"\xB7\x96\x9A\x87"[::-1]
  23. v29 = b"\x93\x84\x92\x92"[::-1]
  24. v30 = b"\x85\x85"[::-1]
  25. encrypted = bytearray(v27 + v28 + v29 + v30)
  26. decrypted = bytearray(b"")
  27.  
  28. for i in range(len(encrypted)):
  29.     decrypted.append(encrypted[i] ^ ((i // 7) - 0xB) % 256)
  30.  
  31. address = 0x00BD13EE
  32. print("Make comment to address: : " + hex(address) + " ; value: " + str(decrypted))
  33. idc.MakeComm(address, str(decrypted))
  34.  
  35. # 3rd string
  36. v27 = b"\x1D\x4F\x4E\x5C"[::-1]
  37. v28 = b"\xE6\x0E\x07\x34"[::-1]
  38. v29 = b"\xAD\xD5\xE2\xFE"[::-1]
  39. v30 = b"\x6A\x96\x99\xB4"[::-1]
  40. v31 = b"\x25\x54\x42\x6F"[::-1]
  41. v32 = b"\x1A"
  42. encrypted = bytearray(v27 + v28 + v29 + v30 + v31 + v32)
  43. decrypted = bytearray(b"")
  44.  
  45. for i in range(len(encrypted)):
  46.     decrypted.append(encrypted[i] ^ ((16 * i + 27) % 256))
  47.  
  48. address = 0x00BD145D
  49. print("Make comment to address: : " + hex(address) + " ; value: " + str(decrypted))
  50. idc.MakeComm(address, str(decrypted))
  51.  
  52. # 4th string
  53. v27 = b"\xAC\xB7\xB3\x88"[::-1]
  54. v28 = b"\xF5\xB2\xAB\xBA"[::-1]
  55. v29 = b"\xB7\xB7\xBF"[::-1]
  56. encrypted = bytearray(v27 + v28 + v29)
  57. decrypted = bytearray(b"")
  58.  
  59. for i in range(len(encrypted)):
  60.     decrypted.append(encrypted[i] ^ (i // 17 - 37) % 256)
  61.  
  62. address = 0x00BD150A
  63. print("Make comment to address: : " + hex(address) + " ; value: " + str(decrypted))
  64. idc.MakeComm(address, str(decrypted))
  65.  
  66. # 5th string
  67. v27 = b"\x55\x70\x60\x79"[::-1]
  68. v28 = b"\x28\x57\x44\x5E"[::-1]
  69. v29 = b"\x1F\x30\x3A"[::-1]
  70. encrypted = bytearray(v27 + v28 + v29)
  71. decrypted = bytearray(b"")
  72.  
  73. for i in range(len(encrypted)):
  74.     decrypted.append(encrypted[i] ^ (8 * i + 14) % 256)
  75.  
  76. address = 0x00BD1558
  77. print("Make comment to address: : " + hex(address) + " ; value: " + str(decrypted))
  78. idc.MakeComm(address, str(decrypted))
  79.  
  80. # 6th string
  81. v27 = b"\x78\x68\x73\xB6"[::-1]
  82. v28 = b"\x3C\x70\x54\x51"[::-1]
  83. v29 = b"\x38\x15\x04\x21"[::-1]
  84. encrypted = bytearray(v27 + v28 + v29)
  85. decrypted = bytearray(b"")
  86.  
  87. for i in range(len(encrypted)):
  88.     decrypted.append(encrypted[i] ^ ((i * 12) - 11) % 256)
  89.  
  90. address = 0x00BD15C5
  91. print("Make comment to address: : " + hex(address) + " ; value: " + str(decrypted))
  92. idc.MakeComm(address, str(decrypted))
  93.  
  94. # 7th string
  95. v27 = b"\x20\x50\x56\x78"[::-1]
  96. v28 = b"\x24\x05\x24\x2F"[::-1]
  97. v29 = b"\xF5\xE1\x0F\x07"[::-1]
  98. encrypted = bytearray(v27 + v28 + v29)
  99. decrypted = bytearray(b"")
  100.  
  101. for i in range(len(encrypted)):
  102.     decrypted.append(encrypted[i] ^ ((i * 9) + 42) % 256)
  103.  
  104. address = 0x00BD1627
  105. print("Make comment to address: : " + hex(address) + " ; value: " + str(decrypted))
  106. idc.MakeComm(address, str(decrypted))
  107.  
  108. # 8th string
  109. v27 = b"\x80\x9C\x9F\xB0"[::-1]
  110. v28 = b"\x9D\x92\xBB\x96"[::-1]
  111. v29 = b"\x96\x9F\x97"[::-1]
  112. encrypted = bytearray(v27 + v28 + v29)
  113. decrypted = bytearray(b"")
  114.  
  115. for i in range(len(encrypted)):
  116.     decrypted.append(encrypted[i] ^ ((i // 18) - 13) % 256)
  117.  
  118. address = 0x00BD1679
  119. print("Make comment to address: : " + hex(address) + " ; value: " + str(decrypted))
  120. idc.MakeComm(address, str(decrypted))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement