@@ 682-694 (lines=13) @@ | ||
679 | } |
|
680 | $dataSection_Content_Offset += 4 + 4; |
|
681 | } |
|
682 | elseif($dataProp['type']['data'] == 0x1E){ // null-terminated string prepended by dword string length |
|
683 | // Null-terminated string |
|
684 | $dataProp['data']['data'] .= chr(0); |
|
685 | $dataProp['data']['length'] += 1; |
|
686 | // Complete the string with null string for being a %4 |
|
687 | $dataProp['data']['length'] = $dataProp['data']['length'] + ((4 - $dataProp['data']['length'] % 4)==4 ? 0 : (4 - $dataProp['data']['length'] % 4)); |
|
688 | $dataProp['data']['data'] = str_pad($dataProp['data']['data'], $dataProp['data']['length'], chr(0), STR_PAD_RIGHT); |
|
689 | ||
690 | $dataSection_Content .= pack('V', $dataProp['data']['length']); |
|
691 | $dataSection_Content .= $dataProp['data']['data']; |
|
692 | ||
693 | $dataSection_Content_Offset += 4 + 4 + strlen($dataProp['data']['data']); |
|
694 | } |
|
695 | elseif($dataProp['type']['data'] == 0x40){ // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601) |
|
696 | $dataSection_Content .= $dataProp['data']['data']; |
|
697 | ||
@@ 861-873 (lines=13) @@ | ||
858 | ||
859 | $dataSection_Content_Offset += 4 + 4; |
|
860 | } |
|
861 | elseif($dataProp['type']['data'] == 0x1E){ // null-terminated string prepended by dword string length |
|
862 | // Null-terminated string |
|
863 | $dataProp['data']['data'] .= chr(0); |
|
864 | $dataProp['data']['length'] += 1; |
|
865 | // Complete the string with null string for being a %4 |
|
866 | $dataProp['data']['length'] = $dataProp['data']['length'] + ((4 - $dataProp['data']['length'] % 4)==4 ? 0 : (4 - $dataProp['data']['length'] % 4)); |
|
867 | $dataProp['data']['data'] = str_pad($dataProp['data']['data'], $dataProp['data']['length'], chr(0), STR_PAD_RIGHT); |
|
868 | ||
869 | $dataSection_Content .= pack('V', $dataProp['data']['length']); |
|
870 | $dataSection_Content .= $dataProp['data']['data']; |
|
871 | ||
872 | $dataSection_Content_Offset += 4 + 4 + strlen($dataProp['data']['data']); |
|
873 | } |
|
874 | elseif($dataProp['type']['data'] == 0x40){ // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601) |
|
875 | $dataSection_Content .= $dataProp['data']['data']; |
|
876 |