home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Gthorne / reopsahl / HowTo42.txt < prev    next >
Encoding:
Text File  |  2000-05-25  |  72.4 KB  |  1,472 lines

  1.    
  2.                       HOW TO CRACK, BY +ORC, A TUTORIAL
  3.                                       
  4.    
  5.      ________________________________________________________________
  6.    
  7.    
  8.    
  9.    Lesson 4 (2):Time protections, part 2
  10.    A little Micro$oft bashing :=)
  11.      ________________________________________________________________
  12.    
  13.    
  14.    
  15.    [MS-WINPROJECT] [MS PUBLISHER 97] [MS-MONEY 94] [MS MONEY 97]
  16.      ________________________________________________________________
  17.    
  18.    
  19.    
  20.    
  21.  
  22.  
  23.   (Hic sunt tabulae: Best viewed with good old Courier New 8)
  24.  
  25.  
  26.      Well well well, my dear friends, it's April, the "opening"
  27. month, when trees unfold and the womb of nature opens with young life...
  28. about time we start with the REAL work, and what I mean is that we
  29. begin damaging Microsoft interests... the real ones. I will therefore
  30. teach you here how to crack Microsoft's ubiquitous "trial version
  31. time protection".
  32.  
  33.      The typical Micro$oft's trial limit (of three months) is a
  34. clever marketing approach per se: I'm speaking of the "trial" version
  35. of their programs that you are supposed to use and enjoy for 90 days,
  36. until a screen reminds you that you WILL not be able to use it any more,
  37. coz the 90 days are over, please pay. Note the clever touch of  90 (instead
  38. of 30) days: three months are more than enough to get you real hooked on a
  39. program, especially huge monstrosities of the complexity of MS overbloated
  40. applications... it's a much better period than the usual "30 days"
  41. flavour that we find around in common shareware.
  42.  
  43.      Since Micro$oft makes the bulk of its money from software
  44. sold to corporate executives, senior sparer and assorted yuppies, it
  45. suits us well to crack as first example of this lesson, Microsoft PROJECT,
  46. one of those ridiculous "yuppie" programs that allow you to "plan"
  47. and "schedule" an activity or a project of your "team"... as if we
  48. were all time-slaves like those idiots... besides I may as well use this
  49. crap to program the nice "activities" of my +HCU's cracking units :=)
  50.  
  51.      I'm therefore cracking here the 90 days trial version of
  52. MSOFFICE WINDOWS PROJECT Version 4.1 of august 1995  which has the
  53. protection hidden inside the monstrous WINPROJ.EXE (4.240.896 bytes of
  54. overbloated bad programming). The error and protection messages dwell inside
  55. winproj.DLG (overbloated dialogues of 1.179.822 bytes).
  56.      We'll begin with this somewhat "older" example of the ubiquitous
  57. "MS-trial" protection scheme (from 1995), since, as I have already told
  58. you elsewhere, the *history* and the *evolution* of protection schemes
  59. are powerful additional WEAPONS, that a cracker can use to defeat
  60. more complex schemes that may not be so evident if you cannot recognise
  61. their "physiognomy" at the first glance (or if you do not yet "feel" them :=)
  62. We'll crack in this lesson a Microsoft program from 1994, another one from
  63. 1995 (this first one) and two from 1997. I believe this should give you a
  64. wide enough palette of MS-protections, and that with this knowledge you
  65. should be able to crack every single piece of software Microsoft may throw
  66. at you in the next couple of years (at least :=)
  67.      You'll see for instance that the "cmp eax,ecx" instruction
  68. at the heart of some of these MS-schemes is a constant characteristic,
  69. that you'll meet again and again, which differs from the typical "beggar off
  70. on bad flag ax" setting that the shareware authors usually use.
  71.  
  72. A SMALL THEORETHICAL DIGRESSION
  73. First of all, before entering the guts of MS-cracking, a small "theoretical"
  74. digression.
  75. From a cracker's point of view, the new "trend" to give away full time
  76. limited versions of a software packages is extremely interesting:
  77. once you defeat the time checking routines (... plural coz there may
  78. be much more than one inside the same program) your work is done and
  79. you'll immediately enjoy the full application.
  80.      The reason behind this trend (from password to time-trial)
  81. is quite simple: password-serial number protections are useless on a Web
  82. which abounds with free pirated serial number listings (I saw one with 54.000
  83. different serial numbers-registration strings couples!) that anybody with
  84. intelligence level "amoeba" can easily find. I do not like serial number
  85. collectors: they do not teach anything, in my (admittely biased) opinion they
  86. just steal... fact is anyway, that the mere existence of such huge
  87. ready-made password listings has nuked any programmer's confidence in the
  88. serial/string protection approach (whose cracking techniques I have explained
  89. elsewhere in this tutorial), and this is the more true for "commercial"
  90. (i.e. "non toy") applications.
  91.      You will find therefore, for big commercial application, the
  92. "Cinderella" protections (you may use this app for 30 days) or
  93. the "quiver" protections (you may use this app 30 times), or a combination of
  94. these two kinds, or a combination of both kinds PLUS the registration
  95. string/serial number protection method.
  96.      One of the (minor) problems for us nice crackers is that
  97. with this kind of protections we may have some surprises later on... i.e. you
  98. crack your target and it works fine... well past the date it should have
  99. been crippled upon, WHEN YOU SET this DATE INSIDE YOUR OS but -alas!- it stops
  100. miserably working WHEN THE REAL TIME "of the world" has passed that cap...
  101. this has to do with OTHER protections, checking randomly, for instance, the
  102. date of some UNRELATED FILES on your hard disk.
  103.      Obviously this does not concern us much... as soon as this
  104. happen we crack this "second level" protection scheme too, happily drinking
  105. another Martini-Wodka (use only Moskowskaja and add some Indian tonic
  106. Schweppes and a zest of lemon if you want to taste something
  107. that's really good) and forget the whole incident... but I had
  108. to mention it right now because I honestly DO NOT KNOW YET if
  109. some of the programs that I'll crack in these lessons do have or
  110. not such additional protections, nor have I the time to feel if
  111. there are other protections inside overbloated 5 million bytes
  112. horrors once I have already found the first (and maybe only) one,
  113. nor have I envy to wait 90 days just to see if something else
  114. snaps... should it happen (which I DO NOT believe, seen how
  115. primitive MS-protections look like) I'll then simply add the new
  116. crack to this section, we'll see.
  117. ---------------------------------------------
  118. Some elementary MUST KNOW when you crack time protections:
  119. Date and Time stamps in the root directory (old flavour)
  120.      The root directory (in DOS) is a simple table of 32-byte
  121. entries, defining each file on the root directory. Bytes 0-7 have
  122. the file name, 8-10 have the file extension, 11 hydes the
  123. attribute flags, 12-21 are at times used for other protection
  124. tricks, 22-23 have the *TIME* stamp, 24-25 have the *DATE* stamp,
  125. 26-27 the starting cluster number and 28-31 the file size.
  126.      The date and time stamps can record any date from January
  127. 1, 1980 through December 31, 2099. The time stamp is accurate to
  128. two seconds. The date and time stamps are each 2 byte values that
  129. are recorded by using the following equations:
  130.                DATE = DAY+64*MONTH+512*(YEAR-1980)
  131.                TIME = SECONDS/2+32*MINUTES+2048*HOURS
  132.      In the time entry, the hour occupies the first 5 bits, the
  133. minutes the next 6, and the second the last 5. The seconds are
  134. actually stored as the number of seconds divided by 2, so the
  135. clock is accurate to 2 seconds. In the date entry, the year
  136. (subtracted from 1980... that is 0x7bc) is stored in the first
  137. 7 bits, the month in the next 4 and the day in the last 5 bits.
  138. How do we recover these values? Here the commonest tricks:
  139. seconds   AND byte 22 with 11111; then multiply by 2
  140. Minutes   AND byte 23 with 111; then shift left 3 and
  141.           add byte 23 shifted right 5
  142. Hours          Shift byte 23 right 3
  143. Day       AND byte 24 with 11111
  144. Month          AND byte 25 with 1, Multiply by 8 and
  145.           add byte 24 shifted right 5
  146. Year      Add byte 25 to 1980 (0x7cb) and shift right 1
  147.      I hope you have the intelligence to understand by yourself
  148. why these methods work... the point is that as soon as you see
  149. something like that going on in the code you are examining, you
  150. will know that they are fiddling with date or time stamps (may
  151. be necessary, for instance, in order to reset the date and time
  152. stamps of an opened file without leaving any trace behind).
  153.  
  154. How does a programmer fetch the date? He uses the _dos_getdate
  155. function.
  156. The _dos_getdate function uses system call 0x2A to get the
  157. current system date.  The date information is returned in a
  158. dosdate_t structure pointed to by date.
  159. Synopsis:
  160. #include [dos.h]
  161. void _dos_getdate( struct dosdate_t *date );
  162.  
  163. struct dosdate_t {
  164.         unsigned char day;      /* 1-31 */
  165.         unsigned char month;    /* 1-12 */
  166.         unsigned short year;    /* 1980-2099 */
  167.         unsigned char dayofweek;/* 0-6 (0=Sunday) */
  168. };
  169.  
  170. -------------------------------------------------------
  171.  
  172. AND NOW RUB YOUR HANDS: TO WORK!
  173.      And now rub your hands: to work!   Fetch your copy of the
  174. time limited version of  Winproj.exe (you'll find it on the
  175. web... many magazines in Europe have published it on their cover
  176. CD at the beginning of this year... The one I use here is taken
  177. from a second-hand French magazine I found in Basel some time
  178. ago: PCMAG n.108)
  179. Well how do we proceed?
  180. As usual: Let's dead list everything (but you could get pretty
  181. quickly to the "hollow" point of your target through winice, is
  182. a matter of aesthetic choice, I prefer dead listing because it
  183. is more "relaxed" but you may use a combination of both
  184. approaches or whatever you like most).
  185.      First thing you notice is that the dead listing is HUGE:
  186. more than 50 megabytes of text. You'll need a good wordprocessor
  187. to handle that... Microsoft's last one, word version 7.0 does not
  188. even accept such files, but look! Word 2 (the old version of
  189. Word, 1992 vintage) does run them (almost) without problems (you
  190. would not -obviously- have such problems under dos or linux).
  191. It's quite ironic, I believe, that Word 7 cannot open such a
  192. file, but on the contrary Word 2 ('92 version!) is capable of
  193. doing it... this confirms what I always supposed: huge
  194. overbloated programming is getting worse and worse... humanity
  195. has probably already entered one of its many phases of decadence
  196. :=)
  197.  
  198. LET'S SURPRISE THE PROTECTION SCHEME FROM BEHIND
  199. We can get to the protection scheme of this target in many ways
  200. (and there are yet many more... almost as many as you fancy).
  201. Usually, to defeat these protections the traditional approach is
  202. to set the OS date past the trial period, run the target,
  203. individuate the nag screen as soon as it snaps, get the maximuml
  204. information about it (comprised its pixel dimensions) and then
  205. breakpoint it using some of these data) for instance (with
  206. winice) bpx on MessageBox (MessageBoxA to be exact). Remember
  207. that with Godot (Winice 3.0), you can use CONDITIONAL
  208. EXPRESSIONS! Say that the hwnd command gave you 09017E as handle
  209. for the nagscreen (this value will be different EVERY time you
  210. run your target), then you can selective breakpoint on it with:
  211.           :bpx MessageBoxA IF ((ESP->4) == 09017E)
  212. since all Win32 applications pass parameters on the stack
  213. enetering a function and  the first parameter has a positive
  214. offset of 4 from the ESP register.
  215.  Then you track back to the responsible code and so on and so
  216. on... since the protectionists are aware of these obvious "weak"
  217. points in their schemes, their "defences" will be all
  218. concentrated on this "path" (encrypted date compares far away
  219. from the messagebox call, bogus jumps, fake routines etcetera)...
  220. they'll try to defer people reverse backtracing to the protection
  221. scheme from the nag screen.
  222.      We will therefore hack our way to these protections sneaking
  223. in from more hidden, less used and and less obvious doors, like
  224. (in this example) GetLocalTime or (as we'll see later) through
  225. the various "Write and read" file routines (i.e. the _open,
  226. _lseek and _read routines that the protection schemes use to
  227. fetch from the registry (or from somewhere else) the encrypted
  228. date of installation. The point is to take our target's
  229. protection schemes by surprise, from "behind" :=)
  230.      OK: First of all... we have to do with a time protection,
  231. duh, therefore GetLocalTime is a first bait we can jolly use,
  232. let's see if we fish anything thattaway:
  233. ------------------------------------------------
  234. * Referenced by CALLs at Addresses:
  235. |:05024FBE, :05024FF0, :05035A05, :0506489C, :0511A2A4,
  236. |:05167F6A, :05167FC1, :051F9E77, :05204C54, :05223F14,
  237. |:05223F81, :05224013, :05271A72
  238. |
  239. :05024E77 55              push ebp
  240. :05024E78 8BEC            mov ebp, esp
  241. :05024E7A 83EC10          sub esp, 00000010
  242. :05024E7D 8D45F0          lea eax, [ebp-10]
  243. :05024E80 50              push eax
  244. :05024E81 FF15905E3C05    Call dword ptr [053C5E90]
  245. *GetLocalTime,(Kernel32-E2h) ;HERE!
  246. ------------------------------------------------
  247. PARAMETERS inside Windows' FUNCTIONS
  248. After this call the program must save the time parameters: for
  249. those of you that do not know anything, the typedef structure is
  250. the following one... (VERY IMPORTANT FOR TIME PROTECTIONS! Learn
  251. it by heart! It's used in many other various FileTime routines
  252. too):
  253. ------------------------------------------------
  254. WORD wYear
  255. WOED wMonth
  256. WORD wDayOfWeek
  257. WORD wDay
  258. WORD wHour
  259. WORD wMinute
  260. WORD wSecond
  261. WORD wMilliseconds
  262. ------------------------------------------------
  263. Why did we seek GetLocalTime? Because  the protectionists have
  264. to know somehow if the program run over the allowed time and,
  265. while there are many other methods to do this, one of the most
  266. simple is a check through good humble GetLocalTime... so we'll
  267. begin from here, ready to check all other possibilities only if
  268. we do not fish anything with this bait.
  269.  
  270. Examining the savings of the return values from this routine, as
  271. with many other time routines, you'll find in your dead listing
  272. something like this:
  273.  
  274. ------------------------------------------------
  275. CALL [KERNEL32!GetLocalTime]
  276. mov  dx, [EBP-10] that's the year, will be something like
  277. 7CD=1997
  278. mov  dl, [EBP-0E] the month... lower part of a register is enough
  279. mov  al, [EBP-0C] that's the day of the week, ditto
  280. mov  al, [EBP-0A] that's the day
  281. mov  dl, [EBP-08] that's the hour
  282. mov  al, [EBP-06] that's the minute
  283. mov  dl, [EBP-04] that's the second
  284. and if somebody would care, you would have had also
  285. mov  dx, [EBP-02] that's the millisecond, but few time
  286. protections care for that (which is stupid to say the least,
  287. since so many ideas come immediately to the mind :=)
  288. ------------------------------------------------
  289.  
  290.      I said "something like" the above, but things could differ
  291. a little coz the count [EBP-xx] could be flawed by pushes and
  292. then you would have something like -say- the year in [EBP-34]
  293. and, accordingly, the month in [EBP-32] et cetera... anyway the
  294. SERIE will always be respected, therefore you could also crack
  295. these protection in a completely different (and easy) way, that
  296. good old +ORC will now let you glimpse... simply set a breakpoint
  297. on a user routine (study this part of winice documentation
  298. WELL... you'll be able to crack almost ANYTHING with your own
  299. breakpoint routines)... say when the target loads for instance
  300. 7D5h on ax OR on dx (you will not know which of both registers
  301. the protection scheme use).. then simply run the program with the
  302. changed os date 2005 (which is 7D5h) and see what happens...
  303. you'll breakpoint smack in the middle of the protection scheme
  304. :=)... Why use 2005 instead of 1997? Easy: we wont use the
  305. current year (7CD=1997) nor the next couple of years, because the
  306. protectionists oft use other unrelated variables with those same
  307. values (say current year of release and a couple year more) *on
  308. purpose*, to block these very  attempts. But, as I said, we do
  309. not need to use winice to crack this cram... bear with me and
  310. see.
  311.      Let's be more technical: you have reached a level where you
  312. have the right to UNDERSTAND exactly how to access parameters
  313. (i.e. the fixed values that MUST be passed to a function) and
  314. local variables (i.e. the values that the protectionists have
  315. decided to use, say in order to compare or manipilate) inside
  316. windows calls:
  317. -    If you set a breakpoint at the exact function address, for
  318. example, :BPX GetFileTime, use ESP+(param#*4) to address
  319. parameters, where param# is 1, 2, 3, or whichever parameter that
  320. function calls... Since BOOL GetFileTime(HANDLE hFile, LPFILETIME
  321. lpCreation, LPFILETIME lpLastAccess, LPFILETIME lpLastModified)
  322. you'll easily know what is what.
  323. -    If you set a breakpoint INSIDE a function body (after the
  324. full prologue PUSH EBP, MOVE EBP,ESP, SUB ESP,size (locals) has
  325. been executed)use EBP+(param#*4)+4 to address parameters.
  326. -    Once the space for local variables is allocated on the
  327. stack, the local variables can be addressed using a negative
  328. offset from EBP. The first local variable is at EBP-4... with two
  329. pointer local variables (typically dword sized) one will
  330. therefore be at EBP-4 and the other will be at EBP-8.
  331. Comprendes?
  332. Enough... back to our calls to GetLocalTime... see how the
  333. "centralised" call approach of windows helps us a lot... all the
  334. calls of the program to this routine are here under our eyes...
  335. look at the 13 CALL references, once more, (THIS IS IMPORTANT)
  336. look at WHERE they come from:
  337. * Referenced by CALLs at Addresses:
  338. |:05024FBE, :05024FF0, :05035A05, :0506489C, :0511A2A4,
  339. |:05167F6A, :05167FC1, :051F9E77, :05204C54, :05223F14,
  340. |:05223F81, :05224013, :05271A72
  341. |
  342. :05024E77 55              push ebp
  343. :05024E78 8BEC            mov ebp, esp
  344. :05024E7A 83EC10          sub esp, 00000010
  345. :05024E7D 8D45F0          lea eax, [ebp-10]
  346. :05024E80 50              push eax
  347. :05024E81 FF15905E3C05    Call dword ptr [053C5E90]
  348. *GetLocalTime,(Kernel32-E2h)
  349.  
  350. A LITTLE ZEN: FEELING THE CALLS OF THE SEA
  351. Ok, let's see which sectors of our target do actually call our
  352. bait GetLocalTime... look at the call references above! Out of
  353. 13 calls, Sectors "024F" and "167F" and "223F" call it twice,
  354. whereby Sectors 035A, 0648, 11A2, 1F9E, 204C, 2240 and 271A call
  355. it only once.
  356. This may not mean anything, of course, but hey! on the other hand
  357. it could be very interesting... clearly we'll examine FIRST what
  358. happens in these "time-intensive-calling" parts of the code:
  359. Let's begin.
  360.  
  361. 1)   "Sector 024F" calls GetLocalTime twice, why?
  362.  
  363.   :first_call_snippet_(called_from_:0504A3F7)_calls_at_024FBE
  364. :05024FA4 55                 push ebp
  365. :05024FA5 8BEC               mov ebp, esp
  366. :05024FA7 83EC0C             sub esp, 0000000C
  367. :05024FAA 53                 push ebx
  368. :05024FAB 8D45F4             lea eax, [ebp-0C]
  369. :05024FAE 8B1D04452C05   *** mov ebx, [052C4504] ;get holyloc
  370. :05024FB4 50                 push eax
  371. :05024FB5 885DFE             mov [ebp-02], bl ;create holylow
  372. :05024FB8 887DFF             mov [ebp-01], bh ;create holyhigh
  373. :05024FBB C1EB10             shr ebx, 10      ;create holyshr10
  374. :05024FBE E8B4FEFFFF     *** call 05024E77 GetLocalTime ;FIRST CALL
  375. :05024FC3 8A45FE             mov al , [ebp-02]
  376. :05024FC6 3845F6         *** cmp [ebp-0A], al  ;month=holylow?
  377. :05024FC9 7512               jne 05024FDD ;flag 1
  378. :05024FCB 8A45FF             mov al , [ebp-01]
  379. :05024FCE 3845F7         *** cmp [ebp-09], al  ;day=holyhigh?
  380. :05024FD1 750A               jne 05024FDD ;flag 1
  381. :05024FD3 66B80000           mov ax, 0000 ;flag 0
  382. :05024FD7 66395DF4       *** cmp [ebp-0C], bx  ;year=holyshr10?
  383. :05024FDB 7404               je 05024FE1  ;keep flag 0
  384.  
  385. :05024FDD 66B80100       *** mov ax, 0001  (flag 1: day or month
  386.                                             or year differ)
  387. :05024FE1 5B                 pop ebx
  388. :05024FE2 8BE5               mov esp, ebp
  389. :05024FE4 5D                 pop ebp
  390. :05024FE5 C3                 ret
  391.   :second_call_snippet_calls_at_5024FF0
  392. :05024FE6 55                 push ebp
  393. :05024FE7 8BEC               mov ebp, esp
  394. :05024FE9 83EC08             sub esp, 00000008
  395. :05024FEC 8D45F8             lea eax, [ebp-08]
  396. :05024FEF 50                 push eax
  397. :05024FF0 E882FEFFFF     *** call 05024E77 GetLocalTime ;SECONDCALL
  398. :05024FF5 0FB64DFB       *** movzx byte ptr ecx, [ebp-05] ;savepar
  399. :05024FF9 0FB645FA       *** movzx byte ptr eax, [ebp-06] ;savepar
  400. :05024FFD C1E108             shl ecx, 08
  401. :05025000 0BC8               or ecx, eax
  402. :05025002 0FB745F8       *** movzx word ptr eax, [ebp-08] ;savepar
  403. :05025006 C1E010             shl eax, 10
  404. :05025009 8BE5               mov esp, ebp
  405. :0502500B 0BC8               or ecx, eax
  406. :0502500D 5D                 pop ebp
  407. :0502500E 890D04452C05   *** mov [052C4504], ecx  ;save in holyloc
  408. :05025014 C3                 ret
  409.  
  410.      Quite interesting... a flagging (that could be a green
  411. light) and some parameters saved and compared within a holy
  412. location... why does this "sector 024F" call? Is it just checking
  413. against an holy location IF the time has changed enough to
  414. justify the snapping of other routines? Or is it this the part
  415. of the code that encrypts the date in the holy location
  416. itself?... We could follow this path, and "freeze" the holy
  417. location, or explore who calls this code snippets... this would
  418. bring us to the protection scheme as well of course... but this
  419. kind of work -MADE NOW- would not be methodologically correct...
  420. YOU SHOULD INDEED NEVER GO ASTRAY... KEEP YOUR CRACKING APPROACH
  421. (as long as you do not get obvious signs that you found what you
  422. were looking for), it's like landing a plane... keep the original
  423. approach and DO NOT delve inside everything you happen to notice
  424. that "might" be a treffer! Here we have something "biting" the
  425. hook (our worm is GetLocalTime), but it's not yet time to pull
  426. out our fishing line yet.. let's continue... We were
  427. investigating all sections of our target's code which effectuate
  428. at least a double call to GetLocalTime... let's continue! Let's
  429. have a quick look to the other two "twin" occurrences of
  430. GetLocalTime (167F and 223F) before delving inside any one of
  431. them... maybe we will not need to delve at all. Remember, always
  432. concentrate on ONE approach at a time: multa agendo nihil agens!
  433.  
  434. Here the second "twin calls" location area:
  435. 2)   "Sector" 167F calls GetLocalTime, why?
  436.  
  437. :05167F6A E808CFEBFF          call 05024E77 ;CALL GetLocalTime
  438. :05167F6F 66817DF4C007        cmp [ebp-0C], 07C0  ;is 1984?
  439. :05167F75 722F                jb 05167FA6       ;go badflag
  440. :05167F77 66817DF40108        cmp [ebp-0C], 0801  ;is 2049?
  441. :05167F7D 7727                ja 05167FA6         ;go badflag
  442. :05167F7F FF75F4              push [ebp-0C]    ;save validyear
  443. :05167F82 660FB645F7          movzx byte ptr ax, [ebp-09] ;pushday
  444. :05167F87 660FB64DF6          movzx byte ptr cx, [ebp-0A] ;pushmonth
  445. :05167F8C 50                  push eax
  446. :05167F8D 51                  push ecx
  447. :05167F8E E84EC10B00          call 052240E1       ;call here
  448. :05167F93 663B45E4            cmp ax, [ebp-1C]
  449. :05167F97 7D0D                jge 05167FA6        ;go badflag
  450. :05167F99 668B4DE4            mov cx, [ebp-1C]
  451. :05167F9D 662BC8              sub cx, ax
  452. :05167FA0 66894DF2            mov [ebp-0E], cx
  453. :05167FA4 EB06                jmp 05167FAC        ;do not badflag
  454.  
  455. * Referenced by a Jump at Addresses:05167E13(C), :05167ED7(C),
  456.  :05167F1B(C), :05167F64(C), :05167F75(C), :05167F7D(C),
  457.  :05167F97(C); lotta routines badflag
  458.                here... this is BADFLAG INTENSIVE
  459. :05167FA6 66C745FE0100     mov [ebp-02], 0001 ;BAD FLAG !!!***
  460.    :no_bad_flag
  461. :05167FAC FF75DC           push [ebp-24]
  462. :05167FAF FF151C5C3C05     Call dword ptr[053C5C1C];RegCloseKey
  463. :05167FB5 EB25             jmp 05167FDC ;jump 2nd getlocaltime
  464.   :only_5167DE5_calls_this_second_GetLocalTime
  465. :05167FB7 66C745EC0000     mov [ebp-14], 0000
  466. :05167FBD 8D45F4           lea eax, [ebp-0C]
  467. :05167FC0 50               push eax ;SECOND GetLocalTime
  468. :05167FC1 E8B1CEEBFF       call 05024E77 GetLocalTime  ;call it
  469. :05167FC6 66817DF4C007     cmp [ebp-0C], 07C0 ;between 1984...
  470. :05167FCC 7208             jb 05167FD6     ;jump flag_unvalid_year
  471. :05167FCE 66817DF40108     cmp [ebp-0C], 0801 ;...and 2049?
  472. :05167FD4 7606             jbe 05167FDC    ;jump_to_valid_year
  473.    :flag_unvalid_year
  474. :05167FD6 66C745FE0100     mov [ebp-02], 0001 ;flag "unvalid_year"
  475.    :valid_year_almost_everybody_calls_here
  476. :05167FDC 66837DFE00       cmp [ebp-02], 0000   ;valid_flag?
  477. :05167FE1 755F             jne 05168042  ;beggar off:unvalid something
  478. :05167FE3 66837DF000       cmp [ebp-10], 0000   ;valid ebp-10?
  479. :05167FE8 750E             jne 05167FF8         ;jmp unvalid_e10
  480. :05167FEA 66837DEC00       cmp [ebp-14], 0000   ;valid ebp-14?
  481. :05167FEF 7451             je 05168042          ;beggar off,unvalid
  482. :05167FF1 66837DF000       cmp [ebp-10], 0000   ;sure thatebp-10=0?
  483. :05167FF6 7407             je 05167FFF          ;continue ifso
  484.   :unvalid_e10
  485. :05167FF8 66837DEC00       cmp [ebp-14], 0000   ;check if e14valid
  486. :05167FFD 7543             jne 05168042         ;no? be damned!
  487.   :valid_e10_and_e14
  488. :05167FFF 0FBF4DF2         movsx word ptr ecx, [ebp-0E] ;e10 and e14 true
  489. :05168003 66833D58192C0501 cmp dword ptr [052C1958], 0001
  490. :0516800B 1BC0             sbb eax, eax
  491. :0516800D 83E05A           and eax, 0000005A  ;pretty obvious
  492. :05168010 83C05A           add eax, 0000005A  ;isnt it?
  493. :05168013 3BC1             cmp eax, ecx       ;HERE********
  494. :05168015 7C2B             jl 05168042        ;beggar off
  495. :05168017 66837DF21E       cmp [ebp-0E], 001E ;0x1E = 30
  496. :0516801C 7F4A             jg 05168068        ;good guy jump
  497. :0516801E 8D45F4           lea eax, [ebp-0C]
  498.  
  499.      Well, that's was it actually... we notice two consecutive
  500. locations with 5Ah (90 decimal) there... as if they had written
  501. "OUR TIME LIMIT IS HERE, PLEASE REMOVE AND USE FOR EVER AND
  502. EVER". Maybe Micro$oft wants exactly this... I mean, they give
  503. away their (bugged) web browser for free just in order to
  504. bankrupt Netscape, why shouldnt they as well give every software
  505. away for free (bad protecting it on time limits and spreading
  506. everything on all cd-rom covers of the planet) until they have
  507. bankrupted every concurrent and do effectively held every user
  508. on the planet "pillado por los huevos"?
  509.      Maybe in cracking this protection scheme I'm only helping
  510. Gates... the more people use its programs the more they will
  511. spread... the more he will dominate the market... yet I could not
  512. care less about Micro$oft's own stupid plans...  programming the
  513. way they do, they will never be able to dominate a portion of
  514. halfbacked potatoes in my humble opinion... therefore let's crack
  515. this crap black and blue and let's hope Micro$oft loose a lot of
  516. money thank us, yeah, that's life! Let's crack a lot of Micro$oft
  517. software from now on! A white flower in our mouth, a computer not
  518. far away, a cold determination in our fingers. Death to Gates!
  519.  
  520. *** Quick Crack for Micro$oft's Project 95, by +ORC, 04/1997***
  521. search for the string
  522. :05167FA6 66C745FE0100       mov [ebp-02], 0001 ;BAD FLAG****
  523. and change it to:
  524. :05167FA6 66C745FE0000       mov [ebp-02], 0000 ;always good
  525. *** now find some stupid yuppies and give them this app ***
  526.  
  527. JUST A MOMENT (1)
  528. Well, just a moment... go back to the code "snippets" above,
  529. pupils... why did we not search for
  530. :05168015 7C2B         jl 05168042        ;beggar off
  531. in order to noop everything say with an inc/dec:
  532. :05168015 40        inc eax
  533. :05168016 48        dec eax
  534. Why?
  535. Because it would NOT have worked... or, as a matter of fact, it
  536. would have worked only in SOME cases... this is an example of a
  537. "protectionists' bait", please examine the code.
  538.      You should -by now- know enough our art to be able to
  539. understand by yourself why the crack at 5167FA6 works and the
  540. crack at 5168015 (which is indeed part of the protection) will
  541. not work... a hint for you: change months and YEARS of your os
  542. as you experiment with this stuff. This answer is part of the
  543. strainer of this lesson, therefore work on it and understand the
  544. problem.
  545.      And what about the remaining last "double call" location at
  546. "223"? Did I not say we should keep steady on our approach before
  547. delving inside?
  548.      Yes and no: "quod satis est cui contingit, nihil amplius
  549. optet" (Horatius, emailing his friends, as you can see you can
  550. always find a proverb to demonstrate what you are saying, even
  551. if you are contradicting yourself :=)
  552.      But as soon as you SEE the protection there is NO POINT
  553. (unless you really have to, in order to understand some weird
  554. scheme thoroughly) to continue... the plane is landed, relax,
  555. drink something.
  556.      Anyway for such things there are no fixed rules... do
  557. whatever you like and prefer, I personally think that the best
  558. approach is a mixture of iron will and extreme flexibility.
  559.  
  560. JUST A MOMENT (2)
  561. But wait, since they used the 5Ah byte... could not we have found
  562. the protection just searching for 5Ah?
  563.      Yes, and indeed, we would have found the scheme around it
  564. immediately... but that IS NOT the correct approach, since you
  565. should NOT always presume that the protectionists behave REALLY
  566. always that stupid (even if they almost always do :=)
  567.  
  568. JUST A MOMENT (3)
  569. But wait, could we have not just winiced the working of the
  570. program in order to backtrace as soon as the protection nag
  571. screen snaps?
  572.      Yes, and it would have worked... but why ruin your eyes on
  573. screen in a closed and may be dusty room, getting cramps in your
  574. shoulders that not even a good massage will blow away, when you
  575. can crack much more relaxed, sitting quiet in a shadowy garden,
  576. looking lazily (it's April! A beautiful month! Go outside! What
  577. the hell are you doing inside a room?) at a couple of sheets of
  578. paper, feeling the wind among the leaves above you, while a cool
  579. Martini-Wodka fizzles in your hands? If you want to use the
  580. "live" winice approach go ahead... I'll even tell you right now
  581. a couple of things that can be useful in order to crack some
  582. (other) protections: for Cinderellas schemes bpx MessageBox or
  583. bpx GetLocalTime or bpx GetFileTime and look WHO gets the "time"
  584. data a little before the nagscreen snaps... I did not check but
  585. I'm sure that if you do it here, you'll have quite a lot of calls
  586. along the program, whereby the "initializing" calls from our
  587. "sector 24F" will snap at the beginning (and at the end) of the
  588. target life and our protection call (the one we cracked the bad
  589. flag of) i.e.:
  590.  
  591. :05167F6A E808CFEBFF   call 05024E77 ;CALL GetLocalTime in KERNEL
  592.  
  593. will happen JUST BEFORE the snap... so you can crack thatta way
  594. too... these patterns are always the same.
  595.  
  596. **************** A little icy digression *****************
  597. This is -after all- a tutorial, therefore for those of you that
  598. do not know anything, here are some useful (and well known) older
  599. winice little tricks and memory addresses discussions. Even if
  600. I do prefer to use as much as possible my "dead listing" methods,
  601. I realise that at times the help of winice is indispensable...
  602. the little tricks below refer to Winice for windows 95 older copy
  603. (before Godot, i.e. 3.0) and you may skip this section if you are
  604. using winice 3.0. which has the IF feature for conditional
  605. breakpoints, the WHAT command and much more. I strongly
  606. reccommand using Winice 3.0. In order to learn how to use it
  607. correctly your best approach is to find on the web the GOOD
  608. documentation of Numega (it's in adobe acrobat's PDFformat) here
  609. you have the names you'll need to find it (and NAMES are the MOST
  610. important thing on the web):
  611.      Si30cr.pdf     3.205.000 bytes    COMMAND REFERENCE
  612.      Si30ug.pdf     1.038.000 bytes     USING SOFTICE
  613. Last time I fetched them they were inside the zipped file
  614.      Sice3doc.zip, 3.358.000 bytes
  615. read these documents thoroughly.  Once you read them you (almost)
  616. will not need my lessons any more.
  617. But some of the simple tricks below can be useful even with
  618. Winice 3.0., and anyway I want ALL of the readers of this
  619. tutorial to know their tools and to use them in the best way,
  620. even those too lazy or too stupid to fetch the above mentioned
  621. files... therefore, here you are... some (older) winice's MUST
  622. know:
  623.  
  624. BPM DS:xxxxxxxx  W GT 1E
  625. Breakpoint first time that the byte at location DS:xxxxxxxx has
  626. a value written to it that's greater than 1Eh (30)
  627. Useful qualifiers are EQ (equal) NE (not equal) GT (greater than)
  628. LT (less than) and M (mask) this last one is pretty complicated
  629. but allows powerful breakpointing for dongles cracking: after
  630. having given your routine command "tss", begin your dongle
  631. breakpointing using, for instance:
  632. BPIO 3F6 R EQ M 11XX xx00
  633. This defines a byte break point on I/O port read, the first time
  634. that I/O port 3F6 is read with ANY value that has the two high
  635. order bits set to 1 and the two lower ones to zero, the other
  636. bits can be any value. The same is valid for BPM (breakpoint on
  637. memory write):
  638. BPM CS:802A2D22 W EQ M 0xxx xxxx xxxx xxxx xx11
  639. you dig it? The mask method is even better than the qualifier one
  640. if you are NOT sure about which value the protection will load :=)
  641.  
  642. CSIP NOT &F000:0 &FFFF:0
  643. Breakpoint only outside BIOS useful to limit breakpoint snapping
  644. Remember that CSIP and BPM (READ/WRITE) can be very USEFUL to
  645. slow down the execution of a windows program... if you use "heavy
  646. breakpointing" in this way, setting a number of "useless" but
  647. heavy breakpoints that winice will monitor, windows will crawl
  648. (even on a Pentium 200) and you'll be able to breakpoint MANUALLY
  649. exactly at the point where a protection snaps... I still prefer
  650. the "dead listing" method of cracking personally, though.
  651.  
  652. BPINT 21 AH=0F
  653. Breakpoint on openfile (funny how many INT 21 are execited under
  654. windoze)
  655. (old style, with Winice 3 it's BPINT 21 IF EAX=0F)
  656. BPINT 21 AH=2A
  657. Breakpoint on GetDate
  658. (old style, with Winice 3 it's BPINT 21 IF EAX==2A)
  659.  
  660. When we are still at it, remember that in 32bit mode there are
  661. only TWO selectors (when you search the whole memory for
  662. instance):
  663. 28:0 and 4 virtual gigabytes of CODE
  664. 30:0 and 4 virtual gigabytes of DATA and STACK
  665.  
  666. We saw (cracking DOS) how to get from virtual address to physical
  667. address in 8086 style segment:offset code: multiply the segment
  668. by 16 and then add the offset. In a "protected mode" selector
  669. it's different: linear address is calculated by adding the offset
  670. TO THE BASE ADDRESS FOUND IN THE GDT (or LDT, local descriptor
  671. table is used if bit TWO of the selector is a 1, global DT is
  672. used otherwise... GDT and LDT are "lookup" tables used to
  673. calculate addresses).
  674. At times you must understand a little the physical addresses
  675. structure in order to crack effectively:
  676. 00000000 - 000FFFFF Current Virtual Machine (Windows and Windows
  677. Programs)
  678. 00400000 - 7FFFFFFF Physical memory (contiguous)
  679. 80000000 - 803FFFFF      Windows' VxDs
  680. 80500000 - 80FFFFFF Windows programs
  681. 81000000 - FFFFFFFF DOS VMs
  682. ...use the commands "page" and "addr" and have a look around. The
  683. command addr is also very useful to understand in which context
  684. you are when winice pops up.
  685. Remember that each 32 bit task is given the address space from
  686. 400000 to 7FFFFFFF, which is called an "address context". This
  687. virtual address space is reserved for 32 bits applications and
  688. private DLLs
  689.  
  690. And now two MUST KNOW winice commands that will spare you a lot
  691. of wasted time when you delve inside the huge windows codebulks
  692. we have to peruse:
  693.  
  694. P RET (that's F12 most of the time)
  695. steps out of the current procedure, may take ages if it's very
  696. large
  697. that's step until return
  698.  
  699. G @SS:ESP (that's F11 most of the time)
  700. throws you at the caller of the procedure you bpxed on
  701. (bpx GetLocalTime and execute F11 (or write G @SS:ESP) as soon
  702. as winice pops up and you'll see what I mean)
  703.  
  704. A couple of watches like *ds:esi (and ds:esi) and a dex 1 ss:esp
  705. in your ini setting of winice would be a good idea too IMO.
  706.  
  707. This said, Winice 3.0 allows POWERFUL breakpointin, like for instance:
  708. bpx ntoskrnl!ExAllocatePoolWithTag IF (esp->c == 1) DO "data1;dd eax"
  709. (I will explain all this more thoroughly in the lessons about Windows NT)
  710. **********************************************
  711. Back to our time protections cracking (and Micro$oft bashing :=).
  712.  
  713.      Once more... there are THOUSAND different ways to crack
  714. these applications, and this GetLocalTime "fishing" is only ONE
  715. of them... I will teach you -of course- ALL the methods I believe
  716. are MOST effective... you must be enough crack-able by now to
  717. know when, applying these techniques to OTHER programs (hopefully
  718. Micro$oft ones) you'll have to use slightly or substantially
  719. different approaches... non semper Saturnalia erunt, as you'll
  720. see.
  721.  
  722. Are these protections always so easy to defeat?
  723. No and yes, may be no... yet there are far more complex schemes.
  724. But time checking from a CD-ROM code is the ultimate doom of the
  725. protectionists... you see: the problem for them is the following:
  726. They are protecting using a "write only once" media (a CD-ROM)...
  727. therefore every time you put the cd-rom in your driver you are
  728. re-installing a perfect "virgin" copy of the protected program...
  729. there is no way a recursive message can be placed INSIDE the
  730. code, telling it to never execute again... I remeber older nasty
  731. "quiver" protections in dos... after the 20ntieth installation
  732. the program formatted as bad a sound sector of the diskette...
  733. that was clever! But that's impossible on a read only media,
  734. therefore let's see... where can they keep track of the
  735. eventuality that you used it before?
  736. 1)   Inside the intricacies of Windows register, this most
  737. obscure fat abomination (should I write a scary computer fiction
  738. film, I would imagine a windows register growing fatter and
  739. fatter, week after week, and then suddenly grabbing the user
  740. through the a:\ drive in order to eat him :=)
  741. 2)   Inside an apparently unrelated file or *.dll that gets
  742. "lost" inside the garbage subdirectories c:\windows or
  743. c:\windows\system (by the way, that's exactly the same technique
  744. you should use in order to protect your files at work from
  745. administrator's prying eyes... throw every application inside
  746. windows subdirs and give them funny names, like a6JJJK.EXE... no
  747. administrator on this earth (and no censorship corporate
  748. patrolling software) will come to the idea that that is your
  749. beloved chess program :=).
  750. 3)   Inside small parts of the BOOT sector of your harddisk that
  751. can safely be used for this kind of tricks without altering the
  752. booting (this is a trick the protectionists have learnt from our
  753. fellows viri-writers... see how even the bad ones have a teaching
  754. function in this funny virtual world. Once more virus code
  755. studying is VERY important in order to crack well.
  756. Alas for the protectionists! All these tricks are pretty easy to
  757. defeat too, and I will show you HOW to do it :=)
  758.  
  759. For a start here is HOW easily you would have checked your boot
  760. sector with an old DOS system...
  761. 1)   Run debug (or, better, symdeb)
  762. 2)   -L 100 2 0 1
  763. (that's Load into memory address Ox100 from drive C (that's
  764. number 2... 0 is A, 1 is B and 2 is C, duh, starting from sector
  765. 0 for 1 sector whatever you find there. Here you have the boot
  766. sector of the PC I'm writing on:
  767. -L 100 2 0 1
  768. -d 100 L 200
  769. 17D3:0100  EB 3C 90 4D 53 57 49 4E-34 2E 31 00 02 40 01 00 k [.MSWIN4.1..@..
  770. 17D3:0110  02 00 02 00 00 F8 9A 00-3F 00 40 00 3F 00 00 00 .....x..?.@.?...
  771. 17D3:0120  41 44 26 00 80 00 29 FC-0F 5F 3C 20 20 20 20 20 AD&...)|._[
  772. 17D3:0130  20 20 20 20 20 20 46 41-54 31 36 20 20 20 FA 33 FAT16   z3
  773. 17D3:0140  C9 8E D1 BC FC 7B 16 07-BD 78 00 C5 76 00 1E 56 I.Q[|{..=x.Ev..V
  774. 17D3:0150  16 55 BF 22 05 89 7E 00-89 4E 02 B1 0B FC F3 A4 .U?"..~..N.1.|s$
  775. 17D3:0160  06 1F BD 00 7C C6 45 FE-0F 8B 46 18 88 45 F9 38 ..=.|FE~..F..Ey8
  776. 17D3:0170  4E 24 7D 22 8B C1 99 E8-77 01 72 1A 83 EB 3A 66 N$}".A.hw.r..k:f
  777. 17D3:0180  A1 1C 7C 66 3B 07 8A 57-FC 75 06 80 CA 02 88 56 !.|f;..W|u..J..V
  778. 17D3:0190  02 80 C3 10 73 ED 33 C9-8A 46 10 98 F7 66 16 03 ..C.sm3I.F..wf..
  779. 17D3:01A0  46 1C 13 56 1E 03 46 0E-13 D1 8B 76 11 60 89 46 F..V..F..Q.v.`.F
  780. 17D3:01B0  FC 89 56 FE B8 20 00 F7-E6 8B 5E 0B 03 C3 48 F7 |.V~8.wf.^..CHw
  781. 17D3:01C0  F3 01 46 FC 11 4E FE 61-BF 00 07 E8 23 01 72 39 s.F|.N~a?..h#.r9
  782. 17D3:01D0  38 2D 74 17 60 B1 0B BE-D8 7D F3 A6 61 74 39 4E 8-t.`1.>X}s&at9N
  783. 17D3:01E0  74 09 83 C7 20 3B FB 72-E7 EB DD BE 7F 7D AC 98 t..G;{rgk]>.},.
  784. 17D3:01F0  03 F0 AC 84 C0 74 17 3C-FF 74 09 B4 0E BB 07 00 .p,.@t.[.t.4.;..
  785. 17D3:0200  CD 10 EB EE BE 82 7D EB-E5 BE 80 7D EB E0 98 CD M.kn>.}ke>.}k`.M
  786. 17D3:0210  16 5E 1F 66 8F 04 CD 19-BE 81 7D 8B 7D 1A 8D 45 .^.f..M.>.}.}..E
  787. 17D3:0220  FE 8A 4E 0D F7 E1 03 46-FC 13 56 FE B1 04 E8 C1 ~.N.wa.F|.V~1.hA
  788. 17D3:0230  00 72 D6 EA 00 02 70 00-B4 42 EB 2D 60 66 6A 00 .rVj..p.4Bk-`fj.
  789. 17D3:0240  52 50 06 53 6A 01 6A 10-8B F4 74 EC 91 92 33 D2 RP.Sj.j..ttl..3R
  790. 17D3:0250  F7 76 18 91 F7 76 18 42-87 CA F7 76 1A 8A F2 8A wv..wv.B.Jwv..r.
  791. 17D3:0260  E8 C0 CC 02 0A CC B8 01-02 8A 56 24 CD 13 8D 64 h@L..L8...V$M..d
  792. 17D3:0270  10 61 72 0A 40 75 01 42-03 5E 0B 49 75 77 C3 03 .ar.@u.B.^.IuwC.
  793.  
  794. [MICROSOFT PUBLISHER 1997]
  795. Time to bash Microsoft once more... how nice! Let's have a
  796. (quick) look at Microsoft Publisher 1997, another "60 days" trial
  797. version protection from Microsoft (60 days, because the DTP
  798. market moves so quickly that they cannot allow to let it loose
  799. for three months)... I'll show you where the protection is, how
  800. it snaps and how to crack it... I got my copy from one of the
  801. MANY magazines that published the 60 days demo version in April
  802. 1997... you should be able to find this one everywhere... here
  803. are the relevant data:
  804.  
  805. MSPUB.EXE  2.476.304  19/04/97  19:19  "MSPUBW40.DLL"
  806. :004CBA6D C745FCFFFFFFFF          mov [ebp-04], FFFFFFFF
  807. :004CBA74 56                      push esi
  808. :004CBA75 57                      push edi
  809. :004CBA76 6A00                    push 00000000
  810. :004CBA78 50                      push eax
  811. :004CBA79 E889020C00              Call 0058BD07;MSVCRT40._setjmp3,
  812. :004CBA7E 83C408                  add esp, 00000008
  813. :004CBA81 85C0                    test eax, eax
  814. :004CBA83 B801000000              mov eax, 00000001
  815. :004CBA88 7502                    jne 004CBA8C
  816. :004CBA8A 33C0                    xor eax, eax
  817. :004CBA8C 85C0                    test eax, eax
  818. :004CBA8E 0F8527030000            jne 004CBDBB
  819. :004CBA94 6A00                    push 00000000
  820. :004CBA96 FF1590085D00   **** Call dword ptr [005D0890];MSVCRT40.time **
  821. :004CBA9C 83C404                  add esp, 00000004
  822. :004CBA9F B980510100              mov ecx, 00015180
  823. :004CBAA4 2BD2                    sub edx, edx
  824. :004CBAA6 8945F4                  mov [ebp-0C], eax
  825. :004CBAA9 6804010000              push 00000104
  826. :004CBAAE 8DBDA4FEFFFF            lea edi, [ebp+FFFFFEA4]
  827. :004CBAB4 F7F1                    div ecx
  828. :004CBAB6 8D85A4FEFFFF            lea eax, [ebp+FFFFFEA4]
  829. :004CBABC 2955F4                  sub [ebp-0C], edx
  830. :004CBABF 50                      push eax
  831. :004CBAC0 FF158C005D00   Call dword ptr[005D008C];GetSystemDirectoryA
  832. :004CBAC6 B9FFFFFFFF              mov ecx, FFFFFFFF
  833. :004CBACB 2BC0                    sub eax, eax
  834. :004CBACD F2                      repnz
  835. :004CBACE AE                      scasb
  836. :004CBACF F7D1                    not ecx
  837. :004CBAD1 80BC29A2FEFFFF5C  cmp byte ptr [ecx + ebp - 0000015E], 5C
  838. :004CBAD9 7434                    je 004CBB0F
  839. :004CBADB BF10165C00              mov edi, 005C1610
  840. :004CBAE0 B9FFFFFFFF              mov ecx, FFFFFFFF
  841. :004CBAE5 2BC0                    sub eax, ea
  842. :004CBAE7 F2                      repn
  843. :004CBAE8 AE                      scasb
  844. :004CBAE9 F7D1                    not ecx
  845. :004CBAEB 2BF9                    sub edi, ecx
  846. :004CBAED 8BD1                    mov edx, ecx
  847. :004CBAEF 8BF7                    mov esi, edi
  848. :004CBAF1 B9FFFFFFFF              mov ecx, FFFFFFFF
  849. :004CBAF6 8DBDA4FEFFFF            lea edi, [ebp+FFFFFEA4]
  850. :004CBAFC 2BC0                    sub eax, eax
  851. :004CBAFE F2                      repnz
  852. :004CBAFF AE                      scasb
  853. :004CBB00 4F                      dec edi
  854. :004CBB01 8BCA                    mov ecx, edx
  855. :004CBB03 C1E902                  shr ecx, 02
  856. :004CBB06 F3                      repz
  857. :004CBB07 A5                      movsd
  858. :004CBB08 8BCA                    mov ecx, edx
  859. :004CBB0A 83E103                  and ecx, 00000003
  860. :004CBB0D F3                      repz
  861. :004CBB0E A4                      movsb
  862. :004CBB0F 8B7DE4                  mov edi, [ebp-1C]
  863. :004CBB12 B9FFFFFFFF              mov ecx, FFFFFFFF
  864. :004CBB17 2BC0                    sub eax, eax
  865. :004CBB19 F2                      repnz
  866. :004CBB1A AE                      scasb
  867. :004CBB1B F7D1                    not ecx
  868. :004CBB1D 2BF9                    sub edi, ecx
  869. :004CBB1F 8BD1                    mov edx, ecx
  870. :004CBB21 8BF7                    mov esi, edi
  871. :004CBB23 B9FFFFFFFF              mov ecx, FFFFFFFF
  872. :004CBB28 8DBDA4FEFFFF            lea edi, [ebp+FFFFFEA4]
  873. :004CBB2E 2BC0                    sub eax, eax
  874. :004CBB30 F2                      repnz
  875. :004CBB31 AE                      scasb
  876. :004CBB32 4F                      dec edi
  877. :004CBB33 8BCA                    mov ecx, edx
  878. :004CBB35 C1E902                  shr ecx, 02
  879. :004CBB38 F3                      repz
  880. :004CBB39 A5                      movsd
  881. :004CBB3A 8BCA                    mov ecx, edx
  882. :004CBB3C 6A00                    push 00000000
  883. :004CBB3E 83E103                  and ecx, 00000003
  884. :004CBB41 6880000000              push 00000080
  885. :004CBB46 F3                      repz
  886. :004CBB47 A4                      movsb
  887. :004CBB48 6A03                    push 00000003
  888. :004CBB4A 8D85A4FEFFFF            lea eax, [ebp+FFFFFEA4]
  889. :004CBB50 6A00                    push 00000000
  890. :004CBB52 6A01                    push 00000001
  891. :004CBB54 6800000080              push 80000000
  892. :004CBB59 50                      push eax
  893. :004CBB5A FF15C8005D00            Call dword ptr [005D00C8];CreateFileA
  894. :004CBB60 8945FC                  mov [ebp-04], eax
  895. :004CBB63 83F8FF                  cmp eax, FFFFFFFF
  896. :004CBB66 7507                    jne 004CBB6F
  897. :004CBB68 6AFE                    push FFFFFFFE
  898. :004CBB6A E88D850200              call 004F40FC
  899. :004CBB6F 6A00                    push 00000000
  900. :004CBB71 8B45FC                  mov eax, [ebp-04]
  901. :004CBB74 6A00                    push 00000000
  902. :004CBB76 6850D90100              push 0001D950
  903. :004CBB7B 50                      push eax
  904. :004CBB7C FF1598005D00            Call dword ptr [005D0098];SetFilePointer
  905. :004CBB82 83F8FF                  cmp eax, FFFFFFFF
  906. :004CBB85 7507                    jne 004CBB8E
  907. :004CBB87 6AE7                    push FFFFFFE7
  908. :004CBB89 E86E850200              call 004F40FC
  909. :004CBB8E 6A00                    push 00000000
  910. :004CBB90 8D45F0                  lea eax, [ebp-10]
  911. :004CBB93 50                      push eax
  912. :004CBB94 8D4DF8                  lea ecx, [ebp-08]
  913. :004CBB97 6A04                    push 00000004
  914. :004CBB99 8B55FC                  mov edx, [ebp-04]
  915. :004CBB9C 51                      push ecx
  916. :004CBB9D 52                      push edx
  917. :004CBB9E FF1590005D00            Call dword ptr [005D0090];ReadFile
  918. :004CBBA4 85C0                    test eax, eax
  919. :004CBBA6 7406                    je 004CBBAE
  920. :004CBBA8 837DF004                cmp [ebp-10], 00000004
  921. :004CBBAC 7407                    je 004CBBB5
  922. :004CBBAE 6A03                    push 00000003
  923. :004CBBB0 E847850200              call 004F40FC
  924. :004CBBB5 8B45FC                  mov eax, [ebp-04]
  925. :004CBBB8 50                      push eax
  926. :004CBBB9 FF154C015D00            Call dword ptr [005D014C];CloseHandle
  927. :004CBBBF C745FCFFFFFFFF          mov [ebp-04], FFFFFFFF
  928. :004CBBC6 817DF86F6C626F          cmp [ebp-08], 6F626C6F
  929. :004CBBCD 0F85C2000000            jne 004CBC95
  930. :004CBBD3 6A00                    push 00000000
  931. :004CBBD5 8D85A4FEFFFF            lea eax, [ebp+FFFFFEA4]
  932. :004CBBDB 6880000000              push 00000080
  933. :004CBBE0 6A03                    push 00000003
  934. :004CBBE2 6A00                    push 00000000
  935. :004CBBE4 6A00                    push 00000000
  936. :004CBBE6 68000000C0              push C0000000
  937. :004CBBEB 50                      push eax
  938. :004CBBEC FF15C8005D00            Call dword ptr [005D00C8];CreateFileA
  939. :004CBBF2 8945FC                  mov [ebp-04], eax
  940. :004CBBF5 83F8FF                  cmp eax, FFFFFFFF
  941. :004CBBF8 7507                    jne 004CBC01
  942. :004CBBFA 6AFE                    push FFFFFFFE
  943. :004CBBFC E8FB840200              call 004F40FC
  944. :004CBC01 8D45AC                  lea eax, [ebp-54]
  945. :004CBC04 8D4DB4                  lea ecx, [ebp-4C]
  946. :004CBC07 50                      push eax
  947. :004CBC08 8D55BC                  lea edx, [ebp-44]
  948. :004CBC0B 51                      push ecx
  949. :004CBC0C 8B45FC                  mov eax, [ebp-04]
  950. :004CBC0F 52                      push edx
  951. :004CBC10 50                      push eax
  952. :004CBC11 FF1594005D00   ****Call dword ptr [005D0094];GetFileTime ***
  953. :004CBC17 85C0                    test eax, eax
  954. :004CBC19 7507                    jne 004CBC22
  955. :004CBC1B 6A03                    push 00000003
  956. :004CBC1D E8DA840200              call 004F40FC
  957. :004CBC22 6A00                    push 00000000
  958. :004CBC24 8B45FC                  mov eax, [ebp-04]
  959. :004CBC27 6A00                    push 00000000
  960. :004CBC29 6850D90100              push 0001D950
  961. :004CBC2E 50                      push eax
  962. :004CBC2F FF1598005D00            Call dword ptr [005D0098];SetFilePointer
  963. :004CBC35 83F8FF                  cmp eax, FFFFFFFF
  964. :004CBC38 7507                    jne 004CBC41
  965. :004CBC3A 6AE7                    push FFFFFFE7
  966. :004CBC3C E8BB840200              call 004F40FC
  967. :004CBC41 6A00                    push 00000000
  968. :004CBC43 8D45F0                  lea eax, [ebp-10]
  969. :004CBC46 50                      push eax
  970. :004CBC47 8D4DF4                  lea ecx, [ebp-0C]
  971. :004CBC4A 6A04                    push 00000004
  972. :004CBC4C 8B55FC                  mov edx, [ebp-04]
  973. :004CBC4F 51                      push ecx
  974. :004CBC50 52                      push edx
  975. :004CBC51 FF1530015D00            Call dword ptr [005D0130];WriteFile
  976. :004CBC57 85C0                    test eax, eax
  977. :004CBC59 7406                    je 004CBC61
  978. :004CBC5B 837DF004                cmp [ebp-10], 00000004
  979. :004CBC5F 7407                    je 004CBC68
  980. :004CBC61 6A03                    push 00000003
  981. :004CBC63 E894840200              call 004F40FC
  982. :004CBC68 8D45AC                  lea eax, [ebp-54]
  983. :004CBC6B 8D4DB4                  lea ecx, [ebp-4C]
  984. :004CBC6E 50                      push eax
  985. :004CBC6F 8D55BC                  lea edx, [ebp-44]
  986. :004CBC72 51                      push ecx
  987. :004CBC73 8B45FC                  mov eax, [ebp-04]
  988. :004CBC76 52                      push edx
  989. :004CBC77 50                      push eax
  990. :004CBC78 FF159C005D00    ***Call dword ptr [005D009C];SetFileTime **
  991. :004CBC7E 8B4DFC                  mov ecx, [ebp-04]
  992. :004CBC81 51                      push ecx
  993. :004CBC82 FF154C015D00            Call dword ptr [005D014C];CloseHandle
  994. :004CBC88 C745FCFFFFFFFF          mov [ebp-04], FFFFFFFF
  995. :004CBC8F 8B4DF4                  mov ecx, [ebp-0C]
  996. :004CBC92 894DF8                  mov [ebp-08], ecx
  997. :004CBC95 817DF80100ADDE          cmp [ebp-08], DEAD0001 ;***!***
  998. :004CBC9C 0F8408010000            je 004CBDAA
  999. :004CBCA2 8B45F8                  mov eax, [ebp-08]
  1000. :004CBCA5 3945F4                  cmp [ebp-0C], eax
  1001. :004CBCA8 7248                    jb 004CBCF2
  1002. :004CBCAA 8B45F4                  mov eax, [ebp-0C]
  1003. :004CBCAD B980510100              mov ecx, 00015180
  1004. :004CBCB2 2B45F8                  sub eax, [ebp-08]
  1005. :004CBCB5 2BD2                    sub edx, edx
  1006. :004CBCB7 F7F1                    div ecx
  1007. :004CBCB9 83F83C                  cmp eax, 0000003C
  1008. :004CBCBC 7334                    jnb 004CBCF2
  1009. :004CBCBE B93C000000              mov ecx, 0000003C
  1010. :004CBCC3 2BC8                    sub ecx, eax
  1011. :004CBCC5 894DC4                  mov [ebp-3C], ecx
  1012. :004CBCC8 8D4DC4                  lea ecx, [ebp-3C]
  1013. :004CBCCB 51                      push ecx
  1014. :004CBCCC 683E040000              push 0000043E
  1015. :004CBCD1 E85C810200              call 004F3E32
  1016. :004CBCD6 B801000000              mov eax, 00000001
  1017. :004CBCDB C705D0225C0000000000    mov dword ptr [005C22D0],0
  1018. :004CBCE5 5F                      pop edi
  1019. :004CBCE6 5E                      pop esi
  1020. :004CBCE7 8BE5                    mov esp, ebp
  1021. :004CBCE9 832DD4225C0040          sub dword ptr [005C22D4],40
  1022. :004CBCF0 5D                      pop ebp
  1023. :004CBCF1 C3                      ret
  1024.  
  1025. :004CBCF2 817DF80100ADDE          cmp [ebp-08], DEAD0001
  1026. :004CBCF9 0F84AB000000            je 004CBDAA
  1027. :004CBCFF 6A00                    push 00000000
  1028. :004CBD01 8D85A4FEFFFF            lea eax, [ebp+FFFFFEA4]
  1029. :004CBD07 6880000000              push 00000080
  1030. :004CBD0C 6A03                    push 00000003
  1031. :004CBD0E 6A00                    push 00000000
  1032. :004CBD10 6A00                    push 00000000
  1033. :004CBD12 68000000C0              push C0000000
  1034. :004CBD17 50                      push eax
  1035. :004CBD18 FF15C8005D00            Call dword ptr [005D00C8];CreateFileA
  1036. :004CBD1E 8945FC                  mov [ebp-04], eax
  1037. :004CBD21 83F8FF                  cmp eax, FFFFFFFF
  1038. :004CBD24 0F8480000000            je 004CBDAA
  1039. :004CBD2A 8D45CC                  lea eax, [ebp-34]
  1040. :004CBD2D 8D4DD4                  lea ecx, [ebp-2C]
  1041. :004CBD30 50                      push eax
  1042. :004CBD31 8D55DC                  lea edx, [ebp-24]
  1043. :004CBD34 51                      push ecx
  1044. :004CBD35 8B45FC                  mov eax, [ebp-04]
  1045. :004CBD38 52                      push edx
  1046. :004CBD39 50                      push eax
  1047. :004CBD3A FF1594005D00  *** Call dword ptr [005D0094];GetFileTime **
  1048. :004CBD40 85C0                    test eax, eax
  1049. :004CBD42 7455                    je 004CBD99
  1050. :004CBD44 6A00                    push 00000000
  1051. :004CBD46 8B45FC                  mov eax, [ebp-04]
  1052. :004CBD49 6A00                    push 00000000
  1053. :004CBD4B 6850D90100              push 0001D950
  1054. :004CBD50 50                      push eax
  1055. :004CBD51 FF1598005D00            Call dword ptr [005D0098];SetFilePointer
  1056. :004CBD57 83F8FF                  cmp eax, FFFFFFFF
  1057. :004CBD5A 743D                    je 004CBD99
  1058. :004CBD5C 6A00                    push 00000000
  1059. :004CBD5E 8D45F0                  lea eax, [ebp-10]
  1060. :004CBD61 50                      push eax
  1061. :004CBD62 8D4DE8                  lea ecx, [ebp-18]
  1062. :004CBD65 6A04                    push 00000004
  1063. :004CBD67 8B55FC                  mov edx, [ebp-04]
  1064. :004CBD6A C745E80100ADDE          mov [ebp-18], DEAD0001
  1065. :004CBD71 51                      push ecx
  1066. :004CBD72 52                      push edx
  1067. :004CBD73 FF1530015D00            Call dword ptr [005D0130];WriteFile
  1068. :004CBD79 85C0                    test eax, eax
  1069. :004CBD7B 741C                    je 004CBD99
  1070. :004CBD7D 837DF004                cmp [ebp-10], 00000004
  1071. :004CBD81 7516                    jne 004CBD99
  1072. :004CBD83 8D45CC                  lea eax, [ebp-34]
  1073. :004CBD86 8D4DD4                  lea ecx, [ebp-2C]
  1074. :004CBD89 50                      push eax
  1075. :004CBD8A 8D55DC                  lea edx, [ebp-24]
  1076. :004CBD8D 51                      push ecx
  1077. :004CBD8E 8B45FC                  mov eax, [ebp-04]
  1078. :004CBD91 52                      push edx
  1079. :004CBD92 50                      push eax
  1080. :004CBD93 FF159C005D00   ***Call dword ptr [005D009C];SetFileTime **
  1081. :004CBD99 8B45FC                  mov eax, [ebp-04]
  1082. :004CBD9C 50                      push eax
  1083. :004CBD9D FF154C015D00            Call dword ptr [005D014C];CloseHandle
  1084. :004CBDA3 C745FCFFFFFFFF          mov [ebp-04], FFFFFFFF
  1085. :004CBDAA 683D040000              push 0000043D
  1086. :004CBDAF E81E800200              call 004F3DD2
  1087. :004CBDB4 33C0                    xor eax, eax
  1088. :004CBDB6 E920FFFFFF              jmp 004CBCDB
  1089. :004CBDBB 837DFC00                cmp [ebp-04], 00000000
  1090. :004CBDBF 740A                    je 004CBDCB
  1091. :004CBDC1 8B45FC                  mov eax, [ebp-04]
  1092. :004CBDC4 50                      push eax
  1093. :004CBDC5 FF154C015D00            Call dword ptr [005D014C];CloseHandle
  1094. :004CBDCB 683F040000              push 0000043F
  1095. :004CBDD0 E8FD7F0200              call 004F3DD2
  1096. :004CBDD5 33C0                    xor eax, eax
  1097. :004CBDD7 5F                      pop edi
  1098. :004CBDD8 5E                      pop esi
  1099. :004CBDD9 8BE5                    mov esp, ebp
  1100. :004CBDDB 5D                      pop ebp
  1101. :004CBDDC C3                      ret
  1102.  
  1103. OK, that's enough dead listing for now... we know now that the
  1104. REAL protection may call :004CBA50 (the beginning of the huge
  1105. code snippet above with GetFileTime and other file opening and
  1106. closing goodies)... and wdasm gives us the caller (only one...
  1107. THE TARGET!... don't you feel it?)
  1108.  
  1109. :004C8843   ;This is the call that triggers everything
  1110.           ;I told you: DO NOT FORGET IT
  1111. :004CBA50 55                      push ebp
  1112. :...                          ...and the rest of the huge snippet
  1113. Therefore let's have a look at the caller... here it is:
  1114.    :call_the_time_checking_huge_snippet
  1115. :004C8843 E808320000              call 004CBA50 ;call time checks
  1116. :004C8848 85C0                    test eax, eax ;on non zero
  1117. :004C884A 7507                    jne 004C8853  ;go go_on
  1118. :004C884C 6A0D                    push 0000000D ;do not push
  1119. :004C884E E8A9B80200              call 004F40FC ;do not call here
  1120.   :go_on
  1121. :004C8853 E8CC1D0500              call 0051A624 ;continue here
  1122. :004C8858 8B4510                  mov eax, [ebp+10]
  1123. :004C885B 50                      push eax
  1124. :004C885C E8298DF7FF              call 0044158A
  1125. :004C8861 F60540F15C0008          test byte ptr [005CF140], 08
  1126. :004C8868 0F84BC010000            je 004C8A2A
  1127. :004C886E C7451400000000          mov [ebp+14], 00000000
  1128.  
  1129. Therefore the crack is clear
  1130. ** how to crack MSPublisher97 (trial 60 days), by +ORC, April
  1131. 1997**
  1132. If you have NOT already sprenged MSpublisher time protection
  1133. search for
  1134. :004C8843 E808320000       call 004CBA50 ;trigger time checks
  1135. and change it to
  1136. :004C8843 E910000000       jmp 004C8853 ;don't trigger
  1137. If you  DO have already sprenged MSpublisher time protection
  1138. FIRST search for
  1139. :004C8843 E808320000      call 004CBA50 ;trigger time checks
  1140. and change it to
  1141. :004C8843 E910000000      jmp 004C8853  ;don't trigger
  1142. THEN search for
  1143. :004F4103 EB09            jmp 004F410E  ;jmp anyway
  1144. and change it to
  1145. :004F4103 7509            jne 004F410E  ;jne
  1146. THEN search for
  1147. :004F410C EB06            jmp 004F4114  ;jmp anyway
  1148. and change it to
  1149. :004F410C 7506            jne 004F4114  ;jne
  1150. **********************************************************
  1151.  
  1152. LET'S CRACK MICROSOFT'S MONEY 97 and 95 NOW
  1153. Let's finish this lesson with another sound hit at Micro$oft.
  1154. This is the main part of the strainer to next year's +HCU, please
  1155. solve it (it's MUCH more easy than last year's strainer).
  1156. I'm cracking here Microsoft MONEY 97, 90 days trial version I
  1157. found on the cd-cover of a review called PC-PRO, issue 31, MAY
  1158. 1997 (but I bought it in transit at Heathrow airport for three
  1159. pounds at the beginning of April and not in May, as usual in this
  1160. awful commerce oriented society even minutiae like the dates of
  1161. the issues of magazines are completely false :=(
  1162. This is another kind of program I personally would not touch with
  1163. a pole, nor would I use it, even if somebody would pay me for
  1164. it... but I know that a lotta suckers buy  these ridiculous
  1165. applications greedly... such kind of customers do pay a lot of
  1166. money to Micro$oft... and to the banks, and to the various
  1167. asinine "investor advisors", and to all the awful commercial
  1168. people that has given us this grey world of unhappiness, and
  1169. inequality, where only irrelevance and bad taste are valued,
  1170. where knowledge is "allowed" only and only if it helps them to
  1171. make more money (not happiness)... where poetry and feelings are
  1172. considered useless and obsolete by the "market forces"... My, how
  1173. I hate cheerfully this whole bunch of "market operators"! How I
  1174. hope that the people they have enslaved will one day hang the
  1175. whole lot of them, pinning the TV-news moderators to the
  1176. doors of the TV-studios by their tongue as a good collateral
  1177. measure... (the sooner this happens the better, give it a move
  1178. please, I would like to take some nice photos of the hanging
  1179. bodies),... ok, enough, let's crack first of all the programs
  1180. used by this outrageous people, hoping that my crackings will
  1181. spread enough to diminish Gates' cashflow a little...  a pebble
  1182. of sand is nothing less than a pebble of sand, after all, let's
  1183. never forget it :=)
  1184.  
  1185. Let's see what happens here... once more with GetLocalTime? Let's
  1186. see... here you have three calling "points" for GetLocalTime:
  1187. at 45804D, at 46A308 and at 5DA056, let's call them 45, 46 and
  1188. 5D. Since the one at 46 is referenced by not less than 80 calls,
  1189. we will  deem it more important than the first one at 45 (three
  1190. calls) and the third one at 5D (two calls).... but wait...
  1191.  
  1192. WAIT, HISTORY IS IMPORTANT
  1193.      But wait...may be we should delve a little deeper in
  1194. Micro$oft's protection strategies, may be you should  have FIRST
  1195. a look at an OLDER copy of Micro$oft's Money... say version
  1196. 3.00p of February 1994... the file you have to crack is here
  1197. MNYDEMO.EXE, length 1.173.184 bytes, from 8/2/1994... I found it
  1198. on a old cd-rom: PCHOME n.8 from June 1994, as usual, quite a lot
  1199. of magazines will have had the "privilege" of burning this trial
  1200. version on their CD-ROMs during that summer... you should be able
  1201. to find a copy of it on the Web too, if you happen to know how
  1202. to search and, what's even more important, WHERE to search... as
  1203. I said elsewhere, on the Web you can find almost everything...
  1204. provided you already know where it is :=)
  1205.  
  1206. THE STRAINER... FIRST OF ALL YOU'LL HAVE TO FIND IT!
  1207.      Anyway, since this lesson is intended as a "strainer" for
  1208. next years +HCU, a part of your duty is TO FIND the targets we
  1209. have to crack... this will be easy for MS MONEY 97, but (I hope)
  1210. not so easy for MS MONEY from 1994... believe me, this searching
  1211. is  a very important art... you may be just lucky, or already
  1212. have (like me) a huge collection of many CD-ROM that appeared on
  1213. magazines covers and that you bought at discount prices... or you
  1214. may have to beg or implore or exchange programs with some old guy
  1215. from New Zealand or a weird wannaby warez dude from Corea, which
  1216. happens to have the copy you are interested in... you may have
  1217. to examine old usenet discussion groups, to peruse old
  1218. PC-magazines... to delve inside a lot of useless pages...
  1219. searching for your nugget. But you'll gain a lot of knowledges
  1220. in this process...  ignorantia est carentia scientiae debitae.
  1221.  
  1222. OLD VERSION, SAME LIMITATIONS
  1223.      The "trial" old demo of MS-Money 94 has an analogous
  1224. protection scheme to  the very recent MONEY '97 trial version?
  1225. Please check... if it is so, that would be VERY important for
  1226. us... history and evolution of  a targets' protections IS  INDEED
  1227. very important. If you'll delve inside cracking as an art, as I
  1228. would like you to, you'll see that patterns and trends play (like
  1229. in  real life) a tremendous unproportionated role... protections
  1230. mirror our society (at times I believe that everything does, but
  1231. me): real knowledge and innovation plays almost no role, stupid
  1232. "trends" and repetitions of the same boring schemes do actually
  1233. make the 99% of the "reality".
  1234.      In the meantime life keep worsening for the stupid slaves,
  1235. more and more useless stinking cars are polluting our cities and
  1236. the "new" programs we buy are slower  and by far not as good and
  1237. powerful as the old DOS programs of 1990... a proof? For the dead
  1238. listing of this target you'll NOT be able to use Word 7.0 ("file
  1239. is too huge"), but you'll still be able to use Word 2.0 from
  1240. 1994... funny, isn't it?
  1241.      This old "trial" demo of MS-Money has THREE levels of
  1242. protection:
  1243. 1)   The system date in your computer must be 1994 or 1995
  1244. 2)   There is a Cinderella 60 days limit (Micro$oft was not yet
  1245. a "90 days" enterprise... we are watching here the BIRTH of this
  1246. MS-protection scheme :=)
  1247. 3)   Transactions (i.e. fields of this database) can only be
  1248. entered within a 60-days period (this is at the same part the
  1249. "tricky" part of this crack and a key to the crack :=)
  1250.  
  1251. HOW DO YOU BEGIN?
  1252. I'm writing this to teach you MANY cracking techniques, let's
  1253. pack this target from another direction, let's forget winice for
  1254. a while and use a bit of "dead listing", a program like winsight
  1255. and some of the brain we are supposed to have:
  1256.  
  1257. 1)   Have a look at the messages i.e.:
  1258.  install our target...
  1259. run it as it should, changing the OS date to 1994
  1260. change OS date past the 60 days limit
  1261. look at the message ("The 60-days limit of this working model..."
  1262. 2)   Fire Borland's Winsight (I'm using here version 1.30 from
  1263. an old cracked Delphi, but you'll find hundred of them on the
  1264. web) It will describe you EXACTLY the nagwindow you have on your
  1265. screen:
  1266. Popup 0610 {#32770:Dialog} mnydemo.exe (144,183)-(523,345)"Notice of Expiratio
  1267. n"
  1268. You may even get details on this Popup 610, if you feel like it.
  1269. 4)   You have the NAME (very important). Search it inside the
  1270. dead listing (you have previously made with WCB or with wdasm)
  1271. of MNYDEMO.EXE, you'll get the following:
  1272.  
  1273. Name:
  1274. DialogID_0494, # of Controls=004, Caption:"Notice of Expiration"
  1275. 001 - ControlID:02CE, Control Class:"" Control Text:"The 60-day
  1276. limit of this working model has expired."
  1277.  
  1278. See what's important? ID_0494... that's important.
  1279.  
  1280. 5) Now search ID_0494 in your dead listing... you'll find THREE
  1281. occurrences (i.e. they call three time the 60-days limit) let's
  1282. examine them (with context):
  1283. Block 6 at 263:
  1284. 6.263 is called "cascade" (switch) from the beginning of block 6:
  1285.  
  1286. :0006.0012 57                     push di
  1287. :0006.0013 6A00                   push 0000
  1288. :0006.0015 9AFFFF0000             call USER.GETWINDOWWORD
  1289.       (GETWINDOWWORD returns a 16-bit WORD value from the extra
  1290.        info associated with a  window. Push handle and index (in
  1291.        bytes) in the extra memory where the value will be found)
  1292. :0006.001A 8BF0                   mov si, ax
  1293. :0006.001C 8B460C                 mov ax, [bp+0C]
  1294. :0006.001F 3DA100                 cmp ax, 00A1 ;is it 161?
  1295. :0006.0022 7503                   jne 0027 ;may call NoE if not
  1296. ...
  1297. :0006.0027 7729                   ja 0052  ;may call NoE if more
  1298. ...
  1299. :0006.0052 3D1501                 cmp ax, 0115
  1300. :0006.0055 7503                   jne 005A ;if not 115
  1301. ...
  1302. :0006.005A 7712                   ja 006E ;more? Call NoE
  1303. ...
  1304. :0006.006E 2D0102                 sub ax, 0201 ;sub 201
  1305. :0006.0071 7503                   jne 0076 ;may call NoE
  1306. ...
  1307. :0006.0076 48                     dec ax   ;-1
  1308. :0006.0077 48                     dec ax   ;-1
  1309. :0006.0078 7503                   jne 007D ;may call NoE
  1310. ...
  1311. :0006.007D 2D9102                 sub ax, 0291  ;sub 291
  1312. :0006.0080 7503                   jne 0085 ;do not call NoE
  1313. :0006.0082 E9D701                 jmp 025C ;call NoE ******
  1314. ...
  1315. :0006.025C 57                     push di
  1316. :0006.025D 9AFFFF0000             call USER.GETPARENT
  1317.       (This returns the handle to a window's parent. Function
  1318.        returns window's parent handle if successful and NULL if
  1319.        no parent or error)
  1320.  
  1321. * Possible Reference to Dialog: DialogID_0494
  1322.                                   |
  1323. :0006.0263 689404        push 0494  ;HERE! NOTICE OF EXPIRATION
  1324. :0006.0266 FF760A        push word ptr [bp+0A]
  1325. :0006.0269 FF7608        push word ptr [bp+08]
  1326. :0006.026C FF7606        push word ptr [bp+06]
  1327. :0006.026F 9AFFFF0000    call USER.SENDMESSAGE ;bagger off, bad guy!
  1328. :0006.0274 EB14          jmp 028A
  1329.  
  1330. Ok, for block 6 what should we say?  Can we start our crack from
  1331. here?
  1332.  
  1333. Let's have a look at the next block:
  1334. Block 8 at 17D2:
  1335.  
  1336. :0008.17CA 8B46F4                 mov ax, [bp-0C]
  1337. :0008.17CD 3946F0                 cmp [bp-10], ax
  1338. :0008.17D0 7246                   jb 1818
  1339.  
  1340. * Possible Reference to Dialog: DialogID_0494
  1341.                                   |
  1342. :0008.17D2 689404                 push 0494 ;HERE! NOTICE OF EXPIRATION
  1343. :0008.17D5 685505                 push SEG ADDR of Segment 0028
  1344. :0008.17D8 684C15                 push 154C
  1345. :0008.17DB FF362C0A               push word ptr [0A2C]
  1346. :0008.17DF 6A00                   push 0000
  1347. :0008.17E1 6A00                   push 0000
  1348. :0008.17E3 6A00                   push 0000
  1349. :0008.17E5 9A34019911             call 000.0134 ;call KERNEL.MAKEPROCINSTANCE
  1350.  
  1351.   that's the check for all open windows (Useless with 32 bit)
  1352.  
  1353. And, please, what do we have at 28.154C?
  1354. Exported fn(): DLGPROCDEMO - Ord:0019
  1355.  
  1356. :0028.154C 8CD8                   mov ax, ds
  1357. :0028.154E 90                     np (always suspect these
  1358.           funny nops, somebody patched here?... :=)
  1359. :0028.154F 45                     inc bp
  1360. :0028.1550 55                     push bp
  1361. :0028.1551 8BEC                   mov bp, sp
  1362. :0028.1553 1E                     push ds
  1363. :0028.1554 8ED8                   mov ds, ax
  1364. :0028.1556 83EC02                 sub sp, 0002
  1365. :0028.1559 56                     push si
  1366. :0028.155A 8B4E0C                 mov cx, [bp+0C] ;fetch bp+C
  1367. :0028.155D 8BC1                   mov ax, cx
  1368. :0028.155F 2D0F00                 sub ax, 000F
  1369. :0028.1562 740E                   je 1572         ;was it 15?
  1370. :0028.1564 2D0101                 sub ax, 0101    ;was it 272?
  1371. :0028.1567 7425                   je 158E
  1372. :0028.1569 48                     dec ax
  1373. :0028.156A 7454                   je 15C0         ;273?
  1374. :0028.156C 33C0                   xor ax, ax
  1375. :0028.156E E98900                 jmp 15FA
  1376.  
  1377.  
  1378. A jump below followed by a switch tree... is it interesting for
  1379. us? You'll answer!
  1380. Finally, let's have a look at the THIRD and last occurrence of
  1381. our "Notice of expirations" at block 52 at 2465:
  1382.  
  1383. * Possible Ref to Menu: MAINMENU, Item: "Future Transactions"
  1384.                                   |
  1385. :0052.2449 6A02                   push 0002
  1386. :0052.244B 9AE00ED424             call 0006.0EE0
  1387. :0052.2450 837EF800               cmp word ptr [bp-08], 0000
  1388. :0052.2454 7503                   jne 2459
  1389. :0052.2456 E9CE00                 jmp 2527
  1390.  
  1391. :0052.2459 8B5EFC                 mov bx, [bp-04]
  1392. :0052.245C FF7718                 push word ptr [bx+18]
  1393. :0052.245F 9AFFFF0000             call USER.GETPARENT
  1394. :0052.2464 50                     push ax
  1395. * Possible Reference to Dialog: DialogID_0494
  1396.                                   |
  1397. :0052.2465 689404                 push 0494 ;HERE! NOTICE OF EXPIRATION
  1398.  
  1399. * Possible Ref to Menu: MAINMENU, Item: "Account Book"
  1400.                                   |
  1401. :0052.2468 6A01                   push 0001
  1402. :0052.246A 6A00                   push 0000
  1403. :0052.246C 6A00                   push 0000
  1404. :0052.246E 9A1B250000             call USER.SENDMESSAGE
  1405.  
  1406.  
  1407. Well, I think this is enough:
  1408. The crack for it is pretty obvious, is it?
  1409.  
  1410. Let's start with a simple substitution:
  1411. instead of
  1412. :0008.17D0 7246            jb 1818
  1413. let's have
  1414. :0008.17D0 55              push bp
  1415. :0008.17D0 5D              pop bp
  1416. (nooping it)
  1417.  
  1418. That's it, folk!...  but, wait... all this DOES NOT work
  1419. correctly... did I forgot something?
  1420. THAT's the Strainer! Solve it (you have time until SEPTEMBER 1997).
  1421.  
  1422. THE STRAINER: SOLVE IT!
  1423.  
  1424. You want to be a +HCUker? SOLVE the crack for MS-Money (old
  1425. version and new version), I want to get from you (directly to
  1426. na526164@anon.penet.fi if it still works or else through channel
  1427. you have to find yourself)
  1428. 1)   The complete and WELL described crack to MSMONEY version 3 (1994)
  1429.      (60 days trial protection)
  1430. 2)   The complete and WELL described crack to MSMONEY 97 (1997)
  1431.      (90 days trial protection)
  1432. 3)   The reason for the crack I used for Winproject instead of
  1433. nooping the alternative location... which would have seen more
  1434. obvious at first glance.
  1435.  
  1436.      I would like you (since these cracks are alltogether much
  1437. more easy than the Instant access strainer we used last year) to
  1438. DELVE DEEP inside the date-encryption routines of these programs,
  1439. explaining them perfectly.
  1440.      Please use a language that newbyes can easily follow... I
  1441. do not intend to work in order to re-explain once more things you
  1442. should have explained well in the first time.
  1443.      Best protection busters (and best approaches) will enter the
  1444. +HCU. Lamers and people that have copied from other will be left
  1445. out.
  1446.      +HCU 1998 will begin on 1 Januar 1998. The above solutions
  1447. must be sent to me BEFORE september 1997. Should anon.penet die,
  1448. I'll reopen another anonymous channel end August.
  1449.  
  1450. Well, that's it for this lesson, reader. Not all lessons of my
  1451. tutorial are or will be on the Web.
  1452.      You'll obtain the missing lessons IF AND ONLY IF you mail
  1453. me back (via anon.penet.fi) with some tricks of the trade I may
  1454. not know that YOU discovered. Mostly I'll actually know them
  1455. already, but if they are really new you'll be given full credit,
  1456. and even if they are not, should I judge that you "rediscovered"
  1457. them with your work, or that you actually did good work on them,
  1458. I'll send you the remaining lessons nevertheless. Your
  1459. suggestions and critics on the whole crap I wrote are also
  1460. welcomed. Do not annoy me with requests for warez, everything is
  1461. on the Web, learn how to search, for Hiawatha sake.
  1462.  
  1463.      "If you give a man a crack he'll be hungry again
  1464.      tomorrow, but if you teach him how to crack, he'll
  1465.      never be hungry again"
  1466.  
  1467.  
  1468.    
  1469.    E-mail +ORC
  1470.    
  1471.    +ORC na526164@anon.penet.fi 
  1472.