b.smali

.class public Lcom/cmcm/security/checkVirus/cloudsdk/b;
.super Ljava/lang/Object;
.source "CloudBehaviorDecoder.java"


# static fields
.field private static synthetic $assertionsDisabled:Z


# instance fields
.field private aPC:[B


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 6
    const-class v0, Lcom/cmcm/security/checkVirus/cloudsdk/b;

    invoke-virtual {v0}, Ljava/lang/Class;->desiredAssertionStatus()Z

    move-result v0

    if-nez v0, :cond_c

    const/4 v0, 0x1

    :goto_9
    sput-boolean v0, Lcom/cmcm/security/checkVirus/cloudsdk/b;->$assertionsDisabled:Z

    return-void

    :cond_c
    const/4 v0, 0x0

    goto :goto_9
.end method

.method public constructor <init>(Ljava/lang/String;)V
    .registers 4

    .prologue
    .line 53
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 47
    const/16 v0, 0x100

    new-array v0, v0, [B

    iput-object v0, p0, Lcom/cmcm/security/checkVirus/cloudsdk/b;->aPC:[B

    .line 54
    new-instance v0, Ljava/math/BigInteger;

    const/16 v1, 0x10

    invoke-direct {v0, p1, v1}, Ljava/math/BigInteger;-><init>(Ljava/lang/String;I)V

    .line 55
    iget-object v1, p0, Lcom/cmcm/security/checkVirus/cloudsdk/b;->aPC:[B

    invoke-static {v0, v1}, Lcom/cmcm/security/checkVirus/cloudsdk/b;->a(Ljava/math/BigInteger;[B)V

    .line 56
    return-void
.end method

.method private static T([B)[B
    .registers 7

    .prologue
    const/4 v1, 0x0

    .line 60
    sget-boolean v0, Lcom/cmcm/security/checkVirus/cloudsdk/b;->$assertionsDisabled:Z

    if-nez v0, :cond_10

    array-length v0, p0

    const/16 v2, 0x20

    if-eq v0, v2, :cond_10

    new-instance v0, Ljava/lang/AssertionError;

    invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V

    throw v0

    .line 62
    :cond_10
    array-length v0, p0

    shl-int/lit8 v0, v0, 0x3

    new-array v3, v0, [B

    move v0, v1

    .line 64
    :goto_16
    array-length v2, p0

    if-ge v0, v2, :cond_31

    move v2, v1

    .line 65
    :goto_1a
    const/16 v4, 0x8

    if-ge v2, v4, :cond_2e

    .line 66
    shl-int/lit8 v4, v0, 0x3

    add-int/lit8 v4, v4, 0x7

    sub-int/2addr v4, v2

    aget-byte v5, p0, v0

    shr-int/2addr v5, v2

    and-int/lit8 v5, v5, 0x1

    int-to-byte v5, v5

    aput-byte v5, v3, v4

    .line 65
    add-int/lit8 v2, v2, 0x1

    goto :goto_1a

    .line 64
    :cond_2e
    add-int/lit8 v0, v0, 0x1

    goto :goto_16

    .line 69
    :cond_31
    return-object v3
.end method

.method private static U([B)[B
    .registers 6

    .prologue
    const/4 v2, 0x0

    const/16 v4, 0x20

    .line 131
    array-length v0, p0

    if-ne v0, v4, :cond_7

    .line 144
    :goto_6
    return-object p0

    .line 134
    :cond_7
    new-array v0, v4, [B

    move v1, v2

    .line 136
    :goto_a
    if-ge v1, v4, :cond_1f

    .line 137
    array-length v3, p0

    rsub-int/lit8 v3, v3, 0x20

    if-lt v1, v3, :cond_1c

    .line 138
    array-length v3, p0

    add-int/lit8 v3, v3, -0x20

    add-int/2addr v3, v1

    aget-byte v3, p0, v3

    aput-byte v3, v0, v1

    .line 136
    :goto_19
    add-int/lit8 v1, v1, 0x1

    goto :goto_a

    .line 141
    :cond_1c
    aput-byte v2, v0, v1

    goto :goto_19

    :cond_1f
    move-object p0, v0

    .line 144
    goto :goto_6
.end method

.method private static a(Ljava/math/BigInteger;[B)V
    .registers 6

    .prologue
    const/16 v3, 0x100

    const/4 v1, 0x0

    .line 150
    sget-boolean v0, Lcom/cmcm/security/checkVirus/cloudsdk/b;->$assertionsDisabled:Z

    if-nez v0, :cond_10

    array-length v0, p1

    if-eq v0, v3, :cond_10

    new-instance v0, Ljava/lang/AssertionError;

    invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V

    throw v0

    .line 152
    :cond_10
    invoke-virtual {p0}, Ljava/math/BigInteger;->toByteArray()[B

    move-result-object v0

    invoke-static {v0}, Lcom/cmcm/security/checkVirus/cloudsdk/b;->U([B)[B

    move-result-object v0

    invoke-static {v0}, Lcom/cmcm/security/checkVirus/cloudsdk/b;->T([B)[B

    move-result-object v0

    invoke-static {v0}, Lcom/cmcm/security/checkVirus/cloudsdk/b;->reverse([B)[B

    move-result-object v2

    .line 155
    sget-boolean v0, Lcom/cmcm/security/checkVirus/cloudsdk/b;->$assertionsDisabled:Z

    if-nez v0, :cond_2d

    array-length v0, v2

    if-le v0, v3, :cond_2d

    new-instance v0, Ljava/lang/AssertionError;

    invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V

    throw v0

    :cond_2d
    move v0, v1

    .line 157
    :goto_2e
    array-length v3, p1

    if-ge v0, v3, :cond_3e

    .line 158
    array-length v3, v2

    if-ge v0, v3, :cond_3b

    .line 159
    aget-byte v3, v2, v0

    aput-byte v3, p1, v0

    .line 157
    :goto_38
    add-int/lit8 v0, v0, 0x1

    goto :goto_2e

    .line 161
    :cond_3b
    aput-byte v1, p1, v0

    goto :goto_38

    .line 163
    :cond_3e
    return-void
.end method

.method private static reverse([B)[B
    .registers 4

    .prologue
    .line 166
    array-length v0, p0

    new-array v1, v0, [B

    .line 168
    const/4 v0, 0x0

    :goto_4
    array-length v2, p0

    if-ge v0, v2, :cond_12

    .line 169
    array-length v2, p0

    add-int/lit8 v2, v2, -0x1

    sub-int/2addr v2, v0

    aget-byte v2, p0, v2

    aput-byte v2, v1, v0

    .line 168
    add-int/lit8 v0, v0, 0x1

    goto :goto_4

    .line 171
    :cond_12
    return-object v1
.end method