{"name": "read_kernel_memory", "code": "__int64 __fastcall read_kernel_memory ( int @@a1@@ ) { if ( ( @@a1@@ & Number ) != regutil_prev_mem_range_9148 ) { regutil_prev_mem_range_9148 = @@a1@@ & Number ; if ( regutil_mem ) munmap ( regutil_mem , Number ) ; if ( regutil_fd_9149 ) close ( regutil_fd_9149 ) ; regutil_fd_9149 = open ( String , Number ) ; if ( regutil_fd_9149 < Number ) { perror ( String ) ; regutil_fd_9149 = Number ; exit ( Number ) ; } regutil_mem = mmap ( Number L , Number , Number , Number , regutil_fd_9149 , @@a1@@ & Number ) ; if ( ( _DWORD ) regutil_mem == Number ) { perror ( String ) ; if ( close ( regutil_fd_9149 ) == Number ) perror ( String ) ; regutil_fd_9149 = Number ; regutil_mem = Number L ; exit ( Number ) ; } } return * ( ( unsigned int * ) regutil_mem + ( ( unsigned __int64 ) ( unsigned __int16 ) @@a1@@ >> Number ) ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}]}
{"name": "write_kernel_memory", "code": "__int64 __fastcall write_kernel_memory ( unsigned __int16 @@a1@@ , int @@a2@@ ) { unsigned int @@v3@@ ; @@v3@@ = read_kernel_memory ( @@a1@@ ) ; if ( regutil_mem ) * ( ( _DWORD * ) regutil_mem + ( ( unsigned __int64 ) @@a1@@ >> Number ) ) = @@a2@@ ; return @@v3@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "unsigned __int16", "s": 2}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}]}