<s> import sys <EOL> import os . path <EOL> sys . path . append ( os . path . abspath ( __file__ + "<STR_LIT>" ) ) <EOL> import windows <EOL> print ( "<STR_LIT>" ) <EOL> peb = windows . current_process . peb <EOL> print ( "<STR_LIT>" . format ( peb ) ) <EOL> commandline = peb . commandline <EOL> print ( "<STR_LIT>" . format ( commandline ) ) <EOL> print ( "<STR_LIT>" . format ( repr ( commandline . Buffer ) ) ) <EOL> imagepath = peb . imagepath <EOL> print ( "<STR_LIT>" . format ( imagepath ) ) <EOL> modules = peb . modules <EOL> print ( "<STR_LIT>" . format ( "<STR_LIT:\n>" . join ( str ( m ) for m in modules [ : <NUM_LIT:6> ] ) ) ) <EOL> print ( "<STR_LIT>" ) <EOL> print ( "<STR_LIT>" ) <EOL> k32 = [ m for m in modules if m . name == "<STR_LIT>" ] [ <NUM_LIT:0> ] <EOL> print ( "<STR_LIT>" . format ( k32 ) ) <EOL> print ( "<STR_LIT>" . format ( k32 . name , k32 . fullname ) ) <EOL> print ( "<STR_LIT>" . format ( hex ( k32 . baseaddr ) ) ) <EOL> print ( "<STR_LIT>" ) <EOL> k32pe = k32 . pe <EOL> print ( "<STR_LIT>" . format ( k32pe ) ) <EOL> exports = k32pe . exports <EOL> some_exports = dict ( ( k , v ) for k , v in exports . items ( ) if k in [ <NUM_LIT:0> , <NUM_LIT> , "<STR_LIT>" , "<STR_LIT>" ] ) <EOL> print ( "<STR_LIT>" . format ( some_exports ) ) <EOL> imports = k32pe . imports <EOL> print ( "<STR_LIT>" . format ( [ x for x in imports . keys ( ) if not x . startswith ( "<STR_LIT>" ) ] ) ) <EOL> NtCreateFile_iat = [ x for x in imports [ "<STR_LIT>" ] if x . name == "<STR_LIT>" ] [ <NUM_LIT:0> ] <EOL> print ( "<STR_LIT>" . format ( NtCreateFile_iat , hex ( NtCreateFile_iat . addr ) ) ) <EOL> print ( "<STR_LIT>" . format ( k32pe . sections ) ) </s>
