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

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 8]
sub rsp, 0x108
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 0x20], rax
mov rbx, rcx
lea r8, [0x140004618]
mov ecx, 0x100000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
test rax, rax
je 0x1400021b5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.____DLL_already_injected_n
call fcn.140002100
xor al, al
jmp 0x140002804
mov eax, 0x5a4d
cmp word [0x140007080], ax
je 0x1400021d6
lea rcx, str.____e_magic___0x5A4D_n
call fcn.140002100
xor al, al
jmp 0x140002804
mov qword [rsp + 0x128], rsi
lea r8, [rsp + 0x48]
movsxd rsi, dword [0x1400070bc]
mov ecx, 6
mov qword [rsp + 0x138], r12
lea r12, [0x140007080]
add rsi, r12
mov qword [rsp + 0x100], r13
xor r13d, r13d
mov qword [rsp + 0x48], r13
mov rdx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
test eax, eax
je 0x140002232
lea rcx, str.____M
call fcn.140002100
xor al, al
jmp 0x1400027ec
mov r8d, dword [rsi + 0x50]
xor edx, edx
mov r9d, 0x3000
mov qword [rsp + 0xf0], r15
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
jne 0x14000227a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualAllocEx__1__Error:_0x_X_n
call fcn.140002100
xor al, al
jmp 0x1400027e4
mov dword [rbp - 0x2c], r13d
lea rax, [rbp - 0x2c]
mov r8d, dword [rsi + 0x50]
mov r9d, 0x40
mov rdx, r15
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r9d, 0x1000
mov qword [rsp + 0x50], rax
mov r8, r12
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, r15
mov qword [rsp + 0x58], rax
mov rcx, rbx
mov rax, qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 1
mov qword [rbp - 0x78], 1
mov qword [rsp + 0x68], r15
mov qword [rbp - 0x80], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000232e
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____WriteProcessMemory__1__Error:_0x_X_n
call fcn.140002100
xor al, al
jmp 0x1400027e4
mov qword [rsp + 0x130], rdi
movzx edi, word [rsi + 0x14]
add rdi, 0x2c
mov qword [rsp + 0xf8], r14
mov r14d, r13d
cmp word [rsi + 6], r13w
je 0x14000238b
add rdi, rsi
mov eax, dword [rdi - 4]
test eax, eax
je 0x14000237b
mov r8d, dword [rdi]
mov r9d, eax
mov edx, dword [rdi - 8]
add r8, r12
add rdx, r15
mov qword [rsp + 0x20], r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400023e0
movzx eax, word [rsi + 6]
inc r14d
add rdi, 0x28
cmp r14d, eax
jne 0x140002353
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
mov rcx, rbx
test rax, rax
jne 0x14000240e
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.____VirtualAllocEx__2__Error:_0x_X_n
call fcn.140002100
jmp 0x1400027d2
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____WriteProcessMemory__2__Error:_0x_X_n
call fcn.140002100
jmp 0x1400027d2
mov r9d, 0x40
mov qword [rsp + 0x20], r13
lea r8, [rsp + 0x50]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
test eax, eax
jne 0x14000246e
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, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____WriteProcessMemory__3__Error:_0x_X_n
call fcn.140002100
jmp 0x1400027d2
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, rbx
test rax, rax
jne 0x1400024d5
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, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualAllocEx__3__Error:_0x_X_n
call fcn.140002100
jmp 0x1400027d2
xor r14d, r14d
lea r8, [0x140002820]
mov r9d, 0x1000
mov qword [rsp + 0x20], r14
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor r8d, r8d
mov rcx, rbx
test eax, eax
jne 0x14000254f
mov r9d, 0x8000
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____WriteProcessMemory__4__Error:_0x_X_n
call fcn.140002100
jmp 0x1400027d2
mov qword [rsp + 0x30], r14
mov r9, r13
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x1400025c6
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateRemoteThread_Error:_0x_X_n
call fcn.140002100
jmp 0x1400027d2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rbp - 0x30]
mov dword [rbp - 0x30], r14d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [rbp - 0x30], 0x103
jne 0x1400027c6
xorps xmm0, xmm0
mov qword [rsp + 0x20], r14
mov r9d, 0x40
lea r8, [rbp - 0x70]
mov rdx, r12
mov rcx, rbx
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdi, qword [rbp - 0x50]
cmp rdi, 0x404040
je 0x14000277e
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rdi, rdi
je 0x1400025d0
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x40], rax
mov rdi, rax
test rax, rax
jne 0x140002661
lea rcx, str.____emptyBuffer__nullptr_n
jmp 0x1400027cd
xor edx, edx
mov r8d, 0x100000
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x1000
mov qword [rsp + 0x20], r14
mov r8, rdi
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx edi, word [rsi + 0x14]
add rdi, 0x3c
cmp word [rsi + 6], r14w
je 0x140002700
add rdi, rsi
mov edx, 0x20
mov ecx, dword [rdi - 0x1c]
test ecx, ecx
je 0x1400026f0
mov eax, dword [rdi]
mov dword [rbp - 0x30], 0
test eax, 0x80000000
jbe 0x1400026c1
mov r9d, 4
jmp 0x1400026d0
test eax, 0x20000000
mov r9d, 2
cmova r9d, edx
mov edx, dword [rdi - 0x18]
lea rax, [rbp - 0x30]
mov r8, rcx
mov qword [rsp + 0x20], rax
add rdx, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edx, 0x20
movzx eax, word [rsi + 6]
inc r14d
add rdi, 0x28
cmp r14d, eax
jne 0x1400026a2
xor edi, edi
mov r9d, 2
mov dword [rbp - 0x28], edi
mov rdx, r15
movzx eax, word [rsi + 0x14]
mov rcx, rbx
mov r8d, dword [rax + rsi + 0x24]
lea rax, [rbp - 0x28]
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], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov al, 1
jmp 0x1400027d4
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
lea rcx, str.____hCheck__0x404040_n
jmp 0x1400027cd
lea rcx, str.____GetExitCodeProcess___STILL_ACTIVE_n
call fcn.140002100
xor al, al
mov r14, qword [rsp + 0xf8]
mov rdi, qword [rsp + 0x130]
mov r15, qword [rsp + 0xf0]
mov r12, qword [rsp + 0x138]
mov rsi, qword [rsp + 0x128]
mov r13, qword [rsp + 0x100]
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.140002d90
add rsp, 0x108
pop rbx
pop rbp
ret