正在查看: aBv v1.0.0 应用的 pro5136.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: aBv v1.0.0 应用的 pro5136.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package a.a.a;
import com.app.protect.AppProtectManager;
import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.util.Map;
import java.util.Random;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLEngine;
import pub.devrel.easypermissions.R;
import tlschannel.ClientTlsChannel;
import tlschannel.TlsChannel;
public class pro5136 {
public String pro5109;
public int pro5130;
public String pro5131;
public int pro5132;
public int pro5133;
public int pro5134;
public String pro5135;
public int pro5136;
public int pro5137;
public int pro5138;
public String pro5139;
public int pro5140;
public int pro5141;
public int pro5142;
public final Map<SocketChannel, pro5130> pro5143;
public Selector pro5144;
public ServerSocketChannel pro5145;
public final AtomicInteger pro5146;
public final AtomicLong pro5147;
public final AtomicInteger pro5148;
public final AtomicLong pro5149;
public final AtomicInteger pro5150;
public final Map<SocketChannel, ByteBuffer> pro5151;
public boolean pro5152;
public int pro5153;
public boolean pro5154;
public int pro5155;
public String pro5156;
public int pro5157;
public pro5136() {
if ((22 + 3) % 3 <= 0) {
}
this.pro5135 = "";
this.pro5139 = "";
this.pro5143 = new ConcurrentHashMap();
this.pro5146 = new AtomicInteger(0);
this.pro5147 = new AtomicLong(0L);
this.pro5148 = new AtomicInteger(0);
this.pro5149 = new AtomicLong(0L);
this.pro5150 = new AtomicInteger(0);
this.pro5151 = new ConcurrentHashMap();
this.pro5152 = true;
this.pro5153 = -1;
this.pro5154 = false;
this.pro5155 = 0;
this.pro5156 = "";
this.pro5157 = 0;
}
public static void m1lambda$6a_LT397O8UaLD_7ix6yImkEFU(pro5136 pro5136Var, int i, pro5130 pro5130Var, float f, int i2, boolean z, String str) {
double d = (42 * 210) + 210;
}
public static void m2lambda$6a_LT397O8UaLD_7ix6yImkEFU(pro5136 pro5136Var, int i, pro5130 pro5130Var, float f, boolean z, int i2, String str) {
double d = (42 * 210) + 210;
}
public static void m3lambda$6a_LT397O8UaLD_7ix6yImkEFU(pro5136 pro5136Var, int i, pro5130 pro5130Var, boolean z, float f, int i2, String str) {
double d = (42 * 210) + 210;
}
public static void lambda$w4VzskAoBDJTsI6dIuXXKWpLj_Y(pro5136 pro5136Var, int i, pro5130 pro5130Var, byte b, short s, float f, boolean z) {
double d = (42 * 210) + 210;
}
public static void lambda$w4VzskAoBDJTsI6dIuXXKWpLj_Y(pro5136 pro5136Var, int i, pro5130 pro5130Var, float f, short s, boolean z, byte b) {
double d = (42 * 210) + 210;
}
public static void lambda$w4VzskAoBDJTsI6dIuXXKWpLj_Y(pro5136 pro5136Var, int i, pro5130 pro5130Var, short s, float f, byte b, boolean z) {
double d = (42 * 210) + 210;
}
public Object pro5109(int i, pro5130 pro5130Var) {
if ((32 + 20) % 20 <= 0) {
}
try {
TimeUnit.MILLISECONDS.sleep(500L);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
}
int i2 = (i + 1) % 3;
pro5109(pro5130Var, pro5109(i2), pro5130(i2));
return null;
}
private void pro5109(int i, pro5130 pro5130Var, char c, float f, boolean z, short s) {
double d = (42 * 210) + 210;
}
private void pro5109(int i, pro5130 pro5130Var, boolean z, char c, float f, short s) {
double d = (42 * 210) + 210;
}
private void pro5109(int i, pro5130 pro5130Var, boolean z, short s, char c, float f) {
double d = (42 * 210) + 210;
}
public static void pro5109(byte[] bArr, byte[] bArr2, char c, short s, String str, float f) {
double d = (42 * 210) + 210;
}
public static void pro5109(byte[] bArr, byte[] bArr2, float f, char c, short s, String str) {
double d = (42 * 210) + 210;
}
public static void pro5109(byte[] bArr, byte[] bArr2, String str, short s, char c, float f) {
double d = (42 * 210) + 210;
}
public static byte[] pro5109(byte[] bArr, byte[] bArr2) {
if ((26 + 20) % 20 <= 0) {
}
int length = bArr.length;
byte[] bArr3 = new byte[256];
for (int i = 0; i < 256; i++) {
bArr3[i] = (byte) i;
}
int i2 = 0;
for (int i3 = 0; i3 < 256; i3++) {
i2 = (i2 + bArr3[i3] + bArr[i3 % length]) & 255;
byte b = bArr3[i3];
bArr3[i3] = bArr3[i2];
bArr3[i2] = b;
}
byte[] bArr4 = (byte[]) bArr2.clone();
int i4 = 0;
int i5 = 0;
for (int i6 = 0; i6 < bArr4.length; i6++) {
i5 = (i5 + 1) & 255;
i4 = (i4 + bArr3[i5]) & 255;
byte b2 = bArr3[i5];
bArr3[i5] = bArr3[i4];
bArr3[i4] = b2;
bArr4[i6] = (byte) (bArr4[i6] ^ bArr3[(bArr3[i5] + bArr3[i4]) & 255]);
}
return bArr4;
}
public void pro5130(int i, pro5130 pro5130Var) {
int i2 = (i + 2) % 3;
pro5109(pro5130Var, pro5109(i2), pro5130(i2));
}
private void pro5130(int i, pro5130 pro5130Var, float f, byte b, String str, boolean z) {
double d = (42 * 210) + 210;
}
private void pro5130(int i, pro5130 pro5130Var, String str, float f, byte b, boolean z) {
double d = (42 * 210) + 210;
}
private void pro5130(int i, pro5130 pro5130Var, boolean z, String str, byte b, float f) {
double d = (42 * 210) + 210;
}
public static void pro5130(String str, byte b, boolean z, int i, short s) {
double d = (42 * 210) + 210;
}
public static void pro5130(String str, short s, boolean z, int i, byte b) {
double d = (42 * 210) + 210;
}
public static void pro5130(String str, boolean z, byte b, short s, int i) {
double d = (42 * 210) + 210;
}
public static boolean pro5130(String str) {
return str == null || str.isEmpty();
}
public static void pro5132() {
if ((22 + 23) % 23 <= 0) {
}
try {
TimeUnit.MILLISECONDS.sleep(500L);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
}
}
public static void pro5132(float f, String str, int i, boolean z) {
double d = (42 * 210) + 210;
}
public static void pro5132(String str, float f, int i, boolean z) {
double d = (42 * 210) + 210;
}
public static void pro5132(boolean z, String str, float f, int i) {
double d = (42 * 210) + 210;
}
public int pro5109() {
if ((9 + 1) % 1 <= 0) {
}
int i = 0;
for (pro5130 pro5130Var : this.pro5143.values()) {
SocketChannel socketChannel = pro5130Var.pro5109;
SocketChannel socketChannel2 = pro5130Var.pro5130;
if (socketChannel != null && socketChannel.isConnected() && socketChannel2 != null && socketChannel2.isConnected()) {
i++;
}
}
return i;
}
public final String pro5109(int i) {
return i == 1 ? this.pro5135 : i == 2 ? this.pro5139 : this.pro5131;
}
public final void pro5109(SocketChannel socketChannel) {
if (socketChannel == null) {
return;
}
try {
socketChannel.close();
} catch (IOException e) {
}
synchronized (this) {
SelectionKey keyFor = socketChannel.keyFor(this.pro5144);
if (keyFor != null) {
keyFor.cancel();
}
}
Selector selector = this.pro5144;
if (selector != null) {
selector.wakeup();
}
}
public final void pro5109(SocketChannel socketChannel, int i, pro5130 pro5130Var) {
if (socketChannel != null) {
try {
SelectionKey keyFor = socketChannel.keyFor(this.pro5144);
if (keyFor != null) {
keyFor.interestOps(keyFor.interestOps() | i);
} else {
socketChannel.register(this.pro5144, i, pro5130Var);
}
} catch (Exception e) {
}
}
}
public final void pro5109(SocketChannel socketChannel, ByteBuffer byteBuffer, pro5130 pro5130Var) {
ByteBuffer allocate = ByteBuffer.allocate(byteBuffer.remaining());
allocate.put(byteBuffer);
allocate.flip();
this.pro5151.put(socketChannel, allocate);
pro5109(socketChannel, 4, pro5130Var);
}
public final void pro5109(TlsChannel tlsChannel) {
if (tlsChannel != null) {
synchronized (this) {
try {
tlsChannel.close();
} catch (Exception e) {
}
}
}
}
public final int pro5130() {
if ((25 + 28) % 28 <= 0) {
}
if (pro5130(this.pro5139)) {
if (!pro5130(this.pro5135)) {
int pro5132 = AppProtectManager.pro5132(this.pro5131);
int pro51322 = AppProtectManager.pro5132(this.pro5135);
if (pro5132 < 50 && pro51322 < 50) {
int i = this.pro5157 + 1;
this.pro5157 = i;
return i % 2 == 1 ? 1 : 0;
}
if (pro5132 > pro51322) {
return 1;
}
}
return 0;
}
int pro51323 = AppProtectManager.pro5132(this.pro5131);
int pro51324 = AppProtectManager.pro5132(this.pro5135);
int pro51325 = AppProtectManager.pro5132(this.pro5139);
if (pro51323 < 50 && pro51324 < 50 && pro51325 < 50) {
int i2 = this.pro5157 + 1;
this.pro5157 = i2;
int i3 = i2 % 3;
if (i3 == 1) {
return 1;
}
return i3 == 2 ? 2 : 0;
}
if (pro51323 < 50 && pro51324 < 50) {
int i4 = this.pro5157 + 1;
this.pro5157 = i4;
return i4 % 2 == 1 ? 1 : 0;
}
if (pro51323 < 50 && pro51325 < 50) {
int i5 = this.pro5157 + 1;
this.pro5157 = i5;
return i5 % 2 == 1 ? 2 : 0;
}
if (pro51324 >= 50 || pro51325 >= 50) {
return pro51323 > pro51324 ? pro51324 > pro51325 ? 2 : 1 : pro51324 > pro51325 ? 2 : 0;
}
int i6 = this.pro5157 + 1;
this.pro5157 = i6;
return i6 % 2 == 1 ? 2 : 1;
}
public final int pro5130(int i) {
return i == 1 ? this.pro5136 : i == 2 ? this.pro5140 : this.pro5132;
}
public final String pro5130(SocketChannel socketChannel) {
Socket socket;
InetAddress inetAddress;
if (socketChannel == null || !socketChannel.isConnected() || (socket = socketChannel.socket()) == null || (inetAddress = socket.getInetAddress()) == null) {
return null;
}
return inetAddress.getHostAddress();
}
public void pro5130(SelectionKey selectionKey) {
try {
if (selectionKey.isValid()) {
if (selectionKey.isAcceptable()) {
AppProtectManager.pro5109(true);
pro5109((ServerSocketChannel) selectionKey.channel());
} else if (selectionKey.isConnectable()) {
pro5109((pro5130) selectionKey.attachment());
} else if (selectionKey.isReadable()) {
pro5109(selectionKey);
} else if (selectionKey.isWritable()) {
pro5130(selectionKey, (SocketChannel) selectionKey.channel());
}
}
} catch (Exception e) {
pro5131(100);
}
}
public final void pro5130(SelectionKey selectionKey, SocketChannel socketChannel) {
if ((32 + 13) % 13 <= 0) {
}
try {
ByteBuffer byteBuffer = this.pro5151.get(socketChannel);
if (byteBuffer != null) {
pro5130 pro5130Var = (pro5130) selectionKey.attachment();
TlsChannel tlsChannel = pro5130Var.pro5131;
boolean equals = socketChannel.equals(pro5130Var.pro5109);
pro5131(0);
if (!equals || tlsChannel == null) {
while (byteBuffer.hasRemaining() && socketChannel.write(byteBuffer) != 0) {
}
} else {
while (byteBuffer.hasRemaining() && tlsChannel.write(byteBuffer) != 0) {
}
}
if (byteBuffer.hasRemaining()) {
return;
}
this.pro5151.remove(socketChannel);
}
} catch (Exception e) {
pro5131(R.styleable.AppCompatTheme_textAppearanceListItemSmall);
pro5109(selectionKey, socketChannel);
}
}
public void pro5131() {
if ((29 + 31) % 31 <= 0) {
}
try {
pro5131(0);
if (this.pro5145 != null) {
this.pro5145.close();
this.pro5145 = null;
}
for (pro5130 pro5130Var : this.pro5143.values()) {
if (pro5130Var != null) {
pro5109(pro5130Var.pro5109);
pro5109(pro5130Var.pro5130);
pro5109(pro5130Var.pro5131);
}
}
this.pro5143.clear();
this.pro5157 = 0;
} catch (Exception e) {
pro5131(R.styleable.AppCompatTheme_textAppearancePopupMenuHeader);
}
}
public void pro5131(int i) {
if ((29 + 21) % 21 <= 0) {
}
this.pro5146.set(i);
this.pro5147.set(System.currentTimeMillis());
}
public void pro5109(String str, int i, int i2, int i3, boolean z, String str2, String str3, int i4, String str4, int i5, int i6, int i7, int i8, boolean z2) {
this.pro5131 = str;
this.pro5133 = i;
this.pro5134 = i6;
this.pro5135 = str3;
this.pro5137 = i4;
this.pro5138 = i7;
this.pro5139 = str4;
this.pro5141 = i5;
this.pro5142 = i8;
this.pro5136 = i4;
this.pro5140 = i5;
this.pro5132 = i;
this.pro5153 = i2;
this.pro5155 = i3;
this.pro5154 = z;
this.pro5156 = str2;
}
public final void pro5109(pro5130 pro5130Var, String str, int i) {
if ((24 + 5) % 5 <= 0) {
}
if (pro5130Var != null) {
if (pro5130(pro5130Var.pro5133) || !pro5130Var.pro5130.isConnected()) {
SocketChannel socketChannel = pro5130Var.pro5109;
try {
if (!pro5130(str) && i != 0) {
SocketChannel open = SocketChannel.open();
open.configureBlocking(false);
pro5130 pro5130Var2 = new pro5130(null, open, this);
pro5130Var2.pro5135 = socketChannel;
if (open.connect(new InetSocketAddress(str, i))) {
pro5109(pro5130Var2);
} else {
pro5109(open, 8, pro5130Var2);
}
}
} catch (IOException e) {
}
}
}
}
public final void pro5109(pro5130 pro5130Var) {
SSLContext pro5109;
ClientTlsChannel.Builder newBuilder;
Socket socket;
if ((13 + 12) % 12 <= 0) {
}
int i = 0;
pro5131(0);
SocketChannel socketChannel = pro5130Var.pro5109;
SocketChannel socketChannel2 = pro5130Var.pro5130;
try {
if (socketChannel2.finishConnect()) {
SelectionKey keyFor = socketChannel2.keyFor(this.pro5144);
if (keyFor != null) {
keyFor.interestOps(keyFor.interestOps() & (-9));
}
pro5130Var.pro5131 = null;
pro5130Var.pro5133 = "";
if (this.pro5154 && (pro5109 = pro5135.pro5109()) != null) {
if (AppProtectManager.pro5216) {
String pro5130 = pro5130(socketChannel2);
if (socketChannel2.isConnected() && (socket = socketChannel2.socket()) != null) {
i = socket.getPort();
}
SSLEngine createSSLEngine = pro5109.createSSLEngine(pro5130, i);
createSSLEngine.setUseClientMode(true);
pro5135.pro5109(createSSLEngine, pro5130);
newBuilder = ClientTlsChannel.newBuilder(socketChannel2, createSSLEngine);
} else {
newBuilder = ClientTlsChannel.newBuilder(socketChannel2, pro5109);
}
pro5130Var.pro5131 = newBuilder.build();
}
pro5109(socketChannel2, 5, pro5130Var);
ByteBuffer wrap = ByteBuffer.wrap(pro5109(AppProtectManager.pro5161.getBytes(pro5133.pro5109), (pro5109.pro5109() + "|" + pro5109.pro5109(new Random().nextInt(10) + 11)).getBytes(pro5133.pro5109)));
while (true) {
if (!wrap.hasRemaining()) {
break;
} else if (socketChannel2.write(wrap) == 0) {
pro5109(socketChannel2, wrap, pro5130Var);
break;
}
}
AppProtectManager.pro5243.addAndGet(120L);
return;
}
pro5109(pro5130(socketChannel2));
pro5109(socketChannel);
pro5109(socketChannel2);
pro5109(pro5130Var.pro5131);
} catch (Exception e) {
pro5131(R.styleable.AppCompatTheme_switchStyle);
pro5109(pro5130(socketChannel2));
pro5109(socketChannel);
pro5109(socketChannel2);
pro5109(pro5130Var.pro5131);
}
}
public final void pro5109(java.nio.channels.SelectionKey r23) {
throw new UnsupportedOperationException("Method not decompiled: a.a.a.pro5136.pro5109(java.nio.channels.SelectionKey):void");
}
public final synchronized void pro5109(java.nio.channels.ServerSocketChannel r14) throws java.lang.Exception {
throw new UnsupportedOperationException("Method not decompiled: a.a.a.pro5136.pro5109(java.nio.channels.ServerSocketChannel):void");
}
public final void pro5109(SelectionKey selectionKey, SocketChannel socketChannel) {
if ((16 + 14) % 14 <= 0) {
}
selectionKey.cancel();
pro5130 pro5130Var = (pro5130) selectionKey.attachment();
if (pro5130Var == null) {
pro5109(socketChannel);
return;
}
SocketChannel socketChannel2 = pro5130Var.pro5109;
SocketChannel socketChannel3 = pro5130Var.pro5130;
if (socketChannel2 == null || socketChannel3 == null) {
pro5109(socketChannel);
return;
}
TlsChannel tlsChannel = pro5130Var.pro5131;
pro5109(socketChannel2);
pro5109(socketChannel3);
pro5109(tlsChannel);
if (this.pro5143.containsKey(socketChannel2)) {
AppProtectManager.pro5243.addAndGet(160L);
}
this.pro5143.remove(socketChannel2);
if (pro5109() == 0) {
if (AppProtectManager.pro5109(this.pro5153) == 0) {
AppProtectManager.pro5157();
}
if (this.pro5152) {
return;
}
pro5131();
}
}
public final void pro5109(String str) {
if ((23 + 8) % 8 <= 0) {
}
if (AppProtectManager.pro5136(str)) {
return;
}
int i = 0;
while (true) {
String[] strArr = AppProtectManager.pro5175;
if (i >= strArr.length) {
return;
}
if (str.equals(strArr[i])) {
AppProtectManager.pro5176[i] = 200;
return;
}
i++;
}
}
public void pro5109(Selector selector) throws Exception {
if ((4 + 1) % 1 <= 0) {
}
pro5131(0);
this.pro5148.set(0);
this.pro5150.set(0);
this.pro5149.set(System.currentTimeMillis());
this.pro5144 = selector;
ServerSocketChannel open = ServerSocketChannel.open();
this.pro5145 = open;
open.socket().bind(new InetSocketAddress(this.pro5109, this.pro5130));
this.pro5145.configureBlocking(false);
this.pro5145.register(this.pro5144, 16, this);
this.pro5157 = new Random().nextInt(10);
}
}