So for clarification, your description seemed like you may not have a time variable - just group and dead: yes/no.
For survival analysis you need the time piece as well, so the day they died, if they died. If you have this, than survival analysis can be used for say 40-day survival where you censor all non-dead at 40 days and the same thing can be done for the 1-year mark.
However, if you just have group and death status at 40 days and then again at 1-year without the time piece, this information is less informative and you would most likely use logistic regression.