Function at 0x140001040
Capabilities:
Enumerate process modules
Enumerate processes
Write file on windows

Disassembly:
sub rsp, 0x2d8
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x140005640], rax
test rax, rax
jne 0x1400010a2
lea rdx, str.GetModuleHandle_L_ntdll.dll____error_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400017d0
mov eax, 1
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140001c50
add rsp, 0x2d8
ret
lea rdx, str.NtReadVirtualMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140005648], rax
test rax, rax
jne 0x1400010c7
lea rdx, str._NtReadVirtualMemory_T__NtF__NtReadVirtualMemory_____error_n
jmp 0x140001079
mov rcx, qword [0x140005640]
lea rdx, str.NtQueryVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140005650], rax
test rax, rax
jne 0x1400010f0
lea rdx, str._NtQueryVirtualMemory_T__NtF__NtQueryVirtualMemory_____error_n
jmp 0x140001079
mov rcx, qword [0x140005640]
lea rdx, str.NtProtectVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov qword [0x140005638], rax
test rax, rax
jne 0x140001123
lea rdx, str._NtProtectVirtualMemory_T__NtF__NtProtectVirtualMemory_____error_n
jmp 0x140001080
mov qword [rsp + 0x2e0], rbx
lea rdx, str.Waiting_for
mov qword [rsp + 0x2e8], rbp
mov qword [rsp + 0x2b0], r15
call fcn.1400017d0
mov rcx, rax
lea rdx, [0x140003528]
call fcn.1400017d0
mov rcx, rax
lea rdx, str._process_n
call fcn.1400017d0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Enter_the_number_of_reading_iterations__500_recommended_:
mov dword [rsp + 0x54], 0x32
call fcn.1400017d0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea rdx, [rsp + 0x54]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64____ptr64]
mov dword [rsp + 0x60], 0x238
lea rbp, str.RobloxPlayerBeta.exe
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x60]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x1400011a1
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x1400011a1
nop word [rax + rax]
lea rdx, [rsp + 0x8c]
mov rax, 0xffffffffffffffff
nop
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [rbp + rax*2 + 2]
jne 0x140001211
add rax, 2
cmp rax, 0x15
je 0x140001229
movzx ecx, word [rdx + rax*2]
cmp cx, word [rbp + rax*2]
je 0x1400011f0
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x1400011e0
jmp 0x1400011a1
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, 0x64
mov r15, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
test r15, r15
jne 0x14000126a
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.OpenProcess_PROCESS_ALL_ACCESS__FALSE__entry.th32ProcessID___error_n
call fcn.1400017d0
lea eax, [r15 + 1]
jmp 0x1400016a3
mov qword [rsp + 0x2f0], rsi
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x2b8], r14
xor edx, edx
mov dword [rsp + 0x50], 0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
jne 0x1400012ac
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_get_modules_buffer_size_n
call fcn.1400017d0
mov edx, dword [rsp + 0x50]
xor ecx, ecx
shl rdx, 3
mov r8d, 0x1000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x50]
mov rdx, rax
mov rcx, r15
mov r14, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
jne 0x1400012f6
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_get_modules_n
call fcn.1400017d0
mov edx, 0x32
mov qword [rsp + 0x2d0], rdi
xor ecx, ecx
mov qword [rsp + 0x2c8], r12
mov r8d, 0x1000
lea r9d, [rdx - 0x2e]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [rsp + 0x50]
xor esi, esi
shl rcx, 3
mov rbx, rax
test rcx, rcx
je 0x140001392
xor edi, edi
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [r14 + rdi*8]
mov r9d, 0x28
mov r8, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
mov rcx, 0xffffffffffffffff
nop dword [rax]
movzx eax, word [rbx + rcx*2 + 2]
cmp ax, word [rbp + rcx*2 + 2]
jne 0x140001381
add rcx, 2
cmp rcx, 0x15
je 0x1400013af
movzx eax, word [rbx + rcx*2]
cmp ax, word [rbp + rcx*2]
je 0x140001360
mov eax, dword [rsp + 0x50]
inc esi
mov edi, esi
shl rax, 3
cmp rdi, rax
jb 0x140001340
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.FindModule_Target_process__LTarget_name___error_n
call fcn.1400017d0
mov eax, 1
jmp 0x140001683
mov r12, qword [r14 + rdi*8]
test r12, r12
je 0x140001392
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Main_module:
mov qword [rsp + 0x2c0], r13
call fcn.1400017d0
mov rcx, rax
lea rdx, [0x140001020]
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 rdx, r12
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___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x1400019a0]
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::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor ecx, ecx
mov edx, 0x50549f0
mov r8d, 0x1000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
mov edx, 0x1000
mov r8d, edx
mov r13, rax
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor edx, edx
mov r8d, 0x50549f0
mov rcx, r13
mov rbp, rax
call sub.VCRUNTIME140.dll_memset
mov rsi, r13
mov rbx, r12
sub rsi, r12
mov edi, 0x5054
xor r14d, r14d
lea r8, [rsi + rbx]
mov qword [rsp + 0x20], r14
mov r9d, 0x1000
mov rdx, rbx
mov rcx, r15
call qword [0x140005648]
add rbx, 0x1000
sub rdi, 1
jne 0x140001451
xor esi, esi
lea r8, [r13 + 0x5054000]
lea rdx, [r12 + 0x5054000]
mov qword [rsp + 0x20], rsi
mov r9d, 0x9f0
mov rcx, r15
call qword [0x140005648]
mov dword [rsp + 0x40], esi
cmp dword [rsp + 0x54], esi
jbe 0x1400015fc
mov rax, rbp
sub r12, r13
sub rax, r13
mov r14, r13
mov qword [rsp + 0x48], rax
neg r14
mov edi, esi
mov rbx, r13
mov rsi, rax
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x1000
mov rcx, rbp
call sub.VCRUNTIME140.dll_memset
lea rdx, [r12 + rbx]
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov r8, rbp
mov rcx, r15
call qword [0x140005648]
lea rax, [rbx + r14]
cmp rax, 0x50549f0
jae 0x14000154d
mov r8, rbx
nop
movzx eax, byte [r8]
movzx ecx, byte [rsi + r8]
cmp al, cl
je 0x140001526
test al, al
jne 0x140001526
mov byte [r8], cl
inc edi
inc r8
xor edx, edx
mov rax, r8
sub rax, rbx
cmp rax, 0x1000
lea rax, [r14 + r8]
setb dl
xor ecx, ecx
cmp rax, 0x50549f0
setb cl
test ecx, edx
jne 0x140001510
add rbx, 0x1000
sub rsi, 0x1000
lea rax, [rbx + r14]
cmp rax, 0x50549f0
jb 0x1400014d0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Iteration
call fcn.1400017d0
mov rcx, rax
lea rdx, section..text
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 ebx, dword [rsp + 0x40]
mov rcx, rax
mov edx, ebx
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, [0x140003660]
call fcn.1400017d0
mov edx, dword [rsp + 0x54]
mov rcx, rax
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, [0x14000365c]
call fcn.1400017d0
mov rcx, rax
mov edx, edi
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, str._Changes_n
call fcn.1400017d0
mov rax, qword [rsp + 0x48]
inc ebx
mov esi, 0
mov dword [rsp + 0x40], ebx
cmp ebx, dword [rsp + 0x54]
jb 0x1400014c0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.The_dump_will_be_written_to_the
call fcn.1400019e0
mov rcx, rax
lea rdx, str.RobloxPlayerBeta_DMP.exe
call fcn.1400019e0
mov rcx, rax
lea rdx, [0x140001bc0]
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::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
lea rcx, str.RobloxPlayerBeta_DMP.exe
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400016d3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.CreateFile_Output_file_name__GENERIC_WRITE__FILE_SHARE_READ_NULL__CREATE_ALWAYS__FILE_ATTRIBUTE_NORMAL_NULL___error_n
call fcn.1400017d0
lea eax, [rdi + 2]
mov r13, qword [rsp + 0x2c0]
mov r12, qword [rsp + 0x2c8]
mov rdi, qword [rsp + 0x2d0]
mov r14, qword [rsp + 0x2b8]
mov rsi, qword [rsp + 0x2f0]
mov rbp, qword [rsp + 0x2e8]
mov rbx, qword [rsp + 0x2e0]
mov r15, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140001c50
add rsp, 0x2d8
ret
mov rbx, rsi
nop word [rax + rax]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rdx, [rbx + r13]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8d, 0x10000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rbx, 0x10000
cmp rbx, 0x50449f0
jb 0x1400016e0
mov r8d, 0x50549f0
mov qword [rsp + 0x20], rsi
sub r8d, ebx
lea rdx, [rbx + r13]
xor r9d, r9d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x50549f0
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14000167b