.The South Korean tech titan reported better-than-expected web earnings but earnings in its primary semiconductor business shrank sharply.