Re: Obfuscated Key Hidden in Software Snail
 From: "Douglas Eagleson" <eaglesondouglas@xxxxxxxxx>
 Date: 12 Apr 2007 19:10:48 0700
On Apr 12, 9:45 pm, "Douglas Eagleson" <eaglesondoug...@xxxxxxxxx>
wrote:
Here is a special technique of code obfuscation in snail like usage.
A data list as the applied function allows hidden key. A set of this
decade can represent the hex in decimal.
So applied hidden key occurs without anybody knowing the real pad
hidden in the code.
My next posting will show the assembled code.
*****************************************begin real code
example*********************************
RESTORE SLIST
FOR I = 1 TO 4
READ S(I)
H(I) = S(I)
I(I) = S(I)
T(I) = S(I)
NEXT I
L = 4
F = 4
FOR Z = 1 TO 100000
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(1)
IF F > 10 THEN K = 1
IF L  1 = 0 THEN SL = S(1)
S(L  1) = S(K)
S(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT S(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = K TO 4
FOR L = 4 TO S(2)
IF F > 0 THEN K = 2
IF L  1 = 0 THEN SL = H(1)
H(L  1) = H(K)
H(4) = SL
L = 1
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT H(I)
NEXT I
REM
FOR K = 1 TO L  1
FOR J = F TO 100
FOR L = 1 TO S(3)
IF F > 10 THEN K = 4
IF L  1 = 0 THEN SL = I(1)
I(L  1) = I(K)
I(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT I(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(4)
IF F > 11 THEN K = 2
IF L  1 = 0 THEN SL = T(1)
T(L  1) = T(K)
T(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT T(I)
NEXT I
PRINT STR$(T(3)) + STR$(S(1)) + STR$(H(4)) + STR$(I(2))
NEXT Z
END
SLIST:
DATA 1,3,6,4
REM A Series is the code and the SLIST third place denotes a key.
REM By Changing third the series alters.
REM ALL this obfuscated loops is to make a set.
REM SO the code appears as a symbol transfomr where S(3) causes
REM A number between 0 to 9. So the decade is allowed for all
REM number representation.
REM A set of this obfuscated code can be assembled in many loops!
REM SO S(ELEMENT1) was represented already. S(X,Y,Z) is the
REM NEXT POSTING
A small alteration allows a
*******************************begin code
listing*****************************
RESTORE SLIST
FOR I = 1 TO 4
READ S(I)
H(I)=S(I)
I(I)=S(I)
T(I)=S(I)
NEXT I
FOR DONUT = 1 TO 10
REM Alter x,y,z to make the new code
H(3) = X
I(3) = Y
T(3) = Z
NEXT I
REM*****************************************************1
L = 4
F = 4
FOR Z = 1 TO 10
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(1)
IF F > 10 THEN K = 1
IF L  1 = 0 THEN SL = S(1)
S(L  1) = S(K)
S(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT S(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = K TO 4
FOR L = 4 TO S(2)
IF F > 0 THEN K = 2
IF L  1 = 0 THEN SL = H(1)
H(L  1) = H(K)
H(4) = SL
L = 1
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT H(I)
NEXT I
REM
FOR K = 1 TO L  1
FOR J = F TO 100
FOR L = 1 TO S(3)
IF F > 10 THEN K = 4
IF L  1 = 0 THEN SL = I(1)
I(L  1) = I(K)
I(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT I(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(4)
IF F > 11 THEN K = 2
IF L  1 = 0 THEN SL = T(1)
T(L  1) = T(K)
T(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT T(I)
NEXT I
PRINT STR$(T(3)) + STR$(S(1)) + STR$(H(4)) + STR$(I(2))
NEXT Z
REM************************************************************2
L = 4
F = 4
FOR Z = 1 TO 10
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(1)
IF F > 10 THEN K = 1
IF L  1 = 0 THEN SL = S(1)
S(L  1) = S(K)
S(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT S(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = K TO 4
FOR L = 4 TO S(2)
IF F > 0 THEN K = 2
IF L  1 = 0 THEN SL = H(1)
H(L  1) = H(K)
H(4) = SL
L = 1
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT H(I)
NEXT I
REM
FOR K = 1 TO L  1
FOR J = F TO 100
FOR L = 1 TO S(3)
IF F > 10 THEN K = 4
IF L  1 = 0 THEN SL = I(1)
I(L  1) = I(K)
I(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT I(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(4)
IF F > 11 THEN K = 2
IF L  1 = 0 THEN SL = T(1)
T(L  1) = T(K)
T(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT T(I)
NEXT I
PRINT STR$(T(3)) + STR$(S(1)) + STR$(H(4)) + STR$(I(2))
NEXT Z
REM*************************************************************3
L = 4
F = 4
FOR Z = 1 TO 10
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(1)
IF F > 10 THEN K = 1
IF L  1 = 0 THEN SL = S(1)
S(L  1) = S(K)
S(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT S(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = K TO 4
FOR L = 4 TO S(2)
IF F > 0 THEN K = 2
IF L  1 = 0 THEN SL = H(1)
H(L  1) = H(K)
H(4) = SL
L = 1
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT H(I)
NEXT I
REM
FOR K = 1 TO L  1
FOR J = F TO 100
FOR L = 1 TO S(3)
IF F > 10 THEN K = 4
IF L  1 = 0 THEN SL = I(1)
I(L  1) = I(K)
I(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT I(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(4)
IF F > 11 THEN K = 2
IF L  1 = 0 THEN SL = T(1)
T(L  1) = T(K)
T(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT T(I)
NEXT I
PRINT STR$(T(3)) + STR$(S(1)) + STR$(H(4)) + STR$(I(2))
NEXT Z
REM****************************************************4
L = 4
F = 4
FOR Z = 1 TO 10
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(1)
IF F > 10 THEN K = 1
IF L  1 = 0 THEN SL = S(1)
S(L  1) = S(K)
S(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT S(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = K TO 4
FOR L = 4 TO S(2)
IF F > 0 THEN K = 2
IF L  1 = 0 THEN SL = H(1)
H(L  1) = H(K)
H(4) = SL
L = 1
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT H(I)
NEXT I
REM
FOR K = 1 TO L  1
FOR J = F TO 100
FOR L = 1 TO S(3)
IF F > 10 THEN K = 4
IF L  1 = 0 THEN SL = I(1)
I(L  1) = I(K)
I(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT I(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(4)
IF F > 11 THEN K = 2
IF L  1 = 0 THEN SL = T(1)
T(L  1) = T(K)
T(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT T(I)
NEXT I
PRINT STR$(T(3)) + STR$(S(1)) + STR$(H(4)) + STR$(I(2))
NEXT Z
REM**********************************************************5
L = 4
F = 4
FOR Z = 1 TO 10
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(1)
IF F > 10 THEN K = 1
IF L  1 = 0 THEN SL = S(1)
S(L  1) = S(K)
S(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT S(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = K TO 4
FOR L = 4 TO S(2)
IF F > 0 THEN K = 2
IF L  1 = 0 THEN SL = H(1)
H(L  1) = H(K)
H(4) = SL
L = 1
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT H(I)
NEXT I
REM
FOR K = 1 TO L  1
FOR J = F TO 100
FOR L = 1 TO S(3)
IF F > 10 THEN K = 4
IF L  1 = 0 THEN SL = I(1)
I(L  1) = I(K)
I(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT I(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(4)
IF F > 11 THEN K = 2
IF L  1 = 0 THEN SL = T(1)
T(L  1) = T(K)
T(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT T(I)
NEXT I
PRINT STR$(T(3)) + STR$(S(1)) + STR$(H(4)) + STR$(I(2))
NEXT Z
REM**********************************************************6
L = 4
F = 4
FOR Z = 1 TO 10
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(1)
IF F > 10 THEN K = 1
IF L  1 = 0 THEN SL = S(1)
S(L  1) = S(K)
S(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT S(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = K TO 4
FOR L = 4 TO S(2)
IF F > 0 THEN K = 2
IF L  1 = 0 THEN SL = H(1)
H(L  1) = H(K)
H(4) = SL
L = 1
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT H(I)
NEXT I
REM
FOR K = 1 TO L  1
FOR J = F TO 100
FOR L = 1 TO S(3)
IF F > 10 THEN K = 4
IF L  1 = 0 THEN SL = I(1)
I(L  1) = I(K)
I(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT I(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(4)
IF F > 11 THEN K = 2
IF L  1 = 0 THEN SL = T(1)
T(L  1) = T(K)
T(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT T(I)
NEXT I
PRINT STR$(T(3)) + STR$(S(1)) + STR$(H(4)) + STR$(I(2))
NEXT Z
REM*********************************************************7
L = 4
F = 4
FOR Z = 1 TO 10
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(1)
IF F > 10 THEN K = 1
IF L  1 = 0 THEN SL = S(1)
S(L  1) = S(K)
S(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT S(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = K TO 4
FOR L = 4 TO S(2)
IF F > 0 THEN K = 2
IF L  1 = 0 THEN SL = H(1)
H(L  1) = H(K)
H(4) = SL
L = 1
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT H(I)
NEXT I
REM
FOR K = 1 TO L  1
FOR J = F TO 100
FOR L = 1 TO S(3)
IF F > 10 THEN K = 4
IF L  1 = 0 THEN SL = I(1)
I(L  1) = I(K)
I(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT I(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(4)
IF F > 11 THEN K = 2
IF L  1 = 0 THEN SL = T(1)
T(L  1) = T(K)
T(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT T(I)
NEXT I
PRINT STR$(T(3)) + STR$(S(1)) + STR$(H(4)) + STR$(I(2))
NEXT Z
REM*********************************************************8
L = 4
F = 4
FOR Z = 1 TO 10
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(1)
IF F > 10 THEN K = 1
IF L  1 = 0 THEN SL = S(1)
S(L  1) = S(K)
S(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT S(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = K TO 4
FOR L = 4 TO S(2)
IF F > 0 THEN K = 2
IF L  1 = 0 THEN SL = H(1)
H(L  1) = H(K)
H(4) = SL
L = 1
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT H(I)
NEXT I
REM
FOR K = 1 TO L  1
FOR J = F TO 100
FOR L = 1 TO S(3)
IF F > 10 THEN K = 4
IF L  1 = 0 THEN SL = I(1)
I(L  1) = I(K)
I(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT I(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(4)
IF F > 11 THEN K = 2
IF L  1 = 0 THEN SL = T(1)
T(L  1) = T(K)
T(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT T(I)
NEXT I
PRINT STR$(T(3)) + STR$(S(1)) + STR$(H(4)) + STR$(I(2))
NEXT Z
REM********************************************************9
L = 4
F = 4
FOR Z = 1 TO 10
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(1)
IF F > 10 THEN K = 1
IF L  1 = 0 THEN SL = S(1)
S(L  1) = S(K)
S(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT S(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = K TO 4
FOR L = 4 TO S(2)
IF F > 0 THEN K = 2
IF L  1 = 0 THEN SL = H(1)
H(L  1) = H(K)
H(4) = SL
L = 1
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT H(I)
NEXT I
REM
FOR K = 1 TO L  1
FOR J = F TO 100
FOR L = 1 TO S(3)
IF F > 10 THEN K = 4
IF L  1 = 0 THEN SL = I(1)
I(L  1) = I(K)
I(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT I(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(4)
IF F > 11 THEN K = 2
IF L  1 = 0 THEN SL = T(1)
T(L  1) = T(K)
T(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT T(I)
NEXT I
PRINT STR$(T(3)) + STR$(S(1)) + STR$(H(4)) + STR$(I(2))
NEXT Z
REM*********************************************************10
L = 4
F = 4
FOR Z = 1 TO 10
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(1)
IF F > 10 THEN K = 1
IF L  1 = 0 THEN SL = S(1)
S(L  1) = S(K)
S(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT S(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = K TO 4
FOR L = 4 TO S(2)
IF F > 0 THEN K = 2
IF L  1 = 0 THEN SL = H(1)
H(L  1) = H(K)
H(4) = SL
L = 1
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT H(I)
NEXT I
REM
FOR K = 1 TO L  1
FOR J = F TO 100
FOR L = 1 TO S(3)
IF F > 10 THEN K = 4
IF L  1 = 0 THEN SL = I(1)
I(L  1) = I(K)
I(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT I(I)
NEXT I
REM
FOR K = 1 TO L
FOR J = F TO 100
FOR L = 1 TO S(4)
IF F > 11 THEN K = 2
IF L  1 = 0 THEN SL = T(1)
T(L  1) = T(K)
T(4) = SL
NEXT L
NEXT J
NEXT K
FOR I = 1 TO 4
PRINT T(I)
NEXT I
PRINT STR$(T(3)) + STR$(S(1)) + STR$(H(4)) + STR$(I(2))
NEXT Z
REM********************************************************loopie
NEXT DONUT
END
SLIST:
DATA 1,3,6,4
REM A Series is the code and the SLIST third place denotes a key.
REM By Changing third the series alters.
REM ALL this obfuscated loops is to make a set.
REM SO the code appears as a symbol transfomr where S(3) causes
REM A number between 0 to 9. So the decade is allowed for all
REM number representation.
REM A set of this obfuscated code can be assembled in many loops!
REM SO S(ELEMENT1) was represented already. S(X,Y,Z) is the
REM NEXT POSTING
.
 FollowUps:
 Re: Obfuscated Key Hidden in Software Snail
 From: jt64
 Re: Obfuscated Key Hidden in Software Snail
 From: Douglas Eagleson
 Re: Obfuscated Key Hidden in Software Snail
 References:
 Obfuscated Key Hidden in Software Snail
 From: Douglas Eagleson
 Obfuscated Key Hidden in Software Snail
 Prev by Date: Obfuscated Key Hidden in Software Snail
 Next by Date: Re: Obfuscated Key Hidden in Software Snail
 Previous by thread: Obfuscated Key Hidden in Software Snail
 Next by thread: Re: Obfuscated Key Hidden in Software Snail
 Index(es):
Relevant Pages
