Function at 0x140001750
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push r13
sub rsp, 0xb0
mov rax, qword [0x140007080]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, r8
mov qword [rsp + 0x30], r9
mov r8d, ecx
mov r13, rdx
mov ecx, 0x1fffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
je 0x140001982
mov qword [rsp + 0x98], r14
lea r8, [rsp + 0x40]
xor r14d, r14d
xor edx, edx
mov rcx, rax
lea r9d, [r14 + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x14000196f
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0x90], r15
nop dword [rax]
cmp dword [rsp + 0x60], 0x1000
jne 0x14000192a
cmp dword [rsp + 0x64], 1
je 0x14000192a
mov rcx, qword [rsp + 0x58]
call fcn.140002554
mov r9, qword [rsp + 0x58]
mov r12, rax
mov rdx, qword [rsp + 0x40]
mov r8, r12
mov qword [rsp + 0x38], rax
mov rcx, rbp
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140001922
mov rsi, qword [rsp + 0x78]
mov rcx, rsi
sub rcx, rdi
add rcx, 1
je 0x140001922
mov r15, r12
mov rbx, r14
mov r12, qword [rsp + 0x30]
sub r15, r14
nop word [rax + rax]
lea rcx, [r15 + rbx]
mov r8, rdi
mov rdx, r13
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140001902
lea rax, [rsp + 0x70]
mov r9d, 0x40
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r9, rdi
mov qword [rsp + 0x20], 0
mov r8, r12
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Memory_modified_successfully.
test eax, eax
jne 0x1400018ca
lea rdx, str.Failed_to_modify_memory.
call fcn.140001030
lea rdx, [0x1400014d0]
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r9d, dword [rsp + 0x70]
lea rax, [rsp + 0x70]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rsi, qword [rsp + 0x78]
inc rbx
mov rcx, rsi
sub rcx, rdi
mov rax, rbx
inc rcx
sub rax, r14
cmp rax, rcx
jb 0x140001860
mov r12, qword [rsp + 0x38]
mov rcx, r12
call fcn.14000254c
add r14, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
mov rdx, r14
mov r9d, 0x30
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
jne 0x1400017e0
mov r15, qword [rsp + 0x90]
mov r12, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xd8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x98]
jmp 0x1400019a5
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_open_process.
call fcn.140001030
lea rdx, [0x1400014d0]
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400028b0
add rsp, 0xb0
pop r13
pop rdi
pop rbp
ret