-----------------------------------------------------------------

[*] Initial CPU detection process of binary apac-update with CPU configuration .

[*] Emulator used: qemu-mipsel-static
[*] Using root directory: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract (1/2)

[*] Trying to emulate binary ./usr/sbin/apac-update with cpu config NONE

[-] Emulation process of binary apac-update with CPU configuration  failed
[*] Trying to emulate binary ./usr/sbin/apac-update with cpu config 4Kc

[-] Emulation process of binary apac-update with CPU configuration 4Kc failed
[*] Trying to emulate binary ./usr/sbin/apac-update with cpu config 4Km

[-] Emulation process of binary apac-update with CPU configuration 4Km failed
[*] Trying to emulate binary ./usr/sbin/apac-update with cpu config 4KEcR1

[-] Emulation process of binary apac-update with CPU configuration 4KEcR1 failed
[*] Trying to emulate binary ./usr/sbin/apac-update with cpu config 4KEmR1

[-] Emulation process of binary apac-update with CPU configuration 4KEmR1 failed
[*] Trying to emulate binary ./usr/sbin/apac-update with cpu config 4KEc

[-] Emulation process of binary apac-update with CPU configuration 4KEc failed
[*] Trying to emulate binary ./usr/sbin/apac-update with cpu config 4KEm

[-] Emulation process of binary apac-update with CPU configuration 4KEm failed
[*] Trying to emulate binary ./usr/sbin/apac-update with cpu config 24Kc

[-] Emulation process of binary apac-update with CPU configuration 24Kc failed
[*] Trying to emulate binary ./usr/sbin/apac-update with cpu config 24KEc

[-] Emulation process of binary apac-update with CPU configuration 24KEc failed
[*] Trying to emulate binary ./usr/sbin/apac-update with cpu config 24Kf

[-] Emulation process of binary apac-update with CPU configuration 24Kf failed
[*] Trying to emulate binary ./usr/sbin/apac-update with cpu config 34Kf

[-] Emulation process of binary apac-update with CPU configuration 34Kf failed
[*] Trying to emulate binary ./usr/sbin/apac-update with cpu config 74Kf

[-] Emulation process of binary apac-update with CPU configuration 74Kf failed
[*] Trying to emulate binary ./usr/sbin/apac-update with cpu config M14K

[-] Emulation process of binary apac-update with CPU configuration M14K failed
[*] Trying to emulate binary ./usr/sbin/apac-update with cpu config M14Kc

[-] Emulation process of binary apac-update with CPU configuration M14Kc failed
[*] Trying to emulate binary ./usr/sbin/apac-update with cpu config P5600

[-] Emulation process of binary apac-update with CPU configuration P5600 failed
[*] Trying to emulate binary ./usr/sbin/apac-update with cpu config mips32r6-generic

[-] Emulation process of binary apac-update with CPU configuration mips32r6-generic failed
[*] Trying to emulate binary ./usr/sbin/apac-update with cpu config I7200

[-] Emulation process of binary apac-update with CPU configuration I7200 failed

-----------------------------------------------------------------


-----------------------------------------------------------------

[*] Initial CPU detection process of binary apac-update with CPU configuration 24KEc.

[*] Emulator used: qemu-mipsel-static
[*] Using root directory: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr (2/2)

[*] Trying to emulate binary ./sbin/apac-update with cpu config 24KEc

1 brk(NULL) = 0x400120f0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f7c7000
1 uname(0x3ff1d6d0) = 0
1 access("/etc/ld.so.preload",R_OK) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/etc/ld.so.cache",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/tls/libglib-2.0.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d464,512) = 512
1 prctl(46,1072813464,1072813156,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d320) = 0
1 mmap2(NULL,1257552,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f693000
1 mprotect(0x3f7b4000,61440,PROT_NONE) = 0
1 mmap2(0x3f7c3000,12288,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x120) = 0x3f7c3000
1 mmap2(0x3f7c6000,80,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f7c6000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libc.so.6",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d454,512) = 512
1 prctl(46,1072813576,1072813140,512,1065377792,0) = 0
1 _llseek(3,0,760,0x3ff1d228,SEEK_SET) = 0
1 read(3,0x3ff1d258,32) = 32
1 fstat64(3,0x3ff1d310) = 0
1 mmap2(NULL,1593152,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f50e000
1 mprotect(0x3f67b000,61440,PROT_NONE) = 0
1 mmap2(0x3f68a000,28672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x16c) = 0x3f68a000
1 mmap2(0x3f691000,8000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f691000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libpcre.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d394,512) = 512
1 prctl(46,1072813224,1072812948,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d250) = 0
1 mmap2(NULL,545216,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f488000
1 mprotect(0x3f4fd000,61440,PROT_NONE) = 0
1 mmap2(0x3f50c000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x74) = 0x3f50c000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libpthread.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d384,512) = 512
1 prctl(46,1072813336,1072812932,512,1065377792,0) = 0
1 _llseek(3,0,768,0x3ff1d150,SEEK_SET) = 0
1 read(3,0x3ff1d180,32) = 32
1 fstat64(3,0x3ff1d240) = 0
1 mmap2(NULL,181248,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f45b000
1 mprotect(0x3f475000,61440,PROT_NONE) = 0
1 mmap2(0x3f484000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x19) = 0x3f484000
1 mmap2(0x3f486000,5120,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f486000
1 close(3) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f459000
1 set_thread_area(0x3f4604a0) = 0
1 mprotect(0x3f68a000,16384,PROT_READ) = 0
1 mprotect(0x3f484000,4096,PROT_READ) = 0
1 mprotect(0x3f50c000,4096,PROT_READ) = 0
1 mprotect(0x3f7c3000,4096,PROT_READ) = 0
1 mprotect(0x40011000,4096,PROT_READ) = 0
1 mprotect(0x3f7fd000,4096,PROT_READ) = 0
1 set_tid_address(0x3f459078) = 1
1 set_robust_list(0x3f459080,12) = -1 errno=89 (Function not implemented)
1 rt_sigaction(32,0x3ff1dd20,NULL) = 0
1 rt_sigaction(33,0x3ff1dd20,NULL) = 0
1 rt_sigprocmask(SIG_UNBLOCK,0x3ff1dd68,NULL,16) = 0
1 getrlimit(3,0x3ff1ddf0) = 0
1 brk(NULL) = 0x400120f0
1 brk(0x400330f0) = 0x400330f0
1 brk(0x40034000) = 0x40034000
1 gettimeofday(0x3ff1dd28,NULL) = 0 ({tv_sec = 1689943352,tv_usec = 48630},NULL)
1 fstat64(1,0x3ff1d730) = 0
1 write(1,0x40015808,194)Usage:

Grant a certain user permission to do a certain action:
  ./sbin/apac-update grant username action_id
Revoke all dynamic permissions for a user:
  ./sbin/apac-update revoke-all username
 = 194
1 exit_group(1)
[+] CPU configuration used for apac-update: 24KEc
CPU_CONFIG_det\KEc

-----------------------------------------------------------------