Function at 0x14002f2a7
Capabilities:
Allocate or change rwx memory
Read file via mapping

Disassembly:
jmp 0x14007a910
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x418
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x96
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x438]
mov rax, qword [0x1400af080]
xor rax, rbp
mov qword [rbp + 0x3c0], rax
lea rcx, [0x1400c01c0]
call fcn.14002f99b
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbp + 8], rax
lea rax, [rbp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov rcx, qword [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 0x58], rax
cmp qword [rbp + 0x58], 0
jne 0x14007a9c5
lea rdx, str.failed_to_get_handle
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14002e2f8
mov qword [rbp + 0x3a8], rax
lea rdx, [0x14002e113]
mov rcx, qword [rbp + 0x3a8]
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 eax, 1
jmp 0x14007ae68
mov r9d, 0x18
lea r8, [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp + 8]
call fcn.14002e744
test eax, eax
jne 0x14007aa19
lea rdx, str.failed_to_get_module_info
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14002e2f8
mov qword [rbp + 0x3a8], rax
lea rdx, [0x14002e113]
mov rcx, qword [rbp + 0x3a8]
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 eax, 1
jmp 0x14007ae68
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x78], rax
lea rdx, str.c:windows_system32_
lea rcx, [rbp + 0x338]
call fcn.14002ebe0
mov qword [rbp + 0x3a8], rax
mov rax, qword [rbp + 0x3a8]
mov qword [rbp + 0x3b0], rax
mov r8, qword [rbp + 0x3f0]
mov rdx, qword [rbp + 0x3b0]
lea rcx, [rbp + 0x378]
call fcn.14002f77a
mov qword [rbp + 0x3b8], rax
mov rcx, qword [rbp + 0x3b8]
call fcn.14002e276
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0x98], rax
lea rcx, [rbp + 0x378]
call fcn.14002e4bf
nop
lea rcx, [rbp + 0x338]
call fcn.14002e4bf
nop
cmp qword [rbp + 0x98], 0xffffffffffffffff
jne 0x14007ab0a
lea rdx, str.failed_to_open_file
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14002e2f8
mov qword [rbp + 0x3a8], rax
lea rdx, [0x14002e113]
mov rcx, qword [rbp + 0x3a8]
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 eax, 1
jmp 0x14007ae68
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x1000002
xor edx, edx
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0
jne 0x14007ab8b
lea rdx, str.failed_ot_creare_file_mapping
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14002e2f8
mov qword [rbp + 0x3a8], rax
lea rdx, [0x14002e113]
mov rcx, qword [rbp + 0x3a8]
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 rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, 1
jmp 0x14007ae68
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0
jne 0x14007ac12
lea rdx, str.failed_to_map_view
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14002e2f8
mov qword [rbp + 0x3a8], rax
lea rdx, [0x14002e113]
mov rcx, qword [rbp + 0x3a8]
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 rcx, qword [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, 1
jmp 0x14007ae68
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 0xf8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x118], rax
xor eax, eax
mov word [rbp + 0x134], ax
jmp 0x14007ac55
movzx eax, word [rbp + 0x134]
inc ax
mov word [rbp + 0x134], ax
movzx eax, word [rbp + 0x134]
mov rcx, qword [rbp + 0x118]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x14007ae3c
mov rax, qword [rbp + 0x118]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x118]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rbp + 0x134]
imul rcx, rcx, 0x28
add rax, rcx
mov qword [rbp + 0x158], rax
mov rax, qword [rbp + 0x158]
lea rdx, str..text
mov rcx, rax
call fcn.14002fc34
test eax, eax
jne 0x14007ae37
mov dword [rbp + 0x174], 0
mov rax, qword [rbp + 0x158]
mov eax, dword [rax + 8]
mov rcx, qword [rbp + 0x158]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rbp + 0x78]
add rdx, rcx
mov rcx, rdx
lea r9, [rbp + 0x174]
mov r8d, 0x40
mov edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14007ad03
mov byte [rbp + 0x3a4], 1
jmp 0x14007ad0a
mov byte [rbp + 0x3a4], 0
movzx eax, byte [rbp + 0x3a4]
mov byte [rbp + 0x194], al
movzx eax, byte [rbp + 0x194]
test eax, eax
jne 0x14007ad56
lea rdx, str.failed_to_change_protection
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14002e2f8
mov qword [rbp + 0x3a8], rax
lea rdx, [0x14002e113]
mov rcx, qword [rbp + 0x3a8]
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
jmp 0x14007ac44
mov rax, qword [rbp + 0x158]
mov eax, dword [rax + 8]
mov rcx, qword [rbp + 0x158]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rbp + 0xd8]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rbp + 0x158]
mov edx, dword [rdx + 0xc]
mov rdi, qword [rbp + 0x78]
add rdi, rdx
mov rdx, rdi
mov qword [rbp + 0x3a8], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rbp + 0x3a8]
mov rcx, rax
call fcn.14002ecb7
nop
mov rax, qword [rbp + 0x158]
mov eax, dword [rax + 8]
mov rcx, qword [rbp + 0x158]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rbp + 0x78]
add rdx, rcx
mov rcx, rdx
lea r9, [rbp + 0x174]
mov r8d, dword [rbp + 0x174]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14007ade9
mov byte [rbp + 0x3a4], 1
jmp 0x14007adf0
mov byte [rbp + 0x3a4], 0
movzx eax, byte [rbp + 0x3a4]
mov byte [rbp + 0x194], al
movzx eax, byte [rbp + 0x194]
test eax, eax
jne 0x14007ae37
lea rdx, str.failed_to_restore_protection
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14002e2f8
mov qword [rbp + 0x3a8], rax
lea rdx, [0x14002e113]
mov rcx, qword [rbp + 0x3a8]
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
jmp 0x14007ac44
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.14002f4fa
mov rax, rdi
mov rcx, qword [rbp + 0x3c0]
xor rcx, rbp
call fcn.14002eca8
lea rsp, [rbp + 0x3d8]
pop rdi
pop rbp
ret