Function at 0x140001a90
Capabilities:
Allocate or change rwx memory
Check os version
Create thread
Execute shellcode via indirect call
Get system information on windows
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rbp + 0x20], rax
cmp dword [0x140023d24], 0
mov rdi, rdx
mov rsi, rcx
jne 0x140001ae6
lea rcx, [0x140023d20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x140023d24], 0
jne 0x140001ae6
lea rcx, str.InjectDllViaThread:_Failed_to_obtain_system_page_size
call fcn.140001320
xor eax, eax
jmp 0x140001ea1
mov qword [rsp + 0x160], rbx
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140001af5
add rbx, 1
jne 0x140001b17
lea rcx, str.InjectDllViaThread:_Dll_argument_bad._n
call fcn.1400011f0
xor eax, eax
jmp 0x140001e99
mov qword [rsp + 0x168], r14
lea rcx, str.kernel32
xor r14d, r14d
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [0x14001e248]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.kernel32
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [0x14001e268]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x60], r14
je 0x140001e83
test rax, rax
je 0x140001e83
mov r8d, dword [0x140023d24]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x140001bbf
lea rcx, str.InjectDllViaThread:_Failed_to_allocate_buffer_in_target
call fcn.140001320
jmp 0x140001e8f
lea rcx, [rsp + 0x58]
mov r9, rbx
mov qword [rsp + 0x20], rcx
mov r8, rdi
mov rcx, rsi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001e75
mov rcx, qword [rsp + 0x58]
cmp rcx, rbx
jne 0x140001e75
mov rbx, qword [rsp + 0x70]
lea rax, [rsp + 0x58]
add rbx, rcx
mov qword [rsp + 0x20], rax
mov rdx, rbx
lea r8, [rsp + 0x60]
mov r9d, 0x18
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001e67
cmp qword [rsp + 0x58], 0x18
jne 0x140001e67
lea rax, [rsp + 0x58]
mov r9d, pe_nt_image_headers64
lea rdi, [rbx + 0x18]
mov qword [rsp + 0x20], rax
mov rdx, rdi
lea r8, [0x140001810]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001e59
cmp qword [rsp + 0x58], 0x100
jne 0x140001e59
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x80], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x140001c92
lea rcx, str.InjectDllViaThread:_Failed_to_get_OS_version
call fcn.140001320
jmp 0x140001e8f
cmp dword [rbp - 0x7c], 6
jae 0x140001d50
mov qword [rsp + 0x30], r14
mov r9, rdi
mov dword [rsp + 0x28], r14d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140001cd7
lea rcx, str.InjectDllViaThread:_CreateRemoteThread_failed
call fcn.140001320
jmp 0x140001e8f
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [0x140023d24]
mov r9d, 0x8000
mov rdx, qword [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [rsp + 0x78]
test ecx, ecx
je 0x140001d3a
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str.InjectDllViaThread:_CreateRemoteThread_injection_failed
call fcn.140001320
jmp 0x140001e8f
lea rcx, str.InjectDllViaThread:_Successfully_injected_Dll_into_process_via_CreateRemoteThread._n
call fcn.1400011f0
mov eax, 1
jmp 0x140001e91
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlCreateUserThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], r14
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], rbx
xor r8d, r8d
mov qword [rsp + 0x30], rdi
xor edx, edx
mov qword [rsp + 0x28], r14
mov rcx, rsi
mov qword [rsp + 0x20], r14
call rax
test eax, eax
jns 0x140001db7
lea rcx, str.InjectDllViaThread:_RtlCreateUserThread_failed
mov qword [rsp + 0x50], r14
call fcn.140001320
jmp 0x140001e8f
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140001e46
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [0x140023d24]
mov r9d, 0x8000
mov rdx, qword [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp dword [rsp + 0x78], r14d
je 0x140001e46
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlNtStatusToDosError
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [rsp + 0x78]
call rax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str.InjectDllViaThread:_RtlCreateUserThread_injection_failed
call fcn.140001320
jmp 0x140001e8f
lea rcx, str.InjectDllViaThread:_Successfully_injected_Dll_into_process_via_RtlCreateUserThread._n
call fcn.1400011f0
mov eax, 1
jmp 0x140001e91
lea rcx, str.InjectDllViaThread:_Failed_to_write_to_RemoteFuncAddress_in_target
call fcn.140001320
jmp 0x140001e8f
lea rcx, str.InjectDllViaThread:_Failed_to_write_to_PointersAddress_in_target
call fcn.140001320
jmp 0x140001e8f
lea rcx, str.InjectDllViaThread:_Failed_to_write_to_DllPath_in_target
call fcn.140001320
jmp 0x140001e8f
lea rcx, str.InjectDllViaThread:_Failed_to_get_function_pointers._n
call fcn.1400011f0
xor eax, eax
mov r14, qword [rsp + 0x168]
mov rbx, qword [rsp + 0x160]
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140003c30
add rsp, 0x130
pop rdi
pop rsi
pop rbp
ret