Post #2158448
2026-04-23 02:53 UTC
In any case, the flow looks like this:
$ tc --exe chillin.exe --out exe/chillin-unpack
...
WARN tc/src/traverse.rs:40 omitting 004085dd: block appears zero-filled
(This shows the code jmp'd to 004085dd, but there was no code there -- that's where the unpacked code starts.)
Then I can hand-write a file that provides that function, where it re-invokes the compiler:
https://github.com/evmar/theseus/blob/9e2b135af2c32df73f0965c4f5f5159432fb80fe/exe/chillin-unpack/src/externs.rs
Which means the whole do_unpack function ends up relatively tiny:
https://github.com/evmar/theseus/blob/9e2b135af2c32df73f0965c4f5f5159432fb80fe/exe/chillin-unpack/src/main.rs
Replies (1)
-
@evmar@inuh.net 2026-04-23 02:55
(Code is not really up to my expectations for good shape for publishing, sorry in advance if you attempt to read it! Was a fun nerd snipe in any case.)