weak1337 / Alcatraz

x64 binary obfuscator
1.6k stars 242 forks source link

fix: error in minimize gui windows #16

Closed raigorx closed 1 year ago

raigorx commented 1 year ago

bad ImGui::EndChild()

raigorx commented 1 year ago

I am not 100% sure if control flow flattenning is working as intended after this fix, can you confirm?

Here is a small program in IDA before and after apply only control flow flattenning to main function via gui

before image

after image

Source code

#include <iostream>
using namespace std;

int main(int argc, char** argv) {
  int a;
  cout << "Enter a number between 1 and 20: ";
  cin >> a;
  if (a == 0)
    return 1;
  else
    return 10;
  return 0;
}