Function at 0x18013cd80
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x1801c1fc0]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1801d898a]
call fcn.180149ac0
nop
lea rax, [rbp + 4]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8, qword [rbp + 0x140]
mov rdx, qword [rbp + 0x130]
mov rcx, qword [0x1801c9770]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x18013ce38
lea rdx, str.Failed_to_change_memory_protection_
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180135520
mov qword [rbp + 0xf8], rax
lea rdx, [0x180135d70]
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.MSVCP140D.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]
nop
xor al, al
jmp 0x18013cf31
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x140]
mov r8, qword [rbp + 0x138]
mov rdx, qword [rbp + 0x130]
mov rcx, qword [0x1801c9770]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18013ce74
mov rax, qword [rbp + 0x140]
cmp qword [rbp + 0x28], rax
je 0x18013ced0
lea rdx, str.Failed_to_write_to_memory_
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180135520
mov qword [rbp + 0xf8], rax
lea rdx, [0x180135d70]
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.MSVCP140D.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]
nop
lea rax, [rbp + 4]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 4]
mov r8, qword [rbp + 0x140]
mov rdx, qword [rbp + 0x130]
mov rcx, qword [0x1801c9770]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop
xor al, al
jmp 0x18013cf31
lea rax, [rbp + 4]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 4]
mov r8, qword [rbp + 0x140]
mov rdx, qword [rbp + 0x130]
mov rcx, qword [0x1801c9770]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x18013cf2f
lea rdx, str.Failed_to_restore_memory_protection_
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180135520
mov qword [rbp + 0xf8], rax
lea rdx, [0x180135d70]
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.MSVCP140D.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]
nop
xor al, al
jmp 0x18013cf31
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x18019e9a0]
call fcn.180149890
mov rax, rdi
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.180149d60
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret