Does OEM4 API support dynamic memory allocation?

No. currently only static memory allocation is supported.