{"id":6970,"date":"2011-04-03T10:41:50","date_gmt":"2011-04-03T08:41:50","guid":{"rendered":"http:\/\/www.corelan.be\/?p=6970"},"modified":"2026-03-25T09:05:07","modified_gmt":"2026-03-25T08:05:07","slug":"hitb-2011-ctf-reversing-vectored-exception-handling-veh","status":"publish","type":"post","link":"https:\/\/www.corelan.be\/index.php\/2011\/04\/03\/hitb-2011-ctf-reversing-vectored-exception-handling-veh\/","title":{"rendered":"HITB 2011 CTF - Reversing Vectored Exception Handling (VEH)"},"content":{"rendered":"<h3>Introduction<\/h3>\n<p>Today we will have a look at a CTF binary from HITB pre qualifications CTF 2011:<\/p>\n<p><a href=\"http:\/\/conference.hackinthebox.org\/hitbsecconf2011ams\/?p=1333\">http:\/\/conference.hackinthebox.org\/hitbsecconf2011ams\/?p=1333<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This is an interesting binary to reverse because Vectored Exception Handling (VEH) was used in the challenge. As this was new to me, I documented how it works and wanted to share a short reversing write-up of the binary.<\/p>\n<p>You can download the binary (windows_challenge.exe) <a href=\"http:\/\/web.archive.org\/web\/20120512235817\/http:\/\/redmine.corelan.be:8800\/attachments\/download\/297\/windows_challenge.zip\">here<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Thanks to skier_ and the HITB crew for generating such an awesome CTF binary.<\/p>\n<p>Come along...........and enjoy!<\/p>\n<p>Fancy<\/p>\n<p>&nbsp;<\/p>\n<p>Note: I used windows XP SP3 so maybe the addresses here in this video may differ from the addresses on your box.<\/p>\n<h3>Video<\/h3>\n<p><video controls width=\"100%\" preload=\"metadata\"><source src=\"\/public\/video\/HTB2011.mp4\" type=\"video\/mp4\">Your browser does not support the video tag.<\/video><\/p>\n<h3>Interesting links:<\/h3>\n<p><a href=\"http:\/\/msdn.microsoft.com\/en-us\/magazine\/cc301714.aspx\">http:\/\/msdn.microsoft.com\/en-us\/magazine\/cc301714.aspx<\/a><br \/>\n<a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ms681420%28v=vs.85%29.aspx\">http:\/\/msdn.microsoft.com\/en-us\/library\/ms681420%28v=vs.85%29.aspx<\/a><br \/>\n<a href=\"https:\/\/web.archive.org\/web\/20190113102009\/https:\/\/msdn.microsoft.com\/en-us\/library\/ms679274(v=VS.85).aspx\">http:\/\/msdn.microsoft.com\/en-us\/library\/ms679274%28v=vs.85%29.aspx<\/a><\/p>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>Today we will have a look at a CTF binary from HITB pre qualifications CTF 2011.  This is an interesting binary to reverse because Vectored Exception Handling (VEH) was used in the challenge...<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3708,2561,127,1],"tags":[3645,2775,2676,2576,2308,2124,1865,261],"class_list":["post-6970","post","type-post","status-publish","format-standard","hentry","category-debugging","category-malware-and-reversing","category-security","category-uncategorized","tag-exception-handling","tag-hitb","tag-reverse-engineering","tag-debugging","tag-ctf","tag-debugger","tag-seh","tag-corelan"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>HITB 2011 CTF - Reversing Vectored Exception Handling (VEH) - Corelan | Exploit Development &amp; Vulnerability Research<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.corelan.be\/index.php\/2011\/04\/03\/hitb-2011-ctf-reversing-vectored-exception-handling-veh\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HITB 2011 CTF - Reversing Vectored Exception Handling (VEH) - Corelan | Exploit Development &amp; Vulnerability Research\" \/>\n<meta property=\"og:description\" content=\"Today we will have a look at a CTF binary from HITB pre qualifications CTF 2011. This is an interesting binary to reverse because Vectored Exception Handling (VEH) was used in the challenge...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.corelan.be\/index.php\/2011\/04\/03\/hitb-2011-ctf-reversing-vectored-exception-handling-veh\/\" \/>\n<meta property=\"og:site_name\" content=\"Corelan | Exploit Development &amp; Vulnerability Research\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/corelanconsulting\" \/>\n<meta property=\"article:published_time\" content=\"2011-04-03T08:41:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-25T08:05:07+00:00\" \/>\n<meta name=\"author\" content=\"Corelan Team (fancy)\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@corelanc0d3r\" \/>\n<meta name=\"twitter:site\" content=\"@corelanc0d3r\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2011\\\/04\\\/03\\\/hitb-2011-ctf-reversing-vectored-exception-handling-veh\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2011\\\/04\\\/03\\\/hitb-2011-ctf-reversing-vectored-exception-handling-veh\\\/\"},\"author\":{\"name\":\"Corelan Team (fancy)\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#\\\/schema\\\/person\\\/19ac49794ad03a4f053203b956e97513\"},\"headline\":\"HITB 2011 CTF - Reversing Vectored Exception Handling (VEH)\",\"datePublished\":\"2011-04-03T08:41:50+00:00\",\"dateModified\":\"2026-03-25T08:05:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2011\\\/04\\\/03\\\/hitb-2011-ctf-reversing-vectored-exception-handling-veh\\\/\"},\"wordCount\":162,\"publisher\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#organization\"},\"keywords\":[\"exception handling\",\"hitb\",\"reverse engineering\",\"debugging\",\"ctf\",\"debugger\",\"seh\",\"corelan\"],\"articleSection\":[\"Debugging\",\"Malware and Reversing\",\"Security\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2011\\\/04\\\/03\\\/hitb-2011-ctf-reversing-vectored-exception-handling-veh\\\/\",\"url\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2011\\\/04\\\/03\\\/hitb-2011-ctf-reversing-vectored-exception-handling-veh\\\/\",\"name\":\"HITB 2011 CTF - Reversing Vectored Exception Handling (VEH) - Corelan | Exploit Development &amp; Vulnerability Research\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#website\"},\"datePublished\":\"2011-04-03T08:41:50+00:00\",\"dateModified\":\"2026-03-25T08:05:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2011\\\/04\\\/03\\\/hitb-2011-ctf-reversing-vectored-exception-handling-veh\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2011\\\/04\\\/03\\\/hitb-2011-ctf-reversing-vectored-exception-handling-veh\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2011\\\/04\\\/03\\\/hitb-2011-ctf-reversing-vectored-exception-handling-veh\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.corelan.be\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HITB 2011 CTF - Reversing Vectored Exception Handling (VEH)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#website\",\"url\":\"https:\\\/\\\/www.corelan.be\\\/\",\"name\":\"Corelan CyberSecurity Research\",\"description\":\"Corelan publishes in-depth tutorials on exploit development, Windows exploitation, vulnerability research, heap internals, reverse engineering and security tooling used by professionals worldwide.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.corelan.be\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#organization\",\"name\":\"Corelan CyberSecurity Research\",\"url\":\"https:\\\/\\\/www.corelan.be\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.corelan.be\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/corelanlogo2_small-20.png\",\"contentUrl\":\"https:\\\/\\\/www.corelan.be\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/corelanlogo2_small-20.png\",\"width\":200,\"height\":200,\"caption\":\"Corelan CyberSecurity Research\"},\"image\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/corelanconsulting\",\"https:\\\/\\\/x.com\\\/corelanc0d3r\",\"https:\\\/\\\/x.com\\\/corelanconsulting\",\"https:\\\/\\\/instagram.com\\\/corelanconsult\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#\\\/schema\\\/person\\\/19ac49794ad03a4f053203b956e97513\",\"name\":\"Corelan Team (fancy)\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e61c2a72c3ac875b017df8edf75c236f8c0147bee76db02a9b84f58d24283ed9?s=96&d=mm&r=x\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e61c2a72c3ac875b017df8edf75c236f8c0147bee76db02a9b84f58d24283ed9?s=96&d=mm&r=x\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e61c2a72c3ac875b017df8edf75c236f8c0147bee76db02a9b84f58d24283ed9?s=96&d=mm&r=x\",\"caption\":\"Corelan Team (fancy)\"},\"url\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/author\\\/fancy\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HITB 2011 CTF - Reversing Vectored Exception Handling (VEH) - Corelan | Exploit Development &amp; Vulnerability Research","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.corelan.be\/index.php\/2011\/04\/03\/hitb-2011-ctf-reversing-vectored-exception-handling-veh\/","og_locale":"en_US","og_type":"article","og_title":"HITB 2011 CTF - Reversing Vectored Exception Handling (VEH) - Corelan | Exploit Development &amp; Vulnerability Research","og_description":"Today we will have a look at a CTF binary from HITB pre qualifications CTF 2011. This is an interesting binary to reverse because Vectored Exception Handling (VEH) was used in the challenge...","og_url":"https:\/\/www.corelan.be\/index.php\/2011\/04\/03\/hitb-2011-ctf-reversing-vectored-exception-handling-veh\/","og_site_name":"Corelan | Exploit Development &amp; Vulnerability Research","article_publisher":"https:\/\/www.facebook.com\/corelanconsulting","article_published_time":"2011-04-03T08:41:50+00:00","article_modified_time":"2026-03-25T08:05:07+00:00","author":"Corelan Team (fancy)","twitter_card":"summary_large_image","twitter_creator":"@corelanc0d3r","twitter_site":"@corelanc0d3r","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.corelan.be\/index.php\/2011\/04\/03\/hitb-2011-ctf-reversing-vectored-exception-handling-veh\/#article","isPartOf":{"@id":"https:\/\/www.corelan.be\/index.php\/2011\/04\/03\/hitb-2011-ctf-reversing-vectored-exception-handling-veh\/"},"author":{"name":"Corelan Team (fancy)","@id":"https:\/\/www.corelan.be\/#\/schema\/person\/19ac49794ad03a4f053203b956e97513"},"headline":"HITB 2011 CTF - Reversing Vectored Exception Handling (VEH)","datePublished":"2011-04-03T08:41:50+00:00","dateModified":"2026-03-25T08:05:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.corelan.be\/index.php\/2011\/04\/03\/hitb-2011-ctf-reversing-vectored-exception-handling-veh\/"},"wordCount":162,"publisher":{"@id":"https:\/\/www.corelan.be\/#organization"},"keywords":["exception handling","hitb","reverse engineering","debugging","ctf","debugger","seh","corelan"],"articleSection":["Debugging","Malware and Reversing","Security"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.corelan.be\/index.php\/2011\/04\/03\/hitb-2011-ctf-reversing-vectored-exception-handling-veh\/","url":"https:\/\/www.corelan.be\/index.php\/2011\/04\/03\/hitb-2011-ctf-reversing-vectored-exception-handling-veh\/","name":"HITB 2011 CTF - Reversing Vectored Exception Handling (VEH) - Corelan | Exploit Development &amp; Vulnerability Research","isPartOf":{"@id":"https:\/\/www.corelan.be\/#website"},"datePublished":"2011-04-03T08:41:50+00:00","dateModified":"2026-03-25T08:05:07+00:00","breadcrumb":{"@id":"https:\/\/www.corelan.be\/index.php\/2011\/04\/03\/hitb-2011-ctf-reversing-vectored-exception-handling-veh\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.corelan.be\/index.php\/2011\/04\/03\/hitb-2011-ctf-reversing-vectored-exception-handling-veh\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.corelan.be\/index.php\/2011\/04\/03\/hitb-2011-ctf-reversing-vectored-exception-handling-veh\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.corelan.be\/"},{"@type":"ListItem","position":2,"name":"HITB 2011 CTF - Reversing Vectored Exception Handling (VEH)"}]},{"@type":"WebSite","@id":"https:\/\/www.corelan.be\/#website","url":"https:\/\/www.corelan.be\/","name":"Corelan CyberSecurity Research","description":"Corelan publishes in-depth tutorials on exploit development, Windows exploitation, vulnerability research, heap internals, reverse engineering and security tooling used by professionals worldwide.","publisher":{"@id":"https:\/\/www.corelan.be\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.corelan.be\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.corelan.be\/#organization","name":"Corelan CyberSecurity Research","url":"https:\/\/www.corelan.be\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.corelan.be\/#\/schema\/logo\/image\/","url":"https:\/\/www.corelan.be\/wp-content\/uploads\/2026\/03\/corelanlogo2_small-20.png","contentUrl":"https:\/\/www.corelan.be\/wp-content\/uploads\/2026\/03\/corelanlogo2_small-20.png","width":200,"height":200,"caption":"Corelan CyberSecurity Research"},"image":{"@id":"https:\/\/www.corelan.be\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/corelanconsulting","https:\/\/x.com\/corelanc0d3r","https:\/\/x.com\/corelanconsulting","https:\/\/instagram.com\/corelanconsult"]},{"@type":"Person","@id":"https:\/\/www.corelan.be\/#\/schema\/person\/19ac49794ad03a4f053203b956e97513","name":"Corelan Team (fancy)","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e61c2a72c3ac875b017df8edf75c236f8c0147bee76db02a9b84f58d24283ed9?s=96&d=mm&r=x","url":"https:\/\/secure.gravatar.com\/avatar\/e61c2a72c3ac875b017df8edf75c236f8c0147bee76db02a9b84f58d24283ed9?s=96&d=mm&r=x","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e61c2a72c3ac875b017df8edf75c236f8c0147bee76db02a9b84f58d24283ed9?s=96&d=mm&r=x","caption":"Corelan Team (fancy)"},"url":"https:\/\/www.corelan.be\/index.php\/author\/fancy\/"}]}},"views":6339,"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/posts\/6970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/comments?post=6970"}],"version-history":[{"count":2,"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/posts\/6970\/revisions"}],"predecessor-version":[{"id":18671,"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/posts\/6970\/revisions\/18671"}],"wp:attachment":[{"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/media?parent=6970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/categories?post=6970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/tags?post=6970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}