Page cover

Exact time length of beep

Solves Objective: Find out what the seconds were for the lasting effect of the beep.

What is this?

This objective requires us to find out how the length of all the beeps and sounds that are created in the GUI when the user presses a tab on the left side of the interface. This is building off of the same result from Finding Functions Via Sound

Answer

Each beep takes or holds exactly 950 ms or 950 miliseconds. We can verify this by looking at the arguments pushed before the Beep call is made. Check the assembly below for a demonstration of this.

In the ? tab

mov     edx, 3B6h       ; dwDuration <------------\
mov     ecx, 0C8h       ;  dwFreq                  |
call    cs:Beep                                    |__ 0x3B6 is 950 in decimal. Since
                                                       this param is defined in milliseconds
                                                       on the MS documentation. We verify that
                                                       950 milliseconds is the amount of time this takes to execute

Last updated