Nail it to the sidewall (or glue it if nailing isn't possible). If the kick-out and step flashing can't tuck behind the siding, screw on cap flashing to cover it, then caulk along the top.
Some results have been hidden because they may be inaccessible to you