MalwareSourceCode/MSIL/Trojan/Win32/L/Trojan.Win32.Llac.acnb-1c7cb1c36d03d78dc4c7e14753e274d64baaf8014c8b4fa86c019842eb127177/sinestb/My/MySettings.cs

74 lines
2.3 KiB
C#
Raw Normal View History

2022-08-18 11:28:56 +00:00
// Decompiled with JetBrains decompiler
// Type: sinestb.My.MySettings
// Assembly: sine stb, Version=3.5.4.1, Culture=neutral, PublicKeyToken=null
// MVID: 51A01DAC-AF31-442E-B8F7-AC6F2055EAB9
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00001-msil\Trojan.Win32.Llac.acnb-1c7cb1c36d03d78dc4c7e14753e274d64baaf8014c8b4fa86c019842eb127177.exe
using Microsoft.VisualBasic.ApplicationServices;
using Microsoft.VisualBasic.CompilerServices;
using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Configuration;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Threading;
namespace sinestb.My
{
[EditorBrowsable(EditorBrowsableState.Advanced)]
[GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
[CompilerGenerated]
internal sealed class MySettings : ApplicationSettingsBase
{
private static MySettings defaultInstance = (MySettings) SettingsBase.Synchronized((SettingsBase) new MySettings());
private static bool addedHandler;
private static object addedHandlerLockObject = RuntimeHelpers.GetObjectValue(new object());
[DebuggerNonUserCode]
public MySettings()
{
}
[EditorBrowsable(EditorBrowsableState.Advanced)]
[DebuggerNonUserCode]
private static void AutoSaveSettings(object sender, EventArgs e)
{
if (!\u0005.\u0002().SaveMySettingsOnExit)
return;
\u0003\u2000.\u0002().Save();
}
public static MySettings Default
{
get
{
if (!MySettings.addedHandler)
{
object handlerLockObject = MySettings.addedHandlerLockObject;
ObjectFlowControl.CheckForSyncLockOnValueType(handlerLockObject);
Monitor.Enter(handlerLockObject);
try
{
if (!MySettings.addedHandler)
{
\u0005.\u0002().Shutdown += (ShutdownEventHandler) ((sender, e) =>
{
if (!\u0005.\u0002().SaveMySettingsOnExit)
return;
\u0003\u2000.\u0002().Save();
});
MySettings.addedHandler = true;
}
}
finally
{
Monitor.Exit(handlerLockObject);
}
}
return MySettings.defaultInstance;
}
}
}
}