Skip to content
Karak Studio icon

Desktop · Windows

Karak Studio

Names, notes and bookmarks

Reverse engineering is mostly a matter of replacing meaningless names with meaningful ones, a little at a time.

Press Rename next to the function’s name, or press F2. Type a name and press Enter or Save. Leave the box empty to go back to the original name.

The new name appears everywhere that function is called, in every view.

A rough name is far better than none. maybe_decrypt or checks_something is fine. You can change it later.

In the C code view, click a name the decompiler made up: a variable (v3), an argument (arg1), a stack variable (var_48), a record type (rec1) or a field (field_18). Every place it appears in the function lights up, and a Rename v3 button appears next to the function’s name. Press it, or press F2, type a name such as count or name_length, and press Enter.

  • The new name replaces the old one everywhere in that function, including the first line and the record comments at the top.
  • Variable names belong to one function. v1 in another function is a different variable.
  • A field is renamed within its record. If a function has two records that both have a field_18, renaming one leaves the other alone.
  • A name must be letters, digits and _, start with a letter, and not already be used for something else in the function. If it is refused, the box says why and stays open.
  • Leave the box empty to go back to the original name.
  • F2 renames the picked word while one is lit up in the C view, and the function otherwise. Click an empty part of a line to drop the pick.

The names are saved by the original word, so they come back the next time you open the file. If a later version of Karak Studio numbers a function’s variables differently, a saved name can land on a different variable; check names you rely on after updating.

Select a line and press Add note. Your note appears at the end of that line in the Assembly view, after //, and in the My notes tab. Save an empty note to remove it.

Select a line and press Bookmark. The line gets a coloured bar at its left edge and appears in the My notes tab.

Names, notes and bookmarks are saved the moment you make them. They are stored per file, identified by the file’s contents and not its name or location. You can rename or move a sample and your work comes back when you open it.