Function at 0x7ff78718c500
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate thread

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xa0
mov r14, rcx
mov rdi, r9
lea rcx, [0x7ff787449b58]
mov r15, r8
mov r12, rdx
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
jne 0x7ff78718c550
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rdi], eax
mov eax, 0x1010000b
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea rdx, [0x7ff787449b40]
mov qword [rsp + 0xd0], rbx
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x7ff78718c582
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rdi], eax
mov eax, 0x10100001
jmp 0x7ff78718c770
mov qword [rsp + 0xd8], rsi
xor edx, edx
mov qword [rsp + 0xe0], r13
mov r9d, 0x3000
xor r13d, r13d
mov dword [rsp + 0x20], 0x40
mov r8d, 0x100
mov qword [rbp - 0x11], r13
mov rcx, r14
call qword [sym.imp.kernel32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x7ff78718c5d2
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rdi], eax
mov eax, 0x10100002
jmp 0x7ff78718c760
mov r9d, 0x2f
mov dword [rbp + 7], 0x48c18b48
lea r8, [rbp - 9]
mov dword [rbp + 0xb], 0x8348088b
mov rdx, rsi
mov dword [rbp + 0xf], 0x50ff28ec
mov rcx, r14
mov dword [rbp + 0x13], 0xc4834808
mov dword [rbp + 0x17], 0xd8d4828
mov dword [rbp + 0x1b], 0xffffffd8
mov dword [rbp + 0x1f], 0x48018948
mov word [rbp + 0x23], 0xc031
mov byte [rbp + 0x25], 0xc3
mov qword [rbp - 9], r15
mov qword [rbp - 1], r12
mov qword [rsp + 0x20], r13
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
test eax, eax
jne 0x7ff78718c65b
call qword [sym.imp.kernel32.dll_GetLastError]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov dword [rdi], eax
mov rcx, r14
call qword [sym.imp.kernel32.dll_VirtualFreeEx]
mov eax, 0x10100003
jmp 0x7ff78718c760
mov qword [rsp + 0x50], r13
lea rax, [rsi + 0x10]
mov qword [rsp + 0x48], r13
lea rcx, [rbp - 0x11]
mov qword [rsp + 0x40], r13
mov r9, r14
mov qword [rsp + 0x38], r13
xor r8d, r8d
mov dword [rsp + 0x30], r13d
mov edx, 0x1fffff
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call rbx
test eax, eax
js 0x7ff78718c744
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x7ff78718c744
mov edx, 0x7530
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x7ff78718c6f1
call qword [sym.imp.kernel32.dll_GetLastError]
mov rcx, qword [rbp - 0x11]
xor edx, edx
mov dword [rdi], eax
call qword [sym.imp.kernel32.dll_TerminateThread]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.kernel32.dll_VirtualFreeEx]
mov eax, 0x10100009
jmp 0x7ff78718c760
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov r8, qword [rbp + 0x7f]
mov r9d, 8
mov rdx, rsi
mov qword [rsp + 0x20], r13
mov rcx, r14
call qword [sym.imp.kernel32.dll_ReadProcessMemory]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
mov ebx, eax
call qword [sym.imp.kernel32.dll_VirtualFreeEx]
test ebx, ebx
jne 0x7ff78718c740
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rdi], eax
mov eax, 0x10100008
jmp 0x7ff78718c760
xor eax, eax
jmp 0x7ff78718c760
mov r9d, 0x8000
mov dword [rdi], eax
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.kernel32.dll_VirtualFreeEx]
mov eax, 0x10100004
mov rsi, qword [rsp + 0xd8]
mov r13, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret