Showing posts with label orthia. Show all posts
Showing posts with label orthia. Show all posts

Sunday, October 4, 2026

Orthia UI 1.1.0.16 released

New Features

  • Full-Scale Linux Version — ELF support, dependency loading, 'make install', and a root sandbox (only `CAP_SYS_PTRACE` is kept). Tested on Ubuntu 24.04. No major placeholders: orthia, welcome to Linux.
  • Command-Line support — the new `--cmd` switch runs commands without the UI. Great for scripts, tests and AI agents. Usage line and options: --file, --pid, --cmd, --analyze, --no-sandbox and --version/-h. Most-used commands: lm, x, u, the d* memory commands, modinfo, sections, .reload/.analyze and .database.
  • Bug fixes — database integrity, faster opening, better symbol lookup, sane error text, better windows kernel modules support, and more.
  • New documentation — a major update: a full manual, a database guide and a WinDbg plugin guide. 

    See the docs here: https://github.com/ligen-ua/diana-dasm/tree/v1.1.0.16-ui 
  • Screenshot 1. Self-disasm on Linux:

     

    Repo:

    https://github.com/ligen-ua/diana-dasm/   

     

    Monday, May 11, 2026

    Orthia UI 1.1.0.10 released

     

    Orthia UI 1.1.0.10 is here:

    https://github.com/ligen-ua/diana-dasm/releases/tag/v1.1.0.10-ui 


    PDB Symbol Support

    Adds PDB symbol loading and integration throughout the disassembler, enabling symbol-aware navigation and analysis for Windows binaries.

    New features

    • PDB symbol loading — integrates libpdb to parse .pdb files; supports recursive PDB search to locate symbol files automatically
    • External and module symbol layers — new orthia_external_symbols and orthia_module_symbols components manage symbol lifecycles and expose them to the analysis pipeline
    • Private symbol support in Goto dialog — the Goto dialog can now resolve private symbols, not just exports
    • Ctrl+X — new keyboard shortcut (XREF navigation)
    • .symfix command improvements — more robust symbol path fixing

    Improvements

    • Symbol impact applied correctly during analysis (flags_analyzePrivateDone and related state)
    • File mode address/name resolution fixed (QueryAddressNameImpl, QueryNames)
    • Module flags handling corrected
    • Memory cache added to reduce repeated lookups
    • Default symbol search behavior improved
    • Duplicate entries eliminated on XREF update
    • Modules window shows symbol information

    Fixes

    • Goto dialog layout fixed
    • File item handling fixed
    • PDB load error handling fixed
    • Linux build errors fixed

    Demo GIF:

    Saturday, August 16, 2025

    Orthia Windbg Extension 2.0.0.228 released

    Orthia Windbg Extension v. 2.0.0.228 is here:

    https://github.com/ligen-ua/diana-dasm/releases/download/v1.2-tools/tools-v1.2-amd64.zip  

    What's changed:

    • Added scxr command that searches through the stack for context records
    • Fixed issues with wow64
    • Added lazy profile initialization for some ease of use

    Demo of !orthia.scxr 

    The  command scans the current stack for context records, and it is useful for usermode crash dump analysis.

    Let's assume we have an UM dump opened: 

     

    The stack doesn't show original problem, we need to grab the original context:

     

    That's it, !scxr command outputs ".cxr"-encoded URLs, so when you click on URL you get original context, see Calls and Disassembly windows.

     

    Tuesday, June 11, 2024

    A Workaround for "Levels not implemented for this platform"

    The Windows kernel people may be familiar with a cool built-in "pte" extension that can help you troubleshoot ugly BSODs by checking if some kernel memory address is inaccessible.


    0: kd> !pte ffff8d89`cce3efe8 
                                               VA ffff8d89cce3efe8
    PXE at FFFF91C8E47238D8    PPE at FFFF91C8E471B138    PDE at FFFF91C8E3627338    PTE at FFFF91C6C4E671F0
    contains 0A0000021E002863  contains 0A00000002903863  contains 0A0000012845B863  contains 8A0000015AD4F963
    pfn 21e002    ---DA--KWEV  pfn 2903      ---DA--KWEV  pfn 12845b    ---DA--KWEV  pfn 15ad4f    -G-DA--KW-V

    0: kd> dt nt!_HARDWARE_PTE FFFF91C6C4E671F0
       +0x000 Valid            : 0y1
       +0x000 Write            : 0y1
       +0x000 Owner            : 0y0
       +0x000 WriteThrough     : 0y0
       +0x000 CacheDisable     : 0y0
       +0x000 Accessed         : 0y1
       +0x000 Dirty            : 0y1
       +0x000 LargePage        : 0y0
       +0x000 Global           : 0y1
       +0x000 CopyOnWrite      : 0y0
       +0x000 Prototype        : 0y0
       +0x000 reserved0        : 0y1
       +0x000 PageFrameNumber  : 0y000000000000000101011010110101001111 (0x15ad4f)
       +0x000 reserved1        : 0y0000
       +0x000 SoftwareWsIndex  : 0y00010100000 (0xa0)
       +0x000 NoExecute        : 0y1


    Normally it shows PTE address among with other information, but unfortunately it has been broken for a quite some time (and his colleague vtop - too):


    0: kd> !pte fffff807`1f8a7c58
    Levels not implemented for this platform


    And it doesn't look like MS is going to fix it anytime soon, see:

    https://learn.microsoft.com/en-us/answers/questions/1010386/windbg-pte-command-levels-not-implemented-for-this?page=1#answer-1315958

    https://github.com/microsoftfeedback/WinDbg-Feedback/issues/8


    It's no problem if you have a single occasional BSOD, but if you really need to use this extension for a number of dumps in a row it's getting annoying.

    Sooo, I decided to use my small and nice (and a little bit outdated) code emulator and emulate nt!MiGetPteAddress instead:


    0: kd> .load c:\orthia\orthia.dll;!orthia.profile /f %temp%\test.db; !orthia.vm_vm_def
    0: kd> !orthia.vm_vm_call 0 nt!MiGetPteAddress --print rcx=fffff807`1f8a7c58

    Diana Error Code: DI_END
    rax=fffff6fc038fc538 rbx=fffff8071b881180 rcx=0000007c038fc538
    rdx=0000025800000000 rsi=0000000000000001 rdi=000000000000000d
    rip=0000000000000000 rsp=fffff8071f8a7c58 rbp=ffff940947d3e040
    r8=0000000000000018  r9=ffff9409476e0000 r10=000000000000000b
    r11=0000000000009ee6 r12=0000000000000000 r13=fffff8071b881180
    r14=0000000000000001 r15=ffffffffffffff00
    cs=0010  ss=0018  ds=002b  es=002b  fs=0053  gs=002b  efl=00000282
    Commands count: 6
    Modified pages:
    Done

    0: kd> dt ntkrnlmp!_HARDWARE_PTE fffff6fc038fc538
     +0x000 Valid            : 0y1
     +0x000 Write            : 0y1
     +0x000 Owner            : 0y0
     +0x000 WriteThrough     : 0y0
       +0x000 CacheDisable     : 0y0
       +0x000 Accessed         : 0y1
     +0x000 Dirty            : 0y1
       +0x000 LargePage        : 0y0
     +0x000 Global           : 0y0
     +0x000 CopyOnWrite      : 0y0
     +0x000 Prototype        : 0y0
     +0x000 reserved0        : 0y1
     +0x000 PageFrameNumber  : 0y000000000000000000000110110010100111 (0x6ca7)
     +0x000 reserved1        : 0y0000
     +0x000 SoftwareWsIndex  : 0y00010010000 (0x90)
     +0x000 NoExecute        : 0y1

    As you can see there were just 6 assembler instruction to emulate, so it handled them successfully.

    The extension is here: https://github.com/ligen-ua/diana-dasm/releases/tag/v1.1-tools

    The sources and this case study is there:

    https://github.com/ligen-ua/diana-dasm?tab=readme-ov-file#pte-case-study


    Saturday, January 6, 2018

    Orthia Windbg Extension 2.0.0.193 released

    
    
     
    Orthia Windbg Extension 2.0.0.193 Released
    Latest version:
    https://sourceforge.net/projects/diana-dasm/files/orthia-2.0.0.193.zip/download

    1. New Major Feature added: Code Emulator

    
    
    How to use: 
    // load extension and setup profile
    .load orthia.dll
    !orthia.profile %temp%\test.db
    
    // rewrite default VM (another way is to use vm_vm_new)
    !orthia.vm_vm_def
    
    // run the function and show the result
    !orthia.vm_vm_call 0 nt!PsGetCurrentProcess --print 
    
    
    See Wiki for the details:
    https://sourceforge.net/p/diana-dasm/wiki/Orthia%20Windbg%20plugin/ 

    2. Code Analyzer improved

    1. Memory consumption reduced
    2. Performance of analyzing improved
    
    
    
    
    The latest sources: 
    https://sourceforge.net/p/diana-dasm/code/HEAD/tree/trunk/src/
     
    
    

    Monday, August 26, 2013

    Orthia Windbg Plugin

    Дошли руки дописать winbg-плагин который дает скромную возможность анализировать код прямо в windbg сессии.  Поскольку плагин базируется на библиотеке diana, я почему-то решил назвать его orthia.
    Краткое описание возможностей доступно на sourceforge wiki
    Примеры использования:
    1) как настроить окружение. Orthia сохраняет всю информацию в sqlite базе данных на диске, перед работой с плагином нужно указать имя файла с помощью команды !orthia.profile.


    2) как проанализировать все модули (не рекомендуется в kernel mode под живым коннекшном - может быть долго)
    исполнительная система nt у меня  и так подгружается 2.5 минуты
    3) пример команды !orthia.x - eXamine address

     

    4) пример команды !orthia.xr - eXamine Range


    5)  пример анализа связки nt + ntfs, часть I:

     6) пример анализа связки nt+ntfs, часть II:

    Пути улучшения:
    - конечно же багфикс. ну что за программа без багов;
    - нужно бы слегка оптимизировать анализ по скорости;
    - есть идея добавить GUI окно со стрелочками ala-IDA, если получится встроиться прямо в windbg.
    Вообще, это все писалось строго для fun'а, но может быть кому-то быть полезным.