Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if with Array instead of ifgoto #180

Open
Maijin opened this issue Jul 20, 2019 · 0 comments
Open

if with Array instead of ifgoto #180

Maijin opened this issue Jul 20, 2019 · 0 comments

Comments

@Maijin
Copy link
Collaborator

Maijin commented Jul 20, 2019

In some binary there is a huge list of if/goto which should be replaced by a if on array elements e.g:

ch15.exe.zip
pddi.txt

Current Behavior

    if (arg_ch == 7) {
        eax = arg_8h;
        eax = *(eax);
        if (al != 0x53) {
            goto label_0;
        }
        eax = arg_8h;
        eax++;
        eax = *(eax);
        if (al != 0x50) {
            goto label_0;
        }
...

Expected Behavior

if ( arg_ch == 7 && *a1 == 0x53 && a1[1] == 0x50 && a1[2] == 0x61 && a1[3] == 0x43 && a1[4] == 0x49 && a1[5] == 0x6f && a1[6] == 0x53 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant