Function at 0x7ff78718bda0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfb0]
mov eax, 0x10b0
call sub.kernel32.dll___chkstk
sub rsp, rax
xorps xmm0, xmm0
xor eax, eax
mov qword [rbp - 0x60], rax
mov r12d, r9d
movsxd rax, dword [rcx + 0x3c]
mov r14, r8
add rax, rcx
mov dword [rbp - 0x5c], r9d
mov ebx, dword [rax + 0x50]
lea r13, [rax + 0x18]
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x48], rax
add rax, 4
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x58], rax
mov eax, dword [rbp + 0x1010]
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x40], rcx
mov rcx, r8
movups xmmword [rsp + 0x60], xmm0
mov dword [rbp - 0x60], eax
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x68], r8
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x50], r13
movups xmmword [rbp - 0x80], xmm0
mov dword [rsp + 0x60], ebx
call qword [sym.imp.kernel32.dll_GetProcessId]
xor ecx, ecx
mov edx, ebx
mov r8d, 0x3000
mov esi, eax
lea r9d, [rcx + 0x40]
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp + 0x38], rax
mov r15, rax
test rax, rax
jne 0x7ff78718be83
call qword [sym.imp.kernel32.dll_GetLastError]
mov rcx, qword [rbp + 0x1020]
mov dword [rcx], eax
lea eax, [r15 + 4]
jmp 0x7ff78718c325
mov edi, dword [rsp + 0x68]
lea rcx, [0x7ff78718c340]
lea rax, [0x7ff78718c4f0]
sub eax, ecx
add eax, ebx
lea ecx, [rdi + 0x30]
add ecx, eax
mov dword [rsp + 0x64], ecx
cmp r12d, 1
jne 0x7ff78718bf6f
mov edx, ecx
lea r8, [rsp + 0x70]
mov ecx, esi
call fcn.7ff78718af40
test eax, eax
js 0x7ff78718bf5b
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x7ff78718bf5b
mov edi, dword [rsp + 0x68]
mov ebx, dword [rsp + 0x60]
mov r13, qword [rbp + 0x1020]
mov eax, edi
mov rdx, r13
add rcx, rax
mov eax, ebx
add rax, rcx
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x78], rax
lea rcx, [rsp + 0x30]
add rax, 0x30
mov qword [rbp - 0x80], rax
call fcn.7ff78718ba20
mov edi, eax
test eax, eax
je 0x7ff78718c016
mov rcx, qword [rsp + 0x38]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.kernel32.dll_VirtualFree]
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x7ff78718c00f
cmp r12d, 1
jne 0x7ff78718bff7
mov rcx, r14
call qword [sym.imp.kernel32.dll_GetProcessId]
mov r8d, dword [rsp + 0x64]
mov rdx, rbx
mov ecx, eax
call fcn.7ff78718b1f0
mov eax, edi
jmp 0x7ff78718c325
mov rax, qword [rbp + 0x1020]
mov rcx, qword [rsp + 0x38]
mov dword [rax], 0x50005
jmp 0x7ff78718bfdf
mov rdx, qword [r13 + 0x18]
mov r9d, 0x3000
mov esi, ecx
mov r8d, ecx
mov rcx, r14
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.kernel32.dll_VirtualAllocEx]
mov qword [rsp + 0x70], rax
mov rcx, rax
test rax, rax
jne 0x7ff78718bed8
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov r8d, esi
xor edx, edx
mov rcx, r14
call qword [sym.imp.kernel32.dll_VirtualAllocEx]
mov qword [rsp + 0x70], rax
mov rcx, rax
test rax, rax
jne 0x7ff78718bed8
call qword [sym.imp.kernel32.dll_GetLastError]
mov rdx, qword [rbp + 0x1020]
mov rcx, r15
mov dword [rdx], eax
mov r8d, 0x8000
xor edx, edx
call qword [sym.imp.kernel32.dll_VirtualFree]
mov eax, 3
jmp 0x7ff78718c325
mov r8d, dword [rsp + 0x64]
mov r9d, 0x8000
mov rcx, qword [rbp - 0x68]
mov rdx, rbx
call qword [sym.imp.kernel32.dll_VirtualFreeEx]
mov eax, edi
jmp 0x7ff78718c325
mov rax, qword [rsp + 0x50]
mov r15, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x38]
mov r11, r15
sub r11, qword [rax + 0x18]
je 0x7ff78718c124
cmp dword [rax + 0x9c], 0
jne 0x7ff78718c0a0
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.kernel32.dll_VirtualFree]
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x7ff78718c096
cmp r12d, 1
jne 0x7ff78718c07e
mov rcx, r14
call qword [sym.imp.kernel32.dll_GetProcessId]
mov r8d, dword [rsp + 0x64]
mov rdx, rbx
mov ecx, eax
call fcn.7ff78718b1f0
lea eax, [r12 + 4]
jmp 0x7ff78718c325
mov r8d, dword [rsp + 0x64]
mov r9d, 0x8000
mov rcx, qword [rbp - 0x68]
mov rdx, rbx
call qword [sym.imp.kernel32.dll_VirtualFreeEx]
mov eax, 5
jmp 0x7ff78718c325
mov r8d, dword [rax + 0x98]
add r8, rdi
cmp dword [r8], 0
je 0x7ff78718c124
mov ebx, 0xf000
mov esi, 0xa000
nop word [rax + rax]
mov edx, dword [r8 + 4]
lea r9, [r8 + 8]
xor r10d, r10d
lea rax, [rdx - 8]
test rax, 0xfffffffffffffffe
jbe 0x7ff78718c119
nop word [rax + rax]
movzx ecx, word [r9]
movzx eax, cx
and cx, bx
cmp cx, si
jne 0x7ff78718c0ff
mov edx, dword [r8]
and eax, 0xfff
lea rcx, [rdi + rax]
add qword [rdx + rcx], r11
mov edx, dword [r8 + 4]
inc r10d
add r9, 2
mov eax, r10d
lea rcx, [rdx - 8]
shr rcx, 1
cmp rax, rcx
jb 0x7ff78718c0e0
mov eax, edx
add r8, rax
cmp dword [r8], 0
jne 0x7ff78718c0c0
cmp dword [rbp - 0x5c], 1
mov rsi, qword [rbp - 0x68]
mov rcx, rsi
jne 0x7ff78718c15d
mov ebx, dword [rsp + 0x60]
call qword [sym.imp.kernel32.dll_GetProcessId]
mov r9d, ebx
mov r8, rdi
mov ecx, eax
mov rdx, r15
call fcn.7ff78718b0a0
test eax, eax
jns 0x7ff78718c1e8
mov dword [r13], 0x50006
jmp 0x7ff78718c185
mov r9d, dword [rsp + 0x60]
mov r8, rdi
mov rdx, r15
mov qword [rsp + 0x20], 0
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
test eax, eax
jne 0x7ff78718c1e8
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [r13], eax
mov r8d, 0x8000
xor edx, edx
mov rcx, rdi
mov ebx, 9
call qword [sym.imp.kernel32.dll_VirtualFree]
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x7ff78718c1e1
cmp r12d, 1
jne 0x7ff78718c1ca
mov rcx, r14
call qword [sym.imp.kernel32.dll_GetProcessId]
mov r8d, dword [rsp + 0x64]
mov rdx, rdi
mov ecx, eax
call fcn.7ff78718b1f0
mov eax, ebx
jmp 0x7ff78718c325
mov r8d, dword [rsp + 0x64]
mov r9d, 0x8000
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.kernel32.dll_VirtualFreeEx]
mov eax, ebx
jmp 0x7ff78718c325
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.kernel32.dll_VirtualFree]
mov rbx, qword [rbp - 0x78]
lea rax, [rbp + 0xff8]
mov rdx, qword [rbp - 0x80]
mov r8, rbx
mov r9, r13
mov qword [rsp + 0x20], rax
mov rcx, r14
mov qword [rbp + 0xff8], 0
call fcn.7ff78718c500
mov rcx, qword [rbp + 0xff8]
mov r15d, eax
mov rdx, qword [rbp + 0x1018]
mov r12d, dword [rsp + 0x64]
mov r13, qword [rsp + 0x70]
mov edi, r12d
sub rdi, rbx
mov qword [rdx], rcx
add rdi, r13
mov rcx, rdi
call fcn.7ff78718e958
mov r8, rdi
xor edx, edx
mov rcx, rax
mov rsi, rax
call sub.ntdll.dll_memset
cmp dword [rbp + 0x1008], 1
mov rcx, r14
jne 0x7ff78718c289
call qword [sym.imp.kernel32.dll_GetProcessId]
mov r9, rdi
mov r8, rsi
mov ecx, eax
mov rdx, rbx
call fcn.7ff78718b0a0
jmp 0x7ff78718c2a1
mov r9, rdi
mov qword [rsp + 0x20], 0
mov r8, rsi
mov rdx, rbx
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
test byte [rbp + 0x1010], 1
je 0x7ff78718c303
xor edx, edx
lea rcx, [rbp - 0x50]
mov r8d, 0x1000
call sub.ntdll.dll_memset
cmp dword [rbp + 0x1008], 1
mov rcx, r14
jne 0x7ff78718c2e3
call qword [sym.imp.kernel32.dll_GetProcessId]
mov r9d, 0x1000
lea r8, [rbp - 0x50]
mov ecx, eax
mov rdx, rbx
call fcn.7ff78718b0a0
jmp 0x7ff78718c30c
mov rdx, qword [rsp + 0x78]
lea r8, [rbp - 0x50]
mov r9d, 0x1000
mov qword [rsp + 0x20], 0
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
jmp 0x7ff78718c322
cmp dword [rbp + 0x1008], 1
jne 0x7ff78718c322
mov rcx, r14
call qword [sym.imp.kernel32.dll_GetProcessId]
mov r8d, r12d
mov rdx, r13
mov ecx, eax
call fcn.7ff78718b1f0
mov eax, r15d
mov rbx, qword [rsp + 0x10f0]
add rsp, 0x10b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret