[*] Binary protection state of wsdd

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


[*] Function strcpy tear down of wsdd

    ; assembly                                   | /* r2dec pseudo code output */
                                                 | /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/wsdd @ 0xce34 */
                                                 | #include <stdint.h>
                                                 |  
    ; (fcn) sym.common_generate_uuid ()          | void common_generate_uuid () {
    0x0000ce34 lui gp, 3                         |     
    0x0000ce38 addiu gp, gp, 0x42ac              |     
    0x0000ce3c addu gp, gp, t9                   |     gp += t9;
    0x0000ce40 addiu sp, sp, -0x78               |     
    0x0000ce44 lw t9, -0x7998(gp)                |     t9 = sym.imp.uuid_clear;
    0x0000ce48 sw s1, 0x64(sp)                   |     *(var_64h) = s1;
    0x0000ce4c lw s1, -0x774c(gp)                |     s1 = *((gp - 7635));
    0x0000ce50 sw s0, 0x60(sp)                   |     *(var_60h) = s0;
    0x0000ce54 addiu s0, sp, 0x24                |     s0 = sp + 0x24;
    0x0000ce58 lw v0, (s1)                       |     v0 = *(s1);
    0x0000ce5c sw ra, 0x74(sp)                   |     *(var_74h) = ra;
    0x0000ce60 sw gp, 0x18(sp)                   |     *(var_18h) = gp;
    0x0000ce64 sw v0, 0x5c(sp)                   |     *(var_5ch) = v0;
    0x0000ce68 sw s4, 0x70(sp)                   |     *(var_70h) = s4;
    0x0000ce6c sw s2, 0x68(sp)                   |     *(var_68h) = s2;
    0x0000ce70 sw s3, 0x6c(sp)                   |     *(var_6ch) = s3;
    0x0000ce74 move s4, a0                       |     s4 = a0;
    0x0000ce78 sw zero, 0x34(sp)                 |     *(var_34h) = 0;
    0x0000ce7c move a0, s0                       |     a0 = s0;
    0x0000ce80 sw zero, 0x38(sp)                 |     *(var_38h) = 0;
    0x0000ce84 sw zero, 0x3c(sp)                 |     *(var_3ch) = 0;
    0x0000ce88 sw zero, 0x40(sp)                 |     *(var_40h) = 0;
    0x0000ce8c sw zero, 0x44(sp)                 |     *(var_44h) = 0;
    0x0000ce90 sw zero, 0x48(sp)                 |     *(var_48h) = 0;
    0x0000ce94 sw zero, 0x4c(sp)                 |     *(var_4ch) = 0;
    0x0000ce98 sw zero, 0x50(sp)                 |     *(var_50h) = 0;
    0x0000ce9c sw zero, 0x54(sp)                 |     *(var_54h) = 0;
    0x0000cea0 sb zero, 0x58(sp)                 |     *(var_58h) = 0;
    0x0000cea4 move s2, a1                       |     s2 = a1;
    0x0000cea8 jalr t9                           |     t9 ();
    0x0000ceac lw gp, 0x18(sp)                   |     gp = *(var_18h);
    0x0000ceb0 lw t9, -0x7884(gp)                |     t9 = sym.imp.uuid_generate;
    0x0000ceb4 move a0, s0                       |     a0 = s0;
    0x0000ceb8 jalr t9                           |     t9 ();
    0x0000cebc lw gp, 0x18(sp)                   |     gp = *(var_18h);
    0x0000cec0 lw t9, -0x78ac(gp)                |     t9 = sym.imp.uuid_is_null;
    0x0000cec4 move a0, s0                       |     a0 = s0;
    0x0000cec8 jalr t9                           |     t9 ();
    0x0000cecc lw gp, 0x18(sp)                   |     gp = *(var_18h);
                                                 |     if (v0 != 0) {
    0x0000ced0 bnez v0, 0xcf98                   |         goto label_3;
                                                 |     }
    0x0000ced4 lw t9, -0x78d4(gp)                |     t9 = sym.imp.uuid_unparse;
    0x0000ced8 addiu s3, sp, 0x34                |     s3 = sp + 0x34;
    0x0000cedc move a1, s3                       |     a1 = s3;
    0x0000cee0 move a0, s0                       |     a0 = s0;
    0x0000cee4 jalr t9                           |     t9 ();
    0x0000cee8 lb v0, 0x34(sp)                   |     v0 = *(var_34h);
    0x0000ceec lw gp, 0x18(sp)                   |     gp = *(var_18h);
    0x0000cef0 beqz v0, 0xcf68                   |     
                                                 |     while (1) {
    0x0000cef4 lw t9, -0x7998(gp)                |         t9 = sym.imp.uuid_clear;
    0x0000cef8 move a0, s0                       |         a0 = s0;
    0x0000cefc jalr t9                           |         t9 ();
    0x0000cf00 lb v0, 0x34(sp)                   |         v0 = *(var_34h);
    0x0000cf04 lw gp, 0x18(sp)                   |         gp = *(var_18h);
                                                 |         if (v0 == 0) {
    0x0000cf08 beqz v0, 0xcfc8                   |             goto label_4;
                                                 |         }
                                                 |         if (s2 == 0) {
                                                 | label_1:
    0x0000cf0c beql s2, zero, 0xcf90             |             goto label_5;
                                                 |         }
    0x0000cf10 lw s2, -0x7fdc(gp)                |         s2 = *(gp);
                                                 | label_0:
    0x0000cf14 lw a3, -0x7fdc(gp)                |         a3 = *(gp);
    0x0000cf18 lw t9, -0x77f8(gp)                |         t9 = sym.imp.__sprintf_chk;
    0x0000cf1c sw s3, 0x14(sp)                   |         *(var_14h) = s3;
    0x0000cf20 sw s2, 0x10(sp)                   |         *(var_10h) = s2;
                                                 |         /* str._s_s */
    0x0000cf24 addiu a3, a3, 0x60d4              |         a3 += 0x60d4;
    0x0000cf28 addiu a2, zero, -1                |         a2 = -1;
    0x0000cf2c addiu a1, zero, 1                 |         a1 = 1;
    0x0000cf30 move a0, s4                       |         a0 = s4;
    0x0000cf34 jalr t9                           |         t9 ();
    0x0000cf38 lw gp, 0x18(sp)                   |         gp = *(var_18h);
                                                 | label_2:
    0x0000cf3c lw v1, 0x5c(sp)                   |         v1 = *(var_5ch);
    0x0000cf40 lw v0, (s1)                       |         v0 = *(s1);
    0x0000cf44 lw ra, 0x74(sp)                   |         ra = *(var_74h);
                                                 |         if (v1 != v0) {
    0x0000cf48 bne v1, v0, 0xcfe0                |             goto label_6;
                                                 |         }
    0x0000cf4c lw s4, 0x70(sp)                   |         s4 = *(var_70h);
    0x0000cf50 lw s3, 0x6c(sp)                   |         s3 = *(var_6ch);
    0x0000cf54 lw s2, 0x68(sp)                   |         s2 = *(var_68h);
    0x0000cf58 lw s1, 0x64(sp)                   |         s1 = *(var_64h);
    0x0000cf5c lw s0, 0x60(sp)                   |         s0 = *(var_60h);
    0x0000cf60 addiu sp, sp, 0x78                |         
    0x0000cf64 jr ra                             |         return v0;
    0x0000cf68 lw a3, -0x7fdc(gp)                |         a3 = *(gp);
    0x0000cf6c lw a2, -0x7fdc(gp)                |         a2 = *(gp);
    0x0000cf70 lw t9, -0x77a4(gp)                |         t9 = sym.imp.g_log;
    0x0000cf74 addiu a3, a3, 0x734c              |         a3 += 0x734c;
                                                 |         /* str._sFailed_to_export_UUID */
    0x0000cf78 addiu a2, a2, 0x7068              |         a2 += 0x7068;
    0x0000cf7c addiu a1, zero, 0x10              |         a1 = 0x10;
    0x0000cf80 move a0, zero                     |         a0 = 0;
    0x0000cf84 jalr t9                           |         t9 ();
    0x0000cf88 lw gp, 0x18(sp)                   |         gp = *(var_18h);
    0x0000cf8c b 0xcef4                          |         
                                                 |     }
                                                 | label_5:
    0x0000cf90 addiu s2, s2, 0x734c              |     s2 += 0x734c;
    0x0000cf94 b 0xcf14                          |     goto label_0;
                                                 | label_3:
    0x0000cf98 lw a3, -0x7fdc(gp)                |     a3 = *(gp);
    0x0000cf9c lw a2, -0x7fdc(gp)                |     a2 = *(gp);
    0x0000cfa0 lw t9, -0x77a4(gp)                |     t9 = sym.imp.g_log;
    0x0000cfa4 addiu a3, a3, 0x734c              |     a3 += 0x734c;
                                                 |     /* str._sFailed_to_create_UUID */
    0x0000cfa8 addiu a2, a2, 0x7050              |     a2 += 0x7050;
    0x0000cfac addiu a1, zero, 0x10              |     a1 = 0x10;
    0x0000cfb0 move a0, zero                     |     a0 = 0;
    0x0000cfb4 jalr t9                           |     t9 ();
    0x0000cfb8 lb v0, 0x34(sp)                   |     v0 = *(var_34h);
    0x0000cfbc lw gp, 0x18(sp)                   |     gp = *(var_18h);
    0x0000cfc0 addiu s3, sp, 0x34                |     s3 = sp + 0x34;
                                                 |     if (v0 != 0) {
    0x0000cfc4 bnez v0, 0xcf0c                   |         goto label_1;
                                                 |     }
                                                 | label_4:
    0x0000cfc8 lw t9, -0x7aec(gp)                |     t9 = sym.imp.strcpy
    0x0000cfcc move a1, s3                       |     a1 = s3;
    0x0000cfd0 move a0, s4                       |     a0 = s4;
    0x0000cfd4 jalr t9                           |     t9 ();
    0x0000cfd8 lw gp, 0x18(sp)                   |     gp = *(var_18h);
    0x0000cfdc b 0xcf3c                          |     goto label_2;
                                                 | label_6:
    0x0000cfe0 lw t9, -0x7934(gp)                |     t9 = sym.imp.__stack_chk_fail;
    0x0000cfe4 jalr t9                           |     t9 ();
    0x0000cfe8 nop                               |     
                                                 | }
    ; assembly                                           | /* r2dec pseudo code output */
                                                         | /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/wsdd @ 0xb82c */
                                                         | #include <stdint.h>
                                                         |  
    ; (fcn) sym.config_get_active_interface ()           | void config_get_active_interface () {
    0x0000b82c lui gp, 3                                 |     
    0x0000b830 addiu gp, gp, 0x58b4                      |     
    0x0000b834 addu gp, gp, t9                           |     gp += t9;
    0x0000b838 addiu sp, sp, -0x38                       |     
    0x0000b83c lw t9, -0x777c(gp)                        |     t9 = sym.imp.net_init;
    0x0000b840 sw s1, 0x30(sp)                           |     *(var_30h) = s1;
    0x0000b844 lw s1, -0x774c(gp)                        |     s1 = *((gp - 7635));
    0x0000b848 sw gp, 0x10(sp)                           |     *(var_10h) = gp;
    0x0000b84c sw s0, 0x2c(sp)                           |     *(var_2ch) = s0;
    0x0000b850 lw v0, (s1)                               |     v0 = *(s1);
    0x0000b854 sw ra, 0x34(sp)                           |     *(var_34h) = ra;
    0x0000b858 sw zero, 0x1c(sp)                         |     *(var_1ch) = 0;
    0x0000b85c sw v0, 0x24(sp)                           |     *(var_24h) = v0;
    0x0000b860 move s0, a0                               |     s0 = a0;
    0x0000b864 jalr t9                                   |     t9 ();
    0x0000b868 lw gp, 0x10(sp)                           |     gp = *(var_10h);
                                                         |     if (v0 != 0) {
    0x0000b86c bnez v0, 0xb96c                           |         goto label_2;
                                                         |     }
    0x0000b870 lw t9, -0x791c(gp)                        |     t9 = sym.imp.net_device_switching_get_active_devices;
    0x0000b874 addiu a0, sp, 0x1c                        |     a0 = sp + 0x1c;
    0x0000b878 jalr t9                                   |     t9 ();
    0x0000b87c lw gp, 0x10(sp)                           |     gp = *(var_10h);
                                                         |     if (v0 == 0) {
    0x0000b880 bnez v0, 0xb8e0                           |         
    0x0000b884 lw v0, 0x1c(sp)                           |         v0 = *(var_1ch);
    0x0000b888 lw a3, -0x7fdc(gp)                        |         a3 = *(gp);
                                                         |         if (v0 == 0) {
    0x0000b88c beqz v0, 0xb8e4                           |             goto label_3;
                                                         |         }
    0x0000b890 lw a0, (v0)                               |         a0 = *(v0);
    0x0000b894 lw t9, -0x77d0(gp)                        |         t9 = sym.imp.net_device_get_name;
                                                         |         if (a0 == 0) {
    0x0000b898 beqz a0, 0xb8e4                           |             goto label_3;
                                                         |         }
    0x0000b89c addiu a1, sp, 0x20                        |         a1 = sp + 0x20;
    0x0000b8a0 jalr t9                                   |         t9 ();
    0x0000b8a4 lw gp, 0x10(sp)                           |         gp = *(var_10h);
                                                         |         if (v0 != 0) {
    0x0000b8a8 bnez v0, 0xb994                           |             goto label_4;
                                                         |         }
    0x0000b8ac lw t9, -0x7aec(gp)                        |         t9 = sym.imp.strcpy
    0x0000b8b0 lw a1, 0x20(sp)                           |         a1 = *(var_20h);
    0x0000b8b4 move a0, s0                               |         a0 = s0;
    0x0000b8b8 jalr t9                                   |         t9 ();
    0x0000b8bc lw gp, 0x10(sp)                           |         gp = *(var_10h);
    0x0000b8c0 lw t9, -0x79cc(gp)                        |         t9 = sym.imp.net_deinit;
    0x0000b8c4 jalr t9                                   |         t9 ();
    0x0000b8c8 nop                                       |         
    0x0000b8cc lw a0, 0x1c(sp)                           |         a0 = *(var_1ch);
    0x0000b8d0 lw gp, 0x10(sp)                           |         gp = *(var_10h);
                                                         |         if (a0 != 0) {
    0x0000b8d4 bnez a0, 0xb9bc                           |             goto label_5;
                                                         |         }
    0x0000b8d8 addiu v0, zero, 1                         |         v0 = 1;
    0x0000b8dc b 0xb94c                                  |         goto label_1;
                                                         |     }
    0x0000b8e0 lw a3, -0x7fdc(gp)                        |     a3 = *(gp);
                                                         | label_3:
    0x0000b8e4 lw a2, -0x7fdc(gp)                        |     a2 = *(gp);
    0x0000b8e8 lw t9, -0x77a4(gp)                        |     t9 = sym.imp.g_log;
    0x0000b8ec addiu a3, a3, 0x734c                      |     a3 += 0x734c;
                                                         |     /* str._sfailed_to_get_active_devices_list */
    0x0000b8f0 addiu a2, a2, 0x6b0c                      |     a2 += 0x6b0c;
    0x0000b8f4 addiu a1, zero, 0x10                      |     a1 = 0x10;
    0x0000b8f8 move a0, zero                             |     a0 = 0;
    0x0000b8fc jalr t9                                   |     t9 ();
    0x0000b900 lw gp, 0x10(sp)                           |     gp = *(var_10h);
                                                         |     do {
                                                         | label_0:
    0x0000b904 lw t9, -0x79cc(gp)                        |         t9 = sym.imp.net_deinit;
    0x0000b908 jalr t9                                   |         t9 ();
    0x0000b90c nop                                       |         
    0x0000b910 lw a0, 0x1c(sp)                           |         a0 = *(var_1ch);
    0x0000b914 lw gp, 0x10(sp)                           |         gp = *(var_10h);
                                                         |         if (a0 != 0) {
    0x0000b918 beqz a0, 0xb92c                           |             
    0x0000b91c lw t9, -0x76e4(gp)                        |             t9 = sym.imp.net_device_array_free;
    0x0000b920 jalr t9                                   |             t9 ();
    0x0000b924 nop                                       |             
    0x0000b928 lw gp, 0x10(sp)                           |             gp = *(var_10h);
                                                         |         }
    0x0000b92c lw v1, -0x7fdc(gp)                        |         v1 = *(gp);
    0x0000b930 move v0, zero                             |         v0 = 0;
                                                         |         /* str.eth0 */
    0x0000b934 addiu a0, v1, 0x6b58                      |         a0 = v1 + 0x6b58;
    0x0000b938 lw v1, 0x6b58(v1)                         |         v1 = *((v1 + 6870));
    0x0000b93c lbu a0, 4(a0)                             |         a0 = *((a0 + 4));
    0x0000b940 swl v1, 3(s0)                             |         __asm ("swl v1, 3(s0)");
    0x0000b944 swr v1, (s0)                              |         __asm ("swr v1, (s0)");
    0x0000b948 sb a0, 4(s0)                              |         *((s0 + 4)) = a0;
                                                         | label_1:
    0x0000b94c lw a0, 0x24(sp)                           |         a0 = *(var_24h);
    0x0000b950 lw v1, (s1)                               |         v1 = *(s1);
    0x0000b954 lw ra, 0x34(sp)                           |         ra = *(var_34h);
                                                         |         if (a0 != v1) {
    0x0000b958 bne a0, v1, 0xb9d4                        |             goto label_6;
                                                         |         }
    0x0000b95c lw s1, 0x30(sp)                           |         s1 = *(var_30h);
    0x0000b960 lw s0, 0x2c(sp)                           |         s0 = *(var_2ch);
    0x0000b964 addiu sp, sp, 0x38                        |         
    0x0000b968 jr ra                                     |         return v0;
                                                         | label_2:
    0x0000b96c lw a3, -0x7fdc(gp)                        |         a3 = *(gp);
    0x0000b970 lw a2, -0x7fdc(gp)                        |         a2 = *(gp);
    0x0000b974 lw t9, -0x77a4(gp)                        |         t9 = sym.imp.g_log;
    0x0000b978 addiu a3, a3, 0x734c                      |         a3 += 0x734c;
                                                         |         /* str._sfailed_init_net_library */
    0x0000b97c addiu a2, a2, 0x6af0                      |         a2 += 0x6af0;
    0x0000b980 addiu a1, zero, 0x10                      |         a1 = 0x10;
    0x0000b984 move a0, zero                             |         a0 = 0;
    0x0000b988 jalr t9                                   |         t9 ();
    0x0000b98c lw gp, 0x10(sp)                           |         gp = *(var_10h);
    0x0000b990 b 0xb904                                  |         
                                                         |     } while (1);
                                                         | label_4:
    0x0000b994 lw a3, -0x7fdc(gp)                        |     a3 = *(gp);
    0x0000b998 lw a2, -0x7fdc(gp)                        |     a2 = *(gp);
    0x0000b99c lw t9, -0x77a4(gp)                        |     t9 = sym.imp.g_log;
    0x0000b9a0 addiu a3, a3, 0x734c                      |     a3 += 0x734c;
                                                         |     /* str._sfailed_to_get_name_of_active_device */
    0x0000b9a4 addiu a2, a2, 0x6b30                      |     a2 += 0x6b30;
    0x0000b9a8 addiu a1, zero, 0x10                      |     a1 = 0x10;
    0x0000b9ac move a0, zero                             |     a0 = 0;
    0x0000b9b0 jalr t9                                   |     t9 ();
    0x0000b9b4 lw gp, 0x10(sp)                           |     gp = *(var_10h);
    0x0000b9b8 b 0xb904                                  |     goto label_0;
                                                         | label_5:
    0x0000b9bc lw t9, -0x76e4(gp)                        |     t9 = sym.imp.net_device_array_free;
    0x0000b9c0 jalr t9                                   |     t9 ();
    0x0000b9c4 nop                                       |     
    0x0000b9c8 lw gp, 0x10(sp)                           |     gp = *(var_10h);
    0x0000b9cc addiu v0, zero, 1                         |     v0 = 1;
    0x0000b9d0 b 0xb94c                                  |     goto label_1;
                                                         | label_6:
    0x0000b9d4 lw t9, -0x7934(gp)                        |     t9 = sym.imp.__stack_chk_fail;
    0x0000b9d8 jalr t9                                   |     t9 ();
    0x0000b9dc nop                                       |     
                                                         | }
    ; assembly                                   | /* r2dec pseudo code output */
                                                 | /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/wsdd @ 0xb510 */
                                                 | #include <stdint.h>
                                                 |  
    ; (fcn) sym.config_get_ipv4_addr ()          | void config_get_ipv4_addr () {
    0x0000b510 lui gp, 3                         |     
    0x0000b514 addiu gp, gp, 0x5bd0              |     
    0x0000b518 addu gp, gp, t9                   |     gp += t9;
    0x0000b51c lw v0, -0x7fd0(gp)                |     v0 = *((gp - 8180));
    0x0000b520 addiu sp, sp, -0x40               |     
    0x0000b524 lw a1, -0x7fdc(gp)                |     a1 = *(gp);
    0x0000b528 lw v0, -0x657c(v0)                |     v0 = *((v0 - 6495));
    0x0000b52c lw t9, -0x7724(gp)                |     t9 = sym.imp.g_strsplit_set;
    0x0000b530 sw s2, 0x24(sp)                   |     *(var_24h) = s2;
    0x0000b534 move s2, a0                       |     s2 = a0;
    0x0000b538 lw a0, (v0)                       |     a0 = *(v0);
    0x0000b53c sw gp, 0x10(sp)                   |     *(var_10h) = gp;
    0x0000b540 sw ra, 0x3c(sp)                   |     *(var_3ch) = ra;
    0x0000b544 sw s7, 0x38(sp)                   |     *(var_38h) = s7;
    0x0000b548 sw s6, 0x34(sp)                   |     *(var_34h) = s6;
    0x0000b54c sw s5, 0x30(sp)                   |     *(var_30h) = s5;
    0x0000b550 sw s4, 0x2c(sp)                   |     *(var_2ch) = s4;
    0x0000b554 sw s3, 0x28(sp)                   |     *(var_28h) = s3;
    0x0000b558 sw s1, 0x20(sp)                   |     *(var_20h) = s1;
    0x0000b55c sw s0, 0x1c(sp)                   |     *(var_1ch) = s0;
    0x0000b560 move a2, zero                     |     a2 = 0;
    0x0000b564 addiu a1, a1, 0x623c              |     a1 += 0x623c;
    0x0000b568 jalr t9                           |     t9 ();
    0x0000b56c lw gp, 0x10(sp)                   |     gp = *(var_10h);
                                                 |     if (v0 == 0) {
    0x0000b570 beqz v0, 0xb694                   |         goto label_0;
                                                 |     }
    0x0000b574 lw s0, (v0)                       |     s0 = *(v0);
    0x0000b578 move s7, v0                       |     s7 = v0;
                                                 |     if (s0 == 0) {
    0x0000b57c beqz s0, 0xb6c8                   |         goto label_1;
                                                 |     }
    0x0000b580 lw s4, -0x7fdc(gp)                |     s4 = *(gp);
    0x0000b584 lw s3, -0x7fdc(gp)                |     s3 = *(gp);
    0x0000b588 move s1, v0                       |     s1 = v0;
    0x0000b58c move s5, zero                     |     s5 = 0;
                                                 |     /* esilref: '169' */
    0x0000b590 addiu s4, s4, 0x6ae8              |     s4 += 0x6ae8;
    0x0000b594 addiu s6, s2, 4                   |     s6 = s2 + 4;
                                                 |     /* esilref: '254' */
    0x0000b598 addiu s3, s3, 0x6aec              |     s3 += 0x6aec;
    0x0000b59c lw t9, -0x78d8(gp)                |     t9 = sym.imp.strchr;
                                                 |     do {
    0x0000b5a0 move a0, s0                       |         a0 = s0;
    0x0000b5a4 addiu a1, zero, 0x2e              |         a1 = 0x2e;
    0x0000b5a8 jalr t9                           |         t9 ();
    0x0000b5ac lw gp, 0x10(sp)                   |         gp = *(var_10h);
    0x0000b5b0 addiu s1, s1, 4                   |         s1 += 4;
    0x0000b5b4 move a1, s0                       |         a1 = s0;
    0x0000b5b8 move a0, s2                       |         a0 = s2;
    0x0000b5bc lw t9, -0x7aec(gp)                |         t9 = sym.imp.strcpy
                                                 |         if (v0 != 0) {
    0x0000b5c0 beqz v0, 0xb60c                   |             
    0x0000b5c4 jalr t9                           |             t9 ();
    0x0000b5c8 nop                               |             
    0x0000b5cc lw gp, 0x10(sp)                   |             gp = *(var_10h);
    0x0000b5d0 move a1, s4                       |             a1 = s4;
    0x0000b5d4 lw t9, -0x78c4(gp)                |             t9 = sym.imp.g_str_has_prefix;
    0x0000b5d8 move a0, s2                       |             a0 = s2;
    0x0000b5dc jalr t9                           |             t9 ();
    0x0000b5e0 lw gp, 0x10(sp)                   |             gp = *(var_10h);
    0x0000b5e4 move a2, s3                       |             a2 = s3;
    0x0000b5e8 addiu a1, zero, 3                 |             a1 = 3;
    0x0000b5ec move a0, s6                       |             a0 = s6;
    0x0000b5f0 lw t9, -0x7920(gp)                |             t9 = sym.imp.g_strstr_len;
                                                 |             if (v0 == 0) {
    0x0000b5f4 beqz v0, 0xb654                   |                 goto label_2;
                                                 |             }
    0x0000b5f8 jalr t9                           |             t9 ();
    0x0000b5fc nop                               |             
    0x0000b600 lw gp, 0x10(sp)                   |             gp = *(var_10h);
                                                 |             if (v0 == 0) {
    0x0000b604 beqz v0, 0xb654                   |                 goto label_2;
                                                 |             }
    0x0000b608 addiu s5, zero, 1                 |             s5 = 1;
                                                 |         }
    0x0000b60c lw s0, (s1)                       |         s0 = *(s1);
    0x0000b610 lw t9, -0x78d8(gp)                |         t9 = sym.imp.strchr;
    0x0000b614 bnez s0, 0xb5a0                   |         
                                                 |     } while (s0 != 0);
                                                 |     do {
    0x0000b618 lw t9, -0x7924(gp)                |         t9 = sym.imp.g_strfreev;
    0x0000b61c move a0, s7                       |         a0 = s7;
    0x0000b620 jalr t9                           |         t9 ();
    0x0000b624 lw ra, 0x3c(sp)                   |         ra = *(var_3ch);
    0x0000b628 move v0, s5                       |         v0 = s5;
    0x0000b62c lw s7, 0x38(sp)                   |         s7 = *(var_38h);
    0x0000b630 lw s6, 0x34(sp)                   |         s6 = *(var_34h);
    0x0000b634 lw s5, 0x30(sp)                   |         s5 = *(var_30h);
    0x0000b638 lw s4, 0x2c(sp)                   |         s4 = *(var_2ch);
    0x0000b63c lw s3, 0x28(sp)                   |         s3 = *(var_28h);
    0x0000b640 lw s2, 0x24(sp)                   |         s2 = *(var_24h);
    0x0000b644 lw s1, 0x20(sp)                   |         s1 = *(var_20h);
    0x0000b648 lw s0, 0x1c(sp)                   |         s0 = *(var_1ch);
    0x0000b64c addiu sp, sp, 0x40                |         
    0x0000b650 jr ra                             |         return v0;
                                                 | label_2:
    0x0000b654 lw t9, -0x7924(gp)                |         t9 = sym.imp.g_strfreev;
    0x0000b658 move a0, s7                       |         a0 = s7;
    0x0000b65c jalr t9                           |         t9 ();
    0x0000b660 lw ra, 0x3c(sp)                   |         ra = *(var_3ch);
    0x0000b664 addiu s5, zero, 1                 |         s5 = 1;
    0x0000b668 move v0, s5                       |         v0 = s5;
    0x0000b66c lw s7, 0x38(sp)                   |         s7 = *(var_38h);
    0x0000b670 lw s6, 0x34(sp)                   |         s6 = *(var_34h);
    0x0000b674 lw s5, 0x30(sp)                   |         s5 = *(var_30h);
    0x0000b678 lw s4, 0x2c(sp)                   |         s4 = *(var_2ch);
    0x0000b67c lw s3, 0x28(sp)                   |         s3 = *(var_28h);
    0x0000b680 lw s2, 0x24(sp)                   |         s2 = *(var_24h);
    0x0000b684 lw s1, 0x20(sp)                   |         s1 = *(var_20h);
    0x0000b688 lw s0, 0x1c(sp)                   |         s0 = *(var_1ch);
    0x0000b68c addiu sp, sp, 0x40                |         
    0x0000b690 jr ra                             |         return v0;
                                                 | label_0:
    0x0000b694 lw ra, 0x3c(sp)                   |         ra = *(var_3ch);
    0x0000b698 move s5, zero                     |         s5 = 0;
    0x0000b69c move v0, s5                       |         v0 = s5;
    0x0000b6a0 lw s7, 0x38(sp)                   |         s7 = *(var_38h);
    0x0000b6a4 lw s6, 0x34(sp)                   |         s6 = *(var_34h);
    0x0000b6a8 lw s5, 0x30(sp)                   |         s5 = *(var_30h);
    0x0000b6ac lw s4, 0x2c(sp)                   |         s4 = *(var_2ch);
    0x0000b6b0 lw s3, 0x28(sp)                   |         s3 = *(var_28h);
    0x0000b6b4 lw s2, 0x24(sp)                   |         s2 = *(var_24h);
    0x0000b6b8 lw s1, 0x20(sp)                   |         s1 = *(var_20h);
    0x0000b6bc lw s0, 0x1c(sp)                   |         s0 = *(var_1ch);
    0x0000b6c0 addiu sp, sp, 0x40                |         
    0x0000b6c4 jr ra                             |         return v0;
                                                 | label_1:
    0x0000b6c8 move s5, zero                     |         s5 = 0;
    0x0000b6cc b 0xb618                          |         
                                                 |     } while (1);
                                                 | }

[*] Function strcpy used 4 times wsdd