what-the-bank/sources/com/facetec/sdk/C0131r.java

511 lines
23 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.facetec.sdk;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.media.AudioTrack;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import org.bouncycastle.i18n.LocalizedMessage;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: com.facetec.sdk.r, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0131r {
private static final byte[] $$a = null;
private static final int $$b = 0;
private static int $10;
private static int $11;
private static int[] k;
private static int p;
private static boolean q;
private static int r;
private static boolean s;
private static char[] t;
private static int x;
List<ab> d = new ArrayList();
List<String> c = new ArrayList();
List<List<Integer>> a = new ArrayList();
private List<List<ab>> g = new ArrayList();
/* renamed from: o, reason: collision with root package name */
private List<List<ab>> f6457o = new ArrayList();
List<List<List<ab>>> b = new ArrayList();
List<List<List<ab>>> e = new ArrayList();
List<List<List<ab>>> h = new ArrayList();
private x n = x.NOT_RAN;
private x m = x.NOT_RAN;
x j = x.NOT_RAN;
x i = x.NOT_RAN;
x f = x.NOT_RAN;
private p l = new p();
/* JADX WARN: Removed duplicated region for block: B:10:0x0024 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001c */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0024 -> B:4:0x0028). 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 w(byte r5, int r6, byte r7, java.lang.Object[] r8) {
/*
byte[] r0 = com.facetec.sdk.C0131r.$$a
int r7 = r7 << 2
int r7 = 3 - r7
int r5 = r5 << 2
int r6 = 121 - r6
int r1 = r5 + 1
byte[] r1 = new byte[r1]
r2 = 0
if (r0 != 0) goto L14
r3 = r5
r4 = r2
goto L28
L14:
r3 = r2
L15:
byte r4 = (byte) r6
r1[r3] = r4
int r4 = r3 + 1
if (r3 != r5) goto L24
java.lang.String r5 = new java.lang.String
r5.<init>(r1, r2)
r8[r2] = r5
return
L24:
int r7 = r7 + 1
r3 = r0[r7]
L28:
int r6 = r6 + r3
r3 = r4
goto L15
*/
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.C0131r.w(byte, int, byte, java.lang.Object[]):void");
}
/* JADX INFO: Access modifiers changed from: package-private */
public final JSONObject c() {
List<ab> list = this.d;
JSONArray jSONArray = new JSONArray();
int i = 0;
while (i < list.size()) {
jSONArray.put(list.get(i).c());
i++;
x = (p + 109) % 128;
}
JSONArray a = ad.a(this.g);
JSONArray a2 = ad.a(this.f6457o);
JSONArray c = ad.c(this.b);
JSONArray c2 = ad.c(this.e);
JSONArray c3 = ad.c(this.h);
JSONObject jSONObject = new JSONObject();
try {
Object[] objArr = new Object[1];
u(new int[]{-178608211, -1633403398}, (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 2, objArr);
jSONObject.put(((String) objArr[0]).intern(), jSONArray.toString());
Object[] objArr2 = new Object[1];
v(ImageFormat.getBitsPerPixel(0) + 128, null, null, "\u0083\u0082\u0081", objArr2);
jSONObject.put(((String) objArr2[0]).intern(), this.c.toString());
Object[] objArr3 = new Object[1];
v((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 126, null, null, "\u0083\u0084", objArr3);
jSONObject.put(((String) objArr3[0]).intern(), this.a.toString());
Object[] objArr4 = new Object[1];
u(new int[]{290493709, -1173295550, 825651062, 1654398209}, 5 - View.MeasureSpec.getSize(0), objArr4);
jSONObject.put(((String) objArr4[0]).intern(), a.toString());
Object[] objArr5 = new Object[1];
u(new int[]{337227362, 629268950, 825651062, 1654398209}, 5 - (ViewConfiguration.getEdgeSlop() >> 16), objArr5);
jSONObject.put(((String) objArr5[0]).intern(), a2.toString());
Object[] objArr6 = new Object[1];
u(new int[]{-1219793642, -433713362, -1100915396, 2109361296}, (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 4, objArr6);
jSONObject.put(((String) objArr6[0]).intern(), c.toString());
Object[] objArr7 = new Object[1];
v(126 - TextUtils.indexOf((CharSequence) "", '0'), null, null, "\u0087\u0083\u0082\u0086\u0085", objArr7);
jSONObject.put(((String) objArr7[0]).intern(), c2.toString());
Object[] objArr8 = new Object[1];
v((TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 127, null, null, "\u0088\u0083\u0082\u0086\u0085", objArr8);
jSONObject.put(((String) objArr8[0]).intern(), c3.toString());
Object[] objArr9 = new Object[1];
u(new int[]{-1119225337, -1656618766, 1646177317, -2070106366}, (ViewConfiguration.getTapTimeout() >> 16) + 5, objArr9);
jSONObject.put(((String) objArr9[0]).intern(), String.valueOf(this.n.b));
Object[] objArr10 = new Object[1];
u(new int[]{-228106316, -1404901549, 1646177317, -2070106366}, TextUtils.indexOf((CharSequence) "", '0') + 6, objArr10);
jSONObject.put(((String) objArr10[0]).intern(), String.valueOf(this.m.b));
Object[] objArr11 = new Object[1];
v(TextUtils.getOffsetBefore("", 0) + 127, null, null, "\u008a\u0085\u0089\u0086\u0085", objArr11);
jSONObject.put(((String) objArr11[0]).intern(), String.valueOf(this.j.b));
Object[] objArr12 = new Object[1];
u(new int[]{-872789119, 586487042, -831668276, 2022164869}, (-16777211) - Color.rgb(0, 0, 0), objArr12);
jSONObject.put(((String) objArr12[0]).intern(), String.valueOf(this.i.b));
Object[] objArr13 = new Object[1];
u(new int[]{-872789119, 586487042, -1057529026, 1011699821}, (ViewConfiguration.getPressedStateDuration() >> 16) + 5, objArr13);
jSONObject.put(((String) objArr13[0]).intern(), String.valueOf(this.f.b));
Object[] objArr14 = new Object[1];
u(new int[]{-382006841, -793499239, 1417387283, -1792986940}, 5 - (ViewConfiguration.getEdgeSlop() >> 16), objArr14);
jSONObject.put(((String) objArr14[0]).intern(), new JSONObject().toString());
} catch (JSONException unused) {
}
int i2 = p + 49;
x = i2 % 128;
if (i2 % 2 != 0) {
return jSONObject;
}
throw null;
}
private static void u(int[] iArr, int i, Object[] objArr) {
int i2;
int[] iArr2;
gr grVar = new gr();
char[] cArr = new char[4];
int i3 = 1;
char[] cArr2 = new char[iArr.length << 1];
int[] iArr3 = k;
int i4 = 2;
int i5 = 16;
int i6 = 0;
if (iArr3 != null) {
int i7 = ($10 + 11) % 128;
$11 = i7;
int length = iArr3.length;
int[] iArr4 = new int[length];
$10 = (i7 + 9) % 128;
int i8 = 0;
while (i8 < length) {
int i9 = $10 + 81;
$11 = i9 % 128;
if (i9 % i4 == 0) {
try {
Object[] objArr2 = {Integer.valueOf(iArr3[i8])};
Object obj = bo.s.get(1122047378);
if (obj == null) {
Class cls = (Class) bo.e((ViewConfiguration.getKeyRepeatDelay() >> i5) + 1020, (char) (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 23 - Color.blue(0));
Object[] objArr3 = new Object[1];
w((byte) 0, 5, (byte) 0, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
bo.s.put(1122047378, obj);
}
iArr4[i8] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
} else {
try {
Object[] objArr4 = {Integer.valueOf(iArr3[i8])};
Object obj2 = bo.s.get(1122047378);
if (obj2 == null) {
Class cls2 = (Class) bo.e(View.combineMeasuredStates(0, 0) + 1020, (char) View.MeasureSpec.getMode(0), 24 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)));
Object[] objArr5 = new Object[1];
w((byte) 0, 5, (byte) 0, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
bo.s.put(1122047378, obj2);
}
iArr4[i8] = ((Integer) ((Method) obj2).invoke(null, objArr4)).intValue();
i8++;
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
i4 = 2;
i5 = 16;
}
iArr3 = iArr4;
}
int length2 = iArr3.length;
int[] iArr5 = new int[length2];
int[] iArr6 = k;
if (iArr6 != null) {
int length3 = iArr6.length;
int[] iArr7 = new int[length3];
int i10 = 0;
while (i10 < length3) {
try {
Object[] objArr6 = new Object[i3];
objArr6[i6] = Integer.valueOf(iArr6[i10]);
Object obj3 = bo.s.get(1122047378);
if (obj3 == null) {
Class cls3 = (Class) bo.e((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 1019, (char) (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 23 - TextUtils.getOffsetBefore("", i6));
Object[] objArr7 = new Object[1];
iArr2 = iArr6;
w((byte) 0, 5, (byte) 0, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE);
bo.s.put(1122047378, obj3);
} else {
iArr2 = iArr6;
}
iArr7[i10] = ((Integer) ((Method) obj3).invoke(null, objArr6)).intValue();
i10++;
iArr6 = iArr2;
i3 = 1;
i6 = 0;
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
}
i2 = i6;
iArr6 = iArr7;
} else {
i2 = 0;
}
System.arraycopy(iArr6, i2, iArr5, i2, length2);
grVar.a = i2;
while (grVar.a < iArr.length) {
$10 = ($11 + 53) % 128;
cArr[0] = (char) (iArr[grVar.a] >> 16);
cArr[1] = (char) iArr[grVar.a];
cArr[2] = (char) (iArr[grVar.a + 1] >> 16);
cArr[3] = (char) iArr[grVar.a + 1];
grVar.b = (cArr[0] << 16) + cArr[1];
grVar.d = (cArr[2] << 16) + cArr[3];
gr.c(iArr5);
int i11 = 0;
for (int i12 = 16; i11 < i12; i12 = 16) {
grVar.b ^= iArr5[i11];
try {
Object[] objArr8 = {grVar, Integer.valueOf(gr.c(grVar.b)), grVar, grVar};
Object obj4 = bo.s.get(-624985222);
if (obj4 == null) {
Class cls4 = (Class) bo.e(315 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), (char) (48935 - (ViewConfiguration.getKeyRepeatDelay() >> 16)), TextUtils.indexOf("", "", 0, 0) + 32);
Object[] objArr9 = new Object[1];
w((byte) 0, 8, (byte) 0, objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Integer.TYPE, Object.class, Object.class);
bo.s.put(-624985222, obj4);
}
int intValue = ((Integer) ((Method) obj4).invoke(null, objArr8)).intValue();
grVar.b = grVar.d;
grVar.d = intValue;
i11++;
} catch (Throwable th4) {
Throwable cause4 = th4.getCause();
if (cause4 == null) {
throw th4;
}
throw cause4;
}
}
int i13 = grVar.b;
grVar.b = grVar.d;
grVar.d = i13;
grVar.d ^= iArr5[16];
grVar.b ^= iArr5[17];
int i14 = grVar.b;
int i15 = grVar.d;
cArr[0] = (char) (grVar.b >>> 16);
cArr[1] = (char) grVar.b;
cArr[2] = (char) (grVar.d >>> 16);
cArr[3] = (char) grVar.d;
gr.c(iArr5);
cArr2[grVar.a << 1] = cArr[0];
cArr2[(grVar.a << 1) + 1] = cArr[1];
cArr2[(grVar.a << 1) + 2] = cArr[2];
cArr2[(grVar.a << 1) + 3] = cArr[3];
try {
Object[] objArr10 = {grVar, grVar};
Object obj5 = bo.s.get(2084039741);
if (obj5 == null) {
obj5 = ((Class) bo.e((ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 1781, (char) ((ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 50339), (ViewConfiguration.getScrollDefaultDelay() >> 16) + 24)).getMethod("s", Object.class, Object.class);
bo.s.put(2084039741, obj5);
}
((Method) obj5).invoke(null, objArr10);
} catch (Throwable th5) {
Throwable cause5 = th5.getCause();
if (cause5 == null) {
throw th5;
}
throw cause5;
}
}
objArr[0] = new String(cArr2, 0, i);
}
private static void v(int i, String str, int[] iArr, String str2, Object[] objArr) {
char[] cArr;
int length;
char[] cArr2;
String str3 = str2;
int i2 = $10 + 47;
$11 = i2 % 128;
byte[] bArr = str3;
if (i2 % 2 == 0) {
throw new ArithmeticException();
}
if (str3 != null) {
bArr = str3.getBytes(LocalizedMessage.DEFAULT_ENCODING);
}
byte[] bArr2 = bArr;
if (str != null) {
int i3 = $11 + 55;
$10 = i3 % 128;
if (i3 % 2 != 0) {
throw new ArithmeticException();
}
cArr = str.toCharArray();
} else {
cArr = str;
}
char[] cArr3 = cArr;
gi giVar = new gi();
char[] cArr4 = t;
double d = 0.0d;
if (cArr4 != null) {
int i4 = $11 + 51;
$10 = i4 % 128;
if (i4 % 2 != 0) {
length = cArr4.length;
cArr2 = new char[length];
} else {
length = cArr4.length;
cArr2 = new char[length];
}
int i5 = 0;
while (i5 < length) {
try {
Object[] objArr2 = {Integer.valueOf(cArr4[i5])};
Object obj = bo.s.get(1952646647);
if (obj == null) {
Class cls = (Class) bo.e(1091 - Color.red(0), (char) (View.resolveSize(0, 0) + 2832), 23 - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == d ? 0 : -1)));
Object[] objArr3 = new Object[1];
w((byte) 0, 9, (byte) 0, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
bo.s.put(1952646647, obj);
}
cArr2[i5] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i5++;
d = 0.0d;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr4 = cArr2;
}
try {
Object[] objArr4 = {Integer.valueOf(r)};
Object obj2 = bo.s.get(-1943762483);
if (obj2 == null) {
Class cls2 = (Class) bo.e(KeyEvent.getDeadChar(0, 0) + 1570, (char) ((AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 11060), View.resolveSizeAndState(0, 0, 0) + 23);
Object[] objArr5 = new Object[1];
w((byte) 0, 2, (byte) 0, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
bo.s.put(-1943762483, obj2);
}
int intValue = ((Integer) ((Method) obj2).invoke(null, objArr4)).intValue();
if (s) {
$10 = ($11 + 75) % 128;
giVar.d = bArr2.length;
char[] cArr5 = new char[giVar.d];
giVar.e = 0;
while (giVar.e < giVar.d) {
cArr5[giVar.e] = (char) (cArr4[bArr2[(giVar.d - 1) - giVar.e] + i] - intValue);
try {
Object[] objArr6 = {giVar, giVar};
Object obj3 = bo.s.get(655191618);
if (obj3 == null) {
Class cls3 = (Class) bo.e(218 - TextUtils.getOffsetBefore("", 0), (char) (ViewConfiguration.getEdgeSlop() >> 16), 25 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)));
Object[] objArr7 = new Object[1];
w((byte) 0, 0, (byte) 0, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
bo.s.put(655191618, obj3);
}
((Method) obj3).invoke(null, objArr6);
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
objArr[0] = new String(cArr5);
return;
}
if (!q) {
giVar.d = iArr.length;
char[] cArr6 = new char[giVar.d];
giVar.e = 0;
while (giVar.e < giVar.d) {
cArr6[giVar.e] = (char) (cArr4[iArr[(giVar.d - 1) - giVar.e] - i] - intValue);
giVar.e++;
}
objArr[0] = new String(cArr6);
return;
}
giVar.d = cArr3.length;
char[] cArr7 = new char[giVar.d];
giVar.e = 0;
while (giVar.e < giVar.d) {
cArr7[giVar.e] = (char) (cArr4[cArr3[(giVar.d - 1) - giVar.e] - i] - intValue);
try {
Object[] objArr8 = {giVar, giVar};
Object obj4 = bo.s.get(655191618);
if (obj4 == null) {
Class cls4 = (Class) bo.e(217 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), (char) (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), TextUtils.lastIndexOf("", '0', 0, 0) + 25);
Object[] objArr9 = new Object[1];
w((byte) 0, 0, (byte) 0, objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
bo.s.put(655191618, obj4);
}
((Method) obj4).invoke(null, objArr8);
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
}
objArr[0] = new String(cArr7);
} catch (Throwable th4) {
Throwable cause4 = th4.getCause();
if (cause4 == null) {
throw th4;
}
throw cause4;
}
}
static void init$0() {
$$a = new byte[]{56, 6, -98, -108};
$$b = 213;
}
static {
init$0();
$10 = 0;
$11 = 1;
p = 0;
x = 1;
k = new int[]{1943113243, 1875771514, -12306610, -373335641, -1376300888, 122685541, 640610511, -1702008962, -2008405339, 1044914050, -534673801, 1768887581, -1152127197, 1956399136, 1561764476, 1439469425, -486204590, 479914369};
r = -2056768582;
q = true;
t = new char[]{12841, 12819, 12827, 12818, 12822, 12844, 13288, 13289, 12830, 13291};
s = true;
}
}