what-the-bank/sources/o/AbstractApplicationC17694yv...

395 lines
18 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.app.Application;
import android.content.Context;
import android.graphics.Color;
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import com.scb.phone.AndroidApplication;
import com.scb.phone.data.di.CacheModule;
import com.scb.phone.data.di.DataModule;
import com.scb.phone.data.di.MockCacheModule;
import com.scb.phone.data.network.di.InterceptorModule;
import com.scb.phone.data.network.di.NetworkModule;
import com.scb.phone.data.network.di.ServiceGeneratorModule;
import com.scb.phone.data.network.di.ServiceModule;
import com.scb.phone.data.network.di.ServiceResponseConverterModule;
import com.scb.phone.data.network.di.service.easycash.EasycashServiceModule;
import com.scb.phone.data.network.di.service.prepaid.PrepaidServiceModule;
import com.scb.phone.di.AndroidModule;
import com.scb.phone.domain.di.DomainNetworkModule;
import com.scb.phone.integration.di.LevelUpIntegrationModule;
import com.scb.phone.integration.di.NhoxIntegrationModule;
import com.scb.phone.presentation.di.InAppUpdateHelperModule;
import com.scb.phone.security.di.AccessibilitySecurityModule;
import com.scb.phone.security.di.HasherModule;
import dagger.hilt.android.internal.modules.ApplicationContextModule;
import java.lang.reflect.Method;
import o.CaK;
import org.bouncycastle.crypto.tls.CipherSuite;
/* renamed from: o.yvA, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractApplicationC17694yvA extends Application implements fPA {
private static final byte[] $$g = {76, 73, -112, -126};
private static final int $$h = 39;
private static int $10 = 0;
private static int $11 = 1;
private static int a = 0;
private static int b = 1;
private static char[] c = {40064, 40054, 40076, 40049, 40071, 40071, 40053, 40055, 40067, 40064, 40034, 40012, 40071, 40067, 40012, 40054, 40073, 40067, 39997, 40056, 40044, 40020, 40045, 39995, 40001, 39992, 39998, 39998, 39993, 40001, 40006, 39998, 40001, 40001, 40001, 40002, 39998, 40006, 40042, 40040, 40047, 40000, 40001, 40000, 39998, 39999, 39993, 40007, 40005, 40006, 40007, 39996, 39997, 39992, 40001, 40041, 40040, 40046, 40000, 39999, 39997, 39992, 39994, 40001, 40005, 40005, 40007, 40007, 40007, 40005, 40004, 40165, 40172, 40210, 40165, 40211, 40160, 40165, 40210, 40166, 40215, 40165, 40209, 40211, 40167, 40172, 40160, 40167, 40220, 40211, 40167, 40211, 40211, 40165, 40160, 40220, 40160, 40166, 40166, 40165, 40173, 40164, 40163, 40210, 40173, 40167, 40162, 40161, 40220, 40167, 40210, 40163, 40172, 40161, 40167, 40172, 40166, 40167, 40163, 40167, 40163, 40160, 40208, 40164, 40161, 40211, 40167, 40208, 40167, 40211, 40208, 40208, 40220, 40211, 40167, 40033, 40116, 40108, 40111, 40118, 40118, 40116, 40147, 40117, 40099, 40098, 40116, 40157, 40117, 40110, 40108, 40116, 40159, 40156, 40117, 40104, 40104, 40109, 40108, 40118, 40139, 40137, 40147, 40138, 40097, 40097, 40138, 40116, 40117, 40159, 40117, 40099, 40109, 40111, 40111, 40109, 40110, 40110, 40108, 40116, 40156, 40116, 40139, 40157, 40157, 40117, 40099, 40097, 40097, 40108, 40117, 40117, 40112, 40157, 40157, 40117, 40098, 40139, 40139, 39999, 40037, 40063, 40057, 40058, 40029, 39999, 39972, 40026, 40037, 40046, 40044, 40035, 40034, 40037, 40038, 40034, 40032, 40033, 40045, 40046, 40045, 40044, 40042, 40044, 40039, 40007, 40026, 40037, 40038, 40032, 40040, 40033, 40032, 40041, 40033, 40056, 40026, 40001, 40037, 40032, 40034, 40032, 40032, 40057, 40056, 40032, 40034, 40032, 40002, 40003, 40034, 40037, 40005, 40003, 40035, 40039, 40007, 40007, 40032, 40033, 40045, 40039, 40056, 40026, 40025, 40031, 39995, 40001, 40038, 40038, 40034, 40058, 40056, 39955, 39972, 39992, 39992, 39992, 39993, 40000, 39992, 39999, 39999, 40007, 40047, 40005, 40007, 40002, 40001, 40001, 39972, 40003, 40047, 40040, 40042, 40012, 39972, 39994, 39994, 39992, 39995, 40012, 40040, 40001, 39992, 39994, 39973, 39993, 39997, 40005, 40007, 39992, 40002, 40040};
private boolean d = false;
private final C13071fPr e = new C13071fPr(new InterfaceC13074fPu(this) { // from class: o.yvA.5
private AbstractApplicationC17694yvA b;
{
this.b = this;
}
@Override // o.InterfaceC13074fPu
public final Object c() {
CaK.HBt hBt = new CaK.HBt((byte) 0);
hBt.e = new ApplicationContextModule(this.b);
if (hBt.d == null) {
hBt.d = new AccessibilitySecurityModule();
}
if (hBt.b == null) {
hBt.b = new AndroidModule();
}
fPJ.e(hBt.e, ApplicationContextModule.class);
if (hBt.a == null) {
hBt.a = new CacheModule();
}
if (hBt.c == null) {
hBt.c = new DataModule();
}
if (hBt.f == null) {
hBt.f = new DomainNetworkModule();
}
if (hBt.h == null) {
hBt.h = new EasycashServiceModule();
}
if (hBt.g == null) {
hBt.g = new HasherModule();
}
if (hBt.j == null) {
hBt.j = new InAppUpdateHelperModule();
}
if (hBt.i == null) {
hBt.i = new InterceptorModule();
}
if (hBt.k == null) {
hBt.k = new LevelUpIntegrationModule();
}
if (hBt.n == null) {
hBt.n = new MockCacheModule();
}
if (hBt.f8120o == null) {
hBt.f8120o = new NetworkModule();
}
if (hBt.l == null) {
hBt.l = new NhoxIntegrationModule();
}
if (hBt.m == null) {
hBt.m = new PrepaidServiceModule();
}
if (hBt.s == null) {
hBt.s = new ServiceGeneratorModule();
}
if (hBt.p == null) {
hBt.p = new ServiceModule();
}
if (hBt.t == null) {
hBt.t = new ServiceResponseConverterModule();
}
return new CaK.saX(hBt.d, hBt.b, hBt.e, hBt.a, hBt.c, hBt.f, hBt.h, hBt.g, hBt.j, hBt.i, hBt.k, hBt.n, hBt.f8120o, hBt.l, hBt.m, hBt.s, hBt.p, hBt.t, (byte) 0);
}
});
private static void s(int i, int i2, int i3, Object[] objArr) {
int i4 = i3 * 4;
int i5 = (i * 2) + 71;
int i6 = (i2 * 2) + 4;
byte[] bArr = $$g;
byte[] bArr2 = new byte[1 - i4];
int i7 = 0 - i4;
int i8 = -1;
if (bArr == null) {
int i9 = i6 + (-i7);
i6++;
i5 = i9;
}
while (true) {
i8++;
bArr2[i8] = (byte) i5;
if (i8 == i7) {
objArr[0] = new String(bArr2, 0);
return;
}
int i10 = i6;
i6 = i10 + 1;
i5 += -bArr[i6];
}
}
@Override // o.fPC
public final Object y_() {
int i = 2 % 2;
int i2 = b + 77;
a = i2 % 128;
int i3 = i2 % 2;
Object y_ = this.e.y_();
int i4 = b + 123;
a = i4 % 128;
int i5 = i4 % 2;
return y_;
}
@Override // android.app.Application
public void onCreate() {
int i = 2 % 2;
int i2 = a + 61;
b = i2 % 128;
if (i2 % 2 != 0) {
if (!this.d) {
this.d = true;
((neu) y_()).e((AndroidApplication) this);
int i3 = b + 11;
a = i3 % 128;
int i4 = i3 % 2;
}
super.onCreate();
return;
}
throw null;
}
@Override // android.content.ContextWrapper
public void attachBaseContext(Context context) {
int i = 2 % 2;
int i2 = a + 91;
b = i2 % 128;
int i3 = i2 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
Object obj = null;
r(new int[]{0, 18, 25, 4}, true, null, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
r(new int[]{18, 5, 0, 0}, false, new byte[]{1, 0, 0, 0, 1}, objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue >= 99000) {
int i4 = a + 57;
b = i4 % 128;
if (i4 % 2 == 0) {
obj.hashCode();
throw null;
}
if (intValue <= 99999) {
return;
}
}
Context applicationContext = context != null ? context.getApplicationContext() : context;
if (applicationContext != null) {
try {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c((ViewConfiguration.getKeyRepeatTimeout() >> 16) + 492, (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 5, (char) View.MeasureSpec.makeMeasureSpec(0, 0))).getMethod("a", null);
xzZ.y.put(125943855, obj2);
}
Object invoke = ((Method) obj2).invoke(null, null);
Object[] objArr3 = new Object[1];
r(new int[]{23, 48, 0, 23}, true, new byte[]{1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1}, objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
r(new int[]{71, 64, CipherSuite.TLS_RSA_PSK_WITH_AES_128_CBC_SHA256, 60}, true, null, objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
r(new int[]{135, 64, 115, 0}, false, new byte[]{0, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0}, objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
r(new int[]{199, 74, 0, 0}, false, new byte[]{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1}, objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
r(new int[]{273, 5, 0, 0}, true, new byte[]{0, 0, 0, 0, 1}, objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
r(new int[]{278, 36, 0, 0}, true, new byte[]{1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0}, objArr8);
Object[] objArr9 = {applicationContext, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj3 = xzZ.y.get(1656189573);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(487 - TextUtils.getTrimmedLength(""), 6 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), (char) Color.alpha(0))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj3);
}
((Method) obj3).invoke(invoke, objArr9);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
private static void r(int[] iArr, boolean z, byte[] bArr, Object[] objArr) {
int i;
char[] cArr;
int i2 = 2;
int i3 = 2 % 2;
TVH tvh = new TVH();
int i4 = 0;
int i5 = iArr[0];
int i6 = iArr[1];
int i7 = iArr[2];
int i8 = iArr[3];
char[] cArr2 = c;
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
int i9 = 0;
while (i9 < length) {
int i10 = $11 + 23;
$10 = i10 % 128;
int i11 = i10 % i2;
try {
Object[] objArr2 = new Object[1];
objArr2[i4] = Integer.valueOf(cArr2[i9]);
Object obj = xzZ.y.get(1645349359);
if (obj != null) {
cArr = cArr2;
} else {
Class cls = (Class) xzZ.c((ViewConfiguration.getMinimumFlingVelocity() >> 16) + 223, (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 4, (char) (41977 - TextUtils.indexOf("", "")));
byte b2 = (byte) i4;
byte b3 = b2;
cArr = cArr2;
Object[] objArr3 = new Object[1];
s(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1645349359, obj);
}
cArr3[i9] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i9++;
cArr2 = cArr;
i2 = 2;
i4 = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr3;
}
char[] cArr4 = new char[i6];
System.arraycopy(cArr2, i5, cArr4, 0, i6);
if (bArr != null) {
char[] cArr5 = new char[i6];
tvh.c = 0;
char c2 = 0;
while (tvh.c < i6) {
if (bArr[tvh.c] == 1) {
int i12 = $10 + 15;
$11 = i12 % 128;
if (i12 % 2 == 0) {
int i13 = tvh.c;
Object[] objArr4 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c2)};
Object obj2 = xzZ.y.get(850398076);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(TextUtils.lastIndexOf("", '0') + 503, (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 4, (char) ((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 53))).getMethod("F", Integer.TYPE, Integer.TYPE);
xzZ.y.put(850398076, obj2);
}
cArr5[i13] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
throw null;
}
int i14 = tvh.c;
Object[] objArr5 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c2)};
Object obj3 = xzZ.y.get(850398076);
if (obj3 == null) {
obj3 = ((Class) xzZ.c((ViewConfiguration.getFadingEdgeLength() >> 16) + 502, TextUtils.getOffsetBefore("", 0) + 5, (char) ((ViewConfiguration.getWindowTouchSlop() >> 8) + 54))).getMethod("F", Integer.TYPE, Integer.TYPE);
xzZ.y.put(850398076, obj3);
}
cArr5[i14] = ((Character) ((Method) obj3).invoke(null, objArr5)).charValue();
} else {
int i15 = tvh.c;
Object[] objArr6 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c2)};
Object obj4 = xzZ.y.get(1084521042);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(MotionEvent.axisFromString("") + 16, 5 - (ViewConfiguration.getKeyRepeatDelay() >> 16), (char) (58134 - KeyEvent.normalizeMetaState(0)))).getMethod("H", Integer.TYPE, Integer.TYPE);
xzZ.y.put(1084521042, obj4);
}
cArr5[i15] = ((Character) ((Method) obj4).invoke(null, objArr6)).charValue();
int i16 = $11 + 35;
$10 = i16 % 128;
int i17 = i16 % 2;
}
c2 = cArr5[tvh.c];
try {
Object[] objArr7 = {tvh, tvh};
Object obj5 = xzZ.y.get(1698744941);
if (obj5 == null) {
Class cls2 = (Class) xzZ.c(TextUtils.getOffsetAfter("", 0) + 402, 5 - View.resolveSizeAndState(0, 0, 0), (char) (21608 - KeyEvent.keyCodeFromString("")));
byte b4 = (byte) ($$h & 1);
byte b5 = (byte) (b4 - 1);
Object[] objArr8 = new Object[1];
s(b4, b5, b5, objArr8);
obj5 = cls2.getMethod((String) objArr8[0], Object.class, Object.class);
xzZ.y.put(1698744941, obj5);
}
((Method) obj5).invoke(null, objArr7);
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
cArr4 = cArr5;
}
if (i8 > 0) {
char[] cArr6 = new char[i6];
i = 0;
System.arraycopy(cArr4, 0, cArr6, 0, i6);
int i18 = i6 - i8;
System.arraycopy(cArr6, 0, cArr4, i18, i8);
System.arraycopy(cArr6, i8, cArr4, 0, i18);
} else {
i = 0;
}
if (z) {
char[] cArr7 = new char[i6];
while (true) {
tvh.c = i;
if (tvh.c >= i6) {
break;
}
cArr7[tvh.c] = cArr4[(i6 - tvh.c) - 1];
i = tvh.c + 1;
}
cArr4 = cArr7;
}
if (i7 > 0) {
int i19 = $11 + 97;
$10 = i19 % 128;
if (i19 % 2 != 0) {
tvh.c = 1;
} else {
tvh.c = 0;
}
while (tvh.c < i6) {
cArr4[tvh.c] = (char) (cArr4[tvh.c] - iArr[2]);
tvh.c++;
}
}
objArr[0] = new String(cArr4);
}
}