Function at 0x140001070
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword gs:[0x60]
mov rbp, rcx
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rdx, qword [rax + 0x18]
mov rax, qword [rdx + 0x20]
mov rbx, qword [rax]
lea rdx, [rbx - 0x10]
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, [0x140001760]
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 r10, qword [rbx + 0x20]
test r10, r10
je 0x1400011c3
mov eax, 0x5a4d
cmp word [r10], ax
jne 0x1400011c3
movsxd rdx, dword [r10 + 0x3c]
add rdx, r10
cmp dword [rdx], 0x4550
jne 0x1400011c3
movzx r11d, word [rdx + 0x14]
xor r8d, r8d
movzx r9d, word [rdx + 6]
add r11, rdx
lea rcx, [r11 + 0x18]
test r9, r9
je 0x1400011c3
xor edx, edx
nop dword [rax]
mov eax, dword [rcx]
or eax, 0x20202020
cmp eax, 0x7865742e
je 0x140001142
inc r8d
inc rdx
add rcx, 0x28
cmp rdx, r9
jl 0x140001120
jmp 0x1400011c3
movsxd rax, r8d
lea rcx, [rax + rax*4]
mov edi, dword [r11 + rcx*8 + 0x24]
lea rbx, [r11 + rcx*8]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
add rdi, r10
mov rdx, rdi
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, [0x140001760]
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 esi, dword [rbx + 0x24]
mov ebx, dword [rbx + 0x20]
add rsi, rbp
test rdi, rdi
je 0x1400011c3
test rsi, rsi
je 0x1400011c3
test rbx, rbx
je 0x1400011c3
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov r8d, 0x80
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400011e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualProtect__1__Failed_With_Error_:__d__n
call fcn.140001010
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400017b0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001220
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualProtect__2__Failed_With_Error_:__d__n
jmp 0x1400011be
mov eax, 1
jmp 0x1400011c5