Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Tool:PureBasic

From ReverseEngineering.wiki
Tool
Vendor Fantaisie Software
Platforms Windows, Linux, macOS
Website https://www.purebasic.com
On this wiki Facts · Code · Notes · Topics

PureBasic compiler for Windows: recognisable by fixed entry-point code that pushes an argument block and calls the runtime start-up, a .drectve section with 'pb_datapointer' in the GCC-backed 6.x, and a 0x14..0x33 byte table in .rdata.

Identification

From the Detect It Easy rule (Tool:Detect It Easy, compiler_PureBasic.4.sg), applied only when a section after the first has the code flags 0x60000020:

  • x86 entry point 68 .. .. 00 00 68 00 00 00 00 68 .. .. .. 00 E8 .. .. .. 00 83 C4 0C 68 00 00 00 00 E8 .. .. .. 00 A3 (versions 4.x-6.x) or 83 7C 24 08 01 75 .. 8B 44 24 04 A3 .. .. .. .. E8 (4.x DLL).
  • x64 entry point 48 83 EC .. 49 C7 C0 .. .. .. .. 48 31 D2 48 B9 .. .. .. .. .. .. .. .. E8 .. .. .. .. 48 31 C9 E8.
  • 6.x with the C backend (GCC): a .drectve section containing the text pb_datapointer.
  • Fallback: KERNEL32.dll first import and the byte run 14 15 16 17 ... 33 at the start of .rdata.

Hub: Technique:Identifying the toolchain of a binary. Unverified: only entry patterns; no sample was inspected.