Skip to content

Instantly share code, notes, and snippets.

@takikawa
Created October 28, 2016 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takikawa/d4e11b7b1dac8b8feec76a7d28047741 to your computer and use it in GitHub Desktop.
Save takikawa/d4e11b7b1dac8b8feec76a7d28047741 to your computer and use it in GitHub Desktop.
$ LD_LIBRARY_PATH="../src" ./pflua-compile --native "tcp"
mcode dump:
7f9f42a14000 4883FE22 cmp rsi, +0x22
7f9f42a14004 7C4E jl 0x7f9f42a14054
7f9f42a14006 480FB7470C movzx rax, word [rdi+0xc]
7f9f42a1400b 4883F808 cmp rax, +0x08
7f9f42a1400f 750D jnz 0x7f9f42a1401e
7f9f42a14011 480FB64F17 movzx rcx, byte [rdi+0x17]
7f9f42a14016 4883F906 cmp rcx, +0x06
7f9f42a1401a 743A jz 0x7f9f42a14056
7f9f42a1401c EB41 jmp 0x7f9f42a1405f
7f9f42a1401e 4883FE36 cmp rsi, +0x36
7f9f42a14022 7C30 jl 0x7f9f42a14054
7f9f42a14024 4881F886DD0000 cmp rax, 0xdd86
7f9f42a1402b 7527 jnz 0x7f9f42a14054
7f9f42a1402d 480FB64F14 movzx rcx, byte [rdi+0x14]
7f9f42a14032 4889C8 mov rax, rcx
7f9f42a14035 4883F806 cmp rax, +0x06
7f9f42a14039 7502 jnz 0x7f9f42a1403d
7f9f42a1403b EB19 jmp 0x7f9f42a14056
7f9f42a1403d 4883FE37 cmp rsi, +0x37
7f9f42a14041 7C11 jl 0x7f9f42a14054
7f9f42a14043 4883F82C cmp rax, +0x2c
7f9f42a14047 750B jnz 0x7f9f42a14054
7f9f42a14049 480FB64736 movzx rax, byte [rdi+0x36]
7f9f42a1404e 4883F806 cmp rax, +0x06
7f9f42a14052 7402 jz 0x7f9f42a14056
7f9f42a14054 EB09 jmp 0x7f9f42a1405f
7f9f42a14056 48C7C001000000 mov rax, 0x1
7f9f42a1405d EB07 jmp 0x7f9f42a14066
7f9f42a1405f 48C7C000000000 mov rax, 0x0
7f9f42a14066 C3 ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment