Function at 0x140002860
Capabilities:
Enumerate processes
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x640]
sub rsp, 0x740
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rbp + 0x630], rax
lea rdx, str._____________________CHECK_PROCESS_HOLLOWING__________________
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005260
mov rcx, rax
lea rdx, [0x140008710]
call fcn.140005260
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x1c0]
call sub.VCRUNTIME140.dll_memset
mov r8d, 8
lea rdx, str.CheckInjectOutputCheckInject.txt
lea rcx, [rbp + 0x1c0]
call fcn.1400042c0
nop
lea rdx, str.CHECK_PROCESS_HOLLOWING
lea rcx, [rbp + 0x1c0]
call fcn.140005260
mov rcx, rax
lea rdx, [0x140008710]
call fcn.140005260
lea rdx, [0x140008988]
lea rcx, [rbp + 0x1c0]
call fcn.140005260
mov rcx, rax
lea rdx, [0x140008710]
call fcn.140005260
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x74]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x70], 0x238
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor r15d, r15d
mov r12d, 0x5a4d
nop dword [rax]
mov dword [rbp + 0x1b4], 0x104
mov r8d, dword [rsp + 0x78]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
lea r9, [rbp + 0x1b4]
lea r8, [rbp + 0x420]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
jne 0x1400029b5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x78]
call fcn.140002670
test eax, eax
je 0x140002bce
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
lea rcx, [rbp + 0x420]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002a9b
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x1b0]
mov r8d, 0x40
lea rdx, [rbp + 0x2d0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002a92
cmp dword [rbp + 0x1b0], 0x40
jne 0x140002a92
mov rcx, rbx
cmp word [rbp + 0x2d0], r12w
jne 0x140002a95
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rbp + 0x30c]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x1b0]
mov r8d, 0x108
lea rdx, [rbp + 0x310]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002a92
cmp dword [rbp + 0x1b0], 0x108
jne 0x140002a92
mov edi, dword [rbp + 0x318]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002a9e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, r15d
mov ecx, dword [rsp + 0x78]
call fcn.140002670
cmp edi, eax
je 0x140002bce
lea rdx, str.Detect_Process_Hollowing__n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005260
lea rdx, [rbp - 0x64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140005470
mov rcx, rax
lea rdx, str._PID:_0x
call fcn.140005640
mov rcx, rax
lea rdx, [0x140001300]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, dword [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140008710]
call fcn.140005640
lea rdx, [0x1400087c8]
lea rcx, [rbp + 0x1c0]
call fcn.140005260
mov rcx, rax
lea rdx, [0x140001300]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, dword [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140008710]
call fcn.140005260
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
mov r9d, 0x30
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x140002bce
nop dword [rax]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x40]
lea rbx, [rcx + rdx]
cmp dword [rsp + 0x60], 0x1000
jne 0x140002bb2
mov eax, dword [rsp + 0x64]
cmp eax, 0x40
je 0x140002ba6
cmp eax, 0x10
jne 0x140002bb2
mov r8d, ecx
mov ecx, dword [rsp + 0x78]
call fcn.140001320
mov r9d, 0x30
lea r8, [rsp + 0x40]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
jne 0x140002b80
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140002970
lea rcx, [rbp + 0x1c8]
call fcn.140004e40
test rax, rax
jne 0x140002c18
mov rax, qword [rbp + 0x1c0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x1c0]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp + 0x1c0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x1c0], rax
mov rax, qword [rbp + 0x1c0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x1bc], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x248], 0
je 0x140002c9b
mov rax, qword [rbp + 0x1e0]
lea rcx, [rbp + 0x238]
cmp qword [rax], rcx
jne 0x140002c9b
mov rdx, qword [rbp + 0x258]
mov rcx, qword [rbp + 0x250]
mov qword [rax], rcx
mov rax, qword [rbp + 0x200]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x218]
mov dword [rax], edx
cmp byte [rbp + 0x244], 0
je 0x140002cb0
lea rcx, [rbp + 0x1c8]
call fcn.140004e40
lea rcx, [rbp + 0x1c8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x268]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x630]
xor rcx, rsp
call fcn.140005ea0
lea r11, [rsp + 0x740]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret