ListCorrelate[{1, 2, 3, 4}, {a, b, c, d, e}, {1, -1}, 0, #2^#1 &, Plus]
As described in the documentation of ListCorrelate, you can replace Time and Plus in the correlation with any function you desire.
Best regards,
Emil Hedevang