Skip to content

Instantly share code, notes, and snippets.

@ayende
Created June 26, 2018 11:21
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 ayende/5e9997761a1af021491926ad2f38011a to your computer and use it in GitHub Desktop.
Save ayende/5e9997761a1af021491926ad2f38011a to your computer and use it in GitHub Desktop.
L0038: mov eax, esi
L003a: sar eax, 0x1f
L003d: mov edx, esi
L003f: mov esi, eax
L0041: movzx ebx, byte [edi]
L0044: test esi, esi
L0046: jnz L004d
L0048: cmp edx, 0x1
L004b: jz L0071
L004d: movzx eax, byte [edi+0x1]
L0051: shl eax, 0x8
L0054: or ebx, eax
L0056: test esi, esi
L0058: jnz L005f
L005a: cmp edx, 0x2
L005d: jz L0071
L005f: movsx eax, word [edi+0x2]
L0063: shl eax, 0x10
L0066: or ebx, eax
L0068: test esi, esi
L006a: jnz L0075
L006c: cmp edx, 0x4
L006f: jnz L0075
L0071: mov eax, ebx
L0073: jmp L007d
L0075: push esi
L0076: push edx
L0077: call dword [0x2e7b16cc]
L007d: mov ecx, eax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment