include just have a simple directory struc
so it works ok
xor ecx,ecx
mov edx,o pehdr
add edx,[edx.IMAGE_DOS_HEADER.e_lfanew]
mov eax,[edx.IMAGE_NT_HEADERS.OptionalHeader.ImageBase]
mov imagebase,eax
mov cx,[edx.IMAGE_NT_HEADERS.FileHeader.NumberOfSections]
add edx,size IMAGE_NT_HEADERS
mov edi,o sectionlist
but how to get into tls.directory and get its virtual address only thing there is that tls equ 9 so its 10th directory since 0
also no exception_guard_page, have to use status_guard_page equ 80000001h
because it looks now like it and its nightmare :)
lea eax,[eax.IMAGE_NT_HEADERS.OptionalHeader.DataDirectory+IMAGE_DIRECTORY_ENTRY_TLS*size IMAGE_DATA_DIRECTORY+IMAGE_DATA_DIRECTORY.VirtualAddress]