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

[*] Initial CPU detection process of binary customhttpheader.cgi 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/html/axis-cgi/customhttpheader.cgi with cpu config NONE

[-] Emulation process of binary customhttpheader.cgi with CPU configuration  failed
[*] Trying to emulate binary ./usr/html/axis-cgi/customhttpheader.cgi with cpu config 4Kc

[-] Emulation process of binary customhttpheader.cgi with CPU configuration 4Kc failed
[*] Trying to emulate binary ./usr/html/axis-cgi/customhttpheader.cgi with cpu config 4Km

[-] Emulation process of binary customhttpheader.cgi with CPU configuration 4Km failed
[*] Trying to emulate binary ./usr/html/axis-cgi/customhttpheader.cgi with cpu config 4KEcR1

[-] Emulation process of binary customhttpheader.cgi with CPU configuration 4KEcR1 failed
[*] Trying to emulate binary ./usr/html/axis-cgi/customhttpheader.cgi with cpu config 4KEmR1

[-] Emulation process of binary customhttpheader.cgi with CPU configuration 4KEmR1 failed
[*] Trying to emulate binary ./usr/html/axis-cgi/customhttpheader.cgi with cpu config 4KEc

[-] Emulation process of binary customhttpheader.cgi with CPU configuration 4KEc failed
[*] Trying to emulate binary ./usr/html/axis-cgi/customhttpheader.cgi with cpu config 4KEm

[-] Emulation process of binary customhttpheader.cgi with CPU configuration 4KEm failed
[*] Trying to emulate binary ./usr/html/axis-cgi/customhttpheader.cgi with cpu config 24Kc

[-] Emulation process of binary customhttpheader.cgi with CPU configuration 24Kc failed
[*] Trying to emulate binary ./usr/html/axis-cgi/customhttpheader.cgi with cpu config 24KEc

[-] Emulation process of binary customhttpheader.cgi with CPU configuration 24KEc failed
[*] Trying to emulate binary ./usr/html/axis-cgi/customhttpheader.cgi with cpu config 24Kf

[-] Emulation process of binary customhttpheader.cgi with CPU configuration 24Kf failed
[*] Trying to emulate binary ./usr/html/axis-cgi/customhttpheader.cgi with cpu config 34Kf

[-] Emulation process of binary customhttpheader.cgi with CPU configuration 34Kf failed
[*] Trying to emulate binary ./usr/html/axis-cgi/customhttpheader.cgi with cpu config 74Kf

[-] Emulation process of binary customhttpheader.cgi with CPU configuration 74Kf failed
[*] Trying to emulate binary ./usr/html/axis-cgi/customhttpheader.cgi with cpu config M14K

[-] Emulation process of binary customhttpheader.cgi with CPU configuration M14K failed
[*] Trying to emulate binary ./usr/html/axis-cgi/customhttpheader.cgi with cpu config M14Kc

[-] Emulation process of binary customhttpheader.cgi with CPU configuration M14Kc failed
[*] Trying to emulate binary ./usr/html/axis-cgi/customhttpheader.cgi with cpu config P5600

[-] Emulation process of binary customhttpheader.cgi with CPU configuration P5600 failed
[*] Trying to emulate binary ./usr/html/axis-cgi/customhttpheader.cgi with cpu config mips32r6-generic

[-] Emulation process of binary customhttpheader.cgi with CPU configuration mips32r6-generic failed
[*] Trying to emulate binary ./usr/html/axis-cgi/customhttpheader.cgi with cpu config I7200

[-] Emulation process of binary customhttpheader.cgi with CPU configuration I7200 failed

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


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

[*] Initial CPU detection process of binary customhttpheader.cgi 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 ./html/axis-cgi/customhttpheader.cgi with cpu config 24KEc

1 brk(NULL) = 0x400141c0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f7c7000
1 uname(0x3ff1d640) = 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,0x3ff1d3d4,512) = 512
1 prctl(46,1072813320,1072813012,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d290) = 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/libjansson.so.4",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d3c4,512) = 512
1 prctl(46,1072813272,1072812996,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d280) = 0
1 mmap2(NULL,119392,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f675000
1 mprotect(0x3f682000,61440,PROT_NONE) = 0
1 mmap2(0x3f691000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0xc) = 0x3f691000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libcgihelper.so",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/libcgihelper.so",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d3b4,512) = 512
1 prctl(46,1072813256,1072812980,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d270) = 0
1 mmap2(NULL,78032,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f661000
1 mprotect(0x3f664000,61440,PROT_NONE) = 0
1 mmap2(0x3f673000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x2) = 0x3f673000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libpolicykit_system.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d3a4,512) = 512
1 prctl(46,1072813240,1072812964,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d260) = 0
1 mmap2(NULL,82064,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f64c000
1 mprotect(0x3f650000,61440,PROT_NONE) = 0
1 mmap2(0x3f65f000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x3) = 0x3f65f000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libc.so.6",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d394,512) = 512
1 prctl(46,1072813384,1072812948,512,1065377792,0) = 0
1 _llseek(3,0,760,0x3ff1d168,SEEK_SET) = 0
1 read(3,0x3ff1d198,32) = 32
1 fstat64(3,0x3ff1d250) = 0
1 mmap2(NULL,1593152,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f4c7000
1 mprotect(0x3f634000,61440,PROT_NONE) = 0
1 mmap2(0x3f643000,28672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x16c) = 0x3f643000
1 mmap2(0x3f64a000,8000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f64a000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libpcre.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d2d4,512) = 512
1 prctl(46,1072813032,1072812756,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d190) = 0
1 mmap2(NULL,545216,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f441000
1 mprotect(0x3f4b6000,61440,PROT_NONE) = 0
1 mmap2(0x3f4c5000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x74) = 0x3f4c5000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libpthread.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d2c4,512) = 512
1 prctl(46,1072813144,1072812740,512,1065377792,0) = 0
1 _llseek(3,0,768,0x3ff1d090,SEEK_SET) = 0
1 read(3,0x3ff1d0c0,32) = 32
1 fstat64(3,0x3ff1d180) = 0
1 mmap2(NULL,181248,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f414000
1 mprotect(0x3f42e000,61440,PROT_NONE) = 0
1 mmap2(0x3f43d000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x19) = 0x3f43d000
1 mmap2(0x3f43f000,5120,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f43f000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libgio-2.0.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d2b4,512) = 512
1 prctl(46,1072813032,1072812724,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d170) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f412000
1 mmap2(NULL,1990784,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f22b000
1 mprotect(0x3f3fb000,61440,PROT_NONE) = 0
1 mmap2(0x3f40a000,24576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x1cf) = 0x3f40a000
1 mmap2(0x3f410000,4224,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f410000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libgobject-2.0.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d2a4,512) = 512
1 prctl(46,1072812984,1072812708,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d160) = 0
1 mmap2(NULL,446160,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f1be000
1 mprotect(0x3f219000,65536,PROT_NONE) = 0
1 mmap2(0x3f229000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x5b) = 0x3f229000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/../glib/tls/libgmodule-2.0.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d1e4,512) = 512
1 prctl(46,1072812792,1072812516,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d0a0) = 0
1 mmap2(NULL,78096,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f1aa000
1 mprotect(0x3f1ad000,61440,PROT_NONE) = 0
1 mmap2(0x3f1bc000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x2) = 0x3f1bc000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/../glib/tls/libz.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d1d4,512) = 512
1 prctl(46,1072812808,1072812500,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d090) = 0
1 mmap2(NULL,155984,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f183000
1 mprotect(0x3f198000,65536,PROT_NONE) = 0
1 mmap2(0x3f1a8000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x15) = 0x3f1a8000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/../glib/tls/libresolv.so.2",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d1c4,512) = 512
1 prctl(46,1072812792,1072812484,512,1065377792,0) = 0
1 _llseek(3,0,648,0x3ff1cf88,SEEK_SET) = 0
1 read(3,0x3ff1cfb8,32) = 32
1 fstat64(3,0x3ff1d080) = 0
1 mmap2(NULL,149696,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f15e000
1 mprotect(0x3f170000,61440,PROT_NONE) = 0
1 mmap2(0x3f17f000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x11) = 0x3f17f000
1 mmap2(0x3f181000,6336,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f181000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/../glib/tls/libffi.so.7",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d1b4,512) = 512
1 prctl(46,1072812776,1072812468,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d070) = 0
1 mmap2(NULL,95072,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f146000
1 mprotect(0x3f14d000,61440,PROT_NONE) = 0
1 mmap2(0x3f15c000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x6) = 0x3f15c000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/../glib/tls/../glib/tls/libdl.so.2",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d1a4,512) = 512
1 prctl(46,1072812760,1072812452,512,1065377792,0) = 0
1 _llseek(3,0,648,0x3ff1cf60,SEEK_SET) = 0
1 read(3,0x3ff1cf90,32) = 32
1 fstat64(3,0x3ff1d060) = 0
1 mmap2(NULL,73968,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f133000
1 mprotect(0x3f135000,61440,PROT_NONE) = 0
1 mmap2(0x3f144000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x1) = 0x3f144000
1 close(3) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f131000
1 set_thread_area(0x3f139100) = 0
1 mprotect(0x3f643000,16384,PROT_READ) = 0
1 mprotect(0x3f144000,4096,PROT_READ) = 0
1 mprotect(0x3f15c000,4096,PROT_READ) = 0
1 mprotect(0x3f17f000,4096,PROT_READ) = 0
1 mprotect(0x3f1a8000,4096,PROT_READ) = 0
1 mprotect(0x3f43d000,4096,PROT_READ) = 0
1 mprotect(0x3f4c5000,4096,PROT_READ) = 0
1 mprotect(0x3f7c3000,4096,PROT_READ) = 0
1 mprotect(0x3f1bc000,4096,PROT_READ) = 0
1 mprotect(0x3f229000,4096,PROT_READ) = 0
1 mprotect(0x3f40a000,12288,PROT_READ) = 0
1 mprotect(0x3f65f000,4096,PROT_READ) = 0
1 mprotect(0x3f673000,4096,PROT_READ) = 0
1 mprotect(0x3f691000,4096,PROT_READ) = 0
1 mprotect(0x40013000,4096,PROT_READ) = 0
1 mprotect(0x3f7fd000,4096,PROT_READ) = 0
1 set_tid_address(0x3f131cd8) = 1
1 set_robust_list(0x3f131ce0,12) = -1 errno=89 (Function not implemented)
1 rt_sigaction(32,0x3ff1dc90,NULL) = 0
1 rt_sigaction(33,0x3ff1dc90,NULL) = 0
1 rt_sigprocmask(SIG_UNBLOCK,0x3ff1dcd8,NULL,16) = 0
1 getrlimit(3,0x3ff1dd60) = 0
1 brk(NULL) = 0x400141c0
1 brk(0x400351c0) = 0x400351c0
1 brk(0x40036000) = 0x40036000
1 gettimeofday(0x3ff1dc98,NULL) = 0 ({tv_sec = 1689943241,tv_usec = 234190},NULL)
1 syscall(4238,1065115340,129,2147483647,0,0)1 futex(0x3f7c5ecc,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,2147483647,NULL,NULL,0) = 0
 = 0
1 syscall(4238,1065115340,129,2147483647,0,1059236352)1 futex(0x3f7c5ecc,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,2147483647,NULL,0x3f22aa00,1059236352) = 0
 = 0
1 getuid() = 0
1 openat(AT_FDCWD,"/etc/nsswitch.conf",O_RDONLY|O_CLOEXEC) = 3
1 fstat64(3,0x3ff1d938) = 0
1 read(3,0x4001ac58,4096) = 482
1 read(3,0x4001ac58,4096) = 0
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libnss_compat.so.2",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d43c,512) = 512
1 prctl(46,1072813424,1072813116,512,1065377792,0) = 0
1 _llseek(3,0,648,0x3ff1d1f0,SEEK_SET) = 0
1 read(3,0x3ff1d220,32) = 32
1 fstat64(3,0x3ff1d2f8) = 0
1 mmap2(NULL,100016,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f118000
1 mprotect(0x3f120000,61440,PROT_NONE) = 0
1 mmap2(0x3f12f000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x7) = 0x3f12f000
1 close(3) = 0
1 mprotect(0x3f12f000,4096,PROT_READ) = 0
1 openat(AT_FDCWD,"/lib/tls/libnss_nis.so.2",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/libnss_nis.so.2",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/usr/lib/tls/libnss_nis.so.2",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 stat64("/usr/lib/tls",0x3ff1d248) = 0
1 openat(AT_FDCWD,"/usr/lib/libnss_nis.so.2",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 stat64("/usr/lib",0x3ff1d248) = 0
1 openat(AT_FDCWD,"/etc/passwd",O_RDONLY|O_CLOEXEC) = 3
1 _llseek(3,0,0,0x3ff1d9f8,SEEK_CUR) = 0
1 fstat64(3,0x3ff1d8c8) = 0
1 mmap2(NULL,29,PROT_READ,MAP_SHARED,3,0) = 0x3f117000
1 _llseek(3,0,29,0x3ff1d890,SEEK_SET) = 0
1 munmap(0x3f117000,29) = 0
1 close(3) = 0
1 syscall(4238,1065115340,129,2147483647,0,1073852448)1 futex(0x3f7c5ecc,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,2147483647,NULL,0x4001b020,1073852448) = 0
 = 0
1 time(0,1072815036,1,0,0,0) = 1689943241
1 openat(AT_FDCWD,"/etc/localtime",O_RDONLY|O_CLOEXEC) = 3
1 fstat64(3,0x3ff1d988) = 0
1 fstat64(3,0x3ff1d828) = 0
1 read(3,0x4001e050,4096) = 148
1 _llseek(3,4294967295,4294967290,0x3ff1d838,SEEK_CUR) = 0
1 read(3,0x4001e050,4096) = 6
1 close(3) = 0
1 socket(PF_UNIX,SOCK_DGRAM|SOCK_CLOEXEC,IPPROTO_IP) = 3
1 connect(3,0x3f64a4e0,110) = -1 errno=2 (No such file or directory)
1 close(3) = 0
1 openat(AT_FDCWD,"/dev/urandom",O_RDONLY) = 3
1 read(3,0x3ff1da78,4) = 4
1 close(3) = 0
1 fstat64(1,0x3ff1d580) = 0
1 write(1,0x4001c048,32)Content-Type: application/json
 = 32
1 write(1,0x4001c048,20)Content-Length: 74
 = 20
1 write(1,0x4001c048,2)
 = 2
1 write(1,0x4001c048,74){"apiVersion": "1.0", "error": {"code": 2101, "message": "Invalid input"}} = 74
1 exit_group(0)
[+] CPU configuration used for customhttpheader.cgi: 24KEc
CPU_CONFIG_det\KEc

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