HTB Rev - Iterative Virus
by macavitysworld - Saturday March 23, 2024 at 04:33 AM
#1
HTB Reversing Challenge - Iterative Virus(Quick writeup)
  • Use the 'file' command to provide an overview of the file type.
  • Open the file in PEBear to find detailed information. Discover a strange section named ivir and Timestamp = deadc0de.
  • Open the program in IDA64 for code analysis.
  • The function retrieves a pointer to the linked list of modules through NtCurrentTeb() and accesses information about the process and the kernel32_GetProcAddress module.
  • The main function copies text strings to memory based on the input value and ensures the strings are terminated with a null character.
  • Rename variables to make the program clearer and easier to understand, create a memory-mapped view of the file.
  • Check conditions to determine if the file could be malicious or not, and perform necessary operations to create or modify sections in the file.
  • Encode data in the victim file and perform various operations to cause harm when the victim file is executed.
  • Import important functions from kernel32.dll and user32.dll and execute system API functions like GetUserNameA and MessageBoxA to perform specific tasks.



Flag#
Hidden Content
You must register or login to view this content.
Thanks @paw for the rank!!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 22 2,661 29 minutes ago
Last Post: Akvlt
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 4 479 5 hours ago
Last Post: Reminiscing
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 602 92,181 Yesterday, 06:48 PM
Last Post: sabero_exe
  [FREE] CPTS 12 FLAGS pulsebreaker 68 2,020 Yesterday, 09:54 AM
Last Post: VictorPipeau
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 371 93,072 Yesterday, 08:48 AM
Last Post: phannguyenbaouy1

Forum Jump:


 Users browsing this forum: 1 Guest(s)