title: How to find format of sscanf input assembly
body: <p>Im trying to figure out what format sscanf function is asking for in assembly. I think it wants two inputs but im not sure if those should be both decimal or string etc. </p>
  
  <p>Ive tried x/s and x/d 0x400c30 but i got \377%z4. Where can i look so it says %d or %s etc? Thanks in advance! </p>
  
  <pre><code>Dump of assembler code for function phase_4:
     0x000000000040101e &lt;+0&gt;: sub    $0x18,%rsp
     0x0000000000401022 &lt;+4&gt;: lea    0xc(%rsp),%rcx
     0x0000000000401027 &lt;+9&gt;: lea    0x8(%rsp),%rdx
     0x000000000040102c &lt;+14&gt;:    mov    $0x4027cd,%esi
     0x0000000000401031 &lt;+19&gt;:    mov    $0x0,%eax
     0x0000000000401036 &lt;+24&gt;:    callq  0x400c30 &lt;__isoc99_sscanf@plt&gt; //???
     0x000000000040103b &lt;+29&gt;:    cmp    $0x2,%eax
     0x000000000040103e &lt;+32&gt;:    jne    0x40104c &lt;phase_4+46&gt;
     0x0000000000401040 &lt;+34&gt;:    mov    0xc(%rsp),%eax
     0x0000000000401044 &lt;+38&gt;:    sub    $0x2,%eax
     0x0000000000401047 &lt;+41&gt;:    cmp    $0x2,%eax
     0x000000000040104a &lt;+44&gt;:    jbe    0x401051 &lt;phase_4+51&gt;
     0x000000000040104c &lt;+46&gt;:    callq  0x401554 &lt;explode_bomb&gt;
     0x0000000000401051 &lt;+51&gt;:    mov    0xc(%rsp),%esi
     0x0000000000401055 &lt;+55&gt;:    mov    $0x7,%edi
     0x000000000040105a &lt;+60&gt;:    callq  0x400fe6 &lt;func4&gt;
     0x000000000040105f &lt;+65&gt;:    cmp    0x8(%rsp),%eax
     0x0000000000401063 &lt;+69&gt;:    je     0x40106a &lt;phase_4+76&gt;
     0x0000000000401065 &lt;+71&gt;:    callq  0x401554 &lt;explode_bomb&gt;
     0x000000000040106a &lt;+76&gt;:    add    $0x18,%rsp
     0x000000000040106e &lt;+80&gt;:    retq  
  </code></pre>