Function at 0x18000ec10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xc0
mov rax, qword [0x180025450]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, qword [rcx]
xor r12d, r12d
mov rdi, rdx
mov esi, r12d
mov r13, rcx
mov qword [rsp + 0x40], rcx
cmp dword [0x180052be0], esi
lea rbp, [0x1800528d0]
jne 0x18000ec7e
lea rcx, [0x1800528a0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edx, edx
mov r8d, 0x200
mov rcx, rbp
call fcn.180015840
mov dword [0x180052be0], 1
lea rcx, [0x1800528a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx r11d, byte [rbx]
cmp r11b, 0xff
jne 0x18000eca6
cmp byte [rbx + 1], 0x25
jne 0x18000eca6
movsxd rcx, dword [rbx + 2]
mov rcx, qword [rcx + rbx + 6]
jmp 0x18000ecc7
cmp r11b, 0xe9
jne 0x18000ecb7
movsxd rax, dword [rbx + 1]
lea rcx, [rax + rbx + 5]
jmp 0x18000ecc7
cmp r11b, 0xeb
jne 0x18000eccf
movsx rax, byte [rbx + 1]
lea rcx, [rax + rbx + 2]
call fcn.18000e410
mov rbx, rax
movzx eax, byte [rdi]
cmp al, 0xff
jne 0x18000ece7
cmp byte [rdi + 1], 0x25
jne 0x18000ece7
movsxd rcx, dword [rdi + 2]
mov rcx, qword [rcx + rdi + 6]
jmp 0x18000ed04
cmp al, 0xe9
jne 0x18000ecf6
movsxd rax, dword [rdi + 1]
lea rcx, [rax + rdi + 5]
jmp 0x18000ed04
cmp al, 0xeb
jne 0x18000ed0c
movsx rax, byte [rdi + 1]
lea rcx, [rax + rdi + 2]
call fcn.18000e410
mov rdi, rax
xor edx, edx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x50], r12
lea r8d, [rdx + 0x50]
call fcn.180015840
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.18000e990
mov r14d, eax
cmp eax, 5
jb 0x18000f038
mov edx, r14d
mov rcx, rbx
call fcn.18000e7b0
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.18000e450
mov rsi, rax
test rax, rax
je 0x18000f033
mov qword [rsp + 0x110], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x40
mov rbp, rax
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x34]
mov r8d, r14d
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], r12d
mov dword [rsp + 0x30], r12d
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18000efdf
mov r9d, 0x40
lea rax, [rsp + 0x30]
mov rdx, rsi
lea r8d, [r9 + 0x38]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18000efb2
lea r13, [rsi + 0x38]
test r14d, r14d
je 0x18000ee05
mov r8, rbx
mov r9, rsi
mov rcx, r13
sub r8, r13
sub r9, r13
mov edx, r14d
nop dword [rax]
movzx eax, byte [r8 + rcx]
inc rcx
dec rdx
mov byte [rcx - 1], al
mov byte [r9 + rcx + 0x57], al
jne 0x18000edf0
lea rax, [r14 + r13]
lea rcx, [r14 + rbx]
lea r8, [rax + 5]
cmp r8, rcx
jbe 0x18000ee1e
mov rdx, r8
sub rdx, rcx
jmp 0x18000ee24
mov rdx, rcx
sub rdx, r8
cmp rdx, 0x7fff0000
ja 0x18000ee38
sub ecx, r8d
mov byte [rax], 0xe9
mov dword [rax + 1], ecx
jmp 0x18000ee45
mov word [rax], 0x25ff
mov dword [rax + 2], r12d
mov qword [rax + 6], rcx
mov eax, dword [rsp + 0x60]
mov r9, r13
sub r9, rbx
test eax, eax
je 0x18000ee75
lea rdx, [rsp + 0x68]
mov r8d, eax
nop dword [rax + rax]
mov ecx, dword [rdx + 8]
mov eax, dword [rdx]
add rdx, 0x10
sub ecx, r9d
dec r8
mov dword [rax + r13], ecx
jne 0x18000ee60
cmp rdi, rbx
jae 0x18000ee82
mov rax, rbx
sub rax, rdi
jmp 0x18000ee88
mov rax, rdi
sub rax, rbx
cmp rax, 0x7fff0000
jbe 0x18000ef3a
lea rbp, [rsi + 0x18]
lea rcx, [rbp + 5]
cmp rcx, rdi
jbe 0x18000eea9
mov rax, rcx
sub rax, rdi
jmp 0x18000eeaf
mov rax, rdi
sub rax, rcx
cmp rax, 0x7fff0000
ja 0x18000eecd
lea r8, [rbp + 1]
mov eax, edi
mov byte [rbp], 0xe9
sub eax, ecx
add r8, 4
mov dword [r8 - 4], eax
jmp 0x18000eee2
lea r8, [rbp + 2]
mov word [rbp], 0x25ff
mov dword [r8], r12d
mov qword [r8 + 4], rdi
add r8, 0xc
mov rcx, qword [rsp + 0x38]
sub r8, rsi
mov rdx, rbp
sub r8, 0x18
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea r11, [rbx + 5]
cmp r11, rbp
jbe 0x18000ef08
mov rax, r11
sub rax, rbp
jmp 0x18000ef0e
mov rax, rbp
sub rax, r11
cmp rax, 0x7fff0000
ja 0x18000ef26
sub ebp, r11d
mov byte [rbx], 0xe9
mov dword [rbx + 1], ebp
mov rbp, qword [rsp + 0x38]
jmp 0x18000ef72
mov word [rbx], 0x25ff
mov dword [rbx + 2], r12d
mov qword [rbx + 6], rbp
mov rbp, qword [rsp + 0x38]
jmp 0x18000ef72
lea rcx, [rbx + 5]
cmp rcx, rdi
jbe 0x18000ef4b
mov rax, rcx
sub rax, rdi
jmp 0x18000ef51
mov rax, rdi
sub rax, rcx
cmp rax, 0x7fff0000
ja 0x18000ef65
mov eax, edi
mov byte [rbx], 0xe9
sub eax, ecx
mov dword [rbx + 1], eax
jmp 0x18000ef72
mov word [rbx], 0x25ff
mov dword [rbx + 2], r12d
mov qword [rbx + 6], rdi
mov r8, r14
mov rdx, r13
mov rcx, rbp
mov dword [rsi + 8], r14d
mov qword [rsi], rbx
mov qword [rsi + 0x10], rdi
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov r9d, dword [rsp + 0x30]
lea r11, [rsp + 0x30]
mov r8d, 0x78
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r11
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r13, qword [rsp + 0x40]
mov r8, r14
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov r9d, dword [rsp + 0x34]
lea r11, [rsp + 0x34]
mov r8, r14
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], r11
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r15, qword [rsp + 0x110]
cmp qword [rsi], r12
je 0x18000eff6
lea rax, [rsi + 0x38]
mov qword [r13], rax
jmp 0x18000f033
lea rdx, [0x1800528d0]
mov eax, r12d
mov rcx, rdx
cmp qword [rcx], rsi
je 0x18000f015
inc eax
add rcx, 8
cmp eax, 0x40
jb 0x18000f003
jmp 0x18000f030
mov qword [rdx + rax*8], r12
mov r8d, 0x8000
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
dec dword [0x180052be4]
mov rsi, r12
call fcn.18000e6f0
lea rcx, [0x1800528a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rsi, rsi
setne r12b
mov eax, r12d
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.180010a70
add rsp, 0xc0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret