Webby (@webbyVs) header
Webby (@webbyVs) profile picture

Software Engineer, Kernel researcher, Gaming fan

Joined June 2024
Photo by Webby (@webbyVs)Photo by Webby (@webbyVs)Photo by Webby (@webbyVs)Photo by Webby (@webbyVs)Photo by Webby (@webbyVs)Photo by Webby (@webbyVs)Photo by Webby (@webbyVs)Photo by Webby (@webbyVs)Photo by Webby (@webbyVs)Photo by Webby (@webbyVs)
Pinned Tweet
Continuing the saga of UEFI SEC stage checking. Turns out, when our motherboards turn on, the sanity check at very early stages verifies whether the stack is functioning properly. A very specific value for this test is being chosen by Asus: 0x5A5AA5A5 I could not find an exact reason why it is exactly that, but I suspect it is because 0x5 and 0xA are exact bitwise opposites: 0x5A5AA5A5 = 01011010 01011010 10100101 10100101 NOT 0x5A5AA5A5 = 10100101 10100101 01011010 01011010 = 0xA5A55A5A If the value received from the stack does not match this inverted value, execution of UEFI stops. Reference to the last post in the series: teapaw.org/webbyVs/status/2124604…
I was tracing my motherboard’s UEFI boot in Ghidra. It starts in 16-bit real mode, then pulls a little magic trick 😅 Enable protected mode. Push a code selector and an address. Execute 66 CB (RETF). Poof. The next instruction is MOV ESP, 0, and we’re running 32-bit code. Linking previous post: teapaw.org/webbyVs/status/2124559…
1
1
3
424
Morning X 😴
1
12
Have a lovely night. Let the unicorn 🦄 arrive in your dreams, and bring in some cookies. Nini ✨️
23
Who do you think will release pc version for gta 6 - community or rockstar? 👀
2
99
Thats the peak dedication 😭😭
Man loses wife & kids over GTA 🤣😭
52
Jensen Huang’s wife Lori Huang precaution after he joining back as CEO “Prevention is better the cure” 😅
436
1,147
227
8,961
1,601,262
Have a good night everyone 💙
2
3
110
READ ME file from Cyberleek exe file it is message to world
86
260
59
4,763
325,154
As you may know, the cyberleek did the unthinkable. Main executable of gta vi is now public. What do you think this means for next generations of consoles, what can we expect? 👀
1
2
231
AI is changing the cybersecurity landscape, and not just for the better.💔 Sadly, the same technology helping security researchers uncover vulnerabilities is also the same technology empowering attackers to exploit them faster.💔 💂🏿‍♂️🛡️
JUST IN: Cloudflare CEO warns the world could face two years of widespread tech outages as AI accelerates cybersecurity threats
2
5
10
413
How does algorithm for X work? I was searching only for gta 6 news ... gta6 coming to pc, and so on. Now in my feed I constantly encounter wild range of things. US politics, trans rights, Ukraine war footage, sexuality ... and honestly many more things. Help me 💀
1
1
277
Webby retweeted
Everyone's hyping GTA 6 so my mom gifted me a PS5 😭
60
2
73
1,298
32
267
10
6,072
59,680
I was tracing my motherboard’s UEFI boot in Ghidra. It starts in 16-bit real mode, then pulls a little magic trick 😅 Enable protected mode. Push a code selector and an address. Execute 66 CB (RETF). Poof. The next instruction is MOV ESP, 0, and we’re running 32-bit code. Linking previous post: teapaw.org/webbyVs/status/2124559…
CPU right after reset on my board: The first thing it does is jump, disable interrupts, clear the POST port, and set up a stack. Basically the firmware equivalent of: “Alarm goes off → immediately hit snooze → roll over → mumble ‘five more minutes’ → finally sit up.” It hasn’t even properly woken up yet, and it’s already trying to go back to sleep. Not now, Mom.
1
1
1
3
1,086
For guys who don't like assembly that much, I have asked an AI to generate C++-like code void switch_to_32_bit(Cpu& cpu) { // The preceding CALL left a 16-bit return offset on the stack. // XOR EAX,EAX + POP AX zero-extends that offset to 32 bits. const std::uint32_t return_ip = cpu.pop16(); // 0xDBE0 const std::uint32_t entry = return_ip + 0x09FF002B; // 0x09FFDC0B // Enable protected mode (PE) and set the Monitor Coprocessor bit (MP). cpu.write_cr0(cpu.read_cr0() | 0x3u); // Selector 0x18 picks GDT entry 3, the flat data and stack segment. cpu.load_segment(DS, 0x18); cpu.load_segment(ES, 0x18); cpu.load_segment(FS, 0x18); cpu.load_segment(GS, 0x18); cpu.load_segment(SS, 0x18); // Build the far-return frame. The destination goes on top. cpu.push32(0x10); // CS selector for GDT entry 2 cpu.push32(entry); // Destination EIP cpu.retf32(); // Loads CS:EIP and transfers to the code below } // Execution lands here at 0x09FFDC0B (0000:DC0B in Ghidra). void after_switch(Cpu& cpu) { cpu.esp = 0; // MOV ESP, 0 cpu.eip = 0x09FFE0C8; // JMP to 0000:E0C8 in Ghidra }
30
CPU right after reset on my board: The first thing it does is jump, disable interrupts, clear the POST port, and set up a stack. Basically the firmware equivalent of: “Alarm goes off → immediately hit snooze → roll over → mumble ‘five more minutes’ → finally sit up.” It hasn’t even properly woken up yet, and it’s already trying to go back to sleep. Not now, Mom.
809
Guys!! Rockstar North just released the version of GTA VI to PC!! Grab yourself a copy Rick from Rockstar told to Never giving up
132