Jump to content
Tuts 4 You

what is assign to a random offset?


James Taylor

Recommended Posts

James Taylor
Posted (edited)

the following cods is generated by IDA pro. 

I don't understand where and what is assigned to off_40G030?

there is no reference in code section.

what does the following code mean?

off_40.JPG.cdde8143b2493b0028c2a7dd36d8cf50.JPG

what is the clean code of the following code?

Edited by James Taylor
Posted

Please show the assembly code, that first compare makes no sense to me. Did you patch the Assembly manually or meddle with the decompiler somehow?

  • Thanks 1
James Taylor
Posted
32 minutes ago, deepzero said:

Please show the assembly code, that first compare makes no sense to me. Did you patch the Assembly manually or meddle with the decompiler somehow?

That's the source code. there is no more to be shown !!

  • Sad 1
Posted (edited)

.data

blah dd offset somethingelse

.code

mov eax, [blah]

cmp eax, offset blah

je someothercondition

.. continues

mov ebx,[eax.DEVICE_OBJECT.Characteristics]

and ebx, 2

jz someothercondition

.. continues

lea ebx, [eax.DEVICE_OBJECT.Flags]

cmp byte ptr [ebx], 4

jb someothercondition

.. continues

 

someothercondition:

------

something like that, might be wrong but it gives the general jist..

also "thats the source code" - nonsense, thats some hexrays c interpretation of the asm code, dont lie

 

 

 

Edited by evlncrn8
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...