java反编 break label_Java break / label语句可以在字节码混淆中作为“goto”吗?

我试图在反编译一些Java .class文件之后对其进行反混淆,我遇到了一些代码,其中使用标签的方式不认为它们可以被使用.我不知道这是否是反编译器误解标签的错误,或者如果代码是以这种方式有意混淆的.换句话说,在Java字节码中可以使用这样的标签?

请注意,标签显示在相关的break语句之后,而不是之前.它几乎似乎被用作一个goto,而不是一个标签被用来走出一个循环.还有没有循环,所以我有点困惑,他们应该如何在这里使用.

这里发生了什么?我在评论中标记了3个标签(###)

if (i != 96)

{

if ((i ^ 0xFFFFFFFF) != -98)

{

if (i == 98)

break label417; // ### Here are the three breaks... The relevant labels appear later in the code

if (i != 99)

break label540;

if (!bool)

break label461;

}

}

else

{

if (localwb == this.localWB5)

{

if (this.localWB4 != null) {

this.localWB4.a((byte)-92, this);

if (!bool);

}

else

{

this.localWB6.a((byte)-9, this);

}

return true;

}

if (localwb == this.localWB4)

{

this.localWB6.a((byte)-59, this);

return true;

}

if (this.localWB3 != localwb)

break label540;

this.localWB2.a((byte)-38, this);

return true;

}

if (this.localWB6 == localwb)

{

if (this.localWB4 != null) {

this.localWB4.a((byte)-122, this);

if (!bool);

}

else {

this.localWB5.a((byte)-63, this);

}

return true;

}

if (this.localWB4 == localwb)

{

this.localWB5.a((byte)-22, this);

return true;

}

if ((this.localWB2 == localwb) && (this.localWB3.M))

{

this.localWB3.a((byte)-84, this);

return true;

label417: // ### The first label. Note how this next if-statement has inaccessible code... if the above if-statement is true, it would have already returned true; However, the label appears after the return statement, almost as if the label is being used as a goto.

if (localwb == this.localWB2)

{

this.localWB6.a((byte)-86, this);

return true;

}

if (this.localWB3 == localwb)

{

this.localWB5.a((byte)-31, this);

return true;

label461: // ### The second label

if ((this.localWB6 == localwb) || (this.localWB4 == localwb))

{

this.localWB2.a((byte)-60, this);

return true;

}

if (localwb == this.localWB5)

{

if (this.localWB3.M)

{

this.localWB3.a((byte)-44, this);

if (!bool);

}

else {

this.localWB2.a((byte)-9, this);

}

return true;

}

}

}

label540: // ### The final label.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值