Function at 0x140002f30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
sub rsp, 0x180
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf8], 0xfffffffffffffffe
mov byte [rbp - 1], dl
mov qword [rbp + 8], rcx
and dl, 1
mov byte [rbp + 0x67], dl
mov ecx, 0x10
mov edx, 8
call fcn.140003720
mov qword [rbp], rax
and rax, 7
cmp rax, 0
jne 0x140002fb4
mov rdx, qword [rbp]
lea rax, [sub.KERNEL32.dll_VirtualProtect]
mov qword [rdx], rax
lea rax, [sub.KERNEL32.dll_VirtualAlloc]
mov qword [rdx + 8], rax
lea rcx, [rbp + 0x10]
mov qword [rbp - 0x20], rcx
mov r8d, 2
call fcn.140002660
mov rcx, qword [rbp - 0x20]
call fcn.1400076e0
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rax
jmp 0x140002fc9
mov rdx, qword [rbp]
lea r8, [0x140053ac8]
mov ecx, 8
call fcn.1400528c0
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
lea r8, [rbp + 8]
call fcn.140004d00
mov byte [rbp - 0x21], al
jmp 0x140002fdf
mov al, byte [rbp - 0x21]
test al, 1
jne 0x140002ffd
jmp 0x140002fe8
mov dl, byte [rbp - 1]
mov r8, qword [rbp + 8]
and dl, 1
lea rcx, [rbp + 0x40]
call fcn.140002bc0
jmp 0x14000300b
lea rcx, [rbp + 0x10]
call fcn.140002850
jmp 0x1400031a1
mov al, byte [rbp - 1]
mov rcx, qword [rbp + 0x40]
mov qword [rbp - 0x30], rcx
mov qword [rbp + 0x68], rcx
mov rcx, qword [rbp + 0x48]
mov qword [rbp + 0x28], rcx
mov rcx, qword [rbp + 0x50]
mov qword [rbp + 0x30], rcx
mov rcx, qword [rbp + 0x58]
mov qword [rbp + 0x38], rcx
test al, 1
jne 0x1400030c2
mov byte [rbp + 0xbf], 0
mov qword [rbp + 0xc0], 1
mov byte [rbp + 0xcf], 0
mov qword [rbp + 0xd0], 1
lea rcx, [rbp + 0xdc]
mov qword [rbp + 0xe0], rcx
mov qword [rbp + 0xe8], rcx
mov edx, 4
call fcn.140001e80
mov rdx, qword [rbp - 0x30]
mov dword [rbp + 0xdc], 0
mov eax, dword [rbp + 0xdc]
mov dword [rbp + 0xf0], eax
mov dword [rbp + 0xf4], eax
mov dword [rbp + 0x60], eax
mov rcx, qword [rbp + 8]
mov r8d, 0x40
lea r9, [rbp + 0x60]
call sub.KERNEL32.dll_VirtualProtect
lea rcx, [rbp + 0x28]
call fcn.140001950
mov qword [rbp - 0x38], rax
jmp 0x140003101
mov rax, qword [rbp - 0x30]
mov rcx, qword [rbp + 8]
mov qword [rbp - 0x40], rcx
mov qword [rbp + 0x88], rcx
mov byte [rbp + 0x97], 0
mov qword [rbp + 0x98], rax
mov edx, 1
call fcn.140001e80
mov rcx, qword [rbp - 0x40]
mov r8, qword [rbp - 0x30]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
jmp 0x14000303a
mov r8, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp + 8]
mov qword [rbp - 0x50], rdx
mov qword [rbp + 0xa0], rcx
mov qword [rbp + 0xa8], rdx
mov qword [rbp + 0xb0], r8
mov rax, rsp
mov qword [rax + 0x20], r8
mov r9d, 1
mov r8, r9
call fcn.140001fc0
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x38]
mov r8, qword [rbp - 0x30]
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbp + 0x28]
call fcn.140001950
mov qword [rbp - 0x48], rax
jmp 0x14000315b
mov rax, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x48]
mov qword [rbp + 0x70], rcx
mov byte [rbp + 0x7f], 0
mov qword [rbp + 0x80], rax
mov edx, 1
call fcn.140001e80
mov rcx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x30]
xor eax, eax
mov dl, al
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x28]
call fcn.1400384b0
jmp 0x140003198
lea rcx, [rbp + 0x10]
call fcn.140002850
nop
add rsp, 0x180
pop rbp
ret