Hi HSE
A quick fix solution may be using the MemFillB procedure, but you have to set the zero terminating char yourself.
Unfortunately, there is no MemFillW proc yet, but it can be added easily.
With this building block we can create a new proc like:
StrFillA proc pBuffer:POINTER, Char:CHRA, dRep:DWORD
invoke MemFillB, pBuffer, dRep, Chr
mov eax, pBuffer
add eax, dRep
mov [eax], 0
ret
StrFillA endp
Biterider