GreHack-2012/100-GrehAndroidMe-apk/a-class

From aldeid
Jump to navigation Jump to search
You are here
a.class

Description

a.class extracted from GrehAndroidMe.apk with dex2jar.

a.class

package grackme.im.famous;

import java.util.Arrays;

public class a
{
  private static final char[] a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".toCharArray();
  private static final int[] b = new int[256];

  static
  {
    Arrays.fill(b, -1);
    int j = a.length;
    int i = 0;
    while (true)
    {
      if (i >= j)
      {
        b[61] = 0;
        return;
      }
      b[a[i]] = i;
      i += 1;
    }
  }

  public static final byte[] a(String paramString)
  {
    if (paramString != null);
    for (int i = paramString.length(); i == 0; i = 0)
      return new byte[0];
    int k = 0;
    for (int j = 0; ; j = m)
    {
      if (k >= i)
      {
        if ((i - j) % 4 == 0)
          break;
        return null;
      }
      m = j;
      if (b[paramString.charAt(k)] < 0)
        m = j + 1;
      k += 1;
    }
    k = i;
    int m = 0;
    Object localObject;
    int n;
    if (k > 1)
    {
      localObject = b;
      n = k - 1;
      if (localObject[paramString.charAt(n)] <= 0);
    }
    else
    {
      n = ((i - j) * 6 >> 3) - m;
      localObject = new byte[n];
      j = 0;
      i = 0;
    }
    label278: 
    while (true)
    {
      if (j >= n)
      {
        return localObject;
        k = n;
        if (paramString.charAt(n) != '=')
          break;
        m += 1;
        k = n;
        break;
      }
      m = 0;
      k = 0;
      if (k >= 4)
      {
        k = j + 1;
        localObject[j] = ((byte)(m >> 16));
        j = k;
        if (k < n)
        {
          j = k + 1;
          localObject[k] = ((byte)(m >> 8));
          if (j >= n)
            break label278;
          k = j + 1;
          localObject[j] = ((byte)m);
          j = k;
        }
      }
      else
      {
        int i1 = b[paramString.charAt(i)];
        if (i1 >= 0)
          m |= i1 << 18 - k * 6;
        while (true)
        {
          k += 1;
          i += 1;
          break;
          k -= 1;
        }
      }
    }
  }
}

/* Location:           GrehAndroidMe-dex2jar.jar
 * Qualified Name:     grackme.im.famous.a
 * JD-Core Version:    0.6.2
 */