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

Disassembly:
push rsi
sub rsp, 0x20
mov eax, 0x5a4d
mov rsi, rcx
cmp word [rcx], ax
je 0x14000103e
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x140003438]
call fcn.140001530
lea rdx, [0x140001710]
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, 0x20
pop rsi
ret
mov qword [rsp + 0x38], rbp
movsxd rbp, dword [rcx + 0x3c]
add rbp, rsi
cmp dword [rbp], 0x4550
je 0x140001083
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x140003450]
call fcn.140001530
lea rdx, [0x140001710]
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 rbp, qword [rsp + 0x38]
xor al, al
add rsp, 0x20
pop rsi
ret
mov edx, dword [rbp + 0x50]
xor ecx, ecx
mov r9d, 0x40
mov qword [rsp + 0x40], rdi
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x1400010dc
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x140003468]
call fcn.140001530
lea rdx, [0x140001710]
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 rdi, qword [rsp + 0x40]
xor al, al
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov r8d, dword [rbp + 0x54]
mov rdx, rsi
mov qword [rsp + 0x30], rbx
mov rcx, rdi
mov qword [rsp + 0x48], r14
call sub.VCRUNTIME140.dll_memcpy
xor r14d, r14d
cmp r14w, word [rbp + 6]
jae 0x140001134
lea rbx, [rbp + 0x11c]
nop word [rax + rax]
mov edx, dword [rbx]
mov ecx, dword [rbx - 8]
add rdx, rsi
mov r8d, dword [rbx - 4]
add rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [rbp + 6]
lea rbx, [rbx + 0x28]
inc r14d
cmp r14d, eax
jl 0x140001110
mov rcx, qword [rbp + 0x90]
mov rax, rcx
shr rax, 0x20
test eax, eax
je 0x1400011c1
mov r14d, ecx
add r14, 0xc
add r14, rdi
mov eax, dword [r14]
test eax, eax
je 0x1400011c1
nop word [rax + rax]
mov ecx, eax
add rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1400011f9
mov ebx, dword [r14 + 4]
add rbx, rdi
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400011b5
nop word [rax + rax]
lea rdx, [rdi + 2]
add rdx, rcx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
test rax, rax
je 0x1400011f0
mov rcx, qword [rbx + 8]
add rbx, 8
test rcx, rcx
jne 0x140001190
mov eax, dword [r14 + 0x14]
add r14, 0x14
test eax, eax
jne 0x140001160
mov eax, dword [rbp + 0x28]
xor r8d, r8d
add rax, rdi
mov edx, 1
mov rcx, rdi
call rax
mov al, 1
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
lea rdx, [0x1400034b0]
jmp 0x140001200
lea rdx, [0x140003490]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001530
lea rdx, [0x140001710]
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 0x1400011d6