Type your comment> @thbharam said:
Using radare2 I am able to find strncmp function and main and see their program flow, however I am not understanding how the program jumps to ptrace? Any help will be appreciated
If you look at the program header table in the elf file you will see a DYNAMIC program header. Issuing readelf --dynamic will show you the address of the .init_array section. This section contains constructor functions that will be called before main. One of those functions calls ptrace.