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, [0x140003418]
call fcn.140001570
lea rdx, [0x140001750]
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
pause
pause
pause
movsxd rbp, dword [rcx + 0x3c]
add rbp, rsi
cmp dword [rbp], 0x4550
je 0x140001089
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x140003430]
call fcn.140001570
lea rdx, [0x140001750]
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 qword [rsp + 0x40], rdi
pause
pause
pause
mov edx, dword [rbp + 0x50]
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x1400010e8
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x140003448]
call fcn.140001570
lea rdx, [0x140001750]
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 qword [rsp + 0x30], rbx
mov qword [rsp + 0x48], r14
pause
pause
pause
mov r8d, dword [rbp + 0x54]
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
pause
pause
pause
xor r14d, r14d
cmp r14w, word [rbp + 6]
jae 0x140001144
lea rbx, [rbp + 0x11c]
nop
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 0x140001120
pause
pause
pause
mov rcx, qword [rbp + 0x90]
mov rax, rcx
shr rax, 0x20
test eax, eax
je 0x1400011d1
mov r14d, ecx
add r14, 0xc
add r14, rdi
mov eax, dword [r14]
test eax, eax
je 0x1400011d1
nop dword [rax]
mov ecx, eax
add rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140001215
mov ebx, dword [r14 + 4]
add rbx, rdi
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400011c5
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 0x14000120c
mov rcx, qword [rbx + 8]
add rbx, 8
test rcx, rcx
jne 0x1400011a0
mov eax, dword [r14 + 0x14]
add r14, 0x14
test eax, eax
jne 0x140001170
pause
pause
pause
mov eax, dword [rbp + 0x28]
xor r8d, r8d
add rax, rdi
mov edx, 1
mov rcx, rdi
call rax
pause
pause
pause
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, [0x140003490]
jmp 0x14000121c
lea rdx, [0x140003470]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001570
lea rdx, [0x140001750]
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 0x1400011f2