[*] Binary protection state of libwebsockets.so.12
Partial RELRO No Canary found NX disabled DSO No RPATH No RUNPATH Symbols
[*] Function sprintf tear down of libwebsockets.so.12
6270: ebfffa6b bl 4c24 <_lws_log@plt>
6274: e59f3174 ldr r3, [pc, #372] ; 63f0 <lwsl_hexdump_level+0x1ac>
6278: e3a05000 mov r5, #0
627c: e08f3003 add r3, pc, r3
6280: e58d3004 str r3, [sp, #4]
6284: e59f3168 ldr r3, [pc, #360] ; 63f4 <lwsl_hexdump_level+0x1b0>
6288: e08f3003 add r3, pc, r3
628c: e58d3008 str r3, [sp, #8]
6290: e1580005 cmp r8, r5
6294: 8a000005 bhi 62b0 <lwsl_hexdump_level+0x6c>
6298: e59f1158 ldr r1, [pc, #344] ; 63f8 <lwsl_hexdump_level+0x1b4>
629c: e1a00007 mov r0, r7
62a0: e08f1001 add r1, pc, r1
62a4: ebfffa5e bl 4c24 <_lws_log@plt>
62a8: e28dd064 add sp, sp, #100 ; 0x64
62ac: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc}
62b0: e28d9010 add r9, sp, #16
62b4: e1a02005 mov r2, r5
62b8: e59d1004 ldr r1, [sp, #4]
62bc: e1a00009 mov r0, r9
62c0: ebfffa54 bl 4c18 <sprintf@plt>
62c4: e3a06000 mov r6, #0
62c8: e08a4005 add r4, sl, r5
--
6310: ebfff896 bl 4570 <strcpy@plt>
6314: e0481005 sub r1, r8, r5
6318: e3a03000 mov r3, #0
631c: e08a5005 add r5, sl, r5
6320: e3a0002e mov r0, #46 ; 0x2e
6324: e1510003 cmp r1, r3
6328: 1a000019 bne 6394 <lwsl_hexdump_level+0x150>
632c: e1a02004 mov r2, r4
6330: e0430004 sub r0, r3, r4
6334: e3a0c020 mov ip, #32
6338: e0821000 add r1, r2, r0
633c: e351000f cmp r1, #15
6340: 9a000027 bls 63e4 <lwsl_hexdump_level+0x1a0>
6344: e2633010 rsb r3, r3, #16
6348: e0844003 add r4, r4, r3
634c: ea000019 b 63b8 <lwsl_hexdump_level+0x174>
6350: e7d42006 ldrb r2, [r4, r6]
6354: e1a00003 mov r0, r3
6358: e59d1008 ldr r1, [sp, #8]
635c: e58d300c str r3, [sp, #12]
6360: ebfffa2c bl 4c18 <sprintf@plt>
6364: e59d300c ldr r3, [sp, #12]
6368: e2866001 add r6, r6, #1
--
cde8: e58d801c str r8, [sp, #28]
cdec: e58d7018 str r7, [sp, #24]
cdf0: e1a03006 mov r3, r6
cdf4: e1a02005 mov r2, r5
cdf8: e1a00004 mov r0, r4
cdfc: e8bd41f0 pop {r4, r5, r6, r7, r8, lr}
ce00: eaffdf03 b 4a14 <lws_add_http_header_by_name@plt>
ce04: e3a00001 mov r0, #1
ce08: e8bd81f0 pop {r4, r5, r6, r7, r8, pc}
0000ce0c <lws_add_http_header_content_length>:
ce0c: e59f1064 ldr r1, [pc, #100] ; ce78 <lws_add_http_header_content_length+0x6c>
ce10: e92d40f0 push {r4, r5, r6, r7, lr}
ce14: e24dd024 sub sp, sp, #36 ; 0x24
ce18: e28d5008 add r5, sp, #8
ce1c: e1a04000 mov r4, r0
ce20: e08f1001 add r1, pc, r1
ce24: e1a00005 mov r0, r5
ce28: e1a06002 mov r6, r2
ce2c: e1a07003 mov r7, r3
ce30: ebffdf78 bl 4c18 <sprintf@plt>
ce34: e59d303c ldr r3, [sp, #60] ; 0x3c
ce38: e1a02005 mov r2, r5
--
cecc: e0822100 add r2, r2, r0, lsl #2
ced0: e592119c ldr r1, [r2, #412] ; 0x19c
ced4: e3530e13 cmp r3, #304 ; 0x130
ced8: 0a00002b beq cf8c <lws_add_http_header_status+0x110>
cedc: e2432f4b sub r2, r3, #300 ; 0x12c
cee0: e3520063 cmp r2, #99 ; 0x63
cee4: 959f1170 ldrls r1, [pc, #368] ; d05c <lws_add_http_header_status+0x1e0>
cee8: 908f1001 addls r1, pc, r1
ceec: e5940128 ldr r0, [r4, #296] ; 0x128
cef0: e3500002 cmp r0, #2
cef4: 8a000027 bhi cf98 <lws_add_http_header_status+0x11c>
cef8: e59f2160 ldr r2, [pc, #352] ; d060 <lws_add_http_header_status+0x1e4>
cefc: e08f2002 add r2, pc, r2
cf00: e0822100 add r2, r2, r0, lsl #2
cf04: e59221b4 ldr r2, [r2, #436] ; 0x1b4
cf08: e58d1000 str r1, [sp]
cf0c: e59f1150 ldr r1, [pc, #336] ; d064 <lws_add_http_header_status+0x1e8>
cf10: e28d500c add r5, sp, #12
cf14: e08f1001 add r1, pc, r1
cf18: e1a00005 mov r0, r5
cf1c: ebffdf3d bl 4c18 <sprintf@plt>
cf20: e1a02005 mov r2, r5
cf24: e88d00c0 stm sp, {r6, r7}
--
d0f0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc}
d0f4: e59f2108 ldr r2, [pc, #264] ; d204 <lws_return_http_status+0x180>
d0f8: e58d4004 str r4, [sp, #4]
d0fc: e58da000 str sl, [sp]
d100: e3a03009 mov r3, #9
d104: e08f2002 add r2, pc, r2
d108: e3a0101c mov r1, #28
d10c: e1a00005 mov r0, r5
d110: ebffde84 bl 4b28 <lws_add_http_header_by_token@plt>
d114: e3500000 cmp r0, #0
d118: 1afffff1 bne d0e4 <lws_return_http_status+0x60>
d11c: e1a00008 mov r0, r8
d120: ebffdf13 bl 4d74 <strlen@plt>
d124: e59fb0dc ldr fp, [pc, #220] ; d208 <lws_return_http_status+0x184>
d128: e28d6014 add r6, sp, #20
d12c: e08fb00b add fp, pc, fp
d130: e1a02009 mov r2, r9
d134: e1a0100b mov r1, fp
d138: e58d000c str r0, [sp, #12]
d13c: e1a00006 mov r0, r6
d140: ebffdeb4 bl 4c18 <sprintf@plt>
d144: e59d300c ldr r3, [sp, #12]
d148: e1a0100b mov r1, fp
d14c: e2832023 add r2, r3, #35 ; 0x23
d150: e0822000 add r2, r2, r0
d154: e1a00006 mov r0, r6
d158: ebffdeae bl 4c18 <sprintf@plt>
d15c: e58d4004 str r4, [sp, #4]
d160: e58da000 str sl, [sp]
--
e45c: e3500010 cmp r0, #16
e460: e1a01000 mov r1, r0
e464: 159f227c ldrne r2, [pc, #636] ; e6e8 <lws_generate_client_handshake+0x3c8>
e468: 159f127c ldrne r1, [pc, #636] ; e6ec <lws_generate_client_handshake+0x3cc>
e46c: 108f2002 addne r2, pc, r2
e470: 108f1001 addne r1, pc, r1
e474: 1affffd4 bne e3cc <lws_generate_client_handshake+0xac>
e478: e3a03028 mov r3, #40 ; 0x28
e47c: e28d2020 add r2, sp, #32
e480: e1a00006 mov r0, r6
e484: ebffd83c bl 457c <lws_b64_encode_string@plt>
e488: e3a01056 mov r1, #86 ; 0x56
e48c: e1a00004 mov r0, r4
e490: e59d6008 ldr r6, [sp, #8]
e494: ebfff09b bl a708 <lws_hdr_simple_ptr>
e498: e59f1250 ldr r1, [pc, #592] ; e6f0 <lws_generate_client_handshake+0x3d0>
e49c: e1a02008 mov r2, r8
e4a0: e08f1001 add r1, pc, r1
e4a4: e1a03000 mov r3, r0
e4a8: e1a00006 mov r0, r6
e4ac: ebffd9d9 bl 4c18 <sprintf@plt>
e4b0: e59d3008 ldr r3, [sp, #8]
e4b4: e59f1238 ldr r1, [pc, #568] ; e6f4 <lws_generate_client_handshake+0x3d4>
e4b8: e08f1001 add r1, pc, r1
e4bc: e0830000 add r0, r3, r0
e4c0: e58d0008 str r0, [sp, #8]
e4c4: ebffd829 bl 4570 <strcpy@plt>
e4c8: e59d6008 ldr r6, [sp, #8]
e4cc: e3a01057 mov r1, #87 ; 0x57
e4d0: e286602b add r6, r6, #43 ; 0x2b
e4d4: e1a00004 mov r0, r4
e4d8: e58d6008 str r6, [sp, #8]
e4dc: ebfff089 bl a708 <lws_hdr_simple_ptr>
e4e0: e59f1210 ldr r1, [pc, #528] ; e6f8 <lws_generate_client_handshake+0x3d8>
e4e4: e08f1001 add r1, pc, r1
e4e8: e1a02000 mov r2, r0
e4ec: e1a00006 mov r0, r6
e4f0: ebffd9c8 bl 4c18 <sprintf@plt>
e4f4: e59d3008 ldr r3, [sp, #8]
e4f8: e3a01058 mov r1, #88 ; 0x58
e4fc: e0830000 add r0, r3, r0
e500: e58d0008 str r0, [sp, #8]
e504: e1a00004 mov r0, r4
e508: ebfff07e bl a708 <lws_hdr_simple_ptr>
e50c: e3500000 cmp r0, #0
e510: 0a00000e beq e550 <lws_generate_client_handshake+0x230>
e514: e5973178 ldr r3, [r7, #376] ; 0x178
e518: e59d6008 ldr r6, [sp, #8]
e51c: e3130702 tst r3, #524288 ; 0x80000
e520: e3a01058 mov r1, #88 ; 0x58
e524: e1a00004 mov r0, r4
e528: 0a000065 beq e6c4 <lws_generate_client_handshake+0x3a4>
e52c: ebfff075 bl a708 <lws_hdr_simple_ptr>
e530: e59f11c4 ldr r1, [pc, #452] ; e6fc <lws_generate_client_handshake+0x3dc>
e534: e08f1001 add r1, pc, r1
e538: e1a02000 mov r2, r0
e53c: e1a00006 mov r0, r6
e540: ebffd9b4 bl 4c18 <sprintf@plt>
e544: e59d3008 ldr r3, [sp, #8]
e548: e0830000 add r0, r3, r0
--
e594: e08f1001 add r1, pc, r1
e598: e0860000 add r0, r6, r0
e59c: e58d0008 str r0, [sp, #8]
e5a0: ebffd7f2 bl 4570 <strcpy@plt>
e5a4: e59d3008 ldr r3, [sp, #8]
e5a8: e3a01054 mov r1, #84 ; 0x54
e5ac: e2833002 add r3, r3, #2
e5b0: e1a00004 mov r0, r4
e5b4: e58d3008 str r3, [sp, #8]
e5b8: ebfff052 bl a708 <lws_hdr_simple_ptr>
e5bc: e3500000 cmp r0, #0
e5c0: 0a00000b beq e5f4 <lws_generate_client_handshake+0x2d4>
e5c4: e3a01054 mov r1, #84 ; 0x54
e5c8: e1a00004 mov r0, r4
e5cc: e59d6008 ldr r6, [sp, #8]
e5d0: ebfff04c bl a708 <lws_hdr_simple_ptr>
e5d4: e59f112c ldr r1, [pc, #300] ; e708 <lws_generate_client_handshake+0x3e8>
e5d8: e08f1001 add r1, pc, r1
e5dc: e1a02000 mov r2, r0
e5e0: e1a00006 mov r0, r6
e5e4: ebffd98b bl 4c18 <sprintf@plt>
e5e8: e59d3008 ldr r3, [sp, #8]
e5ec: e0830000 add r0, r3, r0
e5f0: e58d0008 str r0, [sp, #8]
e5f4: e5d421c8 ldrb r2, [r4, #456] ; 0x1c8
e5f8: e3520000 cmp r2, #0
e5fc: 0a000006 beq e61c <lws_generate_client_handshake+0x2fc>
e600: e59f1104 ldr r1, [pc, #260] ; e70c <lws_generate_client_handshake+0x3ec>
e604: e59d0008 ldr r0, [sp, #8]
e608: e08f1001 add r1, pc, r1
e60c: ebffd981 bl 4c18 <sprintf@plt>
e610: e59d3008 ldr r3, [sp, #8]
e614: e0830000 add r0, r3, r0
e618: e58d0008 str r0, [sp, #8]
e61c: e59f10ec ldr r1, [pc, #236] ; e710 <lws_generate_client_handshake+0x3f0>
e620: e28d6048 add r6, sp, #72 ; 0x48
e624: e3a03000 mov r3, #0
e628: e1a02008 mov r2, r8
e62c: e08f1001 add r1, pc, r1
e630: e1a00006 mov r0, r6
e634: e5cd3047 strb r3, [sp, #71] ; 0x47
e638: ebffd976 bl 4c18 <sprintf@plt>
e63c: e28d800c add r8, sp, #12
e640: e1a02008 mov r2, r8
--
ebc0: ea0000f8 b efa8 <lws_client_connect_2+0x4b0>
ebc4: e5d031c2 ldrb r3, [r0, #450] ; 0x1c2
ebc8: e2808f71 add r8, r0, #452 ; 0x1c4
ebcc: e3c33008 bic r3, r3, #8
ebd0: e5c031c2 strb r3, [r0, #450] ; 0x1c2
ebd4: e5903158 ldr r3, [r0, #344] ; 0x158
ebd8: e5935174 ldr r5, [r3, #372] ; 0x174
ebdc: e3550000 cmp r5, #0
ebe0: 0a000042 beq ecf0 <lws_client_connect_2+0x1f8>
ebe4: e59d300c ldr r3, [sp, #12]
ebe8: e3a01055 mov r1, #85 ; 0x55
ebec: e1a07303 lsl r7, r3, #6
ebf0: e0869007 add r9, r6, r7
ebf4: e5995068 ldr r5, [r9, #104] ; 0x68
ebf8: ebffeec2 bl a708 <lws_hdr_simple_ptr>
ebfc: e59f1498 ldr r1, [pc, #1176] ; f09c <lws_client_connect_2+0x5a4>
ec00: e1d830b2 ldrh r3, [r8, #2]
ec04: e08f1001 add r1, pc, r1
ec08: e1a02000 mov r2, r0
ec0c: e1a00005 mov r0, r5
ec10: ebffd800 bl 4c18 <sprintf@plt>
ec14: e5942158 ldr r2, [r4, #344] ; 0x158
ec18: e5d23080 ldrb r3, [r2, #128] ; 0x80
ec1c: e3530000 cmp r3, #0
ec20: e1a05000 mov r5, r0
ec24: 0a000006 beq ec44 <lws_client_connect_2+0x14c>
ec28: e5990068 ldr r0, [r9, #104] ; 0x68
ec2c: e59f146c ldr r1, [pc, #1132] ; f0a0 <lws_client_connect_2+0x5a8>
ec30: e0800005 add r0, r0, r5
ec34: e2822080 add r2, r2, #128 ; 0x80
ec38: e08f1001 add r1, pc, r1
ec3c: ebffd7f5 bl 4c18 <sprintf@plt>
ec40: e0855000 add r5, r5, r0
ec44: e0867007 add r7, r6, r7
[*] Function sprintf used 14 times libwebsockets.so.12