The last three look very common for port binding shellcode that reuses an existing
network socket but what about socketcall()? Let’s have a look at the four pieces of code
in which the found system calls are used, beginning with the socket call.
Socketcall is an interface to several socket functions.The first argument of socketcall,
which is stored in EBX contains the identifier of the function that needs to be used. In
the code we see that the value 0x7 is put in EBX at line 17, right before the kernel is
called.This means that the getpeername function is being used.The second argument of
the socket call is a pointer to the arguments that have to be given to the function
defined in the first argument.
The getpeername function returns the name of a peer ...