text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission<|fim_suffix|>sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|> /// IR statements. /// </summary> /// <param name="ptr">The binary file pointer.</param> /// <param name="optimize"> /// Whether to optimize the lifted IR statements or not. /// </param> /// <returns> /// Lifted IR statements. /// </returns> member _.LiftInstruction(ptr: BinFilePointer,...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>sons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIE...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>WordValue = ">" } let mapNoSymbol _ = [||] let memToString ins addr addrMode (builder: IDisasmBuilder) = match addrMode with | OffsetMode offset -> builder.Accumulate(AsmWordKind.String, "[") offsetToString ins addrMode offset builder builder.Accumulate(AsmWordKind.String, "]") | PreId...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>tVector(32I, 32<rt>) /// Gets the mask bits for fetching the M[4:0] bits from the PSR. /// PSR bits[4:0] let maskPSRForMbits = AST.num <| BitVector(31I, 32<rt>) /// Get PSR bits without shifting it. let internal getPSR bld reg psrType = let psr = regVar bld reg match psrType with | PSR.Cond -> psr...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>ed Most Significant Word Multiply Subtract (R = 1). | SMMLSR = 225 /// Signed Most Significant Word Multiply. | SMMUL = 226 /// Signed Most Significant Word Multiply (R = 1). | SMMULR = 227 /// Signed Dual Multiply Add. | SMUAD = 228 /// Signed Dual Multiply Add (M = 1). | SMUADX = 229 ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>| VS = 0x09 /// No overflow/Not unordered (V == 0). | VC = 0x0A /// Unsigned higher/Greater than, or unordered (C == 1 and Z == 0). | HI = 0x0B /// Unsigned lower or same/Less than or equal (C == 0 or Z == 1). | LS = 0x0C /// Signed greater than or equal/Greater than or equal (N == V). | G...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>|> not /// Test if the current instruction is the last instruction of an IT block. let lastInITBlock itstate = List.length itstate = 1 let parseCond = function | 0x0uy -> Condition.EQ | 0x1uy -> Condition.NE | 0x2uy -> Condition.CS | 0x3uy -> Condition.CC | 0x4uy -> Condition.MI | 0x5uy -> C...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(<|fim_suffix|>Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limit...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>Terminator.impossible () <|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in t...
fim
B2R2-org/B2R2
fsharp
(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without li...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>VectorReg Q12 O.SimdVectorReg D18 O.SimdVectorReg D16 ] ||> testNoWbackNoQ Condition.UN (Some(OneDT SIMDTypS8)) [<TestMethod>] member _.``[ARMv7] Advanced SIMD multiply Parse test (4)``() = "f3e24a4a" ++ VMULL ** [ O.SimdVectorReg Q10 ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>(ImmOffset(Lbl offs)))) -> addr <- (this.Address + uint64 offs) true | _ -> false else false member this.IndirectTrampolineAddr(_addr: byref<Addr>) = if (this :> IInstruction).IsIndirectBranch then Terminator.futureFeature () else false membe...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|> 0x7f800000UL 32<rt> | 16<rt> -> let signbit = AST.ite sign (numU64 0x8000UL 16<rt>) (AST.num0 16<rt>) signbit .| numU64 0x7c00UL 16<rt> | _ -> raise InvalidOperandException /// shared/functions/float/fpzero/FPZero /// FPZero() let fpZero src fbit = match fbit with | 64<rt> -> src .& numU...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without li...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - <|fim_suffix|>R PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS I...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>= getDisp b memDisp (Y, disp) let getMemDispZ b = let disp = getDisp b memDisp (Z, disp) let getMemLDD b = match b &&& 0b1111u with | 0b1100u -> memUnch X | 0b1101u -> memPostIdx X | 0b1110u -> memPreIdx X | 0b1000u -> memUnch Y | 0b1001u -> memPostIdx Y | 0b1010u -> memPreIdx Y | ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *) namespace B2R2.FrontEnd.AVR /// Represents a set of operands in an AVR instruction. type Operands = | NoOperand | OneOperand of Operand | TwoOpe...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|> let span = ReadOnlySpan bs ParsingMain.parse lifter span reader addr :> IInstruction member _.Parse(span: ByteSpan, addr) = ParsingMain.parse lifter span reader addr :> IInstruction <|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAI...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>et test (bytes: byte[], givenStmts: Stmt[]) = let parser = AVRParser(reader) :> IInstructionParsable let builder = ILowUIRBuilder.Default(isa, regFactory, LowUIRStream()) let ins = parser.Parse(bytes, 0UL) CollectionAssert.AreEqual(givenStmts, unwrapStmts <| ins.Translate builder) [<Tes...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>([], Map.empty) toolBox.Reader cls span secAddr entries struct ([ { CIE = cie; FDEs = List.toArray fdes } ], lsdas) /// Parses ARM-specific exception handler. The specification is found @ /// https://github.com/ARM-software/abi-aa/blob/main/ehabi32/ehabi32.rst let parse toolBox cls shdrs = match Arra...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>value representing a register /// number and an unsigned LEB128 which represents the magnitude of the /// offset. This instruction is identical to DW_CFA_offset_extended_sf except /// that the operand is subtracted to produce the offset. | DW_CFA_GNU_negative_offset_extended = 0x2fuy /// No oper...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|> representation of the CFA. static member ToString(regFactory: IRegisterFactory, cfa) = match cfa with | RegPlusOffset(rid, offset) -> regFactory.GetRegisterName rid + (offset.ToString("+0;-#")) | Expression exp -> PrettyPrinter.ToString exp | UnknownCFA -> "unknown" <|fim_pr...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>NT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *) namespace B2R2.FrontEnd.BinFile...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|> | DW_AT_GNU_discriminator = 0x2136us | DW_AT_GNU_locviews = 0x2137us | DW_AT_GNU_entry_view = 0x2138us | DW_AT_VMS_rtnbeg_pd_address = 0x2201us | DW_AT_use_GNAT_descriptive_type = 0x2301us | DW_AT_GNAT_descriptive_type = 0x2302us | DW_AT_GNU_numerator = 0x2303us | DW_AT_GNU_denominator = 0x...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>> uint64) :: exprs parse isa regs exprs span (i + 5) maxIdx | DWOperation.DW_OP_lit0 -> let exprs = num isa 0UL :: exprs parse isa regs exprs span (i + 1) maxIdx | DWOperation.DW_OP_lit1 -> let exprs = num isa 1UL :: exprs parse isa regs exprs span (i + 1) maxIdx ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|> | DW_FORM_addr = 0x01us | DW_FORM_block2 = 0x03us | DW_FORM_block4 = 0x04us | DW_FORM_data2 = 0x05us | DW_FORM_data4 = 0x06us | DW_FORM_data8 = 0x07us | DW_FORM_string = 0x08us | DW_FORM_block = 0x09us | DW_FORM_block1 = 0x0aus | DW_FORM_data1 = 0x0bus | DW_FORM_flag = 0x0cus | DW_F...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>ID Intel.Register.XMM14 | 32uy -> Intel.Register.toRegID Intel.Register.XMM15 | _ -> Terminator.futureFeature () let private toAArch64Register = function | 0uy -> ARM64.Register.toRegID ARM64.Register.X0 | 1uy -> ARM64.Register.toRegID ARM64.Register.X1 | 2uy -> ARM64.Register.toRegID ARM64.Reg...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>F ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OT...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>der.ReadUInt32(span, offset))), offset + 4 | DWForm.DW_FORM_ref_sup8 -> DWSupRef(reader.ReadUInt64(span, offset)), offset + 8 | DWForm.DW_FORM_data16 -> let bytes, offset = readBytes span 16 offset DWBytes bytes, offset | DWForm.DW_FORM_line_strp -> let s = unit.Section...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>unctions for <see /// cref='T:B2R2.FrontEnd.BinFile.ELF.ELFType'/> /// </summary> [<RequireQualifiedAccess>] module ELFType = /// <summary> /// Converts the ELF type to a string representation. /// </summary> [<CompiledName "ToString">] let toString = function | ELFType.ET_REL -> "Relocatabl...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>ftware is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NO...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>ARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, T...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>ING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CO...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>c myAddr addr let endAddr = beginAddr + range match (relOpt: RelocationInfo option) with | Some relInfo -> match relInfo.TryFind beginAddr with | Ok rentry -> let beginAddr = addr + rentry.RelAddend struct (beginAddr, beginAddr + range, offset) | Error _ -> st...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without li...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>parseActionTable [] span offset callsites else callsites let lsda = { LPValueEncoding = lpv LPAppEncoding = lpapp LPStart = lpstart TTValueEncoding = ttv TTAppEncoding = tta TTBase = ttb CallSiteValueEncoding = csv CallSiteAppEncoding...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without re<|fim_suffix|>ddr lsda lsda...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated do<|fim_suffix|>grammable Realtime Unit | EM_TI_PRU = 0x90s /// STMicroelectronics 64bi...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2<|fim_suffix|>OSABI = /// <summary> /// Converts the OSABI to a string representation. /// </summary> [<CompiledName "ToString">] let toString = function | OSABI.ELFOSABI_SYSV -> "UNIX System V" | OSABI.ELFOSABI_HPUX -> "HP-UX" | OSABI.ELFOSABI_NETBSD -> "NetBSD" | OSABI.E...
fim
B2R2-org/B2R2
fsharp
(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without li...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>r type. | PT_HIOS = 0x6fffffffu /// This segment specifies the location and size of the exception handling /// information as defined by the .eh_frame_hdr section. | PT_GNU_EH_FRAME = 0x6474e550u /// This segment specifies the permissions on the segment containing the stack /// and is used to ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby<|fim_suffix|>RIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH T...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>DTPREL16 = 74UL | R_PPC_DTPREL16_LO = 75UL | R_PPC_DTPREL16_HI = 76UL | R_PPC_DTPREL16_HA = 77UL | R_PPC_DTPREL32 = 78UL | R_PPC_GOT_TLSGD16 = 79UL | R_PPC_GOT_TLSGD16_LO = 80UL | R_PPC_GOT_TLSGD16_HI = 81UL | R_PPC_GOT_TLSGD16_HA = 82UL | R_PPC_GOT_TLSLD16 = 83UL | R_PPC_GOT_TLSLD16_L...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>ion code: ".init". let [<Literal>] Init = ".init" /// The name of the section holding executtable instructions that contribute to /// the process termination code: ".fini". let [<Literal>] Fini = ".fini" /// The name of the section that contains REL type relocation entries: /// ".rel.plt". let [<Literal...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>ASKOS" else () if flags.HasFlag SectionFlags.SHF_MASKPROC then "MASKPROC" else () if flags.HasFlag SectionFlags.SHF_ORDERED then "ORDERED" else () if flags.HasFlag SectionFlags.SHF_EXCLUDE then "EXCLUDE" else () if flags.HasFlag SectionFlags.SHF_X86_64_LARGE then "X86_64_LARGE" ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>e.SHT_SHLIB -> "SHLIB" | SectionType.SHT_DYNSYM -> "DYNSYM" | SectionType.SHT_INIT_ARRAY -> "INIT_ARRAY" | SectionType.SHT_FINI_ARRAY -> "FINI_ARRAY" | SectionType.SHT_PREINIT_ARRAY -> "PREINIT_ARRAY" | SectionType.SHT_GROUP -> "GROUP" | SectionType.SHT_SYMTAB_SHNDX -> "SYMTAB_SHND...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|> member _.StaticSymbols with get() = staticSymbSecs |> Array.collect (fun s -> symbolTables[s.SecNum]) /// Returns parsed dynamic symbols. member _.DynamicSymbols with get() = dynamicSymbSecs |> Array.collect (fun s -> symbolTables[s.SecNum]) /// Adds a symbol to the symbol map. I...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>uded in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without li...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>nge.create saddr (eaddr - 1UL)) set let addLastInvalidRange wordSize (set, saddr) = let laddr = if wordSize = WordSize.Bit32 then 0xFFFFFFFFUL else 0xFFFFFFFFFFFFFFFFUL IntervalSet.add (AddrRange.create saddr laddr) set <|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, fr<|fim_suffix|>LITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE S...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>s a binary file pointer that points to the beginning of the text /// section, e.g., ".text" section of ELF. /// </summary> abstract GetTextSectionPointer: unit -> BinFilePointer /// <summary> /// Returns a binary file pointer of the given section whose name is given as /// an argument. The re...
fim
B2R2-org/B2R2
fsharp
<|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>abstract IsAddrMappedToFile: Addr -> bool /// <summary> /// Checks if the given address range is valid and there exists a /// corresponding region in the actual binary file. This function returns true /// only if the whole range of the addresses are valid (for every address in /// the range, Is...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>ge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to per...
fim
B2R2-org/B2R2
fsharp
<|fim_suffix|>> /// <param name="relocAddr">Virtual address to be relocated.</param> /// <returns> /// Returns a relocated address for a given virtual address. /// </returns> abstract GetRelocatedAddr: relocAddr: Addr -> Result<Addr, ErrorCase> <|fim_prefix|>(* B2R2 - the Next-Generation Reversing Platform ...
fim
B2R2-org/B2R2
fsharp
(* B2R2 - the Next-Generation Reversing Platform Copyright (c) SoftSec Lab. @ KAIST, since 2016 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without li...
fim
B2R2-org/B2R2
fsharp