XploitSPY/app/factory/decompiled/smali/c/a/h/d.smali

140 lines
2.4 KiB
Smali
Raw Normal View History

2020-03-24 04:02:59 +08:00
.class public final Lc/a/h/d;
.super Ljava/lang/Object;
.source ""
# direct methods
.method static a(I)Ljava/lang/String;
.locals 2
const/16 v0, 0x3e8
if-lt p0, v0, :cond_4
const/16 v0, 0x1388
if-lt p0, v0, :cond_0
goto :goto_1
:cond_0
const/16 v0, 0x3ec
if-lt p0, v0, :cond_1
const/16 v0, 0x3ee
if-le p0, v0, :cond_2
:cond_1
const/16 v0, 0x3f4
if-lt p0, v0, :cond_3
const/16 v0, 0xbb7
if-gt p0, v0, :cond_3
:cond_2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Code "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p0, " is reserved and may not be used."
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:goto_0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
:cond_3
const/4 p0, 0x0
return-object p0
:cond_4
:goto_1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Code must be in range [1000,5000): "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
goto :goto_0
.end method
.method static a([BJ[BJ)V
.locals 5
array-length v0, p3
const/4 v1, 0x0
:goto_0
int-to-long v2, v1
cmp-long v4, v2, p1
if-gez v4, :cond_0
int-to-long v2, v0
rem-long v2, p4, v2
long-to-int v3, v2
aget-byte v2, p0, v1
aget-byte v3, p3, v3
xor-int/2addr v2, v3
int-to-byte v2, v2
aput-byte v2, p0, v1
add-int/lit8 v1, v1, 0x1
const-wide/16 v2, 0x1
add-long/2addr p4, v2
goto :goto_0
:cond_0
return-void
.end method
.method static b(I)V
.locals 1
invoke-static {p0}, Lc/a/h/d;->a(I)Ljava/lang/String;
move-result-object p0
if-nez p0, :cond_0
return-void
:cond_0
new-instance v0, Ljava/lang/IllegalArgumentException;
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method