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

Disassembly:
sub rsp, 0xb8
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xa0], edx
mov qword [rsp + 0x98], rcx
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400015fe
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x1400043eb]
call fcn.1400011b0
mov rcx, rax
lea rdx, [0x140001520]
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 byte [rsp + 0xa7], 0
jmp 0x14000194d
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0x4550
je 0x140001661
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x1400043d5]
call fcn.1400011b0
mov rcx, rax
lea rdx, [0x140001520]
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 byte [rsp + 0xa7], 0
jmp 0x14000194d
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x50]
mov edx, eax
xor eax, eax
mov ecx, eax
mov r8d, 0x3000
mov r9d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x1400016cb
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x1400044c1]
call fcn.1400011b0
mov rcx, rax
lea rdx, [0x140001520]
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 byte [rsp + 0xa7], 0
jmp 0x14000194d
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x98]
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x54]
mov r8d, eax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x88]
add rax, 0x108
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x74], 0
mov eax, dword [rsp + 0x74]
mov rcx, qword [rsp + 0x88]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x14000179f
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
movsxd rdx, dword [rsp + 0x74]
imul rdx, rdx, 0x28
add rcx, rdx
mov ecx, dword [rcx + 0xc]
add rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x78]
movsxd rdx, dword [rsp + 0x74]
imul rdx, rdx, 0x28
add rcx, rdx
mov ecx, dword [rcx + 0x14]
add rax, rcx
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x78]
movsxd r8, dword [rsp + 0x74]
imul r8, r8, 0x28
add rax, r8
mov eax, dword [rax + 0x10]
mov r8d, eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x74]
add eax, 1
mov dword [rsp + 0x74], eax
jmp 0x140001709
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x90]
mov qword [rsp + 0xa8], rax
cmp dword [rsp + 0xac], 0
jbe 0x140001913
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0xa8]
add rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp dword [rax + 0xc], 0
je 0x14000190e
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0xc]
add rax, rcx
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14000184e
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x140004402]
call fcn.1400011b0
mov rcx, rax
lea rdx, [0x140001520]
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 byte [rsp + 0xa7], 0
jmp 0x14000194d
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0x10]
add rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x1400018fb
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
add rax, qword [rcx]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
add rdx, 2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov rax, qword [rsp + 0x40]
mov qword [rax], rcx
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
jne 0x1400018e8
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x140004445]
call fcn.1400011b0
mov rcx, rax
lea rdx, [0x140001520]
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 byte [rsp + 0xa7], 0
jmp 0x14000194d
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0x40], rax
jmp 0x140001866
mov rax, qword [rsp + 0x58]
add rax, 0x14
mov qword [rsp + 0x58], rax
jmp 0x1400017db
jmp 0x140001913
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0x28]
add rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x80]
mov edx, 1
xor r8d, r8d
call rax
mov byte [rsp + 0xa7], 1
mov al, byte [rsp + 0xa7]
and al, 1
movzx eax, al
mov dword [rsp + 0x2c], eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140002070
mov eax, dword [rsp + 0x2c]
add rsp, 0xb8
ret