mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-21 19:06:09 +00:00
75 lines
2.4 KiB
C#
75 lines
2.4 KiB
C#
|
// Decompiled with JetBrains decompiler
|
|||
|
// Type: Postales.My.MySettings
|
|||
|
// Assembly: ReproducirPostales, Version=2.0.3.2, Culture=neutral, PublicKeyToken=null
|
|||
|
// MVID: 7846D817-428D-470C-B8C4-68FF94CB7D69
|
|||
|
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00001-msil\Trojan-Dropper.Win32.Daws.boa-7bd4f7c9562bc362427b9d7a144cfc1d5334eac66fbfde2f2690d672897ffa99.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 Postales.My
|
|||
|
{
|
|||
|
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
|||
|
[GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.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 (!MyProject.Application.SaveMySettingsOnExit)
|
|||
|
return;
|
|||
|
MySettingsProperty.Settings.Save();
|
|||
|
}
|
|||
|
|
|||
|
public static MySettings Default
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
if (!MySettings.addedHandler)
|
|||
|
{
|
|||
|
object handlerLockObject = MySettings.addedHandlerLockObject;
|
|||
|
ObjectFlowControl.CheckForSyncLockOnValueType(handlerLockObject);
|
|||
|
Monitor.Enter(handlerLockObject);
|
|||
|
try
|
|||
|
{
|
|||
|
if (!MySettings.addedHandler)
|
|||
|
{
|
|||
|
MyProject.Application.Shutdown += (ShutdownEventHandler) ((sender, e) =>
|
|||
|
{
|
|||
|
if (!MyProject.Application.SaveMySettingsOnExit)
|
|||
|
return;
|
|||
|
MySettingsProperty.Settings.Save();
|
|||
|
});
|
|||
|
MySettings.addedHandler = true;
|
|||
|
}
|
|||
|
}
|
|||
|
finally
|
|||
|
{
|
|||
|
Monitor.Exit(handlerLockObject);
|
|||
|
}
|
|||
|
}
|
|||
|
MySettings defaultInstance = MySettings.defaultInstance;
|
|||
|
return defaultInstance;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|