https://github.com/phoreverpheebs/gibberish Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code + Explore + All features + Documentation + GitHub Skills + Blog * Solutions + For + Enterprise + Teams + Startups + Education + By Solution + CI/CD & Automation + DevOps + DevSecOps + Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles + Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} phoreverpheebs / gibberish Public * Notifications * Fork 0 * Star 14 Hello, World! written in seemingly "gibberish" x86 assembly using obfuscation on the assembly and machine code -level License MIT license 14 stars 0 forks Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights phoreverpheebs/gibberish This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 2 branches 0 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/p] Use Git or checkout with SVN using the web URL. [gh repo clone phorev] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit Git stats * 31 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .gitignore LICENSE Makefile README.md gibberish.asm View code 'Hello, World!' in x86 assembly, but make it gibberish The SIGSEGV README.md 'Hello, World!' in x86 assembly, but make it gibberish gibberish is a simple 'Hello, World!' program written in x86 assembly, which doesn't reuse instructions and barely makes any sense. We have branched off a version of gibberish, which defines the 'Hello, World!' string directly in the source and compiled binary instead of scattering its bytes all over, before and during execution. This branch also spends more time explaining the process of its creation and techniques we can use to offset execution to keep the program's doings secret. (The defined-string branch). This repository is to demonstrate ways we can obfuscate a binary from being read through a simple objdump or other disassembly tools. Though, this method is not perfect, as simply tracking all call and jmp instructions could lead to a reliable reconstruction of the execution flow, we still may observe that running strings on this binary does not show any signs of an encoded Hello, World! string, since we use various methods to encode these in instructions, or increment and decrement previous values to get the character we need. We also demonstrate how certain actions may be performed in redundant ways, so as to confuse the average reverse engineer (e.g. the print procedure uses four total instructions to zero the eax register). The SIGSEGV gibberish.asm (at least on my machine) runs into a segmentation fault about 50% of the time, which to me raises an interesting question that will lead me to look into how memory is laid out at the beginning of a processes execution on a standard Linux system. In gdb, the memory seems to be allocated in a consistent manner, which causes the exception to never occur, though in normal execution it seems to be slightly different. About Hello, World! written in seemingly "gibberish" x86 assembly using obfuscation on the assembly and machine code -level Resources Readme License MIT license Stars 14 stars Watchers 1 watching Forks 0 forks Releases No releases published Packages 0 No packages published Languages * Assembly 94.5% * Makefile 5.5% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.