r/ExploitDev • u/fromthenext • Jul 24 '26
Run windows exe on Linux (native)
Side by side automatic pipeline, decompile windows exe and compile for Linux native binary, not emulation. Work in progress.
0
Upvotes
View all comments
Show parent comment
-2
u/fromthenext Jul 25 '26
Great question. ARET is quite different from Wine.
Wine executes the original x86 Windows binary and implements the Windows APIs at runtime. ARET is an ahead-of-time static binary translator: it lifts PE32 x86 code into an IR, recompiles it, and produces a native ELF (or WASM). At runtime there's no x86 emulation and no Wine dependency.
If the translated program calls a Windows API (e.g. "NtQuery*", User32, GDI, Winsock), the call is handled by ARET's runtime/HLE (or lifted DLLs when available). If an API isn't implemented, ARET fails explicitly rather than faking a result.
And yes, if a piece of code never calls any Windows API, it simply executes as native code after translation. It's not running the original PE as "shellcode"βit's running the statically translated native code instead.
I only use Wine during development as a reference to verify that ARET's behaviour matches Windows as closely as possible.