| |

VerySource

 Forgot password?
 Register
Search
View: 55|Reply: 4

How to use ollydbg to turn the following code into assembly code ???

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-6 22:00:01
| Show all posts |Read mode
int func ()
{
int i;
int g;
int j;
char h;
i = 1;
j = 10;
         return j;
}
Reply

Use magic Report

0

Threads

23

Posts

17.00

Credits

Newbie

Rank: 1

Credits
17.00

 China

Post time: 2020-3-29 09:30:01
| Show all posts
This code, only return 10h; valid will be left behind and discarded. So, the equivalent is similar:
  mov eax, 0a
  ret
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-17 18:30:01
| Show all posts
00401000 /$ /E9 0B000000 jmp 00401010
00401005 | |90 nop
00401006 | |90 nop
00401007 | |90 nop
00401008 | |90 nop
00401009 | |90 nop
0040100A | |90 nop
0040100B | |90 nop
0040100C | |90 nop
0040100D | |90 nop
0040100E | |90 nop
0040100F | |90 nop
00401010 |>\B8 0A000000 mov eax, 0A
00401015\. C3 retn
00401016 90 nop
00401017 90 nop

This is the code decompiled by OD.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-17 21:00:01
| Show all posts
Use a compiler to compile the C code into an executable file and then load it with ollydbg to turn it into assembly code
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-18 10:15:01
| Show all posts
After translating into assembly, compile it and use ollydbg.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2020|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list