Function at 0x7ff78718ba20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rbx, rcx
mov r14, rdx
mov rcx, qword [rcx + 0x68]
xor r12d, r12d
call qword [sym.imp.kernel32.dll_GetProcessId]
mov r8, qword [rbx + 0x20]
mov r15d, eax
mov rdx, qword [rbx]
mov rcx, qword [rbx + 8]
mov r8d, dword [r8 + 0x3c]
call sub.vcruntime140.dll_memcpy
mov rcx, qword [rbx + 0x18]
mov esi, r12d
mov rax, qword [rbx + 0x28]
movzx edi, word [rcx + 0x14]
add rdi, 0x2c
cmp word [rax + 2], si
je 0x7ff78718baad
add rdi, rcx
nop dword [rax]
mov eax, dword [rdi - 4]
test eax, eax
je 0x7ff78718ba9b
mov edx, dword [rdi]
mov r8d, eax
mov ecx, dword [rdi - 8]
add rdx, qword [rbx]
add rcx, qword [rbx + 8]
call sub.vcruntime140.dll_memcpy
mov rax, qword [rbx + 0x28]
inc esi
add rdi, 0x28
movzx ecx, word [rax + 2]
cmp esi, ecx
jne 0x7ff78718ba80
mov rcx, qword [rbx + 0x68]
lea rdx, [0x7ff7874499b0]
call fcn.7ff78718b340
mov rcx, qword [rbx + 0x68]
lea r9, [rbp + 0x70]
lea r8, [0x7ff7874499c0]
mov qword [rbp + 0x70], r12
mov rdx, rax
mov rdi, rax
call fcn.7ff78718b440
test al, al
je 0x7ff78718bc6c
mov rcx, qword [rbx + 0x68]
lea r9, [rbp + 0x80]
lea r8, [0x7ff7874499d0]
mov qword [rbp + 0x80], r12
mov rdx, rdi
call fcn.7ff78718b440
test al, al
je 0x7ff78718bc6c
mov rax, qword [rbp + 0x70]
xorps xmm0, xmm0
mov qword [rsp + 0x38], rax
xor ecx, ecx
mov rax, qword [rbp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x48]
mov qword [rsp + 0x48], rax
mov eax, dword [rbx + 0x70]
mov dword [rsp + 0x50], eax
mov eax, dword [rbx + 0x34]
add rax, qword [rbx + 0x40]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x54], r12d
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
call qword [sym.imp.ucrtbase.dll__time64]
lea rdx, [rbp + 0x88]
mov qword [rbp + 0x88], rax
lea rcx, [rbp - 0x50]
call qword [sym.imp.ucrtbase.dll__localtime64_s]
lea r9, [rbp - 0x50]
mov edx, 0x50
lea r8, [0x7ff787449a14]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ucrtbase.dll_strftime]
xorps xmm0, xmm0
lea rax, [rbp - 0x20]
xorps xmm1, xmm1
mov r8, 0xffffffffffffffff
movups xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
nop dword [rax]
inc r8
cmp byte [rax + r8], r12b
jne 0x7ff78718bbb0
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x60]
call fcn.7ff78711dbf0
mov rdx, qword [rsp + 0x78]
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
cmp rdx, 0xf
cmova rax, rcx
mov edi, dword [rax]
add rdi, 0xaed0de
cmp rdx, 0xf
jbe 0x7ff78718bc1d
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff78718bc18
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff78718bc18
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff78718e8e8
cmp dword [rbx + 0x74], 1
mov qword [rbp - 0x60], rdi
mov byte [rbp - 0x58], r12b
jne 0x7ff78718bc8c
lea r8, [rsp + 0x58]
mov edx, 0x1000
mov ecx, r15d
call fcn.7ff78718af40
test eax, eax
js 0x7ff78718bc83
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x7ff78718bc83
mov r9d, 0x30
lea r8, [rbp - 0x80]
mov ecx, r15d
call fcn.7ff78718b0a0
test eax, eax
jns 0x7ff78718bcf1
mov dword [r14], 0x50002
mov eax, 7
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov dword [r14], 0x50001
jmp 0x7ff78718bc6c
mov rcx, qword [rbx + 0x68]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov r8d, 0x1000
call qword [sym.imp.kernel32.dll_VirtualAllocEx]
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x7ff78718bcc1
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [r14], eax
jmp 0x7ff78718bc6c
mov rcx, qword [rbx + 0x68]
lea r8, [rbp - 0x80]
mov r9d, 0x30
mov qword [rsp + 0x20], r12
mov rdx, rax
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
test eax, eax
jne 0x7ff78718bcf1
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [r14], eax
mov eax, 8
jmp 0x7ff78718bc71
cmp dword [rbx + 0x74], 1
lea r8, [rsp + 0x30]
mov rdx, qword [rbx + 0x58]
mov r9d, 0x30
jne 0x7ff78718bd23
mov ecx, r15d
call fcn.7ff78718b0a0
test eax, eax
jns 0x7ff78718bd49
mov dword [r14], 0x50003
mov eax, 9
jmp 0x7ff78718bc71
mov rcx, qword [rbx + 0x68]
mov qword [rsp + 0x20], r12
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
test eax, eax
jne 0x7ff78718bd49
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [r14], eax
mov eax, 9
jmp 0x7ff78718bc71
mov rdx, qword [rbx + 0x50]
lea r9, [0x7ff78718c4f0]
lea r8, [0x7ff78718c340]
sub r9d, r8d
cmp dword [rbx + 0x74], 1
jne 0x7ff78718bd81
mov ecx, r15d
call fcn.7ff78718b0a0
test eax, eax
jns 0x7ff78718bd94
mov dword [r14], 0x50004
mov eax, 9
jmp 0x7ff78718bc71
mov rcx, qword [rbx + 0x68]
mov qword [rsp + 0x20], r12
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
test eax, eax
je 0x7ff78718bd36
xor eax, eax
jmp 0x7ff78718bc71