Combine 1 lb/450 g of the sugar and the egg whites in a bowl and heat over simmering water, whisking constantly, until the mixture reaches 140°F/60°C. Remove from the heat and mix in the almond paste, vanilla extract, and almond extract with a wooden spoon until just incorporated.