[*] Binary protection state of rtlbtmp

  
  	No RELRO       No Canary found   NX disabled  No PIE       No RPATH     No RUNPATH   No Symbols


[*] Function printf tear down of rtlbtmp

    ; assembly                               | /* r2dec pseudo code output */
                                             | /* /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/rtlbtmp @ 0x4016f0 */
                                             | #include <stdint.h>
                                             |  
    ; (fcn) main ()                          | int32_t main () {
                                             |     /* [11] -r-x section size 179168 named .text */
    0x004016f0 addiu sp, sp, -0x128          |     
    0x004016f4 sw ra, 0x124(sp)              |     *(var_124h) = ra;
    0x004016f8 sw s2, 0x120(sp)              |     *(var_120h) = s2;
    0x004016fc sw s1, 0x11c(sp)              |     *(var_11ch) = s1;
    0x00401700 sw s0, 0x118(sp)              |     *(var_118h) = s0;
    0x00401704 lui a0, 0x43                  |     a0 = ":::::::::::::::::::::::::::::::::::::::::::::::::";
                                             |     /* str.::::::::::::::::::::::::::::::::::::::::::::::::: */
    0x00401708 addiu a0, a0, 0x37a0          |     
    0x0040170c jal 0x41934c                  |     fcn_0041934c ();
    0x00401710 lui a0, 0x43                  |     a0 = ":::::::: Bluetooth MP Test Tool Starting 20190402 ::::::::";
                                             |     /* str.::::::::_Bluetooth_MP_Test_Tool_Starting_20190402_:::::::: */
    0x00401714 addiu a0, a0, 0x37d4          |     
    0x00401718 jal 0x41934c                  |     fcn_0041934c ();
    0x0040171c jal 0x419c94                  |     fcn_00419c94 ();
    0x00401720 nop                           |     
    0x00401724 move a0, zero                 |     a0 = 0;
    0x00401728 addiu a1, zero, -1            |     a1 = -1;
    0x0040172c jal 0x419f5c                  |     fcn_00419f5c ();
    0x00401730 lui s0, 0x43                  |     s0 = 0x430000;
                                             |     if (v0 < 0) {
    0x00401734 bltz v0, 0x401790             |         goto label_1;
                                             |     }
    0x00401738 lui s2, 0x45                  |     s2 = 0x450000;
    0x0040173c lui s1, 0x45                  |     s1 = 0x450000;
                                             |     /* esilref: '> ' */
    0x00401740 addiu s0, s0, 0x3830          |     s0 += 0x3830;
                                             |     do {
                                             | label_0:
    0x00401744 move a0, s0                   |         a0 = s0;
    0x00401748 jal 0x435b80                  |         fcn_00435b80 ();
    0x0040174c lw a0, -0x6f60(s2)            |         a0 = *((s2 - 7128));
    0x00401750 jal 0x435da0                  |         fcn_00435da0 ();
    0x00401754 addiu a0, sp, 0x18            |         a0 = sp + 0x18;
    0x00401758 lw a2, -0x6f4c(s1)            |         a2 = *((s1 - 7123));
    0x0040175c addiu a1, zero, 0x100         |         a1 = 0x100;
    0x00401760 jal 0x435c90                  |         fcn_00435c90 ();
    0x00401764 lb t8, 0x18(sp)               |         t8 = *(var_18h);
    0x00401768 beqz t8, 0x401744             |         
                                             |     } while (t8 == 0);
    0x0040176c nop                           |     
    0x00401770 addiu a0, sp, 0x18            |     a0 = sp + 0x18;
    0x00401774 jal 0x419d50                  |     fcn_00419d50 ();
    0x00401778 addiu a0, sp, 0x18            |     a0 = sp + 0x18;
    0x0040177c move a1, zero                 |     a1 = 0;
    0x00401780 addiu a2, zero, 0x100         |     a2 = 0x100;
    0x00401784 jal 0x435f80                  |     fcn_00435f80 ();
    0x00401788 j 0x401744                    |     goto label_0;
    0x0040178c nop                           |     
                                             | label_1:
    0x00401790 lui a0, 0x43                  |     a0 = "HAL failed to initialize, exit";
                                             |     /* str.HAL_failed_to_initialize__exit */
    0x00401794 addiu a0, a0, 0x3810          |     
    0x00401798 jal 0x41c514                  |     fcn_0041c514 ();
    0x0040179c addiu v0, zero, -1            |     v0 = -1;
    0x004017a0 lw ra, 0x124(sp)              |     ra = *(var_124h);
    0x004017a4 lw s2, 0x120(sp)              |     s2 = *(var_120h);
    0x004017a8 lw s1, 0x11c(sp)              |     s1 = *(var_11ch);
    0x004017ac lw s0, 0x118(sp)              |     s0 = *(var_118h);
    0x004017b0 addiu sp, sp, 0x128           |     
    0x004017b4 jr ra                         |     return v0;
                                             | }

[*] Function printf used 1 times rtlbtmp