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

263 lines
12 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.app.Service;
import android.content.Context;
import android.graphics.Color;
import android.media.AudioTrack;
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.scb.phone.service.SCBClearAppFromRecentService;
import java.lang.reflect.Method;
import org.bouncycastle.crypto.tls.CipherSuite;
/* renamed from: o.doU, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public abstract class AbstractServiceC9680doU extends Service implements fPA {
private volatile C13077fPx b;
private static final byte[] $$a = {13, 13, 103, -97};
private static final int $$b = CipherSuite.TLS_PSK_WITH_3DES_EDE_CBC_SHA;
private static int $10 = 0;
private static int $11 = 1;
private static int d = 0;
private static int f = 1;
private static long e = 5542143749353292377L;
private final Object c = new Object();
private boolean a = false;
/* JADX WARN: Removed duplicated region for block: B:10:0x002a */
/* JADX WARN: Removed duplicated region for block: B:7:0x0022 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x002a -> B:4:0x002f). 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 i(short r6, int r7, short r8, java.lang.Object[] r9) {
/*
int r6 = r6 * 2
int r6 = 121 - r6
int r8 = r8 * 2
int r0 = 1 - r8
byte[] r1 = o.AbstractServiceC9680doU.$$a
int r7 = r7 * 4
int r7 = 3 - r7
byte[] r0 = new byte[r0]
r2 = 0
int r8 = 0 - r8
if (r1 != 0) goto L18
r3 = r7
r4 = r2
goto L2f
L18:
r3 = r2
L19:
byte r4 = (byte) r6
r0[r3] = r4
int r4 = r3 + 1
int r7 = r7 + 1
if (r3 != r8) goto L2a
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L2a:
r3 = r1[r7]
r5 = r3
r3 = r7
r7 = r5
L2f:
int r6 = r6 + r7
r7 = r3
r3 = r4
goto L19
*/
throw new UnsupportedOperationException("Method not decompiled: o.AbstractServiceC9680doU.i(short, int, short, java.lang.Object[]):void");
}
@Override // android.app.Service
public void onCreate() {
int i = 2 % 2;
int i2 = f;
int i3 = i2 + 115;
d = i3 % 128;
int i4 = i3 % 2;
if (!this.a) {
int i5 = i2 + 21;
d = i5 % 128;
int i6 = i5 % 2;
this.a = true;
((InterfaceC9683doX) y_()).c((SCBClearAppFromRecentService) this);
int i7 = f + 119;
d = i7 % 128;
int i8 = i7 % 2;
}
super.onCreate();
}
private C13077fPx b() {
if (this.b == null) {
synchronized (this.c) {
if (this.b == null) {
this.b = new C13077fPx(this);
}
}
}
return this.b;
}
@Override // o.fPC
public final Object y_() {
int i = 2 % 2;
int i2 = f + 81;
d = i2 % 128;
Object obj = null;
if (i2 % 2 != 0) {
b().y_();
obj.hashCode();
throw null;
}
Object y_ = b().y_();
int i3 = d + 45;
f = i3 % 128;
if (i3 % 2 != 0) {
return y_;
}
obj.hashCode();
throw null;
}
private static void g(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
GuL guL = new GuL();
char[] a = GuL.a(e ^ (-7538262848231253921L), cArr, i);
int i3 = 4;
guL.a = 4;
while (guL.a < a.length) {
int i4 = $11 + 83;
$10 = i4 % 128;
int i5 = i4 % 2;
guL.c = guL.a - i3;
int i6 = guL.a;
try {
Object[] objArr2 = {Long.valueOf(a[guL.a] ^ a[guL.a % i3]), Long.valueOf(guL.c), Long.valueOf(e)};
Object obj = xzZ.y.get(428080616);
if (obj == null) {
Class cls = (Class) xzZ.c(TextUtils.indexOf("", "", 0, 0) + 208, 5 - Color.blue(0), (char) (ExpandableListView.getPackedPositionChild(0L) + 1707));
byte b = (byte) ($$b & 5);
byte b2 = (byte) (b - 1);
Object[] objArr3 = new Object[1];
i(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE);
xzZ.y.put(428080616, obj);
}
a[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
Object[] objArr4 = {guL, guL};
Object obj2 = xzZ.y.get(-1875914398);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(391 - ExpandableListView.getPackedPositionChild(0L), 5 - (ViewConfiguration.getLongPressTimeout() >> 16), (char) ((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) - 1));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr5 = new Object[1];
i(b3, b4, b4, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1875914398, obj2);
}
((Method) obj2).invoke(null, objArr4);
int i7 = $11 + 91;
$10 = i7 % 128;
int i8 = i7 % 2;
i3 = 4;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
objArr[0] = new String(a, 4, a.length - 4);
}
@Override // android.app.Service, android.content.ContextWrapper
public void attachBaseContext(Context context) {
Context context2;
int i = 2 % 2;
int i2 = f + 103;
d = i2 % 128;
int i3 = i2 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
g(new char[]{30809, 30776, 1844, 7516, 47729, 16063, 36377, 28895, 4142, 40747, 9777, 35003, 43014, 63257, 48739, 8365, 16483, 20349, 54854, 47232, 55370, 42825}, (-1) - TextUtils.lastIndexOf("", '0', 0, 0), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
g(new char[]{61174, 61083, 24436, 17675, 58415, 26925, 53366, 10070, 34442}, TextUtils.getCapsMode("", 0, 0), objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue >= 99000) {
int i4 = f + 69;
d = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
if (intValue <= 99999) {
return;
}
}
if (context != null) {
int i5 = f + 107;
d = i5 % 128;
if (i5 % 2 != 0) {
context.getApplicationContext();
throw null;
}
context2 = context.getApplicationContext();
} else {
context2 = context;
}
if (context2 != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c((ViewConfiguration.getEdgeSlop() >> 16) + 492, 5 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), (char) TextUtils.getOffsetAfter("", 0))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
g(new char[]{15987, 15938, 33264, 39873, 13680, 51129, 328, 35273, 22104, 6588, 43314, 29170, 60961, 29134, 12670, 55706, 1544, 51693, 22807, 16859, 40561, 8596, 57646, 10739, 13880, 47499, 2453, 37130, 20101, 4449, 37263, 31022, 59064, 26966, 14752, 57650, 32386, 49458, 16772, 18778, 38605, 22906, 59894, 12593, 11953, 45315, 29109, 39054, 18200, 2295, 38913, 151}, (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 1, objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
g(new char[]{8010, 7983, 36541, 38105, 26936, 53060, 23810, 33075, 30564, 5797, 62760, 31063, 53023, 32474, 27958, 53552, 10032, 50849, 1371, 18735, 48924, 11915, 48485, 8452, 5969, 46737, 21981, 39418, 28649, 7801, 52628, 29061, 51152, 26190, 26044, 59846, 24509, 52776, 7617, 16887, 47015, 22079, 46526, 14796, 3980, 48717, 11685, 36976, 26231, 2022, 50202, 2108, 65038, 28615, 31858, 57409, 22033, 63455, 5193, 22636, 44578, 24556, 35925, 12318, 1556, 42965, 9261, 43099}, TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 1, objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
g(new char[]{55317, 55412, 56778, 51188, 3356, 53899, 14624, 40106, 45164, 17881, 37213, 25796, 2071, 11771, 2323, 52396, 57407, 38286, 24952, 21737, 30740, 32240, 55574, 15561, 53340, 58810, 12719, 33843, 43238, 19802, 43494, 27724, 133, 13676, 401, 62549, 39137, 40272, 31153, 23660, 28920, 1304, 53705, 9296, 51408, 60722, 18901, 36282, 41339, 21657, 41022, 5620, 14679, 15543, 6146, 64897, 37147, 42227, 28776, 17831, 26997, 3267, 59430, 11656, 49480, 62626, 16395, 46534}, ViewConfiguration.getMaximumDrawingCacheSize() >> 24, objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
g(new char[]{21498, 21394, 620, 6174, 22788, 58639, 28028, 43885, 15249, 39482, 50447, 21258, 33721, 62017, 23897, 64288, 27601, 19007, 13629, 25400, 62463, 41482, 36107, 2836, 23523, 14860, 26082, 46052, 8964, 37603, 64950, 23513, 35642, 60098, 21973, 50132, 4942, 17083, 11689, 27566, 64342, 56046, 34183, 5008, 17259, 12954, 7580, 47742, 10883, 35685, 62577, 8807, 45759, 58134, 19531, 51794, 6831, 31503, 9249, 29237, 58051, 54119, 48177, 6659, 19189, 11029, 5123, 33281, 53845, 33774, 60602, 10930, 47623, 7158, 17605, 53963, 574, 29659}, (-1) - Process.getGidForName(""), objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
g(new char[]{11903, 11846, 46293, 44797, 32591, 9079, 19323, 27979, 18007}, Color.red(0), objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
g(new char[]{60880, 60853, 56625, 51030, 27121, 57507, 24015, 44677, 34220, 17777, 62945, 22201, 15821, 11606, 28157, 65156, 54778, 38197, 1425, 26315, 19841, 32001, 48560, 3760, 58826, 58701, 21782, 46596, 40306, 19875, 52575, 24160, 13647, 13725, 25894, 50732, 44324, 40357, 7436, 28180}, ViewConfiguration.getPressedStateDuration() >> 16, objArr8);
Object[] objArr9 = {context2, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(487 - View.resolveSizeAndState(0, 0, 0), Gravity.getAbsoluteGravity(0, 0) + 5, (char) ((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 1))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj2);
}
((Method) obj2).invoke(invoke, objArr9);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
}