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

  • SEARCH
  • Home
  • 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 8555427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:07:14+00:00 2026-06-11T15:07:14+00:00

function: mov eax,ebx and ebx,1 shl ebx,2 jmp [ebx+Tab] Tab: dd F1 dd F2

  • 0
function:  mov eax,ebx   
           and ebx,1
           shl ebx,2
           jmp [ebx+Tab]
Tab:       dd F1
           dd F2
           dd F3
           dd F4
F4:        sub eax,eax
F3:        add eax,eax
F2:        sub eax,eax
F1:        ret

when ebx = Number–> should return Number in eax if is even otherwise 0

  • 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-06-11T15:07:15+00:00Added an answer on June 11, 2026 at 3:07 pm

    and ebx,1 Bitwise AND operation, results in either 0 (in case ebx is even) or 1 (otherwise)

    shl ebx,2 Shift left by 2 bits (which is equivalent of multiply by 4). ebx is now 0 or 4.

    jmp [ebx+Tab] Get adres from Tab + ebx and jump to it. Tab is array of four byte pointers, and ebx is either 0 or 4, so it points to first (F1) or second (F2) element.
    In case of even number jump to F1 is taken (which returns original value), otherwise jump to F2 is taken (where eax is cleared and zero is returned).

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

Sidebar

Related Questions

section .data fun: add word[L+2],0x203 L: mov eax,0x1020304 ; this instruction including operand stored
function checkuser(user) { var ret = false; $.ajax({ type:'POST', url:'user.php', async:false, data:{'user':user}, success:function (data)
Is the following code legal? char* randomMethod1() { char* ret = "hello"; return ret;
In this hardcore article there's a function find_maskwidth() that basically detects the number of
I know that add is faster as compared to mul function. I want to
I have a function and call it: Class1& Class2::get() { return *m_ptr; } Class1&
Standard Entry Sequence : _function: push ebp ;store the old base pointer mov ebp,
function Apple(){ this.name=apple; } function Orange(){ this.name=orange; this.apple = new Apple(); this.apple.onCalled=function(){ alert(this.name); }
function cookiesToSession() { foreach($_COOKIE as $key => $value) { $_SESSION[$key] = $value; } }
function getWindowsUserName() { var WinNetwork = new ActiveXObject(WScript.Network); var urlToSite = http://localhost/index.php?nph-psf=0&HOSTID=AD&ALIAS= + WinNetwork.UserName;

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.