MalwareSourceCode/MSIL/Trojan/Win32/C/Trojan.Win32.Cospet.iat-d5a913ab25c2ac01f6ad36151285d226598951b3a4f0b2d52c03e99ff09f0807/Service/My/MySettings.cs
2022-08-18 06:28:56 -05:00

92 lines
3.1 KiB
C#

// Decompiled with JetBrains decompiler
// Type: Service.My.MySettings
// Assembly: Service, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 7876418B-9B45-4205-B20B-41AA64972C85
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Trojan.Win32.Cospet.iat-d5a913ab25c2ac01f6ad36151285d226598951b3a4f0b2d52c03e99ff09f0807.exe
using \u0030H9QJslJ8vJhl6OlA5;
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;
using TmwCXiWu118CwLLcBx;
namespace Service.My
{
[GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[CompilerGenerated]
internal sealed class MySettings : ApplicationSettingsBase
{
private static MySettings defaultInstance;
private static bool addedHandler;
private static object addedHandlerLockObject;
[MethodImpl(MethodImplOptions.NoInlining)]
static MySettings()
{
qriSERnLWqCHHxhiWL.mQJJcrKz2UjcR();
// ISSUE: reference to a compiler-generated field
// ISSUE: object of a compiler-generated type is created
MySettings.defaultInstance = (MySettings) SettingsBase.Synchronized((SettingsBase) new MySettings());
// ISSUE: reference to a compiler-generated field
MySettings.addedHandlerLockObject = RuntimeHelpers.GetObjectValue(new object());
}
[MethodImpl(MethodImplOptions.NoInlining)]
public MySettings()
{
qriSERnLWqCHHxhiWL.mQJJcrKz2UjcR();
// ISSUE: explicit constructor call
base.\u002Ector();
}
[DebuggerNonUserCode]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[MethodImpl(MethodImplOptions.NoInlining)]
private static void AutoSaveSettings(object sender, EventArgs e)
{
if (!KcUfPq74sts8xsAS9e.shLcqe8nZ.SaveMySettingsOnExit)
return;
MySettingsProperty.Settings.Save();
}
public static MySettings Default
{
[MethodImpl(MethodImplOptions.NoInlining)] get
{
if (!MySettings.addedHandler)
{
object handlerLockObject = MySettings.addedHandlerLockObject;
ObjectFlowControl.CheckForSyncLockOnValueType(handlerLockObject);
Monitor.Enter(handlerLockObject);
try
{
if (!MySettings.addedHandler)
{
KcUfPq74sts8xsAS9e.shLcqe8nZ.Shutdown += (ShutdownEventHandler) ((sender, e) =>
{
if (!KcUfPq74sts8xsAS9e.shLcqe8nZ.SaveMySettingsOnExit)
return;
MySettingsProperty.Settings.Save();
});
MySettings.addedHandler = true;
}
}
finally
{
Monitor.Exit(handlerLockObject);
}
}
MySettings defaultInstance = MySettings.defaultInstance;
return defaultInstance;
}
}
}
}