[ create a new paste ] login | about

Link: http://codepad.org/ATavZZK7    [ raw code | output | fork ]

Python, pasted on Sep 7:
>>> for imp in pe.DIRECTORY_ENTRY_IMPORT:
...     print imp.dll
...     for api in imp.imports:
...             print "\t%s" %api.name
... 
SHELL32.dll
	SHGetSpecialFolderPathW
	SHGetFolderPathW
	ShellAboutW
	None
	ShellExecuteExW
SHLWAPI.dll
	None
gdiplus.dll
	GdipDrawLineI
	GdipDrawArcI
	GdipFillRectangleI
	GdipCloneBrush
	GdipCloneImage
	GdipCreateBitmapFromHBITMAP
	GdipCreateFromHDC
	GdipDrawImageRectI
	GdipSetInterpolationMode
	GdipSetPageUnit
	GdipCreateSolidFill
	GdipCreateBitmapFromScan0
	GdipDisposeImage
	GdipDeleteGraphics
	GdipDeletePen
	GdipCreatePen1
	GdipDeleteBrush
	GdipAlloc
	GdipFree
	GdiplusStartup
	GdiplusShutdown
	GdipGetImageGraphicsContext
	GdipSetSmoothingMode
	GdipCloneBitmapAreaI
	GdipCreateHBITMAPFromBitmap
ADVAPI32.dll
	RegEnumKeyExW
	RegOpenKeyExW
	RegQueryInfoKeyW
	RegGetValueW
	RegEnumValueW
	RegDeleteKeyW
	RegQueryValueExW
	RegSetValueExW
	OpenSCManagerW
	OpenServiceW
	QueryServiceConfigW
	CloseServiceHandle
	RegCreateKeyExW
	RegCloseKey
	EventWrite
	EventUnregister
	EventRegister
OLEAUT32.dll
	None
	None
	None
	None
	None
	None
UxTheme.dll
	IsThemeActive
ole32.dll
	CoInitialize
	CoUninitialize
	CoCreateInstance
COMCTL32.dll
	ImageList_Destroy
	ImageList_Add
	ImageList_Create
	None
	CreatePropertySheetPageW
	PropertySheetW
	None
	None
	None
ntdll.dll
	WinSqmAddToStreamEx
	WinSqmIncrementDWORD
	WinSqmAddToStream
	NtQueryLicenseValue
	RtlInitUnicodeString
KERNEL32.dll
	lstrlenA
	WideCharToMultiByte
	GetStartupInfoA
	OutputDebugStringA
	SetUnhandledExceptionFilter
	GetModuleHandleA
	QueryPerformanceCounter
	GetTickCount
	GetCurrentThreadId
	GetVersionExA
	DeleteCriticalSection
	InitializeCriticalSection
	LeaveCriticalSection
	EnterCriticalSection
	GetCurrentProcessId
	SizeofResource
	LockResource
	LoadResource
	FindResourceW
	FindResourceExW
	GetModuleHandleW
	GetSystemTime
	SetEvent
	CloseHandle
	WaitForSingleObject
	CreateThread
	CreateEventW
	ResetEvent
	lstrcmpW
	GlobalAlloc
	GlobalUnlock
	GlobalLock
	GlobalSize
	MulDiv
	GlobalFindAtomW
	GetLastError
	InterlockedDecrement
	MultiByteToWideChar
	GetLocalTime
	GetLocaleInfoW
	GetDateFormatW
	InterlockedIncrement
	WritePrivateProfileStringW
	GetPrivateProfileStringW
	lstrcmpiW
	GetLocaleInfoEx
	GetProcAddress
	LoadLibraryW
	FreeLibrary
	DelayLoadFailureHook
	InterlockedCompareExchange
	LoadLibraryExA
	HeapFree
	HeapAlloc
	GetProcessHeap
	GetVersionExW
	InterlockedExchange
	FreeLibraryAndExitThread
	GetFileAttributesW
	Wow64RevertWow64FsRedirection
	Wow64DisableWow64FsRedirection
	IsWow64Process
	GetCurrentProcess
	GetModuleFileNameW
	LocalFree
	LocalReAlloc
	LocalAlloc
	GetProfileStringW
	lstrlenW
	CompareStringW
	ApplicationRecoveryInProgress
	Sleep
	ApplicationRecoveryFinished
	RegisterApplicationRecoveryCallback
	RegisterApplicationRestart
	CompareFileTime
	SystemTimeToFileTime
	GetTempFileNameW
	FileTimeToSystemTime
	DeleteFileW
	CreateFileW
	GetSystemTimeAsFileTime
	TerminateProcess
	UnhandledExceptionFilter
	HeapDestroy
	HeapReAlloc
	HeapSize
	RaiseException
USER32.dll
	GetSysColor
	SetClassLongW
	GetClassLongW
	DrawMenuBar
	SetMenuItemInfoW
	AppendMenuW
	RemoveMenu
	GetSubMenu
	GetWindowLongW
	InsertMenuItemW
	SetWindowLongW
	IsWindowEnabled
	PostMessageW
	CharNextA
	SetClipboardData
	EmptyClipboard
	CloseClipboard
	GetClipboardData
	OpenClipboard
	GetMenuState
	IsClipboardFormatAvailable
	DefWindowProcW
	InvalidateRect
	PostQuitMessage
	GetFocus
	DispatchMessageW
	TranslateMessage
	GetMessageExtraInfo
	TranslateAcceleratorW
	GetMessageW
	SetForegroundWindow
	SetWindowPlacement
	RegisterClassExW
	DrawTextW
	ReleaseDC
	GetDC
	GetSystemMetrics
	EnumChildWindows
	SetPropW
	GetMenu
	CheckRadioButton
	UpdateWindow
	SendDlgItemMessageW
	IsDlgButtonChecked
	MoveWindow
	GetDlgItemInt
	SetDlgItemInt
	CheckMenuItem
	GetNextDlgTabItem
	OffsetRect
	GetMonitorInfoW
	MonitorFromWindow
	CopyRect
	IntersectRect
	EnumDisplayMonitors
	EqualRect
	MonitorFromRect
	GetClassWord
	EnumDesktopWindows
	GetProcessDefaultLayout
	CreateDialogParamW
	TrackPopupMenu
	CreatePopupMenu
	GetAncestor
	FindWindowW
	EndDialog
	EnableMenuItem
	DestroyWindow
	MapWindowPoints
	GetClassNameW
	GetDlgItem
	GetWindowRect
	SetWindowPos
	SendMessageW
	LoadCursorW
	SetCursor
	GetKeyState
	IsDialogMessageW
	LoadAcceleratorsW
	GetWindowTextLengthW
	GetWindowTextW
	EnableWindow
	SetFocus
	LoadStringW
	SetWindowTextW
	GetParent
	GetClientRect
	ShowWindow
	GetWindowPlacement
	LoadImageW
	UnregisterClassA
	FillRect
	CheckMenuRadioItem
	CreateWindowExW
	MessageBeep
	SystemParametersInfoW
	DialogBoxParamW
RPCRT4.dll
	UuidCreate
	UuidToStringW
	RpcStringFreeW
WINMM.dll
	timeGetTime
VERSION.dll
	GetFileVersionInfoExW
	GetFileVersionInfoSizeExW
	VerQueryValueW
GDI32.dll
	EqualRgn
	CreateDIBSection
	DeleteObject
	DeleteDC
	GetTextExtentPointW
	CreateFontIndirectW
	CreateCompatibleDC
	GetDeviceCaps
	GetRgnBox
	CreateSolidBrush
	GetTextMetricsW
	GetTextExtentPoint32W
	GetObjectW
	LineTo
	MoveToEx
	ExtCreatePen
	CreateCompatibleBitmap
	CreateRectRgn
	CreateRectRgnIndirect
	SetRectRgn
	CombineRgn
	SelectObject
	CreatePatternBrush
	SetTextColor
	SetBkMode
	GetStockObject
	SetBkColor
msvcrt.dll
	wcsncmp
	_wcsnicmp
	iswdigit
	_wcslwr_s
	iswalpha
	??0bad_cast@@QAE@ABV0@@Z
	??1bad_cast@@UAE@XZ
	localeconv
	memchr
	strcspn
	sprintf_s
	_strtoi64
	_strtoui64
	_wcsdup
	_i64tow_s
	_wtoi64
	wcsrchr
	wcstoul
	isalpha
	time
	difftime
	memmove
	_callnewh
	__pctype_func
	___lc_codepage_func
	___lc_handle_func
	_itow_s
	___mb_cur_max_func
	setlocale
	__crtGetStringTypeW
	__crtLCMapStringW
	__mb_cur_max
	tolower
	isspace
	abort
	isalnum
	__getmainargs
	_cexit
	_exit
	_XcptFilter
	_ismbblead
	_acmdln
	_initterm
	_amsg_exit
	__setusermatherr
	__p__commode
	__p__fmode
	__set_app_type
	??1type_info@@UAE@XZ
	_unlock
	__dllonexit
	_lock
	_onexit
	?terminate@@YAXXZ
	__uncaught_exception
	_except_handler4_common
	_controlfp
	_wtoi
	_itoa
	calloc
	wcschr
	_wcsicmp
	_vsnwprintf
	memcpy
	wcscat_s
	wcstol
	wcscpy_s
	exit
	mbstowcs_s
	toupper
	isxdigit
	isdigit
	_ftol2_sse
	memset
	_ftol2
	malloc
	_purecall
	free
	??0exception@@QAE@XZ
	_CxxThrowException
	??0exception@@QAE@ABV0@@Z
	??1exception@@UAE@XZ
	?what@exception@@UBEPBDXZ
	??0exception@@QAE@ABQBD@Z
	memmove_s
	memcpy_s
	__CxxFrameHandler3
	_errno
	_wcsrev


Output:
1
2
3
4
  Line 1
    >>> for imp in pe.DIRECTORY_ENTRY_IMPORT:
     ^
SyntaxError: invalid syntax


Create a new paste based on this one


Comments: