How to find a function of application with ollydbg?

Posted by user3725506 on Stack Overflow See other posts from Stack Overflow or by user3725506
Published on 2014-06-10T18:46:25Z Indexed on 2014/06/12 9:25 UTC
Read the original article Hit count: 150

Filed under:
|
|

Let's say i released the application below.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication2
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Hello World!","Message Box");
        }
    }
}

Now here is my questions:

  1. How to find the function of button which is responsible to show message box after pressing the button with ollydbg?
  2. How to disable the button click ?

Notes:this must be done with ollydbg only. Assume that i don't have access to the code.

A step-by-step example would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about c#

Related posts about disassembling