{"name": "parse_incoming_packet", "code": "__int64 __fastcall parse_incoming_packet ( unsigned __int8 * @@a1@@ ) { __int64 @@result@@ ; int @@v2@@ ; unsigned int @@i@@ ; @@v2@@ = * @@a1@@ ; for ( @@i@@ = Number ; ; ++ @@i@@ ) { @@result@@ = @@i@@ ; if ( ( int ) @@i@@ >= @@v2@@ ) break ; handle_incoming_reg ( @@a1@@ + Number , @@a1@@ [ Number ] , @@a1@@ [ Number ] ) ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "unsigned __int8"}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "i", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}, {"n": "v2", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}]}
{"name": "handle_incoming_reg", "code": "char __fastcall handle_incoming_reg ( _QWORD * @@a1@@ , char @@a2@@ , char @@a3@@ ) { char @@result@@ ; __int64 v4 ; __int64 @@v6@@ ; __int64 @@i@@ ; for ( @@i@@ = servreg_hack_list_head ( ) ; ; @@i@@ = list_item_next ( @@i@@ ) ) { if ( ! @@i@@ ) { @@v6@@ = memb_alloc ( & registrations ) ; if ( ! @@v6@@ ) return puts ( String String ) ; * ( _BYTE * ) ( @@v6@@ + Number ) = @@a2@@ ; * ( _BYTE * ) ( @@v6@@ + Number ) = Number ; v4 = @@a1@@ [ Number ] ; * ( _QWORD * ) ( @@v6@@ + Number ) = * @@a1@@ ; * ( _QWORD * ) ( @@v6@@ + Number ) = v4 ; timer_set ( @@v6@@ + Number , Number L ) ; return list_add ( others_services , @@v6@@ ) ; } if ( @@a2@@ == ( unsigned __int8 ) servreg_hack_item_id ( @@i@@ ) ) break ; } @@result@@ = * ( _BYTE * ) ( @@i@@ + Number ) - @@a3@@ ; if ( @@result@@ < Number ) { * ( _BYTE * ) ( @@i@@ + Number ) = @@a3@@ ; timer_set ( @@i@@ + Number , Number L ) ; list_remove ( others_services , @@i@@ ) ; @@result@@ = list_push ( others_services , @@i@@ ) ; } return @@result@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "char", "s": 1}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "char", "s": 1}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "char", "s": 1}, "location": "r8"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "process_thread_servreg_hack_process", "code": "__int64 __fastcall process_thread_servreg_hack_process ( _WORD * @@a1@@ , char @@a2@@ , void * @@a3@@ ) { unsigned __int16 v3 ; unsigned __int16 v4 ; __int64 result ; char @@v7@@ ; @@v7@@ = Number ; if ( ! * @@a1@@ ) { outconn_4485 = ( __int64 ) udp_broadcast_new ( Number , Number L ) ; * ( _WORD * ) ( outconn_4485 + Number ) = Number ; inconn_4486 = ( __int64 ) udp_new ( Number L , Number , Number L ) ; * ( _WORD * ) ( inconn_4486 + Number ) = Number ; etimer_set ( ( __int64 ) & periodic_4484 , Number L ) ; v3 = random_rand ( ) ; etimer_set ( ( __int64 ) & sendtimer , v3 % Number ) ; goto LABEL_5 ; } if ( * @@a1@@ == Number ) { while ( @@v7@@ ) { if ( @@a2@@ == Number && @@a3@@ == & periodic_4484 ) { etimer_reset ( ( __int64 ) & periodic_4484 ) ; v4 = random_rand ( ) ; etimer_set ( ( __int64 ) & sendtimer , v4 % Number ) ; } else if ( @@a2@@ == Number && @@a3@@ == & sendtimer ) { send_udp_packet ( outconn_4485 ) ; } else if ( @@a2@@ == tcpip_event ) { parse_incoming_packet ( ( unsigned __int8 * ) uip_appdata ) ; } LABEL_5 : @@v7@@ = Number ; * @@a1@@ = Number ; } result = Number L ; } else { * @@a1@@ = Number ; result = Number L ; } return result ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "void"}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "_WORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "char", "s": 1}, "location": "r64"}, {"n": "v7", "t": {"T": 1, "n": "char", "s": 1}, "location": "s1"}]} {"name": "parse", "code": "__int64 parse ( ) { unsigned __int16 v0 ; unsigned int @@v1@@ ; __int64 v2 ; char @@v4@@ [ Number ] ; char @@v5@@ ; unsigned __int8 @@v6@@ ; __int16 @@v7@@ ; _BYTE @@v8@@ [ Number ] ; __int16 @@v9@@ ; unsigned __int8 @@v10@@ ; int @@v11@@ ; v0 = packetbuf_datalen ( ) ; @@v11@@ = v0 ; @@v1@@ = ( unsigned __int8 ) v0 ; v2 = packetbuf_dataptr ( ) ; if ( ! ( unsigned __int8 ) frame802154_parse ( v2 , @@v1@@ , @@v4@@ ) || ! ( unsigned int ) packetbuf_hdrreduce ( @@v11@@ - ( unsigned int ) @@v10@@ ) ) return Number ; if ( @@v5@@ ) { if ( @@v7@@ != Number && @@v7@@ != Number ) return Number ; if ( ! ( unsigned int ) is_broadcast_addr ( @@v5@@ , ( __int64 ) @@v8@@ ) ) packetbuf_set_addr ( Number L , @@v8@@ ) ; } packetbuf_set_addr ( Number L , & @@v9@@ ) ; packetbuf_set_attr ( Number L , ( unsigned __int8 ) @@v4@@ [ Number ] ) ; packetbuf_set_attr ( Number L , @@v6@@ ) ; return @@v11@@ - ( unsigned int ) @@v10@@ ; }", "source": [{"n": "v1", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r32"}, {"n": "v11", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v10", "t": {"T": 1, "n": "unsigned __int8", "s": 1}, "location": "s32"}, {"n": "v9", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "s74"}, {"n": "v8", "t": {"T": 2, "n": 10, "s": 1, "t": "_BYTE"}, "location": "s84"}, {"n": "v7", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "s86"}, {"n": "v6", "t": {"T": 1, "n": "unsigned __int8", "s": 1}, "location": "s88"}, {"n": "v5", "t": {"T": 1, "n": "char", "s": 1}, "location": "s91"}, {"n": "v4", "t": {"T": 2, "n": 5, "s": 1, "t": "char"}, "location": "s96"}]}