Function at 0x18002f3d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0xb8
mov rax, qword [0x180074808]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, qword [rcx]
mov r12, rcx
mov qword [rsp + 0x30], rcx
lea rcx, [0x1800a47e0]
xor r13d, r13d
mov rdi, rdx
mov esi, r13d
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx r11d, byte [rbx]
cmp r11b, 0xff
jne 0x18002f42e
cmp byte [rbx + 1], 0x25
jne 0x18002f42e
movsxd rcx, dword [rbx + 2]
mov rcx, qword [rcx + rbx + 6]
jmp 0x18002f46c
cmp r11b, 0x48
jne 0x18002f44b
cmp byte [rbx + 1], 0xff
jne 0x18002f44b
cmp byte [rbx + 2], 0x25
jne 0x18002f44b
movsxd rcx, dword [rbx + 3]
mov rcx, qword [rcx + rbx + 7]
jmp 0x18002f46c
cmp r11b, 0xe9
jne 0x18002f45c
movsxd rax, dword [rbx + 1]
lea rcx, [rax + rbx + 5]
jmp 0x18002f46c
cmp r11b, 0xeb
jne 0x18002f474
movsx rax, byte [rbx + 1]
lea rcx, [rax + rbx + 2]
call fcn.18002eb90
mov rbx, rax
movzx eax, byte [rdi]
cmp al, 0xff
jne 0x18002f48c
cmp byte [rdi + 1], 0x25
jne 0x18002f48c
movsxd rcx, dword [rdi + 2]
mov rcx, qword [rcx + rdi + 6]
jmp 0x18002f4c4
cmp al, 0x48
jne 0x18002f4a7
cmp byte [rdi + 1], 0xff
jne 0x18002f4a7
cmp byte [rdi + 2], 0x25
jne 0x18002f4a7
movsxd rcx, dword [rdi + 3]
mov rcx, qword [rcx + rdi + 7]
jmp 0x18002f4c4
cmp al, 0xe9
jne 0x18002f4b6
movsxd rax, dword [rdi + 1]
lea rcx, [rax + rdi + 5]
jmp 0x18002f4c4
cmp al, 0xeb
jne 0x18002f4cc
movsx rax, byte [rdi + 1]
lea rcx, [rax + rdi + 2]
call fcn.18002eb90
mov rdi, rax
xor edx, edx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], r13
lea r8d, [rdx + 0x50]
call fcn.18004a690
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.18002f140
mov ebp, eax
cmp eax, 5
jb 0x18002f7f5
mov edx, ebp
mov rcx, rbx
call fcn.18002ef50
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.18002ebf0
mov rsi, rax
test rax, rax
je 0x18002f7f0
lea r9, [rsp + 0x24]
mov r8d, 0x40
mov edx, ebp
mov rcx, rbx
mov qword [rsp + 0xb0], r15
mov dword [rsp + 0x24], r13d
mov dword [rsp + 0x20], r13d
mov r15d, ebp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18002f795
mov edx, 0x78
lea r9, [rsp + 0x20]
mov rcx, rsi
lea r8d, [rdx - 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18002f76a
mov qword [rsp + 0x100], r14
lea r14, [rsi + 0x38]
test ebp, ebp
je 0x18002f5b5
mov r8, rbx
mov r9, rsi
mov rcx, r14
sub r8, r14
sub r9, r14
mov edx, ebp
nop word [rax + rax]
movzx eax, byte [rcx + r8]
inc rcx
dec rdx
mov byte [rcx - 1], al
mov byte [rcx + r9 + 0x57], al
jne 0x18002f5a0
lea rax, [rbp + r14]
lea rcx, [rbp + rbx]
lea r8, [rax + 5]
cmp r8, rcx
jbe 0x18002f5d0
mov rdx, r8
sub rdx, rcx
jmp 0x18002f5d6
mov rdx, rcx
sub rdx, r8
cmp rdx, 0x7fff0000
ja 0x18002f5ea
sub ecx, r8d
mov byte [rax], 0xe9
mov dword [rax + 1], ecx
jmp 0x18002f5f7
mov word [rax], 0x25ff
mov dword [rax + 2], r13d
mov qword [rax + 6], rcx
mov eax, dword [rsp + 0x50]
mov r9, r14
sub r9, rbx
test eax, eax
je 0x18002f625
lea rdx, [rsp + 0x58]
mov r8d, eax
nop dword [rax]
mov ecx, dword [rdx + 8]
mov eax, dword [rdx]
add rdx, 0x10
sub ecx, r9d
dec r8
mov dword [rax + r14], ecx
jne 0x18002f610
cmp rdi, rbx
jae 0x18002f632
mov rax, rbx
sub rax, rdi
jmp 0x18002f638
mov rax, rdi
sub rax, rbx
cmp rax, 0x7fff0000
jbe 0x18002f6f3
lea rbp, [rsi + 0x18]
lea rcx, [rbp + 5]
cmp rcx, rdi
jbe 0x18002f659
mov rax, rcx
sub rax, rdi
jmp 0x18002f65f
mov rax, rdi
sub rax, rcx
cmp rax, 0x7fff0000
ja 0x18002f67e
lea r12, [rbp + 1]
mov eax, edi
mov byte [rbp], 0xe9
sub eax, ecx
add r12, 4
mov dword [r12 - 4], eax
jmp 0x18002f695
lea r12, [rbp + 2]
mov word [rbp], 0x25ff
mov dword [r12], r13d
mov qword [r12 + 4], rdi
add r12, 0xc
sub r12, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [r12 - 0x18]
mov rcx, rax
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea r11, [rbx + 5]
cmp r11, rbp
jbe 0x18002f6c0
mov rax, r11
sub rax, rbp
jmp 0x18002f6c6
mov rax, rbp
sub rax, r11
mov r12, qword [rsp + 0x30]
cmp rax, 0x7fff0000
ja 0x18002f6e1
sub ebp, r11d
mov byte [rbx], 0xe9
mov dword [rbx + 1], ebp
mov ebp, r15d
jmp 0x18002f72b
mov word [rbx], 0x25ff
mov dword [rbx + 2], r13d
mov qword [rbx + 6], rbp
mov ebp, r15d
jmp 0x18002f72b
lea rcx, [rbx + 5]
cmp rcx, rdi
jbe 0x18002f704
mov rax, rcx
sub rax, rdi
jmp 0x18002f70a
mov rax, rdi
sub rax, rcx
cmp rax, 0x7fff0000
ja 0x18002f71e
mov eax, edi
mov byte [rbx], 0xe9
sub eax, ecx
mov dword [rbx + 1], eax
jmp 0x18002f72b
mov word [rbx], 0x25ff
mov dword [rbx + 2], r13d
mov qword [rbx + 6], rdi
mov dword [rsi + 8], ebp
mov qword [rsi], rbx
mov qword [rsi + 0x10], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r15
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov edx, 0x78
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r14, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r15
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov r8d, dword [rsp + 0x24]
lea r9, [rsp + 0x24]
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r15, qword [rsp + 0xb0]
cmp qword [rsi], r13
je 0x18002f7ac
lea rax, [rsi + 0x38]
mov qword [r12], rax
jmp 0x18002f7f0
lea rdx, [0x1800a4808]
mov eax, r13d
mov rcx, rdx
nop dword [rax]
cmp qword [rcx], rsi
je 0x18002f7d2
inc eax
add rcx, 8
cmp eax, 0x20
jb 0x18002f7c0
jmp 0x18002f7ed
mov qword [rdx + rax*8], r13
mov r8d, 0x8000
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
dec dword [0x1800a4908]
mov rsi, r13
call fcn.18002ee90
lea rcx, [0x1800a47e0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rsi, rsi
setne r13b
mov eax, r13d
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.180041e80
add rsp, 0xb8
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret