Compiled under Watcom 11.0c as a Win32 character mode executable (speed rather than space opts)
02/04/2003 20:32 881 mystery.c
02/04/2003 20:36 31,232 mystery.exe
02/04/2003 20:36 113,664 mystery.ilk
02/04/2003 20:36 19 mystery.lk1
02/04/2003 20:36 22,729 mystery.map
02/04/2003 20:36 89 mystery.mk
02/04/2003 20:36 669 mystery.mk1
02/04/2003 20:36 1,496 mystery.obj
02/04/2003 20:36 16,599 mystery.sym
As you can see, the object file is only 1.4kB :-)
-edit-
Check out the winbloat! 30kb of sh*t linked just to make the exe :-D
-edit-
My guess is
1) the original text is compressed with something like LZ or dynamic huffman style compression, encoded into the big string in the middle
"@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+\
,/+#n+,/#;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l q#'+d'K#!/\
+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# ){n\
l]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#\
n'wk nw' iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \
;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;\
#'rdq#w! nr'/ ') }+}{rl#'{n' ')# }'+}##(!!/"
2) The binary lookup for the encoding is stored in the smaller string
"!ek;dc \
i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry"
3) main() is defined as a recursive extraction algorithm (similar to some huffman decoders) and character output.
4) This is an oversimplification since main() is called internally several times and tested conditionally with operator ? :...
Anybody else got any ideas?
This thing is cool :-)