what-the-bank/sources/o/C17796znh.java

258 lines
9.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.graphics.drawable.Drawable;
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.google.common.base.Ascii;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Method;
/* renamed from: o.znh, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C17796znh {
private static final byte[] $$a = {49, Ascii.DC2, -60, Byte.MIN_VALUE};
private static final int $$b = 210;
private static int $10 = 0;
private static int $11 = 1;
private static int d = 0;
private static int b = 1;
private static long a = 9051040786702654117L;
private static int c = 784857962;
private static char e = 55973;
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:10:0x0025 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001d */
/* JADX WARN: Type inference failed for: r5v2, types: [int] */
/* JADX WARN: Type inference failed for: r5v3 */
/* JADX WARN: Type inference failed for: r5v5, types: [int] */
/* JADX WARN: Type inference failed for: r5v6, types: [int] */
/* JADX WARN: Type inference failed for: r7v1, types: [int] */
/* JADX WARN: Type inference failed for: r7v4, types: [int] */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0025 -> B:4:0x0029). Please report as a decompilation issue!!! */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void g(short r5, short r6, byte r7, java.lang.Object[] r8) {
/*
int r7 = 115 - r7
int r5 = r5 * 4
int r5 = r5 + 4
byte[] r0 = o.C17796znh.$$a
int r6 = r6 * 4
int r1 = 1 - r6
byte[] r1 = new byte[r1]
r2 = 0
int r6 = 0 - r6
if (r0 != 0) goto L17
r4 = r7
r3 = r2
r7 = r5
goto L29
L17:
r3 = r2
L18:
byte r4 = (byte) r7
r1[r3] = r4
if (r3 != r6) goto L25
java.lang.String r5 = new java.lang.String
r5.<init>(r1, r2)
r8[r2] = r5
return
L25:
int r3 = r3 + 1
r4 = r0[r5]
L29:
int r5 = r5 + 1
int r7 = r7 + r4
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: o.C17796znh.g(short, short, byte, java.lang.Object[]):void");
}
public static String a(byte[] bArr) {
int i = 2 % 2;
int i2 = b + 85;
d = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = {C4711bfN.b(bArr)};
String str = (String) a(objArr);
int i4 = b + 29;
d = i4 % 128;
int i5 = i4 % 2;
return str;
}
private static byte[] e(byte[] bArr) {
int i = 2 % 2;
int i2 = d + 89;
b = i2 % 128;
Object obj = null;
if (i2 % 2 == 0) {
C4711bfN.c(bArr);
obj.hashCode();
throw null;
}
byte[] c2 = C4711bfN.c(bArr);
int i3 = b + 97;
d = i3 % 128;
if (i3 % 2 == 0) {
return c2;
}
obj.hashCode();
throw null;
}
public static byte[] d(String str) {
int i = 2 % 2;
int i2 = d + 83;
b = i2 % 128;
if (i2 % 2 != 0 ? str.length() % 2 == 1 : (str.length() >>> 2) == 0) {
Object[] objArr = new Object[1];
f((char) (58924 - ExpandableListView.getPackedPositionGroup(0L)), 704933467 - (ViewConfiguration.getDoubleTapTimeout() >> 16), new char[]{23382, 1134, 11306, 62182}, new char[]{60128}, new char[]{0, 0, 0, 0}, objArr);
StringBuilder sb = new StringBuilder(((String) objArr[0]).intern());
sb.append(str);
str = sb.toString();
int i3 = d + 43;
b = i3 % 128;
int i4 = i3 % 2;
}
return e(c(str));
}
public static byte[] c(String str) {
int i = 2 % 2;
if (str == null) {
int i2 = b + 115;
d = i2 % 128;
Object obj = null;
if (i2 % 2 == 0) {
return null;
}
obj.hashCode();
throw null;
}
try {
byte[] bytes = str.getBytes("UTF-8");
int i3 = b + 13;
d = i3 % 128;
if (i3 % 2 != 0) {
int i4 = 40 / 0;
}
return bytes;
} catch (UnsupportedEncodingException unused) {
return str.getBytes();
}
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object a(Object[] objArr) {
byte[] bArr = (byte[]) objArr[0];
int i = 2 % 2;
if (bArr != null) {
try {
return new String(bArr, "UTF-8");
} catch (UnsupportedEncodingException unused) {
return new String(bArr);
}
}
int i2 = b;
int i3 = i2 + 121;
d = i3 % 128;
int i4 = i3 % 2;
int i5 = i2 + 9;
d = i5 % 128;
int i6 = i5 % 2;
return null;
}
private static void f(char c2, int i, char[] cArr, char[] cArr2, char[] cArr3, Object[] objArr) {
int i2;
int i3 = 2;
int i4 = 2 % 2;
Nhs nhs = new Nhs();
int length = cArr.length;
char[] cArr4 = new char[length];
int length2 = cArr3.length;
char[] cArr5 = new char[length2];
System.arraycopy(cArr, 0, cArr4, 0, length);
System.arraycopy(cArr3, 0, cArr5, 0, length2);
cArr4[0] = (char) (cArr4[0] ^ c2);
cArr5[2] = (char) (cArr5[2] + ((char) i));
int length3 = cArr2.length;
char[] cArr6 = new char[length3];
nhs.a = 0;
int i5 = $11 + 59;
$10 = i5 % 128;
int i6 = i5 % 2;
while (nhs.a < length3) {
int i7 = $11 + 31;
$10 = i7 % 128;
int i8 = i7 % i3;
try {
Object[] objArr2 = {nhs};
Object obj = xzZ.y.get(263693715);
if (obj == null) {
obj = ((Class) xzZ.c(KeyEvent.getDeadChar(0, 0) + 45, 4 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), (char) (ViewConfiguration.getKeyRepeatDelay() >> 16))).getMethod("t", Object.class);
xzZ.y.put(263693715, obj);
}
int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
Object[] objArr3 = {nhs};
Object obj2 = xzZ.y.get(-484664112);
if (obj2 == null) {
Class cls = (Class) xzZ.c((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 351, TextUtils.lastIndexOf("", '0', 0) + 6, (char) (52128 - (Process.myPid() >> 22)));
byte b2 = (byte) 0;
byte b3 = b2;
Object[] objArr4 = new Object[1];
g(b2, b3, b3, objArr4);
obj2 = cls.getMethod((String) objArr4[0], Object.class);
xzZ.y.put(-484664112, obj2);
}
int intValue2 = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue();
Object[] objArr5 = {nhs, Integer.valueOf(cArr4[nhs.a % 4] * 32718), Integer.valueOf(cArr5[intValue])};
Object obj3 = xzZ.y.get(430099516);
if (obj3 == null) {
obj3 = ((Class) xzZ.c((Process.myPid() >> 22) + 748, ((byte) KeyEvent.getModifierMetaStateMask()) + 6, (char) (ViewConfiguration.getScrollBarSize() >> 8))).getMethod(com.pingan.ai.p.a, Object.class, Integer.TYPE, Integer.TYPE);
xzZ.y.put(430099516, obj3);
}
((Method) obj3).invoke(null, objArr5);
Object[] objArr6 = {Integer.valueOf(cArr4[intValue2] * 32718), Integer.valueOf(cArr5[intValue])};
Object obj4 = xzZ.y.get(1019894806);
if (obj4 != null) {
i2 = 2;
} else {
Class cls2 = (Class) xzZ.c(Process.getGidForName("") + 403, Drawable.resolveOpacity(0, 0) + 5, (char) (21608 - (ViewConfiguration.getDoubleTapTimeout() >> 16)));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr7 = new Object[1];
g(b4, b5, (byte) (b5 + 1), objArr7);
i2 = 2;
obj4 = cls2.getMethod((String) objArr7[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(1019894806, obj4);
}
cArr5[intValue2] = ((Character) ((Method) obj4).invoke(null, objArr6)).charValue();
cArr4[intValue2] = nhs.c;
cArr6[nhs.a] = (char) ((((cArr4[intValue2] ^ cArr2[nhs.a]) ^ (a ^ 9051040786702654117L)) ^ ((int) (c ^ 9051040786702654117L))) ^ ((char) (e ^ 9051040786702654117L)));
nhs.a++;
i3 = i2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
objArr[0] = new String(cArr6);
}
public static String c(byte[] bArr) {
return (String) a(new Object[]{bArr});
}
}