I have dis-assmebled binary and want to check if it contains particular sequence of opcodes(obtained from other reference binary). how to do that . i know plain byte level comparison wont work as as memory address etc may differ.
example :
0000001806991C0 push rdi
.text:00000001806991C1 sub rsp, 30h
.text:00000001806991C5 mov [rsp+38h+var_18], 0FFFFFFFFFFFFFFFEh
.text:00000001806991CE mov [rsp+38h+arg_0], rbx
.text:00000001806991D3 mov rdi, rcx
.text:00000001806991D6 lea rbx, [rcx+60h]
.text:00000001806991DA lea rax, off_180B6BED0
.text:00000001806991E1 mov [rbx], rax
.text:00000001806991E4 xor r8d, r8d
.text:00000001806991E7 lea rdx, nullsub_1
.text:00000001806991EE mov rcx, rbx
.text:00000001806991F1 call sub_1800A4160
.text:00000001806991F6 mov rcx, rbx
.text:00000001806991F9 call sub_1800A4148
.text:00000001806991FE xchg ax, ax
.text:0000000180699200 lea rdx, sub_180259E24
.text:0000000180699207 lea rcx, [rdi+50h]
.text:000000018069920B call sub_180079CEC
.text:0000000180699210 lea rcx, [rdi+50h]
.text:0000000180699214 call sub_1800A74C4
.text:0000000180699219 lea rax, off_180BE6328