Function at 0x180001020
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r12, rcx
lea rdx, str.Target_:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180001360
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 rcx, rax
mov rdx, r12
call fcn.180001360
mov rcx, rax
lea rdx, [0x180001540]
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 [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Hook_:
call fcn.180001360
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 rcx, rax
lea rdx, [0x180001580]
call fcn.180001360
mov rcx, rax
lea rdx, [0x180001540]
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]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r8d, dword [rsp + 0x24]
xor edx, edx
mov r15, qword [rsp + 0x30]
mov rax, r12
mov r14, qword [rsp + 0x28]
mov rbp, r12
div r8
mov esi, 1
mov qword [rsp + 0x98], rdi
sub rbp, rdx
lea rax, [rbp + 0x7fffffff]
cmp rax, r15
cmova r15, rax
lea rax, [rbp - 0x7fffffff]
cmp rax, r14
cmovb r14, rax
nop dword [rax]
nop dword [rax + rax]
mov edx, r8d
mov rbx, rbp
movsxd rax, esi
imul rax, rdx
sub rbx, rax
lea rcx, [rax + rbp]
cmp rcx, r15
jbe 0x18000113e
cmp rbx, r14
jb 0x180001182
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x18000118c
mov edx, dword [rsp + 0x24]
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x18000118c
mov r8d, dword [rsp + 0x24]
inc esi
jmp 0x180001120
mov eax, 3
jmp 0x1800012bb
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Trampoline
call fcn.180001360
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 rcx, rax
mov rdx, rdi
call fcn.180001360
mov rcx, rax
lea rdx, [0x180001540]
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]
lea rax, [rdi + 0xd]
mov edx, 7
lea r9, [rsp + 0x50]
mov qword [0x180005678], rax
mov r8d, 0x40
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [r12]
lea r9, [rsp + 0x50]
mov dword [rdi], eax
mov edx, 7
movzx eax, word [r12 + 4]
mov word [rdi + 4], ax
movzx eax, byte [r12 + 6]
mov byte [rdi + 6], al
mov ecx, dword [r12 + 7]
mov eax, ecx
mov byte [rdi + 7], 0xe9
mov byte [rdi + 8], cl
shr eax, 8
mov byte [rdi + 9], al
mov eax, ecx
shr eax, 0x10
mov byte [rdi + 0xa], al
shr ecx, 0x18
mov byte [rdi + 0xb], cl
mov rcx, r12
mov r8d, dword [rdi + 7]
mov eax, r8d
mov byte [r12], 0xe9
mov byte [r12 + 1], r8b
shr eax, 8
mov byte [r12 + 2], al
mov eax, r8d
shr r8d, 0x18
shr eax, 0x10
mov byte [r12 + 3], al
mov byte [r12 + 4], r8b
mov r8d, dword [rsp + 0x50]
mov word [r12 + 5], 0x9090
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Original_function_:
call fcn.180001360
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 rdx, qword [0x180005678]
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___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x180001540]
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 eax, eax
mov rdi, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180001660
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret