Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-09-2006, 08:56
Sarge
 
Posts: n/a
VB PCode is very stack oriented. Many arithmetic operations are performed via the stack. If you notice the line :

CD NeR8 <> =Perform a NotEqual operation on 2 8-Byte Real numbers

you can see that a comparison is performed there. The two numbers being compared are almost certainly the top two entries on the stack.

Likewise, the line

001D242B: FB2F EqVar =

is performing a comparison for EqualTo, with the compared values also almost certainly on the top two positions of the stack; the line

001D244C: E1 GeR8 >=

is performing a comparison for GreaterThanOrEqualTo, and again, almost certainly the top two postions on the stack.

Ok, this type of stuff is pretty obvious based on the names, but some stuff isn't so obvious. How do you handle that? And, what about your question of what is compared and where is it, and even where is the answer found? This is where the parameter values come in. For example, look at the lines

001D2442: 0A ImpAdCallFPR4 Val()
001D2447: ED CR8R8

(Never mind what they do for now). Notice that, with "0a" is found at xxx42, and "ED" found at xxx47, we are missing 43,44,45,46 = 4 bytes. It just so happens that the "0A" opcode takes 4 bytes of parameter data. (Any guesses as to which 4 bytes?- Duh!)
So, the line should really be

001D2442: 0A,xx,xx,xx,xx ImpAdCallFPR4 Val()

The xx represents the missing 4 parameter bytes. That info is what will tell you where the actual values live in memory/stack/frame, and therefore which values are actually being used in the comparisons and computations and manipulations that the exe is performing. So, if we knew what those parameter bytes were...?

Sarge

Last edited by Sarge; 01-09-2006 at 09:02. Reason: Typo
Reply With Quote
  #2  
Old 01-10-2006, 00:18
squareD's Avatar
squareD squareD is offline
VIP
 
Join Date: Aug 2005
Location: Banana Republic
Posts: 322
Rept. Given: 32
Rept. Rcvd 35 Times in 27 Posts
Thanks Given: 45
Thanks Rcvd at 122 Times in 81 Posts
squareD Reputation: 36
Thanks Sarge and Sh400...

I think that can help a little bit.

First I have to process this mentally and then may be I make real progress in getting serial.

Regards,
sqareD
Reply With Quote
  #3  
Old 01-10-2006, 03:12
Sarge
 
Posts: n/a
Is the original exe available? Obviously, it would be easy to get the params from that.

sarge
Reply With Quote
  #4  
Old 01-10-2006, 07:48
GPcH's Avatar
GPcH GPcH is offline
Developer
 
Join Date: Aug 2004
Location: Russia
Posts: 147
Rept. Given: 0
Rept. Rcvd 11 Times in 7 Posts
Thanks Given: 0
Thanks Rcvd at 7 Times in 4 Posts
GPcH Reputation: 11
Fully source may be help you
Attached Files
File Type: rar BEWERBUNGS-MASTER.rar (463.9 KB, 22 views)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VB6 N-CODE - Stop any servive and Start any APP-Release and Source Code wilson bibe General Discussion 5 04-10-2013 00:23
Code Splicing Problem TmC General Discussion 1 11-14-2006 21:23
Code to efficiently break on entering code section??? yaa General Discussion 4 05-08-2005 05:29


All times are GMT +8. The time now is 08:59.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )