Fix everything

This commit is contained in:
Gray
2024-03-19 09:47:24 -04:00
parent a8e3bd4fbf
commit 54b2383124
10 changed files with 118 additions and 45 deletions

View File

@@ -52,7 +52,7 @@ uint64 FindGIsClient()
std::vector<std::vector<uint8_t>> BytesArray = {
{0x88, 0x05}, // 20.40 21.00
{0xC6, 0x05}, // mov cs X // Checked on 1.11, 12.41
{0xC6, 0x05}, // mov cs X // Checked on 1.11, 12.41, 15.10
{0x88, 0x1D}, // mov cs bl // Checked on 17.50, 19.10
{0x44, 0x88} // 4.5
};
@@ -60,6 +60,7 @@ uint64 FindGIsClient()
int Skip = 2;
uint64 Addy = 0;
int PickedByte = 0;
for (int i = 0; i < 50; i++) // we should subtract from skip if go up
{
@@ -98,6 +99,13 @@ uint64 FindGIsClient()
continue;
}
if (!PickedByte)
{
PickedByte = Bytes[0];
}
else if (PickedByte != Bytes[0])
continue; // Its one of the bytes, but not the first one we found.
if (Skip > 0)
{
Skip--;