-
-
Save reanimat0r/d598b18b7d43c683ff1edec2cecff6e5 to your computer and use it in GitHub Desktop.
Decode dridex strings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def dridex_decode_name(addr,idx,delm="\x00"): | |
addr += 8; tmp = ''; j = 0 | |
xkey = GetManyBytes(addr,8) | |
for i in range(idx+1): | |
tmp = '' | |
while not tmp.endswith(delm): | |
tmp += chr(ord(xkey[j%8]) ^ Byte(addr+8+j)) | |
j+=1 | |
return tmp.strip(delm) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment