Function at 0x1400468b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x14005b040]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov ebx, r8d
mov rdi, rdx
mov qword [rbp + 0xf], rdx
lea rcx, [rbp - 0x19]
call fcn.140047860
mov rdx, rax
lea rcx, [rbp + 0x17]
call fcn.140045400
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
mov ebx, dword [rbp + 0x27]
inc ebx
mov r8d, ebx
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x1000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
je 0x140046a53
cmp rsi, 0xffffffffffffffff
je 0x140046a53
lea r8, [rbp + 0x17]
cmp qword [rbp + 0x2f], 0xf
cmova r8, qword [rbp + 0x17]
lea r9d, [rbx - 1]
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400469cd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp + 0x27]
inc rdx
mov r8d, 0x1000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x140046a93
inc rdx
mov rcx, qword [rbp + 0x17]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1400469c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140046a85
call fcn.14004a58c
jmp 0x140046a93
mov qword [rbp + 7], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r9, rsi
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rbp + 7]
call fcn.14004a3a0
mov rcx, qword [rbp + 7]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140046a4b
test eax, eax
jne 0x140046a4b
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8, qword [rbp + 0x27]
inc r8
mov r9d, 0x1000
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140046989
mov r8d, 0x300
jmp 0x140046a2b
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x140046a91
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046a8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046a8c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004a58c
xor ebx, ebx
mov qword [rbp + 0x27], rbx
mov qword [rbp + 0x2f], 0xf
mov byte [rbp + 0x17], bl
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140046ad8
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140046ad3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140046b0b
mov rcx, r8
call fcn.14004a58c
mov byte [rdi], 0
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14004a3f0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3