Please read the contract. Your can terminate it as per the terms of the contract by giving your company the required notice period. You should do this in writing or through email and keep a copy of it. If you terminate the contract before it ends, you may lose your return ticket from the company but this depends on what your contract says. You will get all the benefits, if any, from the company and if they refuse to pay you, you can take them to the Labor Office. There is no way by which the authorities can help you get a NOC from your employers. The power to issue you a NOC or to reject it, lies with the employers, so far.