RynthCore/find_bytes.cs
BlankenshipG cbd18a6880 feat: port SK test branch (2026.10.18.24) onto sk
Squash of test/hotbuild-2026-10-16 as merged onto aelrynth main 2026.10.17.1, matching the
2026.10.18.24 test installer. The test branch wins where both changed the same lines; sk-only
changes kept; duplicate definitions from both sides cut to the test branch's copy.

Highlights: Aelrynth Vault in the Classic and Modern inventory, loot "Add to loot profile"
attribute checklist, graphics low-memory safeguard and settings panel, window placement and
borderless fixes, chat coordinate links, launcher DXVK toggle, installer stamps experimental
plugins with the release calver. Changelog/2026-10-18-sk-port-test-branch-2026.10.18.24.md.
2026-10-18 16:22:34 -04:00

20 lines
945 B
C#

using System;
using System.IO;
using System.Runtime.InteropServices;
public class Program {
public static void Main() {
byte[] pe = File.ReadAllBytes(@"C:\Games\NexCore\acclient.exe");
int peOffset = BitConverter.ToInt32(pe, 0x3C);
int numSections = BitConverter.ToInt16(pe, peOffset + 6);
int sectionHeaders = peOffset + 24 + BitConverter.ToInt16(pe, peOffset + 20);
for (int i = 0; i < numSections; i++) {
int rva = BitConverter.ToInt32(pe, sectionHeaders + i * 40 + 12);
int size = BitConverter.ToInt32(pe, sectionHeaders + i * 40 + 16);
int ptr = BitConverter.ToInt32(pe, sectionHeaders + i * 40 + 20);
if (rva <= 0x1583F0 && rva + size > 0x1583F0) {
int fileOffset = ptr + (0x1583F0 - rva);
Console.WriteLine("Bytes at GetWeenieObject: " + BitConverter.ToString(pe, fileOffset, 32));
}
}
}
}