Function at 0x14001100f
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x1400121d0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b8]
mov rax, qword [0x14002a700]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x1400310f2]
call fcn.140011410
nop
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
jmp 0x140012246
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x198]
cmp qword [rbp + 0x28], rax
jae 0x140012272
mov rax, qword [rbp + 0x190]
mov rcx, qword [rbp + 0x28]
mov rax, qword [rax + rcx*8]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
jmp 0x14001223b
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, qword [rbp + 0x180]
mov qword [rcx], rax
mov rax, qword [rbp + 0x180]
cmp qword [rax], 0
jne 0x1400122e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x154], eax
lea rdx, str.Failed_to_allocate_memory._Error:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011091
mov ecx, dword [rbp + 0x154]
mov edx, ecx
mov rcx, rax
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___unsigned_long_int____ptr64]
lea rdx, [0x140011041]
mov rcx, rax
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 0x1400123f8
mov rax, qword [rbp + 0x180]
mov rax, qword [rax]
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x68], 0
jmp 0x14001230c
mov rax, qword [rbp + 0x68]
inc rax
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x198]
cmp qword [rbp + 0x68], rax
jae 0x1400123f6
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rbp + 0x88]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x190]
mov rdx, qword [rbp + 0x68]
mov r9, qword [rcx + rdx*8]
mov rcx, qword [rbp + 0x188]
mov rdx, qword [rbp + 0x68]
mov r8, qword [rcx + rdx*8]
mov rdx, qword [rbp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140012376
mov rax, qword [rbp + 0x190]
mov rcx, qword [rbp + 0x68]
mov rax, qword [rax + rcx*8]
cmp qword [rbp + 0x88], rax
je 0x1400123d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x154], eax
lea rdx, str.Failed_to_write_memory._Error:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011091
mov ecx, dword [rbp + 0x154]
mov edx, ecx
mov rcx, rax
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___unsigned_long_int____ptr64]
lea rdx, [0x140011041]
mov rcx, rax
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
mov r8d, 0x8000
xor edx, edx
mov rax, qword [rbp + 0x180]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
xor al, al
jmp 0x1400123f8
mov rax, qword [rbp + 0x190]
mov rcx, qword [rbp + 0x68]
mov rax, qword [rax + rcx*8]
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
jmp 0x140012301
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001bc80]
call fcn.140011398
mov rax, rdi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.140011212
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret