Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6384359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:45:59+00:00 2026-05-25T02:45:59+00:00

Well this question may seem odd but it’s simple – my point is if

  • 0

Well this question may seem odd but it’s simple – my point is if i have a “goto” (brtrue etc) in the decompiled code like example

br IL_0003
call *****
IL_0003: ret

and I add a command after that **** call will the br at the top point to ret like it should or to that code.

does Cecil do it by itself or I have to take care of all those branches ? :/
it wouldn’t be very hard to fix them but if Cecil doesn’t then I simply won’t start this project, I’ve no time (or knowledge) for advanced IL magic 😛

(yes I know it won’t be IL_0003 it’s just for example)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:46:00+00:00Added an answer on May 25, 2026 at 2:46 am

    Yes, Cecil will update the branch for you.

    The only case you have to take care of, is the case where the branch is a short form branch. If you inject too much instructions, it might overflow.

    There’s a very simple way to handle this. Before injecting code, simply call the extension methods SimplifyMacros from the Mono.Cecil.Rocks, like this:

    method.Body.SimplifyMacros ();
    

    This will turn the br.s into br.

    And when you’re done injecting code, simply call:

    method.Body.OptimizeMacros ();
    

    Which is the opposite operation, that is, it will try to turn br into br.s if possible.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This may seem like an odd question, but I need to find a closed-source
This question may seem stupid, but, so be it! I have a stupid problem
This question may well have been asked before but I didn't find anything whilst
I know this question may well be the silliest question you've heard today, but
This may seem like a basic/stupid/obviously-answered question, but I wanted to check: why use
Ok, so this may seem an elementary question. Maybe it is. But for the
This question may seem rather basic, but coming from an engineering (non computer-science) background,
This may seem like an obvious (or not so obvious) question, but let me
Ok this may seem like a bit of a noob question but one many
This may seem like a silly question but it's something I've never found an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.