Compilation method and system for realizing code obfuscation through assembly

A technology of code obfuscation and compilation method, applied in the field of NDK compilation, can solve the problems of first cracking of competing teams, code obfuscation, increasing the difficulty of software being cracked, etc., to achieve the effect of reducing software running speed and increasing memory

Active Publication Date: 2016-08-31
XIAMEN WANGSU CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] The purpose of the present invention is to solve the above problems, provide a compiling method and system that realizes code confusion through assembly, solve the problem that the system call cannot be hidden under the Android ARM platform, and the core technology of disassembly is easily cracked by the leader of the competition team, thereby Increase the difficulty of software being cracked

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Compilation method and system for realizing code obfuscation through assembly
  • Compilation method and system for realizing code obfuscation through assembly
  • Compilation method and system for realizing code obfuscation through assembly

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0040] figure 1 It shows the flow of the first embodiment of the compiling method for implementing code obfuscation through assembly in the present invention. See figure 1 , the following is a detailed description of the implementation steps of the code obfuscation compiling method of this embodiment.

[0041] Step 11: Write the core function.

[0042] In this embodiment, the Android NDK code can be used to write, the core part is extracted and written in an independent function, and the system call or the standard C library is changed into an indirect call. The code is as follows:

[0043]

[0044] Step 12: Disassemble the core function.

[0045] In this embodiment, the GDB debugging tool or IDA Pro Advanced can be used to disassemble the code of the core function into ARM platform code, as shown below. (gdb)x / 20i funcx

[0046]

[0047]

[0048] Analyze the above assembly code:

[0049] 1) The C code corresponding to the C code assembly code combined with fu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a compiling method and a compiling system for obfuscating codes by means of assembly. The technical scheme includes that the method comprises compiling a core function; disassembling the core function; creating an executable memory mapping region; copying assembly codes of the core function into the memory mapping region; executing the assembly codes in the memory mapping region to generate an obfuscated core function. The compiling method and the compiling system have the advantages that problems that system call cannot be hidden in an Android ARM [advanced RISC (reduced instruction set computer) machines] platform and can be easily cracked by competitors by the aid of a disassembly core technology are solved, and accordingly the cracked difficulty of software is improved.

Description

technical field [0001] The invention relates to NDK compilation of an Android (Android) system under an ARM platform, in particular to a compilation method and a system for hiding sensitive function call details by using assembly codes. Background technique [0002] According to the statistics of EnfoDesk Analysys think tank industry database, by the end of 2012, the scale of China's mobile Internet market reached 150 billion, with more than 500 million mobile Internet users. Under the condition of fierce market competition, it becomes particularly important for enterprises to use software encryption technology to protect their core technology. [0003] The main purpose of code obfuscation is to protect the source code, use software encryption technology to encrypt executable programs and dynamic libraries, and prevent reverse engineering. Reverse engineering will bring many problems, such as the leakage of intellectual property rights, exposure of program weaknesses and vu...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/44
Inventor 洪珂陈发民陈鸿
Owner XIAMEN WANGSU CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products