<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/go-home-windows-exe-you-re-drunk-g569zcrvt" -->

---
title: Go Home, Windows EXE, You're Drunk | daily.dev
description: An exploration of whether Linux syscalls can be executed from within a Windows PE executable running under Wine. The author writes a 64-bit PE binary in Flat...
canonical: https://daily.dev/posts/go-home-windows-exe-you-re-drunk-g569zcrvt
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Go Home, Windows EXE, You're Drunk | daily.dev
og:description: An exploration of whether Linux syscalls can be executed from within a Windows PE executable running under Wine. The author writes a 64-bit PE binary in Flat...
og:url: https://daily.dev/posts/go-home-windows-exe-you-re-drunk-g569zcrvt
og:image: https://api.daily.dev/og/posts/G569ZcrVT.png
og:image:alt: Go Home, Windows EXE, You're Drunk
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Go Home, Windows EXE, You're Drunk

**[Lobsters](https://daily.dev/sources/lobsters)** · 5 min read · 0 upvotes · 0 comments

## Summary

An exploration of whether Linux syscalls can be executed from within a Windows PE executable running under Wine. The author writes a 64-bit PE binary in Flat Assembler that calls WinAPI functions (MessageBoxA) and then issues raw Linux syscalls using Linux conventions. The experiment works — Linux write, fork, and execve syscalls all execute successfully from the Windows binary. The post explains why Windows syscalls fail under Wine (Wine replaces WinAPI but not the kernel), and why Linux syscalls work (the process is still a native Linux process from the kernel's perspective). Purely a curiosity experiment with no practical utility.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://gpfault.net/posts/drunk-exe.html>

## Similar posts on daily.dev

- [Astral](https://daily.dev/posts/astral-f4x43wcwy) · Lobsters · 0 upvotes · 0 comments
- [Windows 95 can now run modern Linux thanks to WSL, and yes, it actually works](https://daily.dev/posts/windows-95-can-now-run-modern-linux-thanks-to-wsl-and-yes-it-actually-works-c0xqw8kjj) · XDA Developers · 1 upvotes · 0 comments
- [Building Windows C\# Tools and Payloads from Kali Linux](https://daily.dev/posts/building-windows-c-tools-and-payloads-from-kali-linux-7bmdfkyml) · Kali Linux · 0 upvotes · 0 comments
- [Wine 11.5 Release Is Big: Syscall User Dispatch Feature Supported On Linux](https://daily.dev/posts/wine-11-5-release-is-big-syscall-user-dispatch-feature-supported-on-linux-1l0pkgr6j) · Phoronix · 0 upvotes · 0 comments

---

Tags: [#linux](https://daily.dev/tags/linux), [#assembly](https://daily.dev/tags/assembly)

[View this post on daily.dev](https://daily.dev/posts/go-home-windows-exe-you-re-drunk-g569zcrvt)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Go Home, Windows EXE, You're Drunk","url":"https://daily.dev/posts/go-home-windows-exe-you-re-drunk-g569zcrvt","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/go-home-windows-exe-you-re-drunk-g569zcrvt"},"datePublished":"2026-03-18T20:28:38.633Z","dateModified":"2026-03-18T20:29:01.174Z","description":"An exploration of whether Linux syscalls can be executed from within a Windows PE executable running under Wine. The author writes a 64-bit PE binary in Flat...","image":"https://media.daily.dev/image/fetch/s--He5-5WMI--/f_auto,pg_1,q_auto/https://gpfault.net/assets/post-img/drunk-exe.gif?_a=BAMAMiZY0","thumbnailUrl":"https://media.daily.dev/image/fetch/s--He5-5WMI--/f_auto,pg_1,q_auto/https://gpfault.net/assets/post-img/drunk-exe.gif?_a=BAMAMiZY0","isAccessibleForFree":true,"articleSection":"Lobsters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Lobsters","logo":"https://media.daily.dev/image/upload/s--tl8v_Fku--/f_auto,t_logo/v1698841318/logos/lobste.jpg","url":"https://daily.dev/sources/lobsters"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/go-home-windows-exe-you-re-drunk-g569zcrvt","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"linux,assembly","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lobsters","item":"https://daily.dev/sources/lobsters"},{"@type":"ListItem","position":3,"name":"Go Home, Windows EXE, You're Drunk"}]}
```

