Function at 0x140004fe0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r11, rsp
push rbx
push r12
push r13
push r14
sub rsp, 0x1e8
mov rax, qword [0x140016030]
xor rax, rsp
mov qword [rsp + 0x1c8], rax
xor eax, eax
xor ebx, ebx
mov r14, r8
mov qword [rsp + 0x40], r8
lea r9d, [rbx + 0x40]
lea r8, [r11 - 0xa8]
mov r12, rdx
mov r13, rcx
mov qword [r11 - 0xa8], rax
mov qword [r11 - 0xa0], rax
mov qword [r11 - 0x98], rax
mov qword [r11 - 0x90], rax
mov qword [r11 - 0x88], rax
mov qword [r11 - 0x80], rax
mov qword [r11 - 0x78], rax
mov qword [r11 - 0x70], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140005519
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x108
call sub.MSVCR90.dll_memset
movsxd rdx, dword [rsp + 0x19c]
lea r8, [rsp + 0x50]
add rdx, r12
mov r9d, 0x108
mov rcx, r13
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140005519
mov eax, 0x20b
cmp word [rsp + 0x68], ax
je 0x1400050ba
lea ecx, [rbx + 9]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140005519
movzx ecx, word [rsp + 0x64]
mov eax, dword [rsp + 0x19c]
mov qword [rsp + 0x228], rbp
mov qword [rsp + 0x1e0], rsi
mov qword [rsp + 0x1d8], rdi
mov dword [rsp + 0x130], ebx
lea edx, [rcx + rax + 0x18]
mov dword [rsp + 0x134], ebx
mov edi, ebx
mov esi, ebx
cmp bx, word [rsp + 0x56]
jae 0x14000519d
mov ebp, edx
xor edx, edx
lea rcx, [rsp + 0x1a0]
lea r8d, [rdx + 0x28]
call sub.MSVCR90.dll_memset
mov edx, esi
lea r8, [rsp + 0x1a0]
lea rax, [rdx + rdx*4]
mov r9d, 0x28
mov rcx, r13
lea rdx, [rbp + rax*8]
mov qword [rsp + 0x20], rbx
add rdx, r12
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140005501
mov edx, dword [rsp + 0x1b0]
cmp dword [rsp + 0x138], ebx
jne 0x140005180
mov r8d, dword [rsp + 0xe0]
mov ecx, dword [rsp + 0x1ac]
cmp r8d, ecx
jb 0x140005180
lea eax, [rdx + rcx]
cmp r8d, eax
jae 0x140005180
mov dword [rsp + 0x138], ecx
mov dword [rsp + 0x13c], edx
mov ecx, dword [rsp + 0x1b4]
movzx eax, word [rsp + 0x56]
add ecx, edx
cmp edi, ecx
cmovb edi, ecx
inc esi
cmp esi, eax
jb 0x140005101
mov rdi, qword [r14]
mov esi, dword [rsp + 0xe4]
or rcx, 0xffffffffffffffff
xor eax, eax
add esi, 0x2f
mov qword [rsp + 0x1d0], r15
repne scasb al, byte [rdi]
and esi, 0xfffffff8
not rcx
lea r15d, [rsi + 0x20]
lea rbp, [rcx + 3]
and ebp, 0xfffffffc
add ebp, r15d
mov ecx, ebp
mov edi, ebp
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r14, rax
test rax, rax
je 0x1400054f9
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.MSVCR90.dll_memset
mov ecx, dword [rsp + 0x70]
mov edx, dword [rsp + 0x74]
mov eax, dword [rsp + 0x7c]
add rdx, rcx
mov ecx, dword [rsp + 0x6c]
add rcx, r12
mov r8d, ebp
add rcx, rdx
mov rdx, r12
add rax, rcx
mov rcx, r13
cmp r12, rax
cmovb rdx, rax
call fcn.140004ea0
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400054f1
mov ecx, dword [rsp + 0xe0]
mov r10d, eax
mov dword [rsp + 0x30], ebx
sub r10d, r12d
mov dword [rsp + 0x34], r10d
test ecx, ecx
je 0x1400052a7
mov r8d, dword [rsp + 0xe4]
lea rax, [rsp + 0x30]
lea rdx, [r12 + rcx]
mov r9d, 0x40
mov rcx, r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400054f1
mov edx, dword [rsp + 0xe0]
mov r9d, dword [rsp + 0xe4]
lea r8, [r14 + 0x14]
add rdx, r12
mov rcx, r13
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400054f1
mov r10d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x40]
lea ecx, [r10 + rsi]
movsxd rax, esi
mov dword [rsp + 0x38], ebx
lea r11, [r14 + 4]
mov dword [rsp + 0x3c], ecx
lea rsi, [rax + r14 + 8]
nop word [rax + rax]
mov rdi, qword [rdx]
mov eax, ebp
mov ecx, r15d
sub eax, r15d
add rcx, r14
mov edx, eax
test eax, eax
je 0x1400054f1
cmp rdx, 0x7fffffff
ja 0x1400054f1
mov r8d, 0x7ffffffe
mov r9d, ebx
sub r8, rdx
sub rdi, rcx
lea rax, [r8 + rdx]
test rax, rax
je 0x140005322
movzx eax, byte [rdi + rcx]
test al, al
je 0x140005322
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140005304
jmp 0x140005327
test rdx, rdx
jne 0x140005330
dec rcx
mov r9d, 0x8007007a
mov byte [rcx], bl
test r9d, r9d
js 0x1400054f1
mov r8d, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x40]
mov r9d, dword [rsp + 0x38]
mov dword [r11 - 4], r8d
mov qword [rsi], rbx
lea eax, [r8 + 0x10]
movabs rcx, 0x8000000000000001
inc r9d
add r8d, 0x20
mov qword [rsi - 8], rcx
mov dword [r11 + 0xc], eax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rbx
or rcx, 0xffffffffffffffff
lea eax, [r10 + r15]
mov dword [r11 + 8], eax
mov dword [r11], ebx
mov dword [r11 + 4], ebx
mov rdi, qword [rdx]
xor eax, eax
add rdx, 8
repne scasb al, byte [rdi]
add rsi, 0x20
add r11, 0x14
not rcx
mov dword [rsp + 0x38], r9d
mov dword [rsp + 0x3c], r8d
add ecx, 3
mov qword [rsp + 0x40], rdx
and ecx, 0xfffffffc
add r15d, ecx
cmp r9d, 1
jb 0x1400052d0
mov ecx, dword [rsp + 0xe4]
movabs rax, 0xcccccccccccccccd
mov edi, ebx
mul rcx
shr rdx, 4
add rdx, 1
je 0x1400053fa
mov rcx, r14
cmp dword [rcx], ebx
jne 0x1400053ed
cmp dword [rcx + 0x10], ebx
je 0x1400053fa
inc edi
add rcx, 0x14
mov eax, edi
cmp rax, rdx
jb 0x1400053e4
mov rdx, qword [rsp + 0x48]
mov r9d, r15d
mov r8, r14
mov rcx, r13
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400054f1
cmp dword [rsp + 0x138], ebx
jne 0x140005438
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x13c], ebp
mov dword [rsp + 0x138], eax
jmp 0x14000543c
mov eax, dword [rsp + 0x34]
mov r8d, dword [rsp + 0xa4]
mov dword [rsp + 0xe0], eax
lea rax, [rsp + 0x30]
mov r9d, 0x40
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xe4], ebp
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400054f1
lea r8, [rsp + 0x160]
mov r9d, 0x40
mov rdx, r12
mov rcx, r13
mov dword [rsp + 0xa8], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400054f1
movsxd rdx, dword [rsp + 0x19c]
lea r8, [rsp + 0x50]
mov r9d, 0x108
mov rcx, r13
add rdx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400054f1
mov r8d, dword [rsp + 0xa4]
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov rcx, r14
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov r15, qword [rsp + 0x1d0]
mov rsi, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x228]
mov rdi, qword [rsp + 0x1d8]
mov eax, ebx
mov rcx, qword [rsp + 0x1c8]
xor rcx, rsp
call fcn.140009f00
add rsp, 0x1e8
pop r14
pop r13
pop r12
pop rbx
ret