Skip to content

Instantly share code, notes, and snippets.

@ohir
Last active April 22, 2022 16:29
Show Gist options
  • Save ohir/1ecfa5ee4308decd9aca5278958043fa to your computer and use it in GitHub Desktop.
Save ohir/1ecfa5ee4308decd9aca5278958043fa to your computer and use it in GitHub Desktop.
Related: https://github.com/go-delve/delve/issues/2985
curscan.go:97 0x1153afe 0f93442431 setnb byte ptr [rsp+0x31]
curscan.go:98 0x1153b03 8b74243c mov esi, dword ptr [rsp+0x3c]
curscan.go:98 0x1153b07 c1ee10 shr esi, 0x10
curscan.go:98 0x1153b0a 81fe9ff00000 cmp esi, 0xf09f
curscan.go:98 0x1153b10 0f95442435 setnz byte ptr [rsp+0x35]
curscan.go:98 0x1153b15 7502 jnz 0x1153b19
curscan.go:98 0x1153b17 eb02 jmp 0x1153b1b
curscan.go:98 0x1153b19 eb20 jmp 0x1153b3b
curscan.go:99 0x1153b1b 488b352e861000 mov rsi, qword ptr [main.F0seqBT]
curscan.go:99 0x1153b22 8406 test byte ptr [rsi], al
curscan.go:99 0x1153b24 8b7c243c mov edi, dword ptr [rsp+0x3c]
curscan.go:99 0x1153b28 c1ef08 shr edi, 0x8
curscan.go:99 0x1153b2b 83e73f and edi, 0x3f
curscan.go:99 0x1153b2e 4801fe add rsi, rdi
curscan.go:99 0x1153b31 803e00 cmp byte ptr [rsi], 0x0
curscan.go:98 0x1153b34 0f94442435 setz byte ptr [rsp+0x35]
curscan.go:99 0x1153b39 eb00 jmp 0x1153b3b
curscan.go:99 0x1153b3b 0fb6742435 movzx esi, byte ptr [rsp+0x35]
curscan.go:99 0x1153b40 4088742437 mov byte ptr [rsp+0x37], sil
curscan.go:99 0x1153b45 4084f6 test sil, sil
curscan.go:99 0x1153b48 7502 jnz 0x1153b4c
curscan.go:99 0x1153b4a eb02 jmp 0x1153b4e
curscan.go:99 0x1153b4c eb4a jmp 0x1153b98
curscan.go:100 0x1153b4e 488b35fb851000 mov rsi, qword ptr [main.F0seqBT]
curscan.go:100 0x1153b55 8406 test byte ptr [rsi], al
curscan.go:100 0x1153b57 488b3df2851000 mov rdi, qword ptr [main.F0seqBT]
curscan.go:100 0x1153b5e 8407 test byte ptr [rdi], al
curscan.go:100 0x1153b60 448b44243c mov r8d, dword ptr [rsp+0x3c]
curscan.go:100 0x1153b65 41c1e808 shr r8d, 0x8
curscan.go:100 0x1153b69 4183e03f and r8d, 0x3f
curscan.go:100 0x1153b6d 4c01c7 add rdi, r8
curscan.go:100 0x1153b70 0fb607 movzx eax, byte ptr [rdi]
curscan.go:100 0x1153b73 4883f820 cmp rax, 0x20
curscan.go:100 0x1153b77 7205 jb 0x1153b7e
curscan.go:100 0x1153b79 e9c70e0000 jmp 0x1154a45
curscan.go:100 0x1153b7e 488d34c6 lea rsi, ptr [rsi+rax*8]
curscan.go:100 0x1153b82 488d7640 lea rsi, ptr [rsi+0x40]
curscan.go:100 0x1153b86 488b36 mov rsi, qword ptr [rsi]
curscan.go:100 0x1153b89 8b7c243c mov edi, dword ptr [rsp+0x3c]
curscan.go:99 0x1153b8d 480fa3fe bt rsi, rdi
curscan.go:99 0x1153b91 0f93442437 setnb byte ptr [rsp+0x37]
curscan.go:100 0x1153b96 eb00 jmp 0x1153b98
curscan.go:98 0x1153b98 807c243700 cmp byte ptr [rsp+0x37], 0x0
curscan.go:98 0x1153b9d 0f1f00 nop dword ptr [rax], eax
*** curscan.go:100 0x1153ba0 0f85890e0000 jnz 0x1154a2f
curscan.go:100 0x1153ba6 eb00 jmp 0x1153ba8
curscan.go:104 0x1153ba8 eb00 jmp 0x1153baa
curscan.go:104 0x1153baa 8b74243c mov esi, dword ptr [rsp+0x3c]
curscan.go:104 0x1153bae c1ee10 shr esi, 0x10
[...cut...]
*** curscan.go:102 0x1154a2f 488d056afc0100 lea rax, ptr [rip+0x1fc6a]
curscan.go:102 0x1154a36 488d1df3590500 lea rbx, ptr [rip+0x559f3]
curscan.go:102 0x1154a3d 0f1f00 nop dword ptr [rax], eax
curscan.go:102 0x1154a40 e81b0ceeff call $runtime.gopanic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment