BHX 5.6 now with great encoding

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
carlos
Expert
Posts: 503
Joined: 20 Aug 2010 13:57
Location: Chile
Contact:

BHX 5.6 now with great encoding

#1 Post by carlos » 12 Apr 2015 23:21

When I create my program bhx it always encode binary data using 16 hexadecimal characters, that is write out 2 bytes for 1 byte.
For reduce the output I recommend create a cabinet with the file using lzx compression and then apply bhx.
But today I replaced the default hexadecimal encode with a encoding based on the encoding ZeroMQ Base-85 that uses 85 printable characters.
The result is awesome, this saves more bytes than base 16 encoding, and even more than base 64 encoding.

For example, the current bhx.exe size is: 12288 bytes.
Using the previous default hexadecimal it produced a script file (that includes the decoder) with size:
flat(hex): 26921 bytes
cab(hex): 11288 bytes
And now using the new 85 encoding produces a script file (that includes the decoder) with size:
flat(85): 17957 bytes
cab(85): 8182 bytes.

BHX v5.6
Encode a binary file in a batch script for rebuild it.

By default, the generated batch script name is mybin.cmd.
Is recommended convert your file in a cabinet
with compression, created with this command line:
Makecab /d compressiontype=lzx file file.cab
and use the generated cabinet as source.
This can save many bytes in the output script.

BHX source [/ne] [/o:out] [/y]

source Binary to encode.
/ne If the source file is a cabinet, not write code
for expand it.
/o:out out is the output filename instead of mybin.cmd.
/y Overwrite the output file.
/hex Encode binary data using 16 hexadecimal characters.
The default encoder uses 85 printable characters.

BHX /author
display the author of the program.


This is the script for rebuild bhx 5.6 :
build_bhx.cmd

Code: Select all

@Echo Off
SetLocal EnableExtensions
Call :Rebuild
If ErrorLevel 1 Echo Rebuild failed.
Goto :Eof

:Rebuild
Rem Script made using BHX 5.6 { consolesoft.com/p/bhx }
SetLocal EnableExtensions EnableDelayedExpansion
Set "bin=bhx.cab"
Set /A "size=4688"
For %%# In (
"bhx.exe"
"!bin!" "!bin!.da" "!bin!.tmp"
) Do If Exist "%%#" (Del /A /F /Q "%%#" >Nul 2>&1
If ErrorLevel 1 Exit /B 1 )
Set "fsrc=%~f0"
Findstr /B /N ":+res:!bin!:" "!fsrc!" >"!bin!.tmp"
(Set /P "inioff="
Set /P "endoff=") <"!bin!.tmp"
For /F "delims=:" %%# In ("!inioff!") Do Set "inioff=%%#"
For /F "delims=:" %%# In ("!endoff!") Do Set "endoff=%%#"
Set ".=ado="adodb.stream""
Set ".=!.! :set a=createobject(ado) :a.type=1 :a.open"
Set ".=!.! :set u=createobject(ado) :u.type=2 :u.open"
Set ".=!.! :set fs=createobject("scripting.filesystemobject")"
Set ".=!.! :set s=fs.opentextfile("!fsrc!",1,0,0)"
Set ".=!.! :e="0123456789abcdefghijklmnopqrstuvwxyzABCDEF"
Set ".=!.!GHIJKLMNOPQRSTUVWXYZ.-:+=^^`/*?&<>()[]{}~,$#"
Set ".=!.!" :max=!size! :wri=0 :n=array(0,0,0,0,0)"
Set ".=!.! :for i=1 to !inioff! step 1 :s.readline :next"
Set ".=!.! :do while i<!endoff! :d=replace(s.readline," ","")"
Set ".=!.! :for j=1 to len(d) step 5 :num85=mid(d,j,5)"
Set ".=!.! :v=0 :for k=1 to len(num85) step 1"
Set ".=!.! :v=v*85+instr(1,e,mid(num85,k,1))-1 :next"
Set ".=!.! :n(1)=Fix(v/16777216) :v=v-n(1)*16777216"
Set ".=!.! :n(2)=Fix(v/65536) :v=v-n(2)*65536"
Set ".=!.! :n(3)=Fix(v/256) :n(4)=v-n(3)*256"
Set ".=!.! :for m=1 to 4 step 1 :if (wri < max) then"
Set ".=!.! :u.writetext chrb(n(m)) :wri=wri+1 :end if :next"
Set ".=!.! :next :i=i+1 :loop"
Set ".=!.! :u.position=2 :u.copyto a :u.close :set u=nothing"
Set ".=!.! :a.savetofile "!bin!",2 :a.close :set a=nothing"
Set ".=!.! :s.close :set s=nothing :set fs=nothing"
Echo !.!>"!bin!.da"
Set "ret=1"
Cscript.exe /B /E:vbs "!bin!.da" >Nul
For %%# In ("!bin!") Do If "%%~z#"=="!size!" Set "ret=0"
If "0"=="!ret!" Expand.exe -r "!bin!" -F:* . >Nul
If ErrorLevel 1 Set "ret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=C>+`B79lb5g<TvL/*OURT.MS6/alJR.an{nR>?a[nITROkHq
:gN~ZFn3:nwOU+Dey)W$oMdlCSqPKQDh<dyV1[z1upi+#sWEzig~`:[QYS>R
Lg^E]2>nM`rLU*Cf/7,xV{8B7-ooRlISpmt]5#-YCDzxN4LiO9p$g#Gr6DKP
6)DguCsFFRH?B96s#qF(h`M&]zeoS22<<0?hF`FpOg78X62Tz,U*2B5oN6nJ
ts3#WvskPRSL&5O}6Ku71gKrXive,a.oA2MMG-AxOYTNcnU4n[Zm}2(az0j8
n:^in`sdV2hs>]*+~:Au*`qkL5s45j4$2l7}GZ$xU~6GSTe7x4:u*Va]n1?,
r7>V&.ZcdGG/Ubb^Zv)C7^y2T(qedT6kX{LbeEewt^?Pdtxw.vrdl<qw4(r8
yIS/OSe>iyLOGhgg7ardm~1N</}v>IE){)c(Gl4n-~)$C:O<X4]paSxiP[Tn
/<w~NtJV6`MwT:(MQcbx)GKzdW{mnoA[YVy+f[zTJFE<fn0aOkqAX4IwI7P2
d&`FHL~.z/gVG{,C6EaxJ`R{9he}~OUZ)0zVJUvGNKZqxXP4#~YeWWJU17j3
l*)zba2jwy9$/a42Jyyalhwv<0R+6]r(&#Z5qF2q1kGxT?0N`qju{eu.NO*a
X}/BV-YwF&)~60ImVF(eMW2BWJf,n^J#H5dE,8UpT1,JI5xd:oxayG}JIn`6
u-{4yEQ593L{XP$QgHgY(9ErT+]/Cs+z&C/wyHRfn$eTNYR=NCSazzKPL74B
O-Twh~VsDRgw*t~&x~zhLk9:E{sW>zh(O*jD-CDs
:+res:bhx.cab:

Last edited by carlos on 15 Apr 2015 06:32, edited 6 times in total.

Squashman
Expert
Posts: 4206
Joined: 23 Dec 2011 13:59

Re: BHX 5.4 now implement a awesome encoding

#2 Post by Squashman » 13 Apr 2015 06:30

+1

carlos
Expert
Posts: 503
Joined: 20 Aug 2010 13:57
Location: Chile
Contact:

Re: BHX 5.6 now with great encoding

#3 Post by carlos » 14 Apr 2015 11:40

thanks Squashman.
I updated to version 5.6 improving the description of the program, and also with a bugfix.
I think this is the final version of my program.

mirrormirror
Posts: 129
Joined: 08 Feb 2016 20:25

Re: BHX 5.6 now with great encoding

#4 Post by mirrormirror » 24 Feb 2016 21:08

Thank you Carlos - just investigating this now - very cool !

mirrormirror
Posts: 129
Joined: 08 Feb 2016 20:25

Re: BHX 5.6 now with great encoding

#5 Post by mirrormirror » 27 Feb 2016 21:17

Hello Carlos, I have a feature request and a question in case you happen to still be reading these forums...
Question: Is there a technical reason for TWO "SetLocals" when a creation script is generated? ex:

Code: Select all

SetLocal EnableExtensions
Call :Rebuild
If ErrorLevel 1 Echo Rebuild failed.
Goto :Eof

:Rebuild
Rem Script made using BHX 5.6 { consolesoft.com/p/bhx }
SetLocal EnableExtensions EnableDelayedExpansion
Set "bin=bhx.cab"

Request: Could you add an option to specify output line width? Currently it looks like everything is output at a fixed 61-character width.
Either way, I am happy that you made this available for us to use - I like it!

lazna
Posts: 1
Joined: 27 Dec 2012 10:54

Re: BHX 5.6 now with great encoding

#6 Post by lazna » 18 Nov 2020 04:39

Utilizing BHX 5.6 for some time, but now I add move command just behind the 'call :rebuild' to move rebuilded binary into the %temp% path, but Microsoft defender stopping action reporting "Trojan:Script/Wacatac.B!ml". Is it possible to extract binaries directly to specific directory? There is no such option in documentation.

carlos
Expert
Posts: 503
Joined: 20 Aug 2010 13:57
Location: Chile
Contact:

BHX 6.0

#7 Post by carlos » 21 Nov 2020 15:00

lazna wrote:
18 Nov 2020 04:39
Utilizing BHX 5.6 for some time, but now I add move command just behind the 'call :rebuild' to move rebuilded binary into the %temp% path, but Microsoft defender stopping action reporting "Trojan:Script/Wacatac.B!ml". Is it possible to extract binaries directly to specific directory? There is no such option in documentation.
Hello, although the BHX project is in status "Archived" I still continue updating when I give some advice of something become not working (because the new windows updates)
The last version is 6.0 (updated in September of 2020). The last time I test it works nicely on Windows 10.
Is available here: https://github.com/carlos-montiers/cons ... st/bhx.zip

BHX 6.0 have a nice update, now it uses only one ":Rebuild" routine of code, this allows you copy the data of many build script and put all together in a single batch file using only one ":Rebuild". Is an expected feature that BHX rebuild more than one file in a single command line, now that the :Rebuild get the data by parameters is possible. Maybe someday I will add this feature.

Now the data necessary to rebuild the file is the label. As example: :+res:b85:11022:bhx.zip:
mean a resource that was encoded using base 85, once rebuilt the size will be 11022 bytes and the name of the rebuilt file is bhx.zip

For also have the version 6.0 in this topic this is the rebuild of bhx.zip (includes inside bhx.exe and also the source files).

bhx60.cmd

Code: Select all

@Echo Off
SetLocal EnableExtensions
Call :Rebuild "bhx.zip"
Goto :Eof

:+res:b85:11022:bhx.zip:
p`H([3ig5a001*mBX~bs0000000000000c4003FwCRq(^0,w~h00000lr#GD
0000000000000002MK&8vRy0tvRGZkp`H([6Awak2MRblhC)^ybg(C~0000w
000Jf003FwCRrJuzzbEjCRiMLw:IHay*f#O:h#Nwe[H6&cipp.c:3z3T-F0I
p22DZudOeDeb=nH:5{~</y{IkyX~CLumf:I^HzY<oB9e,G.v[ZHnWH]d::}t
3tUfl9sVu?wGT$6f+}KN*)r<R4h^LP[CAgfj>BYe6.)rok?-u2=:**V=VvxG
C0pqpg.SgU7$y8V`5lXh:>}MsFn,ghPsZ2KF8ugK`4M?QWM/<C*CA&plZA[i
S/>L[4O=lrd=+n7m*BkaQGHKAR4m~s400kjwi$FmN-M6f:E<{Pi{yydZPTSc
I12BzHQB~]N[7({Ua5XdECxnZH4aq#3g<5^+k6+a~b8a4l<XdqItUn-qY$&7
u+]x}ki/~YoE&4)BNukXda~VzVnxJ$2Ppsl0Bjt&I,p8W&Eily^Lka6jrR/^
(7UIzCi*)Z{A}2vY,U6o}TRgFPG)fPdgr#mUKiWiEcFOJgx#ibL/Zd.fZNy5
Yf6i>-*)K{o6U~k5PX1cLuSA9~3A65FV7~$m$O}bpoUE8Eo-2Rml95]M[uXd
.G{O.?(E^#nA>&&</vG44&=GICXIhQIsg?(?ILq-xhM5FyZbkppR.qQHW..(
?Epz6]7-jt<w:ysEv>&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Ya0000PJDF7#
00000000000000403?KA0000001Ybg000000aGR^fa4X4000000096p0ol`D
WNO6-0QL,PYgfP`0Bp2yWNO6-0z(z&0V}yH00000076,Hq2*N~0000000000
00&MI000000000g0000y0001dxM#gtx(kNh03zmw0000102LYjL[n&vKK:Cg
:EY?fZ$5J>P}nXZZ$5J.o928o02bzk00&Oftq/t+jr&zH4fcwdaohxL03?KA
0000003zmw07W7&0aGR^fjFTkfjFQte[Gos3ihgG000000rr~p09=2p)2Y^0
ffL~om.)NQqPLDrm.)NQp`H/<9~(#P000o8Gn:}IM6lTUH6dFR6::{v4fdTN
00000001bw003Zy003FwCRq~-k$1Boe]tba03zmw0000102L.5e3OFhZ$5LJ
XD]/pZ$5LDo}X{:Z$5J.o928o015Ya0000ztSbBV00000000000000803?KA
0000001Ybg02=HJ0aGR^flqezfa4X4000000096p00#ycn:RR<0s*GIWNO6-
0wuQdWNO6-0z(z&0V}yR000080ixx.qoDm*sN)160jU8<01w]N000000000w
0000:6952wxM#gKA:{+ixM#dt3ihgG000000rr~pyPa+Z)2Y^03Blqjm.)NQ
9/DV0m.)NQp`H/<9~(#P000o8a~-BqzBJ1&<]UO-Ru^e44GE:O00000001bw
003pI003FwCRsbUv>RtjBtkyT3ihgG000000rr~pwDZc{SGtWi4KW{Tm.)NQ
4KW{Tm.)NQp`H~~000002lj#eI2)USzZUO=00000
:+res:b85:11022:bhx.zip:

:Rebuild
Rem Generated using BHX 6.0
SetLocal EnableExtensions EnableDelayedExpansion
Set "bin=%~1"
Set "expandCabinet=%~2"
For %%# In (
"!bin!" "!bin!.da" "!bin!.tmp"
) Do If Exist "%%#" (Del /A /F /Q "%%#" >Nul 2>&1
If ErrorLevel 1 Exit /B 1 )
Set "lbl=:+res:b[0-9]*:[0-9]*:!bin!:"
Set "fsrc=%~f0"
Findstr /I /B /N "!lbl!" "!fsrc!" >"!bin!.tmp"
Set "bo="
Set "eo="
For /F "usebackq tokens=1,3,4 delims=:" %%a in ("!bin!.tmp"
) Do If Not Defined bo (
Set "bo=%%~a"
Set "base=%%~b"
Set /A "size=%%~c"
) Else Set "eo=%%~a"
Set ".=ado="adodb.stream""
Set ".=!.! :set arg=wscript.arguments"
Set ".=!.! :src=arg(0): dst=arg(1)"
Set ".=!.! :max=cdbl(arg(2)) :fb=cdbl(arg(3)) :fe=cdbl(arg(4))"
Set ".=!.! :set a=createobject(ado) :a.type=1 :a.open"
Set ".=!.! :set u=createobject(ado) :u.type=2 :u.open"
Set ".=!.! :set fs=createobject("scripting.filesystemobject")"
Set ".=!.! :set s=fs.opentextfile(src,1,0,0)"
Set ".=!.! :e="0123456789abcdefghijklmnopqrstuvwxyzABCDEF"
Set ".=!.!GHIJKLMNOPQRSTUVWXYZ.-:+=^^`/*?&<>()[]{}~,$#"
Set ".=!.!" :wri=0 :n=array(0,0,0,0,0)"
Set ".=!.! :for i=1 to fb step 1 :s.readline :next"
Set ".=!.! :do while i<fe :d=replace(s.readline," ","")"
If /I "!base!"=="b85" (
Set ".=!.! :for j=1 to len(d) step 5 :num85=mid(d,j,5)"
Set ".=!.! :v=0 :for k=1 to len(num85) step 1"
Set ".=!.! :v=v*85+instr(1,e,mid(num85,k,1))-1 :next"
Set ".=!.! :n(1)=fix(v/16777216) :v=v-n(1)*16777216"
Set ".=!.! :n(2)=fix(v/65536) :v=v-n(2)*65536"
Set ".=!.! :n(3)=fix(v/256) :n(4)=v-n(3)*256"
Set ".=!.! :for m=1 to 4 step 1 :if (wri < max) then"
Set ".=!.! :u.writetext chrb(n(m)) :wri=wri+1 :end if :next"
) Else (Set ".=!.! :for j=1 to len(d) step 2"
Set ".=!.! :u.writetext chrb("^&h"&mid(d,j,2))" )
Set ".=!.! :next :i=i+1 :loop"
Set ".=!.! :u.position=2 :u.copyto a :u.close :set u=nothing"
Set ".=!.! :a.savetofile dst,2 :a.close :set a=nothing"
Set ".=!.! :s.close :set s=nothing :set fs=nothing"
Echo !.!>"!bin!.da"
Set "ret=1"
Cscript /B /E:vbs "!bin!.da" "!fsrc!" "!bin!" "!size!" "!bo!" "!eo!"
For %%# In ("!bin!") Do If "%%~z#"=="!size!" Set "ret=0"
If "!expandCabinet!"=="1" (
If "0"=="!ret!" Expand.exe -r "!bin!" -F:* . >Nul
If ErrorLevel 1 Set "ret=1"
Del /A /F "!bin!" "!bin!.da" "!bin!.tmp" >Nul
) Else (
If "1"=="!ret!" If Exist "!bin!" Del /A /F "!bin!" >Nul
Del /A /F "!bin!.da" "!bin!.tmp" >Nul
)
If "1"=="!ret!" Echo Rebuild failed: !bin!
Exit /B !ret!

@lazna This version works okay for you?

carlos
Expert
Posts: 503
Joined: 20 Aug 2010 13:57
Location: Chile
Contact:

Re: BHX 5.6 now with great encoding

#8 Post by carlos » 21 Nov 2020 15:06

> Is it possible to extract binaries directly to specific directory? There is no such option in documentation.

There not exist that option, but you can try using pushd and popd between the call to rebuild like this:

Code: Select all

Pushd "some_directory"
Call :Rebuild "file.ext"
Popd
[code]

Post Reply