lief 0.16.5__cp311-cp311-musllinux_1_2_i686.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of lief might be problematic. Click here for more details.

lief/PE/__init__.pyi ADDED
@@ -0,0 +1,4098 @@
1
+ from collections.abc import Sequence
2
+ import enum
3
+ import io
4
+ import lief.PE
5
+ import os
6
+ from typing import Iterator, Optional, Union, overload
7
+
8
+ import lief
9
+
10
+
11
+ class ACCELERATOR_FLAGS(enum.Flag):
12
+ @staticmethod
13
+ def from_value(arg: int, /) -> ACCELERATOR_FLAGS: ...
14
+
15
+ def __eq__(self, arg, /) -> bool: ...
16
+
17
+ def __ne__(self, arg, /) -> bool: ...
18
+
19
+ def __int__(self) -> int: ...
20
+
21
+ FVIRTKEY = 1
22
+
23
+ FNOINVERT = 2
24
+
25
+ FSHIFT = 4
26
+
27
+ FCONTROL = 8
28
+
29
+ FALT = 16
30
+
31
+ END = 128
32
+
33
+ class ACCELERATOR_VK_CODES(enum.Enum):
34
+ @staticmethod
35
+ def from_value(arg: int, /) -> ACCELERATOR_VK_CODES: ...
36
+
37
+ def __eq__(self, arg, /) -> bool: ...
38
+
39
+ def __ne__(self, arg, /) -> bool: ...
40
+
41
+ def __int__(self) -> int: ...
42
+
43
+ VK_LBUTTON = 1
44
+
45
+ VK_RBUTTON = 2
46
+
47
+ VK_CANCEL = 3
48
+
49
+ VK_MBUTTON = 4
50
+
51
+ VK_XBUTTON1 = 5
52
+
53
+ VK_XBUTTON2 = 6
54
+
55
+ VK_BACK = 8
56
+
57
+ VK_TAB = 9
58
+
59
+ VK_CLEAR = 12
60
+
61
+ VK_RETURN = 13
62
+
63
+ VK_SHIFT = 16
64
+
65
+ VK_CONTROL = 17
66
+
67
+ VK_MENU = 18
68
+
69
+ VK_PAUSE = 19
70
+
71
+ VK_CAPITAL = 20
72
+
73
+ VK_KANA = 21
74
+
75
+ VK_HANGUEL = 21
76
+
77
+ VK_HANGUL = 21
78
+
79
+ VK_IME_ON = 22
80
+
81
+ VK_JUNJA = 23
82
+
83
+ VK_FINAL = 24
84
+
85
+ VK_HANJA = 25
86
+
87
+ VK_KANJI = 25
88
+
89
+ VK_IME_OFF = 26
90
+
91
+ VK_ESCAPE = 27
92
+
93
+ VK_CONVERT = 28
94
+
95
+ VK_NONCONVERT = 29
96
+
97
+ VK_ACCEPT = 30
98
+
99
+ VK_MODECHANGE = 31
100
+
101
+ VK_SPACE = 32
102
+
103
+ VK_PRIOR = 33
104
+
105
+ VK_NEXT = 34
106
+
107
+ VK_END = 35
108
+
109
+ VK_HOME = 36
110
+
111
+ VK_LEFT = 37
112
+
113
+ VK_UP = 38
114
+
115
+ VK_RIGHT = 39
116
+
117
+ VK_DOWN = 40
118
+
119
+ VK_SELECT = 41
120
+
121
+ VK_PRINT = 42
122
+
123
+ VK_EXECUTE = 43
124
+
125
+ VK_SNAPSHOT = 44
126
+
127
+ VK_INSERT = 45
128
+
129
+ VK_DELETE = 46
130
+
131
+ VK_HELP = 47
132
+
133
+ VK_0 = 48
134
+
135
+ VK_1 = 49
136
+
137
+ VK_2 = 50
138
+
139
+ VK_3 = 51
140
+
141
+ VK_4 = 52
142
+
143
+ VK_5 = 53
144
+
145
+ VK_6 = 54
146
+
147
+ VK_7 = 55
148
+
149
+ VK_8 = 56
150
+
151
+ VK_9 = 57
152
+
153
+ VK_A = 65
154
+
155
+ VK_B = 66
156
+
157
+ VK_C = 67
158
+
159
+ VK_D = 68
160
+
161
+ VK_E = 69
162
+
163
+ VK_F = 70
164
+
165
+ VK_G = 71
166
+
167
+ VK_H = 72
168
+
169
+ VK_I = 73
170
+
171
+ VK_J = 74
172
+
173
+ VK_K = 75
174
+
175
+ VK_L = 76
176
+
177
+ VK_M = 77
178
+
179
+ VK_N = 78
180
+
181
+ VK_O = 79
182
+
183
+ VK_P = 80
184
+
185
+ VK_Q = 81
186
+
187
+ VK_R = 82
188
+
189
+ VK_S = 83
190
+
191
+ VK_T = 84
192
+
193
+ VK_U = 85
194
+
195
+ VK_V = 86
196
+
197
+ VK_W = 87
198
+
199
+ VK_X = 88
200
+
201
+ VK_Y = 89
202
+
203
+ VK_Z = 96
204
+
205
+ VK_LWIN = 91
206
+
207
+ VK_RWIN = 92
208
+
209
+ VK_APPS = 93
210
+
211
+ VK_SLEEP = 95
212
+
213
+ VK_NUMPAD0 = 96
214
+
215
+ VK_NUMPAD1 = 97
216
+
217
+ VK_NUMPAD2 = 98
218
+
219
+ VK_NUMPAD3 = 99
220
+
221
+ VK_NUMPAD4 = 100
222
+
223
+ VK_NUMPAD5 = 101
224
+
225
+ VK_NUMPAD6 = 102
226
+
227
+ VK_NUMPAD7 = 103
228
+
229
+ VK_NUMPAD8 = 104
230
+
231
+ VK_NUMPAD9 = 105
232
+
233
+ VK_MULTIPLY = 106
234
+
235
+ VK_ADD = 107
236
+
237
+ VK_SEPARATOR = 108
238
+
239
+ VK_SUBTRACT = 109
240
+
241
+ VK_DECIMAL = 110
242
+
243
+ VK_DIVIDE = 111
244
+
245
+ VK_F1 = 112
246
+
247
+ VK_F2 = 113
248
+
249
+ VK_F3 = 114
250
+
251
+ VK_F4 = 115
252
+
253
+ VK_F5 = 116
254
+
255
+ VK_F6 = 117
256
+
257
+ VK_F7 = 118
258
+
259
+ VK_F8 = 119
260
+
261
+ VK_F9 = 120
262
+
263
+ VK_F10 = 121
264
+
265
+ VK_F11 = 122
266
+
267
+ VK_F12 = 123
268
+
269
+ VK_F13 = 124
270
+
271
+ VK_F14 = 125
272
+
273
+ VK_F15 = 126
274
+
275
+ VK_F16 = 127
276
+
277
+ VK_F17 = 128
278
+
279
+ VK_F18 = 129
280
+
281
+ VK_F19 = 130
282
+
283
+ VK_F20 = 131
284
+
285
+ VK_F21 = 132
286
+
287
+ VK_F22 = 133
288
+
289
+ VK_F23 = 134
290
+
291
+ VK_F24 = 135
292
+
293
+ VK_NUMLOCK = 144
294
+
295
+ VK_SCROLL = 145
296
+
297
+ VK_LSHIFT = 160
298
+
299
+ VK_RSHIFT = 161
300
+
301
+ VK_LCONTROL = 162
302
+
303
+ VK_RCONTROL = 163
304
+
305
+ VK_LMENU = 164
306
+
307
+ VK_RMENU = 165
308
+
309
+ VK_BROWSER_BACK = 166
310
+
311
+ VK_BROWSER_FORWARD = 167
312
+
313
+ VK_BROWSER_REFRESH = 168
314
+
315
+ VK_BROWSER_STOP = 169
316
+
317
+ VK_BROWSER_SEARCH = 170
318
+
319
+ VK_BROWSER_FAVORITES = 171
320
+
321
+ VK_BROWSER_HOME = 172
322
+
323
+ VK_VOLUME_MUTE = 173
324
+
325
+ VK_VOLUME_DOWN = 174
326
+
327
+ VK_VOLUME_UP = 175
328
+
329
+ VK_MEDIA_NEXT_TRACK = 176
330
+
331
+ VK_MEDIA_PREV_TRACK = 177
332
+
333
+ VK_MEDIA_STOP = 178
334
+
335
+ VK_MEDIA_PLAY_PAUSE = 179
336
+
337
+ VK_LAUNCH_MAIL = 180
338
+
339
+ VK_LAUNCH_MEDIA_SELECT = 181
340
+
341
+ VK_LAUNCH_APP1 = 182
342
+
343
+ VK_LAUNCH_APP2 = 183
344
+
345
+ VK_OEM_1 = 186
346
+
347
+ VK_OEM_PLUS = 187
348
+
349
+ VK_OEM_COMMA = 188
350
+
351
+ VK_OEM_MINUS = 189
352
+
353
+ VK_OEM_PERIOD = 190
354
+
355
+ VK_OEM_2 = 191
356
+
357
+ VK_OEM_4 = 219
358
+
359
+ VK_OEM_5 = 220
360
+
361
+ VK_OEM_6 = 221
362
+
363
+ VK_OEM_7 = 222
364
+
365
+ VK_OEM_8 = 223
366
+
367
+ VK_OEM_102 = 226
368
+
369
+ VK_PROCESSKEY = 229
370
+
371
+ VK_PACKET = 231
372
+
373
+ VK_ATTN = 246
374
+
375
+ VK_CRSEL = 247
376
+
377
+ VK_EXSEL = 248
378
+
379
+ VK_EREOF = 249
380
+
381
+ VK_PLAY = 250
382
+
383
+ VK_ZOOM = 251
384
+
385
+ VK_NONAME = 252
386
+
387
+ VK_PA1 = 253
388
+
389
+ VK_OEM_CLEAR = 254
390
+
391
+ class ALGORITHMS(enum.Enum):
392
+ @staticmethod
393
+ def from_value(arg: int, /) -> ALGORITHMS: ...
394
+
395
+ def __eq__(self, arg, /) -> bool: ...
396
+
397
+ def __ne__(self, arg, /) -> bool: ...
398
+
399
+ def __int__(self) -> int: ...
400
+
401
+ UNKNOWN = 0
402
+
403
+ SHA_512 = 1
404
+
405
+ SHA_384 = 2
406
+
407
+ SHA_256 = 3
408
+
409
+ SHA_1 = 4
410
+
411
+ MD5 = 5
412
+
413
+ MD4 = 6
414
+
415
+ MD2 = 7
416
+
417
+ RSA = 8
418
+
419
+ EC = 9
420
+
421
+ MD5_RSA = 10
422
+
423
+ SHA1_DSA = 11
424
+
425
+ SHA1_RSA = 12
426
+
427
+ SHA_256_RSA = 13
428
+
429
+ SHA_384_RSA = 14
430
+
431
+ SHA_512_RSA = 15
432
+
433
+ SHA1_ECDSA = 16
434
+
435
+ SHA_256_ECDSA = 17
436
+
437
+ SHA_384_ECDSA = 18
438
+
439
+ SHA_512_ECDSA = 19
440
+
441
+ class Attribute(lief.Object):
442
+ class TYPE(enum.Enum):
443
+ @staticmethod
444
+ def from_value(arg: int, /) -> Attribute.TYPE: ...
445
+
446
+ def __eq__(self, arg, /) -> bool: ...
447
+
448
+ def __ne__(self, arg, /) -> bool: ...
449
+
450
+ def __int__(self) -> int: ...
451
+
452
+ UNKNOWN = 0
453
+
454
+ CONTENT_TYPE = 1
455
+
456
+ GENERIC_TYPE = 2
457
+
458
+ SPC_SP_OPUS_INFO = 4
459
+
460
+ MS_COUNTER_SIGN = 6
461
+
462
+ MS_SPC_NESTED_SIGN = 7
463
+
464
+ MS_SPC_STATEMENT_TYPE = 8
465
+
466
+ SPC_RELAXED_PE_MARKER_CHECK = 5
467
+
468
+ SIGNING_CERTIFICATE_V2 = 3
469
+
470
+ MS_PLATFORM_MANIFEST_BINARY_ID = 9
471
+
472
+ PKCS9_AT_SEQUENCE_NUMBER = 10
473
+
474
+ PKCS9_COUNTER_SIGNATURE = 11
475
+
476
+ PKCS9_MESSAGE_DIGEST = 12
477
+
478
+ PKCS9_SIGNING_TIME = 13
479
+
480
+ @property
481
+ def type(self) -> Attribute.TYPE: ...
482
+
483
+ def __str__(self) -> str: ...
484
+
485
+ class Binary(lief.Binary):
486
+ def __init__(self, type: PE_TYPE) -> None: ...
487
+
488
+ class it_section:
489
+ def __getitem__(self, arg: int, /) -> Section: ...
490
+
491
+ def __len__(self) -> int: ...
492
+
493
+ def __iter__(self) -> Binary.it_section: ...
494
+
495
+ def __next__(self) -> Section: ...
496
+
497
+ class it_data_directories:
498
+ def __getitem__(self, arg: int, /) -> DataDirectory: ...
499
+
500
+ def __len__(self) -> int: ...
501
+
502
+ def __iter__(self) -> Binary.it_data_directories: ...
503
+
504
+ def __next__(self) -> DataDirectory: ...
505
+
506
+ class it_relocations:
507
+ def __getitem__(self, arg: int, /) -> Relocation: ...
508
+
509
+ def __len__(self) -> int: ...
510
+
511
+ def __iter__(self) -> Binary.it_relocations: ...
512
+
513
+ def __next__(self) -> Relocation: ...
514
+
515
+ class it_imports:
516
+ def __getitem__(self, arg: int, /) -> Import: ...
517
+
518
+ def __len__(self) -> int: ...
519
+
520
+ def __iter__(self) -> Binary.it_imports: ...
521
+
522
+ def __next__(self) -> Import: ...
523
+
524
+ class it_delay_imports:
525
+ def __getitem__(self, arg: int, /) -> DelayImport: ...
526
+
527
+ def __len__(self) -> int: ...
528
+
529
+ def __iter__(self) -> Binary.it_delay_imports: ...
530
+
531
+ def __next__(self) -> DelayImport: ...
532
+
533
+ class it_symbols:
534
+ def __getitem__(self, arg: int, /) -> Symbol: ...
535
+
536
+ def __len__(self) -> int: ...
537
+
538
+ def __iter__(self) -> Binary.it_symbols: ...
539
+
540
+ def __next__(self) -> Symbol: ...
541
+
542
+ class it_const_signatures:
543
+ def __getitem__(self, arg: int, /) -> Signature: ...
544
+
545
+ def __len__(self) -> int: ...
546
+
547
+ def __iter__(self) -> Binary.it_const_signatures: ...
548
+
549
+ def __next__(self) -> Signature: ...
550
+
551
+ class it_debug:
552
+ def __getitem__(self, arg: int, /) -> Debug: ...
553
+
554
+ def __len__(self) -> int: ...
555
+
556
+ def __iter__(self) -> Binary.it_debug: ...
557
+
558
+ def __next__(self) -> Debug: ...
559
+
560
+ @property
561
+ def sections(self) -> Binary.it_section: ... # type: ignore
562
+
563
+ @property
564
+ def dos_header(self) -> DosHeader: ...
565
+
566
+ @property
567
+ def header(self) -> Header: ... # type: ignore
568
+
569
+ @property
570
+ def optional_header(self) -> OptionalHeader: ...
571
+
572
+ def compute_checksum(self) -> int: ...
573
+
574
+ @property
575
+ def virtual_size(self) -> int: ...
576
+
577
+ @property
578
+ def sizeof_headers(self) -> int: ...
579
+
580
+ def rva_to_offset(self, rva_address: int) -> int: ...
581
+
582
+ def va_to_offset(self, va_address: int) -> int: ...
583
+
584
+ def section_from_offset(self, offset: int) -> Section: ...
585
+
586
+ def section_from_rva(self, rva: int) -> Section: ...
587
+
588
+ tls: lief.PE.TLS
589
+
590
+ rich_header: lief.PE.RichHeader
591
+
592
+ @property
593
+ def has_rich_header(self) -> bool: ...
594
+
595
+ @property
596
+ def has_debug(self) -> bool: ...
597
+
598
+ @property
599
+ def has_tls(self) -> bool: ...
600
+
601
+ @property
602
+ def has_imports(self) -> bool: ...
603
+
604
+ @property
605
+ def has_exports(self) -> bool: ...
606
+
607
+ @property
608
+ def has_resources(self) -> bool: ...
609
+
610
+ @property
611
+ def has_exceptions(self) -> bool: ...
612
+
613
+ @property
614
+ def has_relocations(self) -> bool: ...
615
+
616
+ @property
617
+ def has_configuration(self) -> bool: ...
618
+
619
+ @property
620
+ def has_signatures(self) -> bool: ...
621
+
622
+ @property
623
+ def is_reproducible_build(self) -> bool: ...
624
+
625
+ @property
626
+ def functions(self) -> list[lief.Function]: ...
627
+
628
+ @property
629
+ def exception_functions(self) -> list[lief.Function]: ...
630
+
631
+ def predict_function_rva(self, library: str, function: str) -> int: ...
632
+
633
+ @property
634
+ def signatures(self) -> Binary.it_const_signatures: ...
635
+
636
+ def authentihash(self, algorithm: ALGORITHMS) -> bytes: ...
637
+
638
+ @overload
639
+ def verify_signature(self, checks: Signature.VERIFICATION_CHECKS = Signature.VERIFICATION_CHECKS.DEFAULT) -> Signature.VERIFICATION_FLAGS: ...
640
+
641
+ @overload
642
+ def verify_signature(self, signature: Signature, checks: Signature.VERIFICATION_CHECKS = Signature.VERIFICATION_CHECKS.DEFAULT) -> Signature.VERIFICATION_FLAGS: ...
643
+
644
+ @property
645
+ def authentihash_md5(self) -> bytes: ...
646
+
647
+ @property
648
+ def authentihash_sha1(self) -> bytes: ...
649
+
650
+ @property
651
+ def authentihash_sha256(self) -> bytes: ...
652
+
653
+ @property
654
+ def authentihash_sha512(self) -> bytes: ...
655
+
656
+ @property
657
+ def debug(self) -> Binary.it_debug: ...
658
+
659
+ @property
660
+ def codeview_pdb(self) -> CodeViewPDB: ...
661
+
662
+ @property
663
+ def load_configuration(self) -> LoadConfiguration: ...
664
+
665
+ def get_export(self) -> Export: ...
666
+
667
+ @property
668
+ def symbols(self) -> list[Symbol]: ... # type: ignore
669
+
670
+ def get_section(self, section_name: str) -> Section: ...
671
+
672
+ def add_section(self, section: Section, type: SECTION_TYPES = SECTION_TYPES.UNKNOWN) -> Section: ...
673
+
674
+ @property
675
+ def relocations(self) -> Binary.it_relocations: ... # type: ignore
676
+
677
+ def add_relocation(self, relocation: Relocation) -> Relocation: ...
678
+
679
+ def remove_all_relocations(self) -> None: ...
680
+
681
+ def remove(self, section: Section, clear: bool = False) -> None: ...
682
+
683
+ @property
684
+ def data_directories(self) -> Binary.it_data_directories: ...
685
+
686
+ def data_directory(self, type: DataDirectory.TYPES) -> DataDirectory: ...
687
+
688
+ @property
689
+ def imports(self) -> Binary.it_imports: ...
690
+
691
+ def has_import(self, import_name: str) -> bool: ...
692
+
693
+ def get_import(self, import_name: str) -> Import: ...
694
+
695
+ @property
696
+ def delay_imports(self) -> Binary.it_delay_imports: ...
697
+
698
+ @property
699
+ def has_delay_imports(self) -> bool: ...
700
+
701
+ def has_delay_import(self, import_name: str) -> bool: ...
702
+
703
+ def get_delay_import(self, import_name: str) -> DelayImport: ...
704
+
705
+ @property
706
+ def resources_manager(self) -> Union[ResourcesManager, lief.lief_errors]: ...
707
+
708
+ @property
709
+ def resources(self) -> ResourceNode: ...
710
+
711
+ @property
712
+ def overlay(self) -> memoryview: ...
713
+
714
+ @property
715
+ def overlay_offset(self) -> int: ...
716
+
717
+ dos_stub: memoryview
718
+
719
+ def add_import_function(self, import_name: str, function_name: str) -> ImportEntry: ...
720
+
721
+ def add_library(self, import_name: str) -> Import: ...
722
+
723
+ def remove_library(self, import_name: str) -> None: ...
724
+
725
+ def remove_all_libraries(self) -> None: ...
726
+
727
+ def write(self, output_path: str) -> None: ...
728
+
729
+ def __str__(self) -> str: ...
730
+
731
+ class Builder:
732
+ def __init__(self, pe_binary: Binary) -> None: ...
733
+
734
+ def build(self) -> Union[lief.ok_t, lief.lief_errors]: ...
735
+
736
+ def build_imports(self, enable: bool = True) -> Builder: ...
737
+
738
+ def patch_imports(self, enable: bool = True) -> Builder: ...
739
+
740
+ def build_relocations(self, enable: bool = True) -> Builder: ...
741
+
742
+ def build_tls(self, enable: bool = True) -> Builder: ...
743
+
744
+ def build_resources(self, enable: bool = True) -> Builder: ...
745
+
746
+ def build_overlay(self, enable: bool = True) -> Builder: ...
747
+
748
+ def build_dos_stub(self, enable: bool = True) -> Builder: ...
749
+
750
+ def write(self, output: str) -> None: ...
751
+
752
+ def get_build(self) -> list[int]: ...
753
+
754
+ def __str__(self) -> str: ...
755
+
756
+ class CODE_PAGES(enum.Enum):
757
+ @staticmethod
758
+ def from_value(arg: int, /) -> CODE_PAGES: ...
759
+
760
+ def __eq__(self, arg, /) -> bool: ...
761
+
762
+ def __ne__(self, arg, /) -> bool: ...
763
+
764
+ def __int__(self) -> int: ...
765
+
766
+ IBM037 = 37
767
+
768
+ IBM437 = 437
769
+
770
+ IBM500 = 500
771
+
772
+ ASMO_708 = 708
773
+
774
+ DOS_720 = 720
775
+
776
+ IBM737 = 737
777
+
778
+ IBM775 = 775
779
+
780
+ IBM850 = 850
781
+
782
+ IBM852 = 852
783
+
784
+ IBM855 = 855
785
+
786
+ IBM857 = 857
787
+
788
+ IBM00858 = 858
789
+
790
+ IBM860 = 860
791
+
792
+ IBM861 = 861
793
+
794
+ DOS_862 = 862
795
+
796
+ IBM863 = 863
797
+
798
+ IBM864 = 864
799
+
800
+ IBM865 = 865
801
+
802
+ CP866 = 866
803
+
804
+ IBM869 = 869
805
+
806
+ IBM870 = 870
807
+
808
+ WINDOWS_874 = 874
809
+
810
+ CP875 = 875
811
+
812
+ SHIFT_JIS = 932
813
+
814
+ GB2312 = 936
815
+
816
+ KS_C_5601_1987 = 949
817
+
818
+ BIG5 = 950
819
+
820
+ IBM1026 = 1026
821
+
822
+ IBM01047 = 1047
823
+
824
+ IBM01140 = 1140
825
+
826
+ IBM01141 = 1141
827
+
828
+ IBM01142 = 1142
829
+
830
+ IBM01143 = 1143
831
+
832
+ IBM01144 = 1144
833
+
834
+ IBM01145 = 1145
835
+
836
+ IBM01146 = 1146
837
+
838
+ IBM01147 = 1147
839
+
840
+ IBM01148 = 1148
841
+
842
+ IBM01149 = 1149
843
+
844
+ UTF_16 = 1200
845
+
846
+ UNICODEFFFE = 1201
847
+
848
+ WINDOWS_1250 = 1250
849
+
850
+ WINDOWS_1251 = 1251
851
+
852
+ WINDOWS_1252 = 1252
853
+
854
+ WINDOWS_1253 = 1253
855
+
856
+ WINDOWS_1254 = 1254
857
+
858
+ WINDOWS_1255 = 1255
859
+
860
+ WINDOWS_1256 = 1256
861
+
862
+ WINDOWS_1257 = 1257
863
+
864
+ WINDOWS_1258 = 1258
865
+
866
+ JOHAB = 1361
867
+
868
+ MACINTOSH = 10000
869
+
870
+ X_MAC_JAPANESE = 10001
871
+
872
+ X_MAC_CHINESETRAD = 10002
873
+
874
+ X_MAC_KOREAN = 10003
875
+
876
+ X_MAC_ARABIC = 10004
877
+
878
+ X_MAC_HEBREW = 10005
879
+
880
+ X_MAC_GREEK = 10006
881
+
882
+ X_MAC_CYRILLIC = 10007
883
+
884
+ X_MAC_CHINESESIMP = 10008
885
+
886
+ X_MAC_ROMANIAN = 10010
887
+
888
+ X_MAC_UKRAINIAN = 10017
889
+
890
+ X_MAC_THAI = 10021
891
+
892
+ X_MAC_CE = 10029
893
+
894
+ X_MAC_ICELANDIC = 10079
895
+
896
+ X_MAC_TURKISH = 10081
897
+
898
+ X_MAC_CROATIAN = 10082
899
+
900
+ UTF_32 = 12000
901
+
902
+ UTF_32BE = 12001
903
+
904
+ X_CHINESE_CNS = 20000
905
+
906
+ X_CP20001 = 20001
907
+
908
+ X_CHINESE_ETEN = 20002
909
+
910
+ X_CP20003 = 20003
911
+
912
+ X_CP20004 = 20004
913
+
914
+ X_CP20005 = 20005
915
+
916
+ X_IA5 = 20105
917
+
918
+ X_IA5_GERMAN = 20106
919
+
920
+ X_IA5_SWEDISH = 20107
921
+
922
+ X_IA5_NORWEGIAN = 20108
923
+
924
+ US_ASCII = 20127
925
+
926
+ X_CP20261 = 20261
927
+
928
+ X_CP20269 = 20269
929
+
930
+ IBM273 = 20273
931
+
932
+ IBM277 = 20277
933
+
934
+ IBM278 = 20278
935
+
936
+ IBM280 = 20280
937
+
938
+ IBM284 = 20284
939
+
940
+ IBM285 = 20285
941
+
942
+ IBM290 = 20290
943
+
944
+ IBM297 = 20297
945
+
946
+ IBM420 = 20420
947
+
948
+ IBM423 = 20423
949
+
950
+ IBM424 = 20424
951
+
952
+ X_EBCDIC_KOREANEXTENDED = 20833
953
+
954
+ IBM_THAI = 20838
955
+
956
+ KOI8_R = 20866
957
+
958
+ IBM871 = 20871
959
+
960
+ IBM880 = 20880
961
+
962
+ IBM905 = 20905
963
+
964
+ IBM00924 = 20924
965
+
966
+ EUC_JP_JIS = 20932
967
+
968
+ X_CP20936 = 20936
969
+
970
+ X_CP20949 = 20949
971
+
972
+ CP1025 = 21025
973
+
974
+ KOI8_U = 21866
975
+
976
+ ISO_8859_1 = 28591
977
+
978
+ ISO_8859_2 = 28592
979
+
980
+ ISO_8859_3 = 28593
981
+
982
+ ISO_8859_4 = 28594
983
+
984
+ ISO_8859_5 = 28595
985
+
986
+ ISO_8859_6 = 28596
987
+
988
+ ISO_8859_7 = 28597
989
+
990
+ ISO_8859_8 = 28598
991
+
992
+ ISO_8859_9 = 28599
993
+
994
+ ISO_8859_13 = 28603
995
+
996
+ ISO_8859_15 = 28605
997
+
998
+ X_EUROPA = 29001
999
+
1000
+ ISO_8859_8_I = 38598
1001
+
1002
+ ISO_2022_JP = 50220
1003
+
1004
+ CSISO2022JP = 50221
1005
+
1006
+ ISO_2022_JP_JIS = 50222
1007
+
1008
+ ISO_2022_KR = 50225
1009
+
1010
+ X_CP50227 = 50227
1011
+
1012
+ EUC_JP = 51932
1013
+
1014
+ EUC_CN = 51936
1015
+
1016
+ EUC_KR = 51949
1017
+
1018
+ HZ_GB_2312 = 52936
1019
+
1020
+ GB18030 = 54936
1021
+
1022
+ X_ISCII_DE = 57002
1023
+
1024
+ X_ISCII_BE = 57003
1025
+
1026
+ X_ISCII_TA = 57004
1027
+
1028
+ X_ISCII_TE = 57005
1029
+
1030
+ X_ISCII_AS = 57006
1031
+
1032
+ X_ISCII_OR = 57007
1033
+
1034
+ X_ISCII_KA = 57008
1035
+
1036
+ X_ISCII_MA = 57009
1037
+
1038
+ X_ISCII_GU = 57010
1039
+
1040
+ X_ISCII_PA = 57011
1041
+
1042
+ UTF_7 = 65000
1043
+
1044
+ UTF_8 = 65001
1045
+
1046
+ class CodeIntegrity(lief.Object):
1047
+ def __init__(self) -> None: ...
1048
+
1049
+ flags: int
1050
+
1051
+ catalog: int
1052
+
1053
+ catalog_offset: int
1054
+
1055
+ reserved: int
1056
+
1057
+ def __str__(self) -> str: ...
1058
+
1059
+ class CodeView(Debug):
1060
+ @overload
1061
+ def __init__(self) -> None: ...
1062
+
1063
+ @overload
1064
+ def __init__(self, arg: CodeView.SIGNATURES, /) -> None: ...
1065
+
1066
+ class SIGNATURES(enum.Enum):
1067
+ @staticmethod
1068
+ def from_value(arg: int, /) -> CodeView.SIGNATURES: ...
1069
+
1070
+ def __eq__(self, arg, /) -> bool: ...
1071
+
1072
+ def __ne__(self, arg, /) -> bool: ...
1073
+
1074
+ def __int__(self) -> int: ...
1075
+
1076
+ UNKNOWN = 0
1077
+
1078
+ PDB_70 = 1396986706
1079
+
1080
+ PDB_20 = 808534606
1081
+
1082
+ CV_50 = 825311822
1083
+
1084
+ CV_41 = 959464014
1085
+
1086
+ @property
1087
+ def cv_signature(self) -> CodeView.SIGNATURES: ...
1088
+
1089
+ def __str__(self) -> str: ...
1090
+
1091
+ class CodeViewPDB(CodeView):
1092
+ def __init__(self) -> None: ...
1093
+
1094
+ @property
1095
+ def parent(self) -> lief.PE.CodeView: ...
1096
+
1097
+ @property
1098
+ def guid(self) -> str: ...
1099
+
1100
+ signature: list[int]
1101
+
1102
+ age: int
1103
+
1104
+ filename: Union[str, bytes]
1105
+
1106
+ def __str__(self) -> str: ...
1107
+
1108
+ class ContentInfo(lief.Object):
1109
+ class Content(lief.Object):
1110
+ @property
1111
+ def content_type(self) -> str: ...
1112
+
1113
+ def copy(self) -> Optional[ContentInfo.Content]: ...
1114
+
1115
+ @property
1116
+ def content_type(self) -> str: ...
1117
+
1118
+ @property
1119
+ def digest(self) -> bytes: ...
1120
+
1121
+ @property
1122
+ def digest_algorithm(self) -> ALGORITHMS: ...
1123
+
1124
+ @property
1125
+ def value(self) -> ContentInfo.Content: ...
1126
+
1127
+ def copy(self) -> ContentInfo: ...
1128
+
1129
+ def __str__(self) -> str: ...
1130
+
1131
+ class ContentType(Attribute):
1132
+ @property
1133
+ def oid(self) -> str: ...
1134
+
1135
+ class DIALOG_BOX_STYLES(enum.Enum):
1136
+ @staticmethod
1137
+ def from_value(arg: int, /) -> DIALOG_BOX_STYLES: ...
1138
+
1139
+ def __eq__(self, arg, /) -> bool: ...
1140
+
1141
+ def __ne__(self, arg, /) -> bool: ...
1142
+
1143
+ def __int__(self) -> int: ...
1144
+
1145
+ ABSALIGN = 1
1146
+
1147
+ SYSMODAL = 2
1148
+
1149
+ LOCALEDIT = 32
1150
+
1151
+ SETFONT = 64
1152
+
1153
+ MODALFRAME = 128
1154
+
1155
+ NOIDLEMSG = 256
1156
+
1157
+ SETFOREGROUND = 512
1158
+
1159
+ D3DLOOK = 4
1160
+
1161
+ FIXEDSYS = 8
1162
+
1163
+ NOFAILCREATE = 16
1164
+
1165
+ CONTROL = 1024
1166
+
1167
+ CENTER = 2048
1168
+
1169
+ CENTERMOUSE = 4096
1170
+
1171
+ CONTEXTHELP = 8192
1172
+
1173
+ SHELLFONT = 72
1174
+
1175
+ class DataDirectory(lief.Object):
1176
+ def __init__(self) -> None: ...
1177
+
1178
+ class TYPES(enum.Enum):
1179
+ @staticmethod
1180
+ def from_value(arg: int, /) -> DataDirectory.TYPES: ...
1181
+
1182
+ def __eq__(self, arg, /) -> bool: ...
1183
+
1184
+ def __ne__(self, arg, /) -> bool: ...
1185
+
1186
+ def __int__(self) -> int: ...
1187
+
1188
+ EXPORT_TABLE = 0
1189
+
1190
+ IMPORT_TABLE = 1
1191
+
1192
+ RESOURCE_TABLE = 2
1193
+
1194
+ EXCEPTION_TABLE = 3
1195
+
1196
+ CERTIFICATE_TABLE = 4
1197
+
1198
+ BASE_RELOCATION_TABLE = 5
1199
+
1200
+ DEBUG_DIR = 6
1201
+
1202
+ ARCHITECTURE = 7
1203
+
1204
+ GLOBAL_PTR = 8
1205
+
1206
+ TLS_TABLE = 9
1207
+
1208
+ LOAD_CONFIG_TABLE = 10
1209
+
1210
+ BOUND_IMPORT = 11
1211
+
1212
+ IAT = 12
1213
+
1214
+ DELAY_IMPORT_DESCRIPTOR = 13
1215
+
1216
+ CLR_RUNTIME_HEADER = 14
1217
+
1218
+ RESERVED = 15
1219
+
1220
+ UNKNOWN = 16
1221
+
1222
+ rva: int
1223
+
1224
+ size: int
1225
+
1226
+ @property
1227
+ def section(self) -> Section: ...
1228
+
1229
+ @property
1230
+ def type(self) -> DataDirectory.TYPES: ...
1231
+
1232
+ @property
1233
+ def has_section(self) -> bool: ...
1234
+
1235
+ def copy(self) -> DataDirectory: ...
1236
+
1237
+ def __str__(self) -> str: ...
1238
+
1239
+ class Debug(lief.Object):
1240
+ def __init__(self) -> None: ...
1241
+
1242
+ class TYPES(enum.Enum):
1243
+ @staticmethod
1244
+ def from_value(arg: int, /) -> Debug.TYPES: ...
1245
+
1246
+ def __eq__(self, arg, /) -> bool: ...
1247
+
1248
+ def __ne__(self, arg, /) -> bool: ...
1249
+
1250
+ def __int__(self) -> int: ...
1251
+
1252
+ UNKNOWN = 0
1253
+
1254
+ COFF = 1
1255
+
1256
+ CODEVIEW = 2
1257
+
1258
+ FPO = 3
1259
+
1260
+ MISC = 4
1261
+
1262
+ EXCEPTION = 5
1263
+
1264
+ FIXUP = 6
1265
+
1266
+ OMAP_TO_SRC = 7
1267
+
1268
+ OMAP_FROM_SRC = 8
1269
+
1270
+ BORLAND = 9
1271
+
1272
+ RESERVED = 10
1273
+
1274
+ CLSID = 11
1275
+
1276
+ VC_FEATURE = 12
1277
+
1278
+ POGO = 13
1279
+
1280
+ ILTCG = 14
1281
+
1282
+ MPX = 15
1283
+
1284
+ REPRO = 16
1285
+
1286
+ EX_DLLCHARACTERISTICS = 20
1287
+
1288
+ characteristics: int
1289
+
1290
+ timestamp: int
1291
+
1292
+ major_version: int
1293
+
1294
+ minor_version: int
1295
+
1296
+ @property
1297
+ def type(self) -> Debug.TYPES: ...
1298
+
1299
+ sizeof_data: int
1300
+
1301
+ addressof_rawdata: int
1302
+
1303
+ pointerto_rawdata: int
1304
+
1305
+ def copy(self) -> Optional[Debug]: ...
1306
+
1307
+ def __str__(self) -> str: ...
1308
+
1309
+ class DelayImport(lief.Object):
1310
+ def __init__(self, library_name: str) -> None: ...
1311
+
1312
+ class it_entries:
1313
+ def __getitem__(self, arg: int, /) -> DelayImportEntry: ...
1314
+
1315
+ def __len__(self) -> int: ...
1316
+
1317
+ def __iter__(self) -> DelayImport.it_entries: ...
1318
+
1319
+ def __next__(self) -> DelayImportEntry: ...
1320
+
1321
+ @property
1322
+ def entries(self) -> DelayImport.it_entries: ...
1323
+
1324
+ name: Union[str, bytes]
1325
+
1326
+ attribute: int
1327
+
1328
+ handle: int
1329
+
1330
+ iat: int
1331
+
1332
+ names_table: int
1333
+
1334
+ biat: int
1335
+
1336
+ uiat: int
1337
+
1338
+ timestamp: int
1339
+
1340
+ def copy(self) -> DelayImport: ...
1341
+
1342
+ def __str__(self) -> str: ...
1343
+
1344
+ class DelayImportEntry(lief.Symbol):
1345
+ def __init__(self) -> None: ...
1346
+
1347
+ @property
1348
+ def demangled_name(self) -> str: ...
1349
+
1350
+ name: Union[str, bytes]
1351
+
1352
+ data: int
1353
+
1354
+ @property
1355
+ def is_ordinal(self) -> bool: ...
1356
+
1357
+ @property
1358
+ def ordinal(self) -> int: ...
1359
+
1360
+ @property
1361
+ def hint(self) -> int: ...
1362
+
1363
+ @property
1364
+ def iat_value(self) -> int: ...
1365
+
1366
+ def copy(self) -> DelayImportEntry: ...
1367
+
1368
+ def __str__(self) -> str: ...
1369
+
1370
+ class DosHeader(lief.Object):
1371
+ @staticmethod
1372
+ def create(arg: PE_TYPE, /) -> DosHeader: ...
1373
+
1374
+ magic: int
1375
+
1376
+ used_bytes_in_last_page: int
1377
+
1378
+ file_size_in_pages: int
1379
+
1380
+ numberof_relocation: int
1381
+
1382
+ header_size_in_paragraphs: int
1383
+
1384
+ minimum_extra_paragraphs: int
1385
+
1386
+ maximum_extra_paragraphs: int
1387
+
1388
+ initial_relative_ss: int
1389
+
1390
+ initial_sp: int
1391
+
1392
+ checksum: int
1393
+
1394
+ initial_ip: int
1395
+
1396
+ initial_relative_cs: int
1397
+
1398
+ addressof_relocation_table: int
1399
+
1400
+ overlay_number: int
1401
+
1402
+ oem_id: int
1403
+
1404
+ oem_info: int
1405
+
1406
+ addressof_new_exeheader: int
1407
+
1408
+ def copy(self) -> DosHeader: ...
1409
+
1410
+ def __str__(self) -> str: ...
1411
+
1412
+ class EXTENDED_WINDOW_STYLES(enum.Enum):
1413
+ @staticmethod
1414
+ def from_value(arg: int, /) -> EXTENDED_WINDOW_STYLES: ...
1415
+
1416
+ def __eq__(self, arg, /) -> bool: ...
1417
+
1418
+ def __ne__(self, arg, /) -> bool: ...
1419
+
1420
+ def __int__(self) -> int: ...
1421
+
1422
+ DLGMODALFRAME = 1
1423
+
1424
+ NOPARENTNOTIFY = 4
1425
+
1426
+ TOPMOST = 8
1427
+
1428
+ ACCEPTFILES = 16
1429
+
1430
+ TRANSPARENT = 32
1431
+
1432
+ MDICHILD = 64
1433
+
1434
+ TOOLWINDOW = 128
1435
+
1436
+ WINDOWEDGE = 256
1437
+
1438
+ CLIENTEDGE = 512
1439
+
1440
+ CONTEXTHELP = 1024
1441
+
1442
+ RIGHT = 4096
1443
+
1444
+ LEFT = 0
1445
+
1446
+ RTLREADING = 8192
1447
+
1448
+ LTRREADING = 0
1449
+
1450
+ LEFTSCROLLBAR = 16384
1451
+
1452
+ RIGHTSCROLLBAR = 0
1453
+
1454
+ CONTROLPARENT = 65536
1455
+
1456
+ STATICEDGE = 131072
1457
+
1458
+ APPWINDOW = 262144
1459
+
1460
+ class Export(lief.Object):
1461
+ def __init__(self) -> None: ...
1462
+
1463
+ class it_entries:
1464
+ def __getitem__(self, arg: int, /) -> ExportEntry: ...
1465
+
1466
+ def __len__(self) -> int: ...
1467
+
1468
+ def __iter__(self) -> Export.it_entries: ...
1469
+
1470
+ def __next__(self) -> ExportEntry: ...
1471
+
1472
+ name: Union[str, bytes]
1473
+
1474
+ export_flags: int
1475
+
1476
+ timestamp: int
1477
+
1478
+ major_version: int
1479
+
1480
+ minor_version: int
1481
+
1482
+ ordinal_base: int
1483
+
1484
+ @property
1485
+ def entries(self) -> Export.it_entries: ...
1486
+
1487
+ def copy(self) -> Export: ...
1488
+
1489
+ def __str__(self) -> str: ...
1490
+
1491
+ class ExportEntry(lief.Symbol):
1492
+ def __init__(self) -> None: ...
1493
+
1494
+ class forward_information_t:
1495
+ library: str
1496
+
1497
+ function: str
1498
+
1499
+ def __str__(self) -> str: ...
1500
+
1501
+ name: Union[str, bytes]
1502
+
1503
+ ordinal: int
1504
+
1505
+ address: int
1506
+
1507
+ is_extern: bool
1508
+
1509
+ @property
1510
+ def is_forwarded(self) -> bool: ...
1511
+
1512
+ @property
1513
+ def forward_information(self) -> ExportEntry.forward_information_t: ...
1514
+
1515
+ @property
1516
+ def function_rva(self) -> int: ...
1517
+
1518
+ @property
1519
+ def demangled_name(self) -> str: ...
1520
+
1521
+ def __str__(self) -> str: ...
1522
+
1523
+ class FIXED_VERSION_FILE_FLAGS(enum.Enum):
1524
+ @staticmethod
1525
+ def from_value(arg: int, /) -> FIXED_VERSION_FILE_FLAGS: ...
1526
+
1527
+ def __eq__(self, arg, /) -> bool: ...
1528
+
1529
+ def __ne__(self, arg, /) -> bool: ...
1530
+
1531
+ def __int__(self) -> int: ...
1532
+
1533
+ DEBUG = 1
1534
+
1535
+ INFOINFERRED = 16
1536
+
1537
+ PATCHED = 4
1538
+
1539
+ PRERELEASE = 2
1540
+
1541
+ PRIVATEBUILD = 8
1542
+
1543
+ SPECIALBUILD = 32
1544
+
1545
+ class FIXED_VERSION_FILE_SUB_TYPES(enum.Enum):
1546
+ @staticmethod
1547
+ def from_value(arg: int, /) -> FIXED_VERSION_FILE_SUB_TYPES: ...
1548
+
1549
+ def __eq__(self, arg, /) -> bool: ...
1550
+
1551
+ def __ne__(self, arg, /) -> bool: ...
1552
+
1553
+ def __int__(self) -> int: ...
1554
+
1555
+ DRV_COMM = 10
1556
+
1557
+ DRV_DISPLAY = 4
1558
+
1559
+ DRV_INSTALLABLE = 8
1560
+
1561
+ DRV_KEYBOARD = 2
1562
+
1563
+ DRV_LANGUAGE = 3
1564
+
1565
+ DRV_MOUSE = 5
1566
+
1567
+ DRV_NETWORK = 6
1568
+
1569
+ DRV_PRINTER = 1
1570
+
1571
+ DRV_SOUND = 9
1572
+
1573
+ DRV_SYSTEM = 7
1574
+
1575
+ DRV_VERSIONED_PRINTER = 12
1576
+
1577
+ FONT_RASTER = 1
1578
+
1579
+ FONT_TRUETYPE = 3
1580
+
1581
+ FONT_VECTOR = 2
1582
+
1583
+ UNKNOWN = 0
1584
+
1585
+ class FIXED_VERSION_FILE_TYPES(enum.Enum):
1586
+ @staticmethod
1587
+ def from_value(arg: int, /) -> FIXED_VERSION_FILE_TYPES: ...
1588
+
1589
+ def __eq__(self, arg, /) -> bool: ...
1590
+
1591
+ def __ne__(self, arg, /) -> bool: ...
1592
+
1593
+ def __int__(self) -> int: ...
1594
+
1595
+ APP = 1
1596
+
1597
+ DLL = 2
1598
+
1599
+ DRV = 3
1600
+
1601
+ FONT = 4
1602
+
1603
+ STATIC_LIB = 7
1604
+
1605
+ UNKNOWN = 0
1606
+
1607
+ VXD = 5
1608
+
1609
+ class FIXED_VERSION_OS(enum.Enum):
1610
+ @staticmethod
1611
+ def from_value(arg: int, /) -> FIXED_VERSION_OS: ...
1612
+
1613
+ def __eq__(self, arg, /) -> bool: ...
1614
+
1615
+ def __ne__(self, arg, /) -> bool: ...
1616
+
1617
+ def __int__(self) -> int: ...
1618
+
1619
+ UNKNOWN = 0
1620
+
1621
+ DOS = 65536
1622
+
1623
+ NT = 262144
1624
+
1625
+ WINDOWS16 = 1
1626
+
1627
+ WINDOWS32 = 4
1628
+
1629
+ OS216 = 131072
1630
+
1631
+ OS232 = 196608
1632
+
1633
+ PM16 = 2
1634
+
1635
+ PM32 = 3
1636
+
1637
+ DOS_WINDOWS16 = 65537
1638
+
1639
+ DOS_WINDOWS32 = 65540
1640
+
1641
+ NT_WINDOWS32 = 262148
1642
+
1643
+ OS216_PM16 = 131074
1644
+
1645
+ OS232_PM32 = 196611
1646
+
1647
+ class GenericContent(ContentInfo.Content):
1648
+ pass
1649
+
1650
+ class GenericType(Attribute):
1651
+ @property
1652
+ def oid(self) -> str: ...
1653
+
1654
+ @property
1655
+ def raw_content(self) -> memoryview: ...
1656
+
1657
+ class Header(lief.Object):
1658
+ class MACHINE_TYPES(enum.Enum):
1659
+ @staticmethod
1660
+ def from_value(arg: int, /) -> Header.MACHINE_TYPES: ...
1661
+
1662
+ def __eq__(self, arg, /) -> bool: ...
1663
+
1664
+ def __ne__(self, arg, /) -> bool: ...
1665
+
1666
+ def __int__(self) -> int: ...
1667
+
1668
+ UNKNOWN = 0
1669
+
1670
+ AM33 = 467
1671
+
1672
+ AMD64 = 34404
1673
+
1674
+ ARM = 448
1675
+
1676
+ ARMNT = 452
1677
+
1678
+ ARM64 = 43620
1679
+
1680
+ EBC = 3772
1681
+
1682
+ I386 = 332
1683
+
1684
+ IA64 = 512
1685
+
1686
+ M32R = 36929
1687
+
1688
+ MIPS16 = 614
1689
+
1690
+ MIPSFPU = 870
1691
+
1692
+ MIPSFPU16 = 1126
1693
+
1694
+ POWERPC = 496
1695
+
1696
+ POWERPCFP = 497
1697
+
1698
+ POWERPCBE = 498
1699
+
1700
+ R4000 = 358
1701
+
1702
+ SH3 = 418
1703
+
1704
+ SH3DSP = 419
1705
+
1706
+ SH4 = 422
1707
+
1708
+ SH5 = 424
1709
+
1710
+ THUMB = 450
1711
+
1712
+ WCEMIPSV2 = 361
1713
+
1714
+ class CHARACTERISTICS(enum.Flag):
1715
+ @staticmethod
1716
+ def from_value(arg: int, /) -> Header.CHARACTERISTICS: ...
1717
+
1718
+ def __eq__(self, arg, /) -> bool: ...
1719
+
1720
+ def __ne__(self, arg, /) -> bool: ...
1721
+
1722
+ def __int__(self) -> int: ...
1723
+
1724
+ RELOCS_STRIPPED = 1
1725
+
1726
+ EXECUTABLE_IMAGE = 2
1727
+
1728
+ LINE_NUMS_STRIPPED = 4
1729
+
1730
+ LOCAL_SYMS_STRIPPED = 8
1731
+
1732
+ AGGRESSIVE_WS_TRIM = 16
1733
+
1734
+ LARGE_ADDRESS_AWARE = 32
1735
+
1736
+ BYTES_REVERSED_LO = 128
1737
+
1738
+ NEED_32BIT_MACHINE = 256
1739
+
1740
+ DEBUG_STRIPPED = 512
1741
+
1742
+ REMOVABLE_RUN_FROM_SWAP = 1024
1743
+
1744
+ NET_RUN_FROM_SWAP = 2048
1745
+
1746
+ SYSTEM = 4096
1747
+
1748
+ DLL = 8192
1749
+
1750
+ UP_SYSTEM_ONLY = 16384
1751
+
1752
+ BYTES_REVERSED_HI = 32768
1753
+
1754
+ @staticmethod
1755
+ def create(type: PE_TYPE) -> Header: ...
1756
+
1757
+ signature: list[int]
1758
+
1759
+ machine: lief.PE.Header.MACHINE_TYPES
1760
+
1761
+ numberof_sections: int
1762
+
1763
+ time_date_stamps: int
1764
+
1765
+ pointerto_symbol_table: int
1766
+
1767
+ numberof_symbols: int
1768
+
1769
+ sizeof_optional_header: int
1770
+
1771
+ characteristics: int
1772
+
1773
+ def has_characteristic(self, characteristic: Header.CHARACTERISTICS) -> bool: ...
1774
+
1775
+ def add_characteristic(self, characteristic: Header.CHARACTERISTICS) -> None: ...
1776
+
1777
+ def remove_characteristic(self, characteristic: Header.CHARACTERISTICS) -> None: ...
1778
+
1779
+ @property
1780
+ def characteristics_list(self) -> list[Header.CHARACTERISTICS]: ...
1781
+
1782
+ def copy(self) -> Header: ...
1783
+
1784
+ def __str__(self) -> str: ...
1785
+
1786
+ class IMPHASH_MODE(enum.Enum):
1787
+ DEFAULT = 0
1788
+
1789
+ LIEF = 0
1790
+
1791
+ PEFILE = 1
1792
+
1793
+ VT = 1
1794
+
1795
+ class Import(lief.Object):
1796
+ @overload
1797
+ def __init__(self) -> None: ...
1798
+
1799
+ @overload
1800
+ def __init__(self, library_name: str) -> None: ...
1801
+
1802
+ class it_entries:
1803
+ def __getitem__(self, arg: int, /) -> ImportEntry: ...
1804
+
1805
+ def __len__(self) -> int: ...
1806
+
1807
+ def __iter__(self) -> Import.it_entries: ...
1808
+
1809
+ def __next__(self) -> ImportEntry: ...
1810
+
1811
+ @property
1812
+ def forwarder_chain(self) -> int: ...
1813
+
1814
+ @property
1815
+ def timedatestamp(self) -> int: ...
1816
+
1817
+ @property
1818
+ def entries(self) -> Import.it_entries: ...
1819
+
1820
+ name: Union[str, bytes]
1821
+
1822
+ @property
1823
+ def directory(self) -> DataDirectory: ...
1824
+
1825
+ @property
1826
+ def iat_directory(self) -> DataDirectory: ...
1827
+
1828
+ import_address_table_rva: int
1829
+
1830
+ import_lookup_table_rva: int
1831
+
1832
+ def get_function_rva_from_iat(self, function_name: str) -> Union[int, lief.lief_errors]: ...
1833
+
1834
+ @overload
1835
+ def add_entry(self, entry: ImportEntry) -> ImportEntry: ...
1836
+
1837
+ @overload
1838
+ def add_entry(self, function_name: str) -> ImportEntry: ...
1839
+
1840
+ def get_entry(self, function_name: str) -> ImportEntry: ...
1841
+
1842
+ def __str__(self) -> str: ...
1843
+
1844
+ class ImportEntry(lief.Symbol):
1845
+ @overload
1846
+ def __init__(self) -> None: ...
1847
+
1848
+ @overload
1849
+ def __init__(self, import_name: str) -> None: ...
1850
+
1851
+ @overload
1852
+ def __init__(self, data: int, name: str = '') -> None: ...
1853
+
1854
+ @overload
1855
+ def __init__(self, data: int, type: PE_TYPE, name: str = '') -> None: ...
1856
+
1857
+ @overload
1858
+ def __init__(self, name: str, type: PE_TYPE) -> None: ...
1859
+
1860
+ name: Union[str, bytes]
1861
+
1862
+ data: int
1863
+
1864
+ @property
1865
+ def demangled_name(self) -> str: ...
1866
+
1867
+ @property
1868
+ def is_ordinal(self) -> bool: ...
1869
+
1870
+ @property
1871
+ def ordinal(self) -> int: ...
1872
+
1873
+ @property
1874
+ def hint(self) -> int: ...
1875
+
1876
+ @property
1877
+ def iat_value(self) -> int: ...
1878
+
1879
+ @property
1880
+ def iat_address(self) -> int: ...
1881
+
1882
+ def copy(self) -> ImportEntry: ...
1883
+
1884
+ def __str__(self) -> str: ...
1885
+
1886
+ class LangCodeItem(lief.Object):
1887
+ type: int
1888
+
1889
+ key: str
1890
+
1891
+ lang: int
1892
+
1893
+ sublang: int
1894
+
1895
+ code_page: lief.PE.CODE_PAGES
1896
+
1897
+ items: dict
1898
+
1899
+ def __str__(self) -> str: ...
1900
+
1901
+ class LoadConfiguration(lief.Object):
1902
+ def __init__(self) -> None: ...
1903
+
1904
+ class VERSION(enum.Enum):
1905
+ @staticmethod
1906
+ def from_value(arg: int, /) -> LoadConfiguration.VERSION: ...
1907
+
1908
+ def __eq__(self, arg, /) -> bool: ...
1909
+
1910
+ def __ne__(self, arg, /) -> bool: ...
1911
+
1912
+ def __int__(self) -> int: ...
1913
+
1914
+ UNKNOWN = 0
1915
+
1916
+ SEH = 1
1917
+
1918
+ WIN_8_1 = 2
1919
+
1920
+ WIN_10_0_9879 = 3
1921
+
1922
+ WIN_10_0_14286 = 4
1923
+
1924
+ WIN_10_0_14383 = 5
1925
+
1926
+ WIN_10_0_14901 = 6
1927
+
1928
+ WIN_10_0_15002 = 7
1929
+
1930
+ WIN_10_0_16237 = 8
1931
+
1932
+ WIN_10_0_18362 = 9
1933
+
1934
+ WIN_10_0_19534 = 10
1935
+
1936
+ WIN_10_0_MSVC_2019 = 11
1937
+
1938
+ WIN_10_0_MSVC_2019_16 = 12
1939
+
1940
+ @property
1941
+ def version(self) -> LoadConfiguration.VERSION: ...
1942
+
1943
+ characteristics: int
1944
+
1945
+ @property
1946
+ def size(self) -> int: ...
1947
+
1948
+ timedatestamp: int
1949
+
1950
+ major_version: int
1951
+
1952
+ minor_version: int
1953
+
1954
+ global_flags_clear: int
1955
+
1956
+ global_flags_set: int
1957
+
1958
+ critical_section_default_timeout: int
1959
+
1960
+ decommit_free_block_threshold: int
1961
+
1962
+ decommit_total_free_threshold: int
1963
+
1964
+ lock_prefix_table: int
1965
+
1966
+ maximum_allocation_size: int
1967
+
1968
+ virtual_memory_threshold: int
1969
+
1970
+ process_affinity_mask: int
1971
+
1972
+ process_heap_flags: int
1973
+
1974
+ csd_version: int
1975
+
1976
+ reserved1: int
1977
+
1978
+ dependent_load_flags: int
1979
+
1980
+ editlist: int
1981
+
1982
+ security_cookie: int
1983
+
1984
+ def copy(self) -> LoadConfiguration: ...
1985
+
1986
+ def __str__(self) -> str: ...
1987
+
1988
+ class LoadConfigurationV0(LoadConfiguration):
1989
+ def __init__(self) -> None: ...
1990
+
1991
+ se_handler_table: int
1992
+
1993
+ se_handler_count: int
1994
+
1995
+ def copy(self) -> LoadConfigurationV0: ...
1996
+
1997
+ def __str__(self) -> str: ...
1998
+
1999
+ class LoadConfigurationV1(LoadConfigurationV0):
2000
+ def __init__(self) -> None: ...
2001
+
2002
+ class IMAGE_GUARD(enum.Flag):
2003
+ @staticmethod
2004
+ def from_value(arg: int, /) -> LoadConfigurationV1.IMAGE_GUARD: ...
2005
+
2006
+ def __eq__(self, arg, /) -> bool: ...
2007
+
2008
+ def __ne__(self, arg, /) -> bool: ...
2009
+
2010
+ def __int__(self) -> int: ...
2011
+
2012
+ NONE = 0
2013
+
2014
+ CF_INSTRUMENTED = 256
2015
+
2016
+ CFW_INSTRUMENTED = 512
2017
+
2018
+ CF_FUNCTION_TABLE_PRESENT = 1024
2019
+
2020
+ SECURITY_COOKIE_UNUSED = 2048
2021
+
2022
+ PROTECT_DELAYLOAD_IAT = 4096
2023
+
2024
+ DELAYLOAD_IAT_IN_ITS_OWN_SECTION = 8192
2025
+
2026
+ CF_EXPORT_SUPPRESSION_INFO_PRESENT = 16384
2027
+
2028
+ CF_ENABLE_EXPORT_SUPPRESSION = 32768
2029
+
2030
+ CF_LONGJUMP_TABLE_PRESENT = 65536
2031
+
2032
+ RF_INSTRUMENTED = 131072
2033
+
2034
+ RF_ENABLE = 262144
2035
+
2036
+ RF_STRICT = 524288
2037
+
2038
+ RETPOLINE_PRESENT = 1048576
2039
+
2040
+ EH_CONTINUATION_TABLE_PRESENT = 2097152
2041
+
2042
+ guard_cf_check_function_pointer: int
2043
+
2044
+ guard_cf_dispatch_function_pointer: int
2045
+
2046
+ guard_cf_function_table: int
2047
+
2048
+ guard_cf_function_count: int
2049
+
2050
+ guard_flags: lief.PE.LoadConfigurationV1.IMAGE_GUARD
2051
+
2052
+ def has(self, flag: LoadConfigurationV1.IMAGE_GUARD) -> bool: ...
2053
+
2054
+ @property
2055
+ def guard_cf_flags_list(self) -> list[LoadConfigurationV1.IMAGE_GUARD]: ...
2056
+
2057
+ def __contains__(self, arg: LoadConfigurationV1.IMAGE_GUARD, /) -> bool: ...
2058
+
2059
+ def copy(self) -> LoadConfigurationV1: ...
2060
+
2061
+ def __str__(self) -> str: ...
2062
+
2063
+ class LoadConfigurationV10(LoadConfigurationV9):
2064
+ def __init__(self) -> None: ...
2065
+
2066
+ guard_xfg_check_function_pointer: int
2067
+
2068
+ guard_xfg_dispatch_function_pointer: int
2069
+
2070
+ guard_xfg_table_dispatch_function_pointer: int
2071
+
2072
+ def copy(self) -> LoadConfigurationV10: ...
2073
+
2074
+ def __str__(self) -> str: ...
2075
+
2076
+ class LoadConfigurationV11(LoadConfigurationV10):
2077
+ def __init__(self) -> None: ...
2078
+
2079
+ cast_guard_os_determined_failure_mode: int
2080
+
2081
+ def copy(self) -> LoadConfigurationV11: ...
2082
+
2083
+ def __str__(self) -> str: ...
2084
+
2085
+ class LoadConfigurationV2(LoadConfigurationV1):
2086
+ def __init__(self) -> None: ...
2087
+
2088
+ @property
2089
+ def code_integrity(self) -> CodeIntegrity: ...
2090
+
2091
+ def copy(self) -> LoadConfigurationV2: ...
2092
+
2093
+ def __str__(self) -> str: ...
2094
+
2095
+ class LoadConfigurationV3(LoadConfigurationV2):
2096
+ def __init__(self) -> None: ...
2097
+
2098
+ guard_address_taken_iat_entry_table: int
2099
+
2100
+ guard_address_taken_iat_entry_count: int
2101
+
2102
+ guard_long_jump_target_table: int
2103
+
2104
+ guard_long_jump_target_count: int
2105
+
2106
+ def copy(self) -> LoadConfigurationV3: ...
2107
+
2108
+ def __str__(self) -> str: ...
2109
+
2110
+ class LoadConfigurationV4(LoadConfigurationV3):
2111
+ def __init__(self) -> None: ...
2112
+
2113
+ dynamic_value_reloc_table: int
2114
+
2115
+ hybrid_metadata_pointer: int
2116
+
2117
+ def copy(self) -> LoadConfigurationV4: ...
2118
+
2119
+ def __str__(self) -> str: ...
2120
+
2121
+ class LoadConfigurationV5(LoadConfigurationV4):
2122
+ def __init__(self) -> None: ...
2123
+
2124
+ guard_rf_failure_routine: int
2125
+
2126
+ guard_rf_failure_routine_function_pointer: int
2127
+
2128
+ dynamic_value_reloctable_offset: int
2129
+
2130
+ dynamic_value_reloctable_section: int
2131
+
2132
+ reserved2: int
2133
+
2134
+ def copy(self) -> LoadConfigurationV5: ...
2135
+
2136
+ def __str__(self) -> str: ...
2137
+
2138
+ class LoadConfigurationV6(LoadConfigurationV5):
2139
+ def __init__(self) -> None: ...
2140
+
2141
+ guard_rf_verify_stackpointer_function_pointer: int
2142
+
2143
+ hotpatch_table_offset: int
2144
+
2145
+ def copy(self) -> LoadConfigurationV6: ...
2146
+
2147
+ def __str__(self) -> str: ...
2148
+
2149
+ class LoadConfigurationV7(LoadConfigurationV6):
2150
+ def __init__(self) -> None: ...
2151
+
2152
+ reserved3: int
2153
+
2154
+ addressof_unicode_string: int
2155
+
2156
+ def copy(self) -> LoadConfigurationV7: ...
2157
+
2158
+ def __str__(self) -> str: ...
2159
+
2160
+ class LoadConfigurationV8(LoadConfigurationV7):
2161
+ def __init__(self) -> None: ...
2162
+
2163
+ volatile_metadata_pointer: int
2164
+
2165
+ def copy(self) -> LoadConfigurationV8: ...
2166
+
2167
+ def __str__(self) -> str: ...
2168
+
2169
+ class LoadConfigurationV9(LoadConfigurationV8):
2170
+ def __init__(self) -> None: ...
2171
+
2172
+ guard_eh_continuation_table: int
2173
+
2174
+ guard_eh_continuation_count: int
2175
+
2176
+ def copy(self) -> LoadConfigurationV9: ...
2177
+
2178
+ def __str__(self) -> str: ...
2179
+
2180
+ class MsCounterSign(Attribute):
2181
+ class it_const_crt:
2182
+ def __getitem__(self, arg: int, /) -> x509: ...
2183
+
2184
+ def __len__(self) -> int: ...
2185
+
2186
+ def __iter__(self) -> MsCounterSign.it_const_crt: ...
2187
+
2188
+ def __next__(self) -> x509: ...
2189
+
2190
+ class it_const_signers_t:
2191
+ def __getitem__(self, arg: int, /) -> SignerInfo: ...
2192
+
2193
+ def __len__(self) -> int: ...
2194
+
2195
+ def __iter__(self) -> MsCounterSign.it_const_signers_t: ...
2196
+
2197
+ def __next__(self) -> SignerInfo: ...
2198
+
2199
+ @property
2200
+ def version(self) -> int: ...
2201
+
2202
+ @property
2203
+ def digest_algorithm(self) -> ALGORITHMS: ...
2204
+
2205
+ @property
2206
+ def content_info(self) -> ContentInfo: ...
2207
+
2208
+ @property
2209
+ def certificates(self) -> MsCounterSign.it_const_crt: ...
2210
+
2211
+ @property
2212
+ def signers(self) -> MsCounterSign.it_const_signers_t: ...
2213
+
2214
+ class MsManifestBinaryID(Attribute):
2215
+ manifest_id: str
2216
+
2217
+ def __str__(self) -> str: ...
2218
+
2219
+ class MsSpcNestedSignature(Attribute):
2220
+ @property
2221
+ def signature(self) -> Signature: ...
2222
+
2223
+ class MsSpcStatementType(Attribute):
2224
+ @property
2225
+ def oid(self) -> str: ...
2226
+
2227
+ class OptionalHeader(lief.Object):
2228
+ class SUBSYSTEM(enum.Enum):
2229
+ @staticmethod
2230
+ def from_value(arg: int, /) -> OptionalHeader.SUBSYSTEM: ...
2231
+
2232
+ def __eq__(self, arg, /) -> bool: ...
2233
+
2234
+ def __ne__(self, arg, /) -> bool: ...
2235
+
2236
+ def __int__(self) -> int: ...
2237
+
2238
+ UNKNOWN = 0
2239
+
2240
+ NATIVE = 1
2241
+
2242
+ WINDOWS_GUI = 2
2243
+
2244
+ WINDOWS_CUI = 3
2245
+
2246
+ OS2_CUI = 5
2247
+
2248
+ POSIX_CUI = 7
2249
+
2250
+ NATIVE_WINDOWS = 8
2251
+
2252
+ WINDOWS_CE_GUI = 9
2253
+
2254
+ EFI_APPLICATION = 10
2255
+
2256
+ EFI_BOOT_SERVICE_DRIVER = 11
2257
+
2258
+ EFI_RUNTIME_DRIVER = 12
2259
+
2260
+ EFI_ROM = 13
2261
+
2262
+ XBOX = 14
2263
+
2264
+ WINDOWS_BOOT_APPLICATION = 16
2265
+
2266
+ class DLL_CHARACTERISTICS(enum.IntFlag):
2267
+ def __repr__(self, /): ...
2268
+
2269
+ @staticmethod
2270
+ def from_value(arg: int, /) -> OptionalHeader.DLL_CHARACTERISTICS: ...
2271
+
2272
+ def __eq__(self, arg, /) -> bool: ...
2273
+
2274
+ def __ne__(self, arg, /) -> bool: ...
2275
+
2276
+ def __int__(self) -> int: ...
2277
+
2278
+ HIGH_ENTROPY_VA = 32
2279
+
2280
+ DYNAMIC_BASE = 64
2281
+
2282
+ FORCE_INTEGRITY = 128
2283
+
2284
+ NX_COMPAT = 256
2285
+
2286
+ NO_ISOLATION = 512
2287
+
2288
+ NO_SEH = 1024
2289
+
2290
+ NO_BIND = 2048
2291
+
2292
+ APPCONTAINER = 4096
2293
+
2294
+ WDM_DRIVER = 8192
2295
+
2296
+ GUARD_CF = 16384
2297
+
2298
+ TERMINAL_SERVER_AWARE = 32768
2299
+
2300
+ @staticmethod
2301
+ def create(type: PE_TYPE) -> OptionalHeader: ...
2302
+
2303
+ magic: lief.PE.PE_TYPE
2304
+
2305
+ major_linker_version: int
2306
+
2307
+ minor_linker_version: int
2308
+
2309
+ sizeof_code: int
2310
+
2311
+ sizeof_initialized_data: int
2312
+
2313
+ sizeof_uninitialized_data: int
2314
+
2315
+ addressof_entrypoint: int
2316
+
2317
+ baseof_code: int
2318
+
2319
+ baseof_data: int
2320
+
2321
+ imagebase: int
2322
+
2323
+ section_alignment: int
2324
+
2325
+ file_alignment: int
2326
+
2327
+ major_operating_system_version: int
2328
+
2329
+ minor_operating_system_version: int
2330
+
2331
+ major_image_version: int
2332
+
2333
+ minor_image_version: int
2334
+
2335
+ major_subsystem_version: int
2336
+
2337
+ minor_subsystem_version: int
2338
+
2339
+ win32_version_value: int
2340
+
2341
+ sizeof_image: int
2342
+
2343
+ sizeof_headers: int
2344
+
2345
+ checksum: int
2346
+
2347
+ subsystem: lief.PE.OptionalHeader.SUBSYSTEM
2348
+
2349
+ dll_characteristics: int
2350
+
2351
+ def add(self, characteristic: OptionalHeader.DLL_CHARACTERISTICS) -> None: ...
2352
+
2353
+ def remove(self, characteristic: OptionalHeader.DLL_CHARACTERISTICS) -> None: ...
2354
+
2355
+ @property
2356
+ def dll_characteristics_lists(self) -> list[OptionalHeader.DLL_CHARACTERISTICS]: ...
2357
+
2358
+ def has(self, characteristics: OptionalHeader.DLL_CHARACTERISTICS) -> bool: ...
2359
+
2360
+ sizeof_stack_reserve: int
2361
+
2362
+ sizeof_stack_commit: int
2363
+
2364
+ sizeof_heap_reserve: int
2365
+
2366
+ sizeof_heap_commit: int
2367
+
2368
+ loader_flags: int
2369
+
2370
+ numberof_rva_and_size: int
2371
+
2372
+ def __iadd__(self, arg: OptionalHeader.DLL_CHARACTERISTICS, /) -> OptionalHeader: ...
2373
+
2374
+ def __isub__(self, arg: OptionalHeader.DLL_CHARACTERISTICS, /) -> OptionalHeader: ...
2375
+
2376
+ def __contains__(self, arg: OptionalHeader.DLL_CHARACTERISTICS, /) -> bool: ...
2377
+
2378
+ def copy(self) -> OptionalHeader: ...
2379
+
2380
+ def __str__(self) -> str: ...
2381
+
2382
+ class PE_TYPE(enum.Enum):
2383
+ @staticmethod
2384
+ def from_value(arg: int, /) -> PE_TYPE: ...
2385
+
2386
+ def __eq__(self, arg, /) -> bool: ...
2387
+
2388
+ def __ne__(self, arg, /) -> bool: ...
2389
+
2390
+ def __int__(self) -> int: ...
2391
+
2392
+ PE32 = 267
2393
+
2394
+ PE32_PLUS = 523
2395
+
2396
+ class PKCS9AtSequenceNumber(Attribute):
2397
+ @property
2398
+ def number(self) -> int: ...
2399
+
2400
+ class PKCS9CounterSignature(Attribute):
2401
+ @property
2402
+ def signer(self) -> SignerInfo: ...
2403
+
2404
+ class PKCS9MessageDigest(Attribute):
2405
+ @property
2406
+ def digest(self) -> bytes: ...
2407
+
2408
+ class PKCS9SigningTime(Attribute):
2409
+ @property
2410
+ def time(self) -> list[int]: ...
2411
+
2412
+ class PKCS9TSTInfo(ContentInfo.Content):
2413
+ pass
2414
+
2415
+ class ParserConfig:
2416
+ def __init__(self) -> None: ...
2417
+
2418
+ parse_signature: bool
2419
+
2420
+ parse_exports: bool
2421
+
2422
+ parse_imports: bool
2423
+
2424
+ parse_rsrc: bool
2425
+
2426
+ parse_reloc: bool
2427
+
2428
+ all: lief.PE.ParserConfig = ...
2429
+
2430
+ class Pogo(Debug):
2431
+ def __init__(self) -> None: ...
2432
+
2433
+ class it_entries:
2434
+ def __getitem__(self, arg: int, /) -> PogoEntry: ...
2435
+
2436
+ def __len__(self) -> int: ...
2437
+
2438
+ def __iter__(self) -> Pogo.it_entries: ...
2439
+
2440
+ def __next__(self) -> PogoEntry: ...
2441
+
2442
+ class SIGNATURES(enum.Enum):
2443
+ @staticmethod
2444
+ def from_value(arg: int, /) -> Pogo.SIGNATURES: ...
2445
+
2446
+ def __eq__(self, arg, /) -> bool: ...
2447
+
2448
+ def __ne__(self, arg, /) -> bool: ...
2449
+
2450
+ def __int__(self) -> int: ...
2451
+
2452
+ UNKNOWN = 268435455
2453
+
2454
+ ZERO = 0
2455
+
2456
+ LCTG = 1280590663
2457
+
2458
+ PGI = 1346849024
2459
+
2460
+ @property
2461
+ def entries(self) -> Pogo.it_entries: ...
2462
+
2463
+ @property
2464
+ def signature(self) -> Pogo.SIGNATURES: ...
2465
+
2466
+ def __str__(self) -> str: ...
2467
+
2468
+ class PogoEntry(lief.Object):
2469
+ def __init__(self) -> None: ...
2470
+
2471
+ name: Union[str, bytes]
2472
+
2473
+ start_rva: int
2474
+
2475
+ size: int
2476
+
2477
+ def copy(self) -> PogoEntry: ...
2478
+
2479
+ def __str__(self) -> str: ...
2480
+
2481
+ class RESOURCE_LANGS(enum.Enum):
2482
+ @staticmethod
2483
+ def from_value(arg: int, /) -> RESOURCE_LANGS: ...
2484
+
2485
+ def __eq__(self, arg, /) -> bool: ...
2486
+
2487
+ def __ne__(self, arg, /) -> bool: ...
2488
+
2489
+ def __int__(self) -> int: ...
2490
+
2491
+ NEUTRAL = 0
2492
+
2493
+ INVARIANT = 127
2494
+
2495
+ AFRIKAANS = 54
2496
+
2497
+ ALBANIAN = 28
2498
+
2499
+ ARABIC = 1
2500
+
2501
+ ARMENIAN = 43
2502
+
2503
+ ASSAMESE = 77
2504
+
2505
+ AZERI = 44
2506
+
2507
+ BASQUE = 45
2508
+
2509
+ BELARUSIAN = 35
2510
+
2511
+ BANGLA = 69
2512
+
2513
+ BULGARIAN = 2
2514
+
2515
+ CATALAN = 3
2516
+
2517
+ CHINESE = 4
2518
+
2519
+ CROATIAN = 26
2520
+
2521
+ BOSNIAN = 26
2522
+
2523
+ CZECH = 5
2524
+
2525
+ DANISH = 6
2526
+
2527
+ DIVEHI = 101
2528
+
2529
+ DUTCH = 19
2530
+
2531
+ ENGLISH = 9
2532
+
2533
+ ESTONIAN = 37
2534
+
2535
+ FAEROESE = 56
2536
+
2537
+ FARSI = 41
2538
+
2539
+ FINNISH = 11
2540
+
2541
+ FRENCH = 12
2542
+
2543
+ GALICIAN = 86
2544
+
2545
+ GEORGIAN = 55
2546
+
2547
+ GERMAN = 7
2548
+
2549
+ GREEK = 8
2550
+
2551
+ GUJARATI = 71
2552
+
2553
+ HEBREW = 13
2554
+
2555
+ HINDI = 57
2556
+
2557
+ HUNGARIAN = 14
2558
+
2559
+ ICELANDIC = 15
2560
+
2561
+ INDONESIAN = 33
2562
+
2563
+ ITALIAN = 16
2564
+
2565
+ JAPANESE = 17
2566
+
2567
+ KANNADA = 75
2568
+
2569
+ KASHMIRI = 96
2570
+
2571
+ KAZAK = 63
2572
+
2573
+ KONKANI = 87
2574
+
2575
+ KOREAN = 18
2576
+
2577
+ KYRGYZ = 64
2578
+
2579
+ LATVIAN = 38
2580
+
2581
+ LITHUANIAN = 39
2582
+
2583
+ MACEDONIAN = 47
2584
+
2585
+ MALAY = 62
2586
+
2587
+ MALAYALAM = 76
2588
+
2589
+ MANIPURI = 88
2590
+
2591
+ MARATHI = 78
2592
+
2593
+ MONGOLIAN = 80
2594
+
2595
+ NEPALI = 97
2596
+
2597
+ NORWEGIAN = 20
2598
+
2599
+ ORIYA = 72
2600
+
2601
+ POLISH = 21
2602
+
2603
+ PORTUGUESE = 22
2604
+
2605
+ PUNJABI = 70
2606
+
2607
+ ROMANIAN = 24
2608
+
2609
+ RUSSIAN = 25
2610
+
2611
+ SANSKRIT = 79
2612
+
2613
+ SERBIAN = 26
2614
+
2615
+ SINDHI = 89
2616
+
2617
+ SLOVAK = 27
2618
+
2619
+ SLOVENIAN = 36
2620
+
2621
+ SPANISH = 10
2622
+
2623
+ SWAHILI = 65
2624
+
2625
+ SWEDISH = 29
2626
+
2627
+ SYRIAC = 90
2628
+
2629
+ TAMIL = 73
2630
+
2631
+ TATAR = 68
2632
+
2633
+ TELUGU = 74
2634
+
2635
+ THAI = 30
2636
+
2637
+ TURKISH = 31
2638
+
2639
+ UKRAINIAN = 34
2640
+
2641
+ URDU = 32
2642
+
2643
+ UZBEK = 67
2644
+
2645
+ VIETNAMESE = 42
2646
+
2647
+ GAELIC = 60
2648
+
2649
+ MALTESE = 58
2650
+
2651
+ MAORI = 40
2652
+
2653
+ RHAETO_ROMANCE = 23
2654
+
2655
+ SAMI = 59
2656
+
2657
+ SORBIAN = 46
2658
+
2659
+ SUTU = 48
2660
+
2661
+ TSONGA = 49
2662
+
2663
+ TSWANA = 50
2664
+
2665
+ VENDA = 51
2666
+
2667
+ XHOSA = 52
2668
+
2669
+ ZULU = 53
2670
+
2671
+ ESPERANTO = 143
2672
+
2673
+ WALON = 144
2674
+
2675
+ CORNISH = 145
2676
+
2677
+ WELSH = 146
2678
+
2679
+ BRETON = 147
2680
+
2681
+ INUKTITUT = 93
2682
+
2683
+ IRISH = 60
2684
+
2685
+ LOWER_SORBIAN = 46
2686
+
2687
+ PULAR = 103
2688
+
2689
+ QUECHUA = 107
2690
+
2691
+ TAMAZIGHT = 95
2692
+
2693
+ TIGRINYA = 115
2694
+
2695
+ VALENCIAN = 3
2696
+
2697
+ class Relocation(lief.Object):
2698
+ def __init__(self) -> None: ...
2699
+
2700
+ class it_entries:
2701
+ def __getitem__(self, arg: int, /) -> RelocationEntry: ...
2702
+
2703
+ def __len__(self) -> int: ...
2704
+
2705
+ def __iter__(self) -> Relocation.it_entries: ...
2706
+
2707
+ def __next__(self) -> RelocationEntry: ...
2708
+
2709
+ virtual_address: int
2710
+
2711
+ block_size: int
2712
+
2713
+ @property
2714
+ def entries(self) -> Relocation.it_entries: ...
2715
+
2716
+ def add_entry(self, new_entry: RelocationEntry) -> RelocationEntry: ...
2717
+
2718
+ def copy(self) -> Relocation: ...
2719
+
2720
+ def __str__(self) -> str: ...
2721
+
2722
+ class RelocationEntry(lief.Relocation):
2723
+ def __init__(self) -> None: ...
2724
+
2725
+ class BASE_TYPES(enum.Enum):
2726
+ @staticmethod
2727
+ def from_value(arg: int, /) -> RelocationEntry.BASE_TYPES: ...
2728
+
2729
+ def __eq__(self, arg, /) -> bool: ...
2730
+
2731
+ def __ne__(self, arg, /) -> bool: ...
2732
+
2733
+ def __int__(self) -> int: ...
2734
+
2735
+ UNKNOWN = -1
2736
+
2737
+ ABS = 0
2738
+
2739
+ HIGH = 1
2740
+
2741
+ LOW = 2
2742
+
2743
+ HIGHLOW = 3
2744
+
2745
+ HIGHADJ = 4
2746
+
2747
+ MIPS_JMPADDR = 5
2748
+
2749
+ ARM_MOV32A = 262
2750
+
2751
+ ARM_MOV32 = 263
2752
+
2753
+ RISCV_HI20 = 264
2754
+
2755
+ SECTION = 6
2756
+
2757
+ REL = 7
2758
+
2759
+ ARM_MOV32T = 520
2760
+
2761
+ THUMB_MOV32 = 521
2762
+
2763
+ RISCV_LOW12I = 522
2764
+
2765
+ RISCV_LOW12S = 8
2766
+
2767
+ MIPS_JMPADDR16 = 777
2768
+
2769
+ IA64_IMM64 = 9
2770
+
2771
+ DIR64 = 10
2772
+
2773
+ HIGH3ADJ = 11
2774
+
2775
+ data: int
2776
+
2777
+ position: int
2778
+
2779
+ type: lief.PE.RelocationEntry.BASE_TYPES
2780
+
2781
+ def __str__(self) -> str: ...
2782
+
2783
+ class Repro(Debug):
2784
+ hash: memoryview
2785
+
2786
+ def __str__(self) -> str: ...
2787
+
2788
+ class ResourceAccelerator(lief.Object):
2789
+ @property
2790
+ def flags(self) -> int: ...
2791
+
2792
+ @property
2793
+ def ansi(self) -> int: ...
2794
+
2795
+ @property
2796
+ def id(self) -> int: ...
2797
+
2798
+ @property
2799
+ def padding(self) -> int: ...
2800
+
2801
+ def __str__(self) -> str: ...
2802
+
2803
+ class ResourceData(ResourceNode):
2804
+ @overload
2805
+ def __init__(self) -> None: ...
2806
+
2807
+ @overload
2808
+ def __init__(self, content: Sequence[int], code_page: int) -> None: ...
2809
+
2810
+ code_page: int
2811
+
2812
+ content: memoryview
2813
+
2814
+ reserved: int
2815
+
2816
+ @property
2817
+ def offset(self) -> int: ...
2818
+
2819
+ def __str__(self) -> str: ...
2820
+
2821
+ class ResourceDialog(lief.Object):
2822
+ class it_const_items:
2823
+ def __getitem__(self, arg: int, /) -> ResourceDialogItem: ...
2824
+
2825
+ def __len__(self) -> int: ...
2826
+
2827
+ def __iter__(self) -> ResourceDialog.it_const_items: ...
2828
+
2829
+ def __next__(self) -> ResourceDialogItem: ...
2830
+
2831
+ @property
2832
+ def is_extended(self) -> bool: ...
2833
+
2834
+ @property
2835
+ def version(self) -> int: ...
2836
+
2837
+ @property
2838
+ def signature(self) -> int: ...
2839
+
2840
+ @property
2841
+ def help_id(self) -> int: ...
2842
+
2843
+ @property
2844
+ def x(self) -> int: ...
2845
+
2846
+ @property
2847
+ def y(self) -> int: ...
2848
+
2849
+ @property
2850
+ def cx(self) -> int: ...
2851
+
2852
+ @property
2853
+ def cy(self) -> int: ...
2854
+
2855
+ @property
2856
+ def title(self) -> str: ...
2857
+
2858
+ @property
2859
+ def typeface(self) -> str: ...
2860
+
2861
+ @property
2862
+ def weight(self) -> int: ...
2863
+
2864
+ @property
2865
+ def point_size(self) -> int: ...
2866
+
2867
+ @property
2868
+ def charset(self) -> int: ...
2869
+
2870
+ @property
2871
+ def style_list(self) -> set[WINDOW_STYLES]: ...
2872
+
2873
+ @property
2874
+ def dialogbox_style_list(self) -> set[DIALOG_BOX_STYLES]: ...
2875
+
2876
+ @property
2877
+ def extended_style_list(self) -> set[DIALOG_BOX_STYLES]: ...
2878
+
2879
+ @property
2880
+ def style(self) -> int: ...
2881
+
2882
+ @property
2883
+ def extended_style(self) -> int: ...
2884
+
2885
+ @property
2886
+ def items(self) -> ResourceDialog.it_const_items: ...
2887
+
2888
+ def has_style(self, style: WINDOW_STYLES) -> bool: ...
2889
+
2890
+ def has_dialogbox_style(self, style: DIALOG_BOX_STYLES) -> bool: ...
2891
+
2892
+ def has_extended_style(self, style: EXTENDED_WINDOW_STYLES) -> bool: ...
2893
+
2894
+ lang: int
2895
+
2896
+ sub_lang: int
2897
+
2898
+ def __str__(self) -> str: ...
2899
+
2900
+ class ResourceDialogItem(lief.Object):
2901
+ @property
2902
+ def is_extended(self) -> bool: ...
2903
+
2904
+ @property
2905
+ def help_id(self) -> int: ...
2906
+
2907
+ @property
2908
+ def extended_style(self) -> int: ...
2909
+
2910
+ @property
2911
+ def style(self) -> int: ...
2912
+
2913
+ @property
2914
+ def x(self) -> int: ...
2915
+
2916
+ @property
2917
+ def y(self) -> int: ...
2918
+
2919
+ @property
2920
+ def cx(self) -> int: ...
2921
+
2922
+ @property
2923
+ def cy(self) -> int: ...
2924
+
2925
+ @property
2926
+ def id(self) -> int: ...
2927
+
2928
+ @property
2929
+ def title(self) -> str: ...
2930
+
2931
+ def __str__(self) -> str: ...
2932
+
2933
+ class ResourceDirectory(ResourceNode):
2934
+ def __init__(self) -> None: ...
2935
+
2936
+ characteristics: int
2937
+
2938
+ time_date_stamp: int
2939
+
2940
+ major_version: int
2941
+
2942
+ minor_version: int
2943
+
2944
+ numberof_name_entries: int
2945
+
2946
+ numberof_id_entries: int
2947
+
2948
+ def __str__(self) -> str: ...
2949
+
2950
+ class ResourceFixedFileInfo(lief.Object):
2951
+ signature: int
2952
+
2953
+ struct_version: int
2954
+
2955
+ file_version_MS: int
2956
+
2957
+ file_version_LS: int
2958
+
2959
+ product_version_MS: int
2960
+
2961
+ product_version_LS: int
2962
+
2963
+ file_flags_mask: int
2964
+
2965
+ file_flags: int
2966
+
2967
+ file_os: lief.PE.FIXED_VERSION_OS
2968
+
2969
+ file_type: lief.PE.FIXED_VERSION_FILE_TYPES
2970
+
2971
+ file_subtype: lief.PE.FIXED_VERSION_FILE_SUB_TYPES
2972
+
2973
+ file_date_MS: int
2974
+
2975
+ file_date_LS: int
2976
+
2977
+ def __str__(self) -> str: ...
2978
+
2979
+ class ResourceIcon(lief.Object):
2980
+ id: int
2981
+
2982
+ lang: int
2983
+
2984
+ sublang: int
2985
+
2986
+ width: int
2987
+
2988
+ height: int
2989
+
2990
+ color_count: int
2991
+
2992
+ reserved: int
2993
+
2994
+ planes: int
2995
+
2996
+ bit_count: int
2997
+
2998
+ pixels: memoryview
2999
+
3000
+ def save(self, filepath: str) -> None: ...
3001
+
3002
+ def __str__(self) -> str: ...
3003
+
3004
+ class ResourceNode(lief.Object):
3005
+ class it_childs:
3006
+ def __getitem__(self, arg: int, /) -> ResourceNode: ...
3007
+
3008
+ def __len__(self) -> int: ...
3009
+
3010
+ def __iter__(self) -> ResourceNode.it_childs: ...
3011
+
3012
+ def __next__(self) -> ResourceNode: ...
3013
+
3014
+ id: int
3015
+
3016
+ @property
3017
+ def is_directory(self) -> bool: ...
3018
+
3019
+ @property
3020
+ def is_data(self) -> bool: ...
3021
+
3022
+ @property
3023
+ def has_name(self) -> bool: ...
3024
+
3025
+ name: Union[str, bytes]
3026
+
3027
+ @property
3028
+ def childs(self) -> ResourceNode.it_childs: ...
3029
+
3030
+ def add_directory_node(self, resource_directory: ResourceDirectory) -> ResourceNode: ...
3031
+
3032
+ def add_data_node(self, resource_data: ResourceData) -> ResourceNode: ...
3033
+
3034
+ @overload
3035
+ def delete_child(self, node: ResourceNode) -> None: ...
3036
+
3037
+ @overload
3038
+ def delete_child(self, id: int) -> None: ...
3039
+
3040
+ @property
3041
+ def depth(self) -> int: ...
3042
+
3043
+ def copy(self) -> Optional[ResourceNode]: ...
3044
+
3045
+ def __str__(self) -> str: ...
3046
+
3047
+ class ResourceStringFileInfo(lief.Object):
3048
+ type: int
3049
+
3050
+ key: str
3051
+
3052
+ langcode_items: list[lief.PE.LangCodeItem]
3053
+
3054
+ def __str__(self) -> str: ...
3055
+
3056
+ class ResourceStringTable(lief.Object):
3057
+ @property
3058
+ def length(self) -> int: ...
3059
+
3060
+ @property
3061
+ def name(self) -> str: ...
3062
+
3063
+ def __str__(self) -> str: ...
3064
+
3065
+ class ResourceVarFileInfo(lief.Object):
3066
+ type: int
3067
+
3068
+ key: str
3069
+
3070
+ translations: list[int]
3071
+
3072
+ def __str__(self) -> str: ...
3073
+
3074
+ class ResourceVersion(lief.Object):
3075
+ type: int
3076
+
3077
+ key: str
3078
+
3079
+ fixed_file_info: lief.PE.ResourceFixedFileInfo
3080
+
3081
+ string_file_info: lief.PE.ResourceStringFileInfo
3082
+
3083
+ var_file_info: lief.PE.ResourceVarFileInfo
3084
+
3085
+ @property
3086
+ def has_fixed_file_info(self) -> bool: ...
3087
+
3088
+ @property
3089
+ def has_string_file_info(self) -> bool: ...
3090
+
3091
+ @property
3092
+ def has_var_file_info(self) -> bool: ...
3093
+
3094
+ def remove_fixed_file_info(self) -> None: ...
3095
+
3096
+ def remove_string_file_info(self) -> None: ...
3097
+
3098
+ def remove_var_file_info(self) -> None: ...
3099
+
3100
+ def __str__(self) -> str: ...
3101
+
3102
+ class ResourcesManager(lief.Object):
3103
+ def __init__(self, arg: ResourceNode, /) -> None: ...
3104
+
3105
+ class it_const_dialogs:
3106
+ def __getitem__(self, arg: int, /) -> ResourceDialog: ...
3107
+
3108
+ def __len__(self) -> int: ...
3109
+
3110
+ def __iter__(self) -> ResourcesManager.it_const_dialogs: ...
3111
+
3112
+ def __next__(self) -> ResourceDialog: ...
3113
+
3114
+ class it_const_icons:
3115
+ def __getitem__(self, arg: int, /) -> ResourceIcon: ...
3116
+
3117
+ def __len__(self) -> int: ...
3118
+
3119
+ def __iter__(self) -> ResourcesManager.it_const_icons: ...
3120
+
3121
+ def __next__(self) -> ResourceIcon: ...
3122
+
3123
+ class it_const_strings_table:
3124
+ def __getitem__(self, arg: int, /) -> ResourceStringTable: ...
3125
+
3126
+ def __len__(self) -> int: ...
3127
+
3128
+ def __iter__(self) -> ResourcesManager.it_const_strings_table: ...
3129
+
3130
+ def __next__(self) -> ResourceStringTable: ...
3131
+
3132
+ class it_const_accelerators:
3133
+ def __getitem__(self, arg: int, /) -> ResourceAccelerator: ...
3134
+
3135
+ def __len__(self) -> int: ...
3136
+
3137
+ def __iter__(self) -> ResourcesManager.it_const_accelerators: ...
3138
+
3139
+ def __next__(self) -> ResourceAccelerator: ...
3140
+
3141
+ class TYPE(enum.Enum):
3142
+ @staticmethod
3143
+ def from_value(arg: int, /) -> ResourcesManager.TYPE: ...
3144
+
3145
+ def __eq__(self, arg, /) -> bool: ...
3146
+
3147
+ def __ne__(self, arg, /) -> bool: ...
3148
+
3149
+ def __int__(self) -> int: ...
3150
+
3151
+ CURSOR = 1
3152
+
3153
+ BITMAP = 2
3154
+
3155
+ ICON = 3
3156
+
3157
+ MENU = 4
3158
+
3159
+ DIALOG = 5
3160
+
3161
+ STRING = 6
3162
+
3163
+ FONTDIR = 7
3164
+
3165
+ FONT = 8
3166
+
3167
+ ACCELERATOR = 9
3168
+
3169
+ RCDATA = 10
3170
+
3171
+ MESSAGETABLE = 11
3172
+
3173
+ GROUP_CURSOR = 12
3174
+
3175
+ GROUP_ICON = 14
3176
+
3177
+ VERSION = 16
3178
+
3179
+ DLGINCLUDE = 17
3180
+
3181
+ PLUGPLAY = 19
3182
+
3183
+ VXD = 20
3184
+
3185
+ ANICURSOR = 21
3186
+
3187
+ ANIICON = 22
3188
+
3189
+ HTML = 23
3190
+
3191
+ MANIFEST = 24
3192
+
3193
+ @property
3194
+ def has_manifest(self) -> bool: ...
3195
+
3196
+ manifest: Union[str, bytes]
3197
+
3198
+ @property
3199
+ def has_version(self) -> bool: ...
3200
+
3201
+ @property
3202
+ def version(self) -> Union[ResourceVersion, lief.lief_errors]: ...
3203
+
3204
+ @property
3205
+ def has_icons(self) -> bool: ...
3206
+
3207
+ @property
3208
+ def icons(self) -> ResourcesManager.it_const_icons: ...
3209
+
3210
+ def change_icon(self, old_one: ResourceIcon, new_one: ResourceIcon) -> None: ...
3211
+
3212
+ @property
3213
+ def has_dialogs(self) -> bool: ...
3214
+
3215
+ @property
3216
+ def dialogs(self) -> ResourcesManager.it_const_dialogs: ...
3217
+
3218
+ @property
3219
+ def types(self) -> list[ResourcesManager.TYPE]: ...
3220
+
3221
+ def add_icon(self, icon: ResourceIcon) -> None: ...
3222
+
3223
+ def has_type(self, type: ResourcesManager.TYPE) -> bool: ...
3224
+
3225
+ @property
3226
+ def has_string_table(self) -> bool: ...
3227
+
3228
+ @property
3229
+ def string_table(self) -> ResourcesManager.it_const_strings_table: ...
3230
+
3231
+ @property
3232
+ def has_html(self) -> bool: ...
3233
+
3234
+ @property
3235
+ def html(self) -> list[str]: ...
3236
+
3237
+ @property
3238
+ def has_accelerator(self) -> bool: ...
3239
+
3240
+ @property
3241
+ def accelerator(self) -> ResourcesManager.it_const_accelerators: ...
3242
+
3243
+ def get_node_type(self, type: ResourcesManager.TYPE) -> ResourceNode: ...
3244
+
3245
+ def __str__(self) -> str: ...
3246
+
3247
+ class RichEntry(lief.Object):
3248
+ @overload
3249
+ def __init__(self) -> None: ...
3250
+
3251
+ @overload
3252
+ def __init__(self, id: int, build_id: int, count: int) -> None: ...
3253
+
3254
+ id: int
3255
+
3256
+ build_id: int
3257
+
3258
+ count: int
3259
+
3260
+ def copy(self) -> RichEntry: ...
3261
+
3262
+ def __str__(self) -> str: ...
3263
+
3264
+ class RichHeader(lief.Object):
3265
+ def __init__(self) -> None: ...
3266
+
3267
+ class it_entries:
3268
+ def __getitem__(self, arg: int, /) -> RichEntry: ...
3269
+
3270
+ def __len__(self) -> int: ...
3271
+
3272
+ def __iter__(self) -> RichHeader.it_entries: ...
3273
+
3274
+ def __next__(self) -> RichEntry: ...
3275
+
3276
+ key: int
3277
+
3278
+ @property
3279
+ def entries(self) -> RichHeader.it_entries: ...
3280
+
3281
+ @overload
3282
+ def add_entry(self, entry: RichEntry) -> None: ...
3283
+
3284
+ @overload
3285
+ def add_entry(self, id: int, build_id: int, count: int) -> None: ...
3286
+
3287
+ @overload
3288
+ def raw(self) -> list[int]: ...
3289
+
3290
+ @overload
3291
+ def raw(self, xor_key: int) -> list[int]: ...
3292
+
3293
+ @overload
3294
+ def hash(self, algo: ALGORITHMS) -> list[int]: ...
3295
+
3296
+ @overload
3297
+ def hash(self, algo: ALGORITHMS, xor_key: int) -> list[int]: ...
3298
+
3299
+ def copy(self) -> RichHeader: ...
3300
+
3301
+ def __str__(self) -> str: ...
3302
+
3303
+ class RsaInfo:
3304
+ @property
3305
+ def has_public_key(self) -> bool: ...
3306
+
3307
+ @property
3308
+ def has_private_key(self) -> bool: ...
3309
+
3310
+ @property
3311
+ def N(self) -> bytes: ...
3312
+
3313
+ @property
3314
+ def E(self) -> bytes: ...
3315
+
3316
+ @property
3317
+ def D(self) -> bytes: ...
3318
+
3319
+ @property
3320
+ def P(self) -> bytes: ...
3321
+
3322
+ @property
3323
+ def Q(self) -> bytes: ...
3324
+
3325
+ @property
3326
+ def key_size(self) -> int: ...
3327
+
3328
+ @property
3329
+ def __len__(self) -> int: ...
3330
+
3331
+ def __str__(self) -> str: ...
3332
+
3333
+ class SECTION_TYPES(enum.Enum):
3334
+ @staticmethod
3335
+ def from_value(arg: int, /) -> SECTION_TYPES: ...
3336
+
3337
+ def __eq__(self, arg, /) -> bool: ...
3338
+
3339
+ def __ne__(self, arg, /) -> bool: ...
3340
+
3341
+ def __int__(self) -> int: ...
3342
+
3343
+ TEXT = 0
3344
+
3345
+ IDATA = 2
3346
+
3347
+ DATA = 3
3348
+
3349
+ BSS = 4
3350
+
3351
+ RESOURCE = 5
3352
+
3353
+ RELOCATION = 6
3354
+
3355
+ EXPORT = 7
3356
+
3357
+ UNKNOWN = 10
3358
+
3359
+ class SYMBOL_BASE_TYPES(enum.Enum):
3360
+ @staticmethod
3361
+ def from_value(arg: int, /) -> SYMBOL_BASE_TYPES: ...
3362
+
3363
+ def __eq__(self, arg, /) -> bool: ...
3364
+
3365
+ def __ne__(self, arg, /) -> bool: ...
3366
+
3367
+ def __int__(self) -> int: ...
3368
+
3369
+ NULL = 0
3370
+
3371
+ VOID = 1
3372
+
3373
+ CHAR = 2
3374
+
3375
+ SHORT = 3
3376
+
3377
+ INT = 4
3378
+
3379
+ LONG = 5
3380
+
3381
+ FLOAT = 6
3382
+
3383
+ DOUBLE = 7
3384
+
3385
+ STRUCT = 8
3386
+
3387
+ UNION = 9
3388
+
3389
+ ENUM = 10
3390
+
3391
+ MOE = 11
3392
+
3393
+ BYTE = 12
3394
+
3395
+ WORD = 13
3396
+
3397
+ UINT = 14
3398
+
3399
+ DWORD = 15
3400
+
3401
+ class SYMBOL_COMPLEX_TYPES(enum.Enum):
3402
+ @staticmethod
3403
+ def from_value(arg: int, /) -> SYMBOL_COMPLEX_TYPES: ...
3404
+
3405
+ def __eq__(self, arg, /) -> bool: ...
3406
+
3407
+ def __ne__(self, arg, /) -> bool: ...
3408
+
3409
+ def __int__(self) -> int: ...
3410
+
3411
+ NULL = 0
3412
+
3413
+ POINTER = 1
3414
+
3415
+ FUNCTION = 2
3416
+
3417
+ ARRAY = 3
3418
+
3419
+ COMPLEX_TYPE_SHIFT = 4
3420
+
3421
+ class SYMBOL_SECTION_NUMBER(enum.Enum):
3422
+ @staticmethod
3423
+ def from_value(arg: int, /) -> SYMBOL_SECTION_NUMBER: ...
3424
+
3425
+ def __eq__(self, arg, /) -> bool: ...
3426
+
3427
+ def __ne__(self, arg, /) -> bool: ...
3428
+
3429
+ def __int__(self) -> int: ...
3430
+
3431
+ DEBUG = -2
3432
+
3433
+ ABSOLUTE = -1
3434
+
3435
+ UNDEFINED = 0
3436
+
3437
+ class SYMBOL_STORAGE_CLASS(enum.Enum):
3438
+ @staticmethod
3439
+ def from_value(arg: int, /) -> SYMBOL_STORAGE_CLASS: ...
3440
+
3441
+ def __eq__(self, arg, /) -> bool: ...
3442
+
3443
+ def __ne__(self, arg, /) -> bool: ...
3444
+
3445
+ def __int__(self) -> int: ...
3446
+
3447
+ END_OF_FUNCTION = -1
3448
+
3449
+ NULL = 0
3450
+
3451
+ AUTOMATIC = 1
3452
+
3453
+ EXTERNAL = 2
3454
+
3455
+ STATIC = 3
3456
+
3457
+ REGISTER = 4
3458
+
3459
+ EXTERNAL_DEF = 5
3460
+
3461
+ LABEL = 6
3462
+
3463
+ UNDEFINED_LABEL = 7
3464
+
3465
+ MEMBER_OF_STRUCT = 8
3466
+
3467
+ UNION_TAG = 12
3468
+
3469
+ TYPE_DEFINITION = 13
3470
+
3471
+ UDEFINED_STATIC = 14
3472
+
3473
+ ENUM_TAG = 15
3474
+
3475
+ MEMBER_OF_ENUM = 16
3476
+
3477
+ REGISTER_PARAM = 17
3478
+
3479
+ BIT_FIELD = 18
3480
+
3481
+ BLOCK = 100
3482
+
3483
+ FUNCTION = 101
3484
+
3485
+ END_OF_STRUCT = 102
3486
+
3487
+ FILE = 103
3488
+
3489
+ SECTION = 104
3490
+
3491
+ WEAK_EXTERNAL = 105
3492
+
3493
+ CLR_TOKEN = 107
3494
+
3495
+ class Section(lief.Section):
3496
+ @overload
3497
+ def __init__(self) -> None: ...
3498
+
3499
+ @overload
3500
+ def __init__(self, content: Sequence[int], name: str = '', characteristics: int = 0) -> None: ...
3501
+
3502
+ @overload
3503
+ def __init__(self, name: str) -> None: ...
3504
+
3505
+ class CHARACTERISTICS(enum.Flag):
3506
+ @staticmethod
3507
+ def from_value(arg: int, /) -> Section.CHARACTERISTICS: ...
3508
+
3509
+ def __eq__(self, arg, /) -> bool: ...
3510
+
3511
+ def __ne__(self, arg, /) -> bool: ...
3512
+
3513
+ def __int__(self) -> int: ...
3514
+
3515
+ TYPE_NO_PAD = 8
3516
+
3517
+ CNT_CODE = 32
3518
+
3519
+ CNT_INITIALIZED_DATA = 64
3520
+
3521
+ CNT_UNINITIALIZED_DATA = 128
3522
+
3523
+ LNK_OTHER = 256
3524
+
3525
+ LNK_INFO = 512
3526
+
3527
+ LNK_REMOVE = 2048
3528
+
3529
+ LNK_COMDAT = 4096
3530
+
3531
+ GPREL = 32768
3532
+
3533
+ MEM_PURGEABLE = 65536
3534
+
3535
+ MEM_16BIT = 131072
3536
+
3537
+ MEM_LOCKED = 262144
3538
+
3539
+ MEM_PRELOAD = 524288
3540
+
3541
+ ALIGN_1BYTES = 1048576
3542
+
3543
+ ALIGN_2BYTES = 2097152
3544
+
3545
+ ALIGN_4BYTES = 3145728
3546
+
3547
+ ALIGN_8BYTES = 4194304
3548
+
3549
+ ALIGN_16BYTES = 5242880
3550
+
3551
+ ALIGN_32BYTES = 6291456
3552
+
3553
+ ALIGN_64BYTES = 7340032
3554
+
3555
+ ALIGN_128BYTES = 8388608
3556
+
3557
+ ALIGN_256BYTES = 9437184
3558
+
3559
+ ALIGN_512BYTES = 10485760
3560
+
3561
+ ALIGN_1024BYTES = 11534336
3562
+
3563
+ ALIGN_2048BYTES = 12582912
3564
+
3565
+ ALIGN_4096BYTES = 13631488
3566
+
3567
+ ALIGN_8192BYTES = 14680064
3568
+
3569
+ LNK_NRELOC_OVFL = 16777216
3570
+
3571
+ MEM_DISCARDABLE = 33554432
3572
+
3573
+ MEM_NOT_CACHED = 67108864
3574
+
3575
+ MEM_NOT_PAGED = 134217728
3576
+
3577
+ MEM_SHARED = 268435456
3578
+
3579
+ MEM_EXECUTE = 536870912
3580
+
3581
+ MEM_READ = 1073741824
3582
+
3583
+ MEM_WRITE = 2147483648
3584
+
3585
+ virtual_size: int
3586
+
3587
+ sizeof_raw_data: int
3588
+
3589
+ pointerto_raw_data: int
3590
+
3591
+ pointerto_relocation: int
3592
+
3593
+ pointerto_line_numbers: int
3594
+
3595
+ numberof_relocations: int
3596
+
3597
+ numberof_line_numbers: int
3598
+
3599
+ characteristics: int
3600
+
3601
+ @property
3602
+ def characteristics_lists(self) -> list[Section.CHARACTERISTICS]: ...
3603
+
3604
+ def has_characteristic(self, characteristic: Section.CHARACTERISTICS) -> bool: ...
3605
+
3606
+ @property
3607
+ def padding(self) -> bytes: ...
3608
+
3609
+ def copy(self) -> Section: ...
3610
+
3611
+ def __str__(self) -> str: ...
3612
+
3613
+ class Signature(lief.Object):
3614
+ class VERIFICATION_FLAGS(enum.Flag):
3615
+ @staticmethod
3616
+ def from_value(arg: int, /) -> Signature.VERIFICATION_FLAGS: ...
3617
+
3618
+ def __eq__(self, arg, /) -> bool: ...
3619
+
3620
+ def __ne__(self, arg, /) -> bool: ...
3621
+
3622
+ def __int__(self) -> int: ...
3623
+
3624
+ OK = 0
3625
+
3626
+ INVALID_SIGNER = 1
3627
+
3628
+ UNSUPPORTED_ALGORITHM = 2
3629
+
3630
+ INCONSISTENT_DIGEST_ALGORITHM = 4
3631
+
3632
+ CERT_NOT_FOUND = 8
3633
+
3634
+ CORRUPTED_CONTENT_INFO = 16
3635
+
3636
+ CORRUPTED_AUTH_DATA = 32
3637
+
3638
+ MISSING_PKCS9_MESSAGE_DIGEST = 64
3639
+
3640
+ BAD_DIGEST = 128
3641
+
3642
+ BAD_SIGNATURE = 256
3643
+
3644
+ NO_SIGNATURE = 512
3645
+
3646
+ CERT_EXPIRED = 1024
3647
+
3648
+ CERT_FUTURE = 2048
3649
+
3650
+ class VERIFICATION_CHECKS(enum.Flag):
3651
+ @staticmethod
3652
+ def from_value(arg: int, /) -> Signature.VERIFICATION_CHECKS: ...
3653
+
3654
+ def __eq__(self, arg, /) -> bool: ...
3655
+
3656
+ def __ne__(self, arg, /) -> bool: ...
3657
+
3658
+ def __int__(self) -> int: ...
3659
+
3660
+ DEFAULT = 1
3661
+
3662
+ HASH_ONLY = 2
3663
+
3664
+ LIFETIME_SIGNING = 4
3665
+
3666
+ SKIP_CERT_TIME = 8
3667
+
3668
+ class it_const_crt:
3669
+ def __getitem__(self, arg: int, /) -> x509: ...
3670
+
3671
+ def __len__(self) -> int: ...
3672
+
3673
+ def __iter__(self) -> Signature.it_const_crt: ...
3674
+
3675
+ def __next__(self) -> x509: ...
3676
+
3677
+ class it_const_signers_t:
3678
+ def __getitem__(self, arg: int, /) -> SignerInfo: ...
3679
+
3680
+ def __len__(self) -> int: ...
3681
+
3682
+ def __iter__(self) -> Signature.it_const_signers_t: ...
3683
+
3684
+ def __next__(self) -> SignerInfo: ...
3685
+
3686
+ @overload
3687
+ @staticmethod
3688
+ def parse(path: str) -> Optional[Signature]: ...
3689
+
3690
+ @overload
3691
+ @staticmethod
3692
+ def parse(raw: Sequence[int], skip_header: bool = False) -> Optional[Signature]: ...
3693
+
3694
+ @property
3695
+ def version(self) -> int: ...
3696
+
3697
+ @property
3698
+ def digest_algorithm(self) -> ALGORITHMS: ...
3699
+
3700
+ @property
3701
+ def content_info(self) -> ContentInfo: ...
3702
+
3703
+ @property
3704
+ def certificates(self) -> Signature.it_const_crt: ...
3705
+
3706
+ @property
3707
+ def signers(self) -> Signature.it_const_signers_t: ...
3708
+
3709
+ def find_crt(self, serialno: Sequence[int]) -> x509: ...
3710
+
3711
+ @overload
3712
+ def find_crt_subject(self, subject: str) -> x509: ...
3713
+
3714
+ @overload
3715
+ def find_crt_subject(self, subject: str, serialno: Sequence[int]) -> x509: ...
3716
+
3717
+ @overload
3718
+ def find_crt_issuer(self, issuer: str) -> x509: ...
3719
+
3720
+ @overload
3721
+ def find_crt_issuer(self, issuer: str, serialno: Sequence[int]) -> x509: ...
3722
+
3723
+ def check(self, checks: Signature.VERIFICATION_CHECKS = Signature.VERIFICATION_CHECKS.DEFAULT) -> Signature.VERIFICATION_FLAGS: ...
3724
+
3725
+ @property
3726
+ def raw_der(self) -> memoryview: ...
3727
+
3728
+ def __str__(self) -> str: ...
3729
+
3730
+ class SignerInfo(lief.Object):
3731
+ class it_const_attributes_t:
3732
+ def __getitem__(self, arg: int, /) -> Attribute: ...
3733
+
3734
+ def __len__(self) -> int: ...
3735
+
3736
+ def __iter__(self) -> SignerInfo.it_const_attributes_t: ...
3737
+
3738
+ def __next__(self) -> Attribute: ...
3739
+
3740
+ @property
3741
+ def version(self) -> int: ...
3742
+
3743
+ @property
3744
+ def serial_number(self) -> bytes: ...
3745
+
3746
+ @property
3747
+ def issuer(self) -> Union[str, bytes]: ...
3748
+
3749
+ @property
3750
+ def digest_algorithm(self) -> ALGORITHMS: ...
3751
+
3752
+ @property
3753
+ def encryption_algorithm(self) -> ALGORITHMS: ...
3754
+
3755
+ @property
3756
+ def encrypted_digest(self) -> bytes: ...
3757
+
3758
+ @property
3759
+ def authenticated_attributes(self) -> SignerInfo.it_const_attributes_t: ...
3760
+
3761
+ @property
3762
+ def unauthenticated_attributes(self) -> SignerInfo.it_const_attributes_t: ...
3763
+
3764
+ def get_attribute(self, type: Attribute.TYPE) -> Attribute: ...
3765
+
3766
+ def get_auth_attribute(self, type: Attribute.TYPE) -> Attribute: ...
3767
+
3768
+ def get_unauth_attribute(self, type: Attribute.TYPE) -> Attribute: ...
3769
+
3770
+ @property
3771
+ def cert(self) -> x509: ...
3772
+
3773
+ def __str__(self) -> str: ...
3774
+
3775
+ class SigningCertificateV2(Attribute):
3776
+ pass
3777
+
3778
+ class SpcIndirectData(ContentInfo.Content):
3779
+ @property
3780
+ def digest_algorithm(self) -> ALGORITHMS: ...
3781
+
3782
+ @property
3783
+ def digest(self) -> memoryview: ...
3784
+
3785
+ @property
3786
+ def file(self) -> str: ...
3787
+
3788
+ def __str__(self) -> str: ...
3789
+
3790
+ class SpcRelaxedPeMarkerCheck(Attribute):
3791
+ @property
3792
+ def value(self) -> int: ...
3793
+
3794
+ class SpcSpOpusInfo(Attribute):
3795
+ @property
3796
+ def program_name(self) -> Union[str, bytes]: ...
3797
+
3798
+ @property
3799
+ def more_info(self) -> Union[str, bytes]: ...
3800
+
3801
+ class Symbol(lief.Symbol):
3802
+ def __init__(self) -> None: ...
3803
+
3804
+ name: Union[str, bytes]
3805
+
3806
+ @property
3807
+ def section_number(self) -> int: ...
3808
+
3809
+ @property
3810
+ def type(self) -> int: ...
3811
+
3812
+ @property
3813
+ def base_type(self) -> SYMBOL_BASE_TYPES: ...
3814
+
3815
+ @property
3816
+ def complex_type(self) -> SYMBOL_COMPLEX_TYPES: ...
3817
+
3818
+ @property
3819
+ def storage_class(self) -> SYMBOL_STORAGE_CLASS: ...
3820
+
3821
+ @property
3822
+ def numberof_aux_symbols(self) -> int: ...
3823
+
3824
+ @property
3825
+ def section(self) -> Section: ...
3826
+
3827
+ @property
3828
+ def has_section(self) -> bool: ...
3829
+
3830
+ def __str__(self) -> str: ...
3831
+
3832
+ class TLS(lief.Object):
3833
+ def __init__(self) -> None: ...
3834
+
3835
+ callbacks: list[int]
3836
+
3837
+ addressof_index: int
3838
+
3839
+ addressof_callbacks: int
3840
+
3841
+ sizeof_zero_fill: int
3842
+
3843
+ characteristics: int
3844
+
3845
+ addressof_raw_data: tuple[int, int]
3846
+
3847
+ data_template: memoryview
3848
+
3849
+ @property
3850
+ def has_section(self) -> bool: ...
3851
+
3852
+ @property
3853
+ def has_data_directory(self) -> bool: ...
3854
+
3855
+ @property
3856
+ def directory(self) -> DataDirectory: ...
3857
+
3858
+ @property
3859
+ def section(self) -> Section: ...
3860
+
3861
+ def copy(self) -> TLS: ...
3862
+
3863
+ def __str__(self) -> str: ...
3864
+
3865
+ class WINDOW_STYLES(enum.Enum):
3866
+ @staticmethod
3867
+ def from_value(arg: int, /) -> WINDOW_STYLES: ...
3868
+
3869
+ def __eq__(self, arg, /) -> bool: ...
3870
+
3871
+ def __ne__(self, arg, /) -> bool: ...
3872
+
3873
+ def __int__(self) -> int: ...
3874
+
3875
+ OVERLAPPED = 0
3876
+
3877
+ POPUP = 2147483648
3878
+
3879
+ CHILD = 1073741824
3880
+
3881
+ MINIMIZE = 536870912
3882
+
3883
+ VISIBLE = 268435456
3884
+
3885
+ DISABLED = 134217728
3886
+
3887
+ CLIPSIBLINGS = 67108864
3888
+
3889
+ CLIPCHILDREN = 33554432
3890
+
3891
+ MAXIMIZE = 16777216
3892
+
3893
+ CAPTION = 12582912
3894
+
3895
+ BORDER = 8388608
3896
+
3897
+ DLGFRAME = 4194304
3898
+
3899
+ VSCROLL = 2097152
3900
+
3901
+ HSCROLL = 1048576
3902
+
3903
+ SYSMENU = 524288
3904
+
3905
+ THICKFRAME = 262144
3906
+
3907
+ GROUP = 131072
3908
+
3909
+ TABSTOP = 65536
3910
+
3911
+ MINIMIZEBOX = 131072
3912
+
3913
+ MAXIMIZEBOX = 65536
3914
+
3915
+ def get_imphash(binary: Binary, mode: IMPHASH_MODE = IMPHASH_MODE.DEFAULT) -> str: ...
3916
+
3917
+ @overload
3918
+ def get_type(file: str) -> Union[PE_TYPE, lief.lief_errors]: ...
3919
+
3920
+ @overload
3921
+ def get_type(raw: Sequence[int]) -> Union[PE_TYPE, lief.lief_errors]: ...
3922
+
3923
+ def oid_to_string(arg: str, /) -> str: ...
3924
+
3925
+ @overload
3926
+ def parse(filename: str, config: ParserConfig = ...) -> Optional[Binary]: ...
3927
+
3928
+ @overload
3929
+ def parse(raw: Sequence[int], config: ParserConfig = ...) -> Optional[Binary]: ...
3930
+
3931
+ @overload
3932
+ def parse(obj: Union[io.IOBase | os.PathLike], config: ParserConfig = ...) -> Optional[Binary]: ...
3933
+
3934
+ def resolve_ordinals(imp: Import, strict: bool = False, use_std: bool = False) -> Union[Import, lief.lief_errors]: ...
3935
+
3936
+ class x509(lief.Object):
3937
+ class VERIFICATION_FLAGS(enum.Flag):
3938
+ @staticmethod
3939
+ def from_value(arg: int, /) -> x509.VERIFICATION_FLAGS: ...
3940
+
3941
+ def __eq__(self, arg, /) -> bool: ...
3942
+
3943
+ def __ne__(self, arg, /) -> bool: ...
3944
+
3945
+ def __int__(self) -> int: ...
3946
+
3947
+ OK = 0
3948
+
3949
+ BADCERT_EXPIRED = 1
3950
+
3951
+ BADCERT_REVOKED = 2
3952
+
3953
+ BADCERT_CN_MISMATCH = 4
3954
+
3955
+ BADCERT_NOT_TRUSTED = 8
3956
+
3957
+ BADCRL_NOT_TRUSTED = 16
3958
+
3959
+ BADCRL_EXPIRED = 32
3960
+
3961
+ BADCERT_MISSING = 64
3962
+
3963
+ BADCERT_SKIP_VERIFY = 128
3964
+
3965
+ BADCERT_OTHERNATURE = 256
3966
+
3967
+ BADCERT_FUTURE = 512
3968
+
3969
+ BADCRL_FUTURE = 1024
3970
+
3971
+ BADCERT_KEY_USAGE = 2048
3972
+
3973
+ BADCERT_EXT_KEY_USAGE = 4096
3974
+
3975
+ BADCERT_NS_CERT_TYPE = 8192
3976
+
3977
+ BADCERT_BAD_MD = 16384
3978
+
3979
+ BADCERT_BAD_PK = 32768
3980
+
3981
+ BADCERT_BAD_KEY = 65536
3982
+
3983
+ BADCRL_BAD_MD = 131072
3984
+
3985
+ BADCRL_BAD_PK = 262144
3986
+
3987
+ BADCRL_BAD_KEY = 524288
3988
+
3989
+ class KEY_TYPES(enum.Enum):
3990
+ @staticmethod
3991
+ def from_value(arg: int, /) -> x509.KEY_TYPES: ...
3992
+
3993
+ def __eq__(self, arg, /) -> bool: ...
3994
+
3995
+ def __ne__(self, arg, /) -> bool: ...
3996
+
3997
+ def __int__(self) -> int: ...
3998
+
3999
+ NONE = 0
4000
+
4001
+ RSA = 1
4002
+
4003
+ ECKEY = 2
4004
+
4005
+ ECKEY_DH = 3
4006
+
4007
+ ECDSA = 4
4008
+
4009
+ RSA_ALT = 5
4010
+
4011
+ RSASSA_PSS = 6
4012
+
4013
+ class KEY_USAGE(enum.Enum):
4014
+ @staticmethod
4015
+ def from_value(arg: int, /) -> x509.KEY_USAGE: ...
4016
+
4017
+ def __eq__(self, arg, /) -> bool: ...
4018
+
4019
+ def __ne__(self, arg, /) -> bool: ...
4020
+
4021
+ def __int__(self) -> int: ...
4022
+
4023
+ DIGITAL_SIGNATURE = 0
4024
+
4025
+ NON_REPUDIATION = 1
4026
+
4027
+ KEY_ENCIPHERMENT = 2
4028
+
4029
+ DATA_ENCIPHERMENT = 3
4030
+
4031
+ KEY_AGREEMENT = 4
4032
+
4033
+ KEY_CERT_SIGN = 5
4034
+
4035
+ CRL_SIGN = 6
4036
+
4037
+ ENCIPHER_ONLY = 7
4038
+
4039
+ DECIPHER_ONLY = 8
4040
+
4041
+ @overload
4042
+ @staticmethod
4043
+ def parse(path: str) -> list[x509]: ...
4044
+
4045
+ @overload
4046
+ @staticmethod
4047
+ def parse(raw: Sequence[int]) -> list[x509]: ...
4048
+
4049
+ @property
4050
+ def version(self) -> int: ...
4051
+
4052
+ @property
4053
+ def serial_number(self) -> bytes: ...
4054
+
4055
+ @property
4056
+ def signature_algorithm(self) -> str: ...
4057
+
4058
+ @property
4059
+ def valid_from(self) -> list[int]: ...
4060
+
4061
+ @property
4062
+ def valid_to(self) -> list[int]: ...
4063
+
4064
+ @property
4065
+ def issuer(self) -> Union[str, bytes]: ...
4066
+
4067
+ @property
4068
+ def subject(self) -> Union[str, bytes]: ...
4069
+
4070
+ @property
4071
+ def raw(self) -> bytes: ...
4072
+
4073
+ @property
4074
+ def key_type(self) -> x509.KEY_TYPES: ...
4075
+
4076
+ @property
4077
+ def rsa_info(self) -> Optional[RsaInfo]: ...
4078
+
4079
+ @property
4080
+ def key_usage(self) -> list[x509.KEY_USAGE]: ...
4081
+
4082
+ @property
4083
+ def ext_key_usage(self) -> list[str]: ...
4084
+
4085
+ @property
4086
+ def certificate_policies(self) -> list[str]: ...
4087
+
4088
+ @property
4089
+ def is_ca(self) -> bool: ...
4090
+
4091
+ @property
4092
+ def signature(self) -> bytes: ...
4093
+
4094
+ def verify(self, ca: x509) -> x509.VERIFICATION_FLAGS: ...
4095
+
4096
+ def is_trusted_by(self, ca_list: Sequence[x509]) -> x509.VERIFICATION_FLAGS: ...
4097
+
4098
+ def __str__(self) -> str: ...