This binary was from a CTF challenge.
I found 2 way to solve this, one is run & debug the bin, set a break point and see result in flag after the bin running, another is trying to understand the function.
There are some parts that i dont understand even when i solved this challenge :
Why my IDA reverse the string (v6 should be "Bkav" and v7 + v8 should be "Security"
As you see, it pass the char* v6 ("Bkav") into the func01 and func02, but when i do the same thing, it give wrong flag. But when i try to pass the "BkavSecurity" in to func01 and func02, it give me right flag. Quite confuse about this.
You can find file here : https://www.sendspace.com/file/g7w8nz