[P0] kernelx.dll — memory management + sync primitives para boot do exe retail #3

Open
opened 2026-11-26 20:41:08 +00:00 by github-bot · 0 comments
Owner

@⁠Hylanderry on GitHub · 2026-11-23 22:07 UTC · original

Bloqueante Crítico: Boot até main()

Sem kernelx.dll completo, o game_scarlett_master.exe crasha antes de chegar em main().

Funções necessárias (por prioridade)

  • Memory: VirtualAlloc/Free, XMemMapPhysicalPages, XMemUnmapPhysicalPages, XVirtualAlloc/Free
  • Sync: CreateEvent/Semaphore/Mutex, WaitForSingleObject/Multiple, SetEvent/ReleaseSemaphore
  • TLS: TlsAlloc/GetValue/SetValue/Free (já temos patch /GA no PE loader)
  • Thread: CreateThread, GetExitCodeThread, SuspendThread/ResumeThread
  • Misc: GetLastError/SetLastError, QueryPerformanceCounter/Frequency

Referência

  • XCL implementa em crates/xcl/src/hle/kernelx/ (Rust)
  • DedSec deve ter versão C++ original em runtime/shims/kernelx.cpp
  • Header já existe: runtime/shims/kernelx.h (untracked)

Critério de conclusão

Exe retail chega em main() sem crash nem breakpoint int3.

**@⁠Hylanderry** on GitHub · 2026-11-23 22:07 UTC · [original](https://github.com/Hylanderry/DedSec/issues/3) ## Bloqueante Crítico: Boot até main() Sem kernelx.dll completo, o game_scarlett_master.exe crasha antes de chegar em main(). ### Funções necessárias (por prioridade) - **Memory**: VirtualAlloc/Free, XMemMapPhysicalPages, XMemUnmapPhysicalPages, XVirtualAlloc/Free - **Sync**: CreateEvent/Semaphore/Mutex, WaitForSingleObject/Multiple, SetEvent/ReleaseSemaphore - **TLS**: TlsAlloc/GetValue/SetValue/Free (já temos patch /GA no PE loader) - **Thread**: CreateThread, GetExitCodeThread, SuspendThread/ResumeThread - **Misc**: GetLastError/SetLastError, QueryPerformanceCounter/Frequency ### Referência - XCL implementa em `crates/xcl/src/hle/kernelx/` (Rust) - DedSec deve ter versão C++ original em `runtime/shims/kernelx.cpp` - Header já existe: `runtime/shims/kernelx.h` (untracked) ### Critério de conclusão Exe retail chega em main() sem crash nem breakpoint int3.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:41:08 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.