Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
[workshop] Exploring the Portable Executable fo...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Ange Albertini
September 13, 2013
Technology
580
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
[workshop] Exploring the Portable Executable format
44Con 2013
London, England
Ange Albertini
September 13, 2013
Transcript
58 slides
Exploring the Portable Executable format London, England Ange Albertini 2013/09/13
Workshop package (PoCs+docs) http://www.xchg.info/corkami/workshop.zip Recommended PE viewer: http://icerbero.com/peinsider
None
None
None
None
None
None
None
None
None
None
None
None
None
a handmade PE simple.exe a first real example working minimal
None
None
None
detailed walkthrough
None
DOS header unused in PE mode
None
PE header PE signature
None
Optional Header NOT optional in executables
None
DataDirectories end of OptionalHeader 16 (max) * [RVA, Size] each
entry interpreted differently
None
Sections memory mapping
None
None
Imports standard loader mechanism NOT required load DLL, locate APIs
None
compiled PE compiled.exe closer to reality extra non-critical structure
None
None
None
DLL exports relocations
None
None
driver subsystem, checksum low alignments mapping different imports
None
resources structure version, manifest/icon, APIs
None
None
Thread Local Storage callback list before EntryPoint & after ExitProcess
None
.Net different and integrated binary 2nd loader
None
what about 64b? very few changes • 2 magic constants
• a few elements become QWord ◦ ImageBase, Imports thunks, callbacks • Exceptions have their own DataDirectory ◦ no need for LoadConfig (SafeSEH)
and ARM • a different magic constant • still 16b
DOS Stub ! • nothing special, PE wise ◦ the beauty of ‘Portability’
trivial
None
None
None
None
None
More Decks by Ange Albertini
See All by Ange Albertini
Fearsome File Formats
ange
0
1.2k
Overview of file type identifiers
ange
0
1.7k
A question of time
ange
0
1.3k
SBuD: InfoVis in InfoSec
ange
1
1.1k
Generating Weird Files
ange
0
580
Technical challenges with file formats
ange
1
2.5k
Inside out - abusing archive file formats
ange
3
2k
Relations between archive formats
ange
0
2.5k
Beyond your studies v2
ange
2
1.2k
Other Decks in Technology
See All in Technology
Claude Certified Developer – Professional 試験対策
shinoisa
0
170
その修正で本当に速くなったのか? k6とOpenTelemetryで確かめる性能改善 / Performance review with k6 and OpenTelemetry
ymotongpoo
3
460
成長するID管理基盤における運用もコストも犠牲にしないオブザーバビリティ向上の実践 / Improving Observability for a Growing Identity Platform Without Adding Operational Burden or Cost
kaminashi
1
140
Is the Website Dying?
miriamschwab
0
220
OWASP AI Agentic Top10に準拠するクラウドネイティブなガードレールの実践(CNDW 2026)
keitah
1
450
Go でトランザクション、どう書いてますか?
knwoop
2
640
Kiro のリモートワークスペース: IDE は手元のままで、ワークスペースをクラウド、コンテナ、自前のマシンに置く
inariku
PRO
2
230
AIが学べる子供の夏休みの自由研究教材を作ったが空振りだった話
yoshimura_datam
0
100
OpenTelemetryで変わった 新時代のCloudWatchメトリクス監視
tsukuboshi
0
510
IVRy における AI 時代のデータプロダクトと事業開発
ivry_presentationmaterials
0
120
Taking back control of your AI development
inesmontani
PRO
0
320
フロントエンドのテストカバレッジは 100%強制がいい
bengo4com
7
3.1k
Featured
See All Featured
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
470
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
540
GitHub's CSS Performance
jonrohan
1033
470k
Speed Design
sergeychernyshev
33
2.3k
The Language of Interfaces
destraynor
163
27k
Accessibility Awareness
sabderemane
1
310
My Coaching Mixtape
mlcsv
0
400
New Earth Scene 8
popppiees
5
2.9k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k