Function at 0x14001f630
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
sub rsp, 0x48
mov eax, 0x5a4d
cmp word [0x1400600f0], ax
je 0x14001f66c
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Invalid_DOS_signature.
call fcn.1400251a0
lea rdx, [0x140025890]
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___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 al, al
add rsp, 0x48
ret
mov qword [rsp + 0x60], rsi
lea rsi, [0x1400600f0]
mov qword [rsp + 0x30], r13
movsxd r13, dword [0x14006012c]
add r13, rsi
cmp dword [r13], 0x4550
je 0x14001f6c5
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Invalid_NT_signature.
call fcn.1400251a0
lea rdx, [0x140025890]
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___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 rsi, qword [rsp + 0x60]
xor al, al
mov r13, qword [rsp + 0x30]
add rsp, 0x48
ret
mov edx, dword [r13 + 0x50]
mov r9d, 0x40
mov rcx, qword [r13 + 0x30]
mov r8d, 0x3000
mov qword [rsp + 0x28], r14
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
jne 0x14001f725
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_allocate_memory_for_the_PE.
call fcn.1400251a0
lea rdx, [0x140025890]
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___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 r14, qword [rsp + 0x28]
xor al, al
mov rsi, qword [rsp + 0x60]
mov r13, qword [rsp + 0x30]
add rsp, 0x48
ret
mov r8d, dword [r13 + 0x54]
mov rdx, rsi
mov qword [rsp + 0x50], rbx
mov rcx, r14
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r12
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r13 + 0x14]
xor r12d, r12d
add rbx, 0x2c
mov edi, r12d
cmp r12w, word [r13 + 6]
jae 0x14001f783
add rbx, r13
nop dword [rax]
mov edx, dword [rbx]
mov ecx, dword [rbx - 8]
add rdx, rsi
mov r8d, dword [rbx - 4]
add rcx, r14
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [r13 + 6]
lea rbx, [rbx + 0x28]
inc edi
cmp edi, eax
jl 0x14001f760
mov rcx, qword [r13 + 0x90]
mov rax, rcx
mov qword [rsp + 0x58], rbp
shr rax, 0x20
mov qword [rsp + 0x20], r15
test eax, eax
je 0x14001f817
mov esi, ecx
add rsi, r14
cmp dword [rsi + 0xc], r12d
je 0x14001f817
nop word [rax + rax]
mov ebx, dword [rsi + 0xc]
add rbx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
test rax, rax
je 0x14001f8e9
mov ebx, dword [rsi]
mov edi, dword [rsi + 0x10]
add rbx, r14
add rdi, r14
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001f80d
nop
lea rbp, [rcx + r14]
mov rcx, r15
lea rdx, [rbp + 2]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001f8d0
add rbx, 8
mov qword [rdi], rax
add rdi, 8
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14001f7e0
add rsi, 0x14
cmp dword [rsi + 0xc], r12d
jne 0x14001f7b0
mov r11, r14
sub r11, qword [r13 + 0x30]
je 0x14001f898
mov rcx, qword [r13 + 0xb0]
mov rax, rcx
shr rax, 0x20
test eax, eax
je 0x14001f898
mov r9d, ecx
add r9, r14
cmp dword [r9], r12d
je 0x14001f898
mov ebx, 0xf000
mov edi, 0xa000
nop word [rax + rax]
mov r10d, dword [r9 + 4]
mov rdx, r12
sub r10, 8
shr r10, 1
je 0x14001f88c
movzx r8d, word [r9 + rdx*2 + 8]
movzx eax, r8w
and ax, bx
cmp ax, di
jne 0x14001f884
mov ecx, dword [r9]
and r8d, 0xfff
lea rax, [r14 + r8]
add qword [rcx + rax], r11
inc rdx
cmp rdx, r10
jb 0x14001f860
mov eax, dword [r9 + 4]
add r9, rax
cmp dword [r9], r12d
jne 0x14001f850
mov eax, dword [r13 + 0x28]
add rax, r14
call rax
mov al, 1
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x60]
mov r13, qword [rsp + 0x30]
add rsp, 0x48
ret
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_get_address_of_function:
call fcn.1400251a0
lea rdx, [rbp + 2]
jmp 0x14001f8ff
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_load_DLL:
call fcn.1400251a0
mov rdx, rbx
mov rcx, rax
call fcn.1400251a0
lea rdx, [0x140025890]
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___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 al, al
jmp 0x14001f8a3