Created
November 17, 2015 07:57
-
-
Save mak/dccb5f579a3d1e0b0180 to your computer and use it in GitHub Desktop.
Decode dridex strings
This file contains 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