Function at 0x140004c50
Capabilities:
Allocate or change rwx memory

Disassembly:
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x7d8
mov rax, qword [0x140012060]
xor rax, rsp
mov qword [rsp + 0x7c8], rax
mov rax, qword [rsp + 0x7f8]
mov qword [rsp + 0x160], rax
mov r8d, 0xf8
xor edx, edx
lea rcx, [rsp + 0x680]
call fcn.1400060d0
mov r8d, 0x108
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1400060d0
mov r8d, 0x500
xor edx, edx
lea rcx, [rsp + 0x180]
call fcn.1400060d0
mov qword [rsp + 0x20], 0
mov r9d, 0x40
lea r8, [rsp + 0x780]
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x7f0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140004cff
xor eax, eax
jmp 0x140005106
movsxd rcx, dword [rsp + 0x7bc]
mov rax, qword [rsp + 0x160]
add rax, rcx
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x20], 0
mov r9d, 0xf8
lea r8, [rsp + 0x680]
mov rdx, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x7f0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140004d52
xor eax, eax
jmp 0x140005106
movzx eax, word [rsp + 0x686]
cmp rax, 0x20
jbe 0x140004d67
xor eax, eax
jmp 0x140005106
movzx ecx, word [rsp + 0x694]
mov rax, qword [rsp + 0x150]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x168], rax
movzx eax, word [rsp + 0x686]
imul rax, rax, 0x28
mov dword [rsp + 0x7c4], eax
mov r9d, dword [rsp + 0x7c4]
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x180]
mov rdx, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x7f0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140004dd1
xor eax, eax
jmp 0x140005106
mov eax, dword [rsp + 0x680]
mov dword [rsp + 0x40], eax
lea rdi, [rsp + 0x44]
lea rsi, [rsp + 0x684]
mov ecx, 0x14
rep movsb byte [rdi], byte [rsi]
movzx eax, word [rsp + 0x800]
mov word [rsp + 0x44], ax
mov eax, 0xf0
mov word [rsp + 0x54], ax
mov eax, 0x20b
mov word [rsp + 0x58], ax
movzx eax, byte [rsp + 0x69a]
mov byte [rsp + 0x5a], al
movzx eax, byte [rsp + 0x69b]
mov byte [rsp + 0x5b], al
mov eax, dword [rsp + 0x69c]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x6a0]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x6a4]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x6a8]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x6ac]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x6b4]
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x6b8]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x6bc]
mov dword [rsp + 0x7c], eax
movzx eax, word [rsp + 0x6c0]
mov word [rsp + 0x80], ax
movzx eax, word [rsp + 0x6c2]
mov word [rsp + 0x82], ax
movzx eax, word [rsp + 0x6c4]
mov word [rsp + 0x84], ax
movzx eax, word [rsp + 0x6c6]
mov word [rsp + 0x86], ax
movzx eax, word [rsp + 0x6c8]
mov word [rsp + 0x88], ax
movzx eax, word [rsp + 0x6ca]
mov word [rsp + 0x8a], ax
mov eax, dword [rsp + 0x6cc]
mov dword [rsp + 0x8c], eax
mov eax, dword [rsp + 0x6d0]
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0x6d4]
mov dword [rsp + 0x94], eax
mov eax, dword [rsp + 0x6d8]
mov dword [rsp + 0x98], eax
movzx eax, word [rsp + 0x6dc]
mov word [rsp + 0x9c], ax
movzx eax, word [rsp + 0x6de]
mov word [rsp + 0x9e], ax
mov eax, dword [rsp + 0x6e0]
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x6e4]
mov qword [rsp + 0xa8], rax
mov eax, dword [rsp + 0x6e8]
mov qword [rsp + 0xb0], rax
mov eax, dword [rsp + 0x6ec]
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0x6f0]
mov dword [rsp + 0xc0], eax
mov eax, dword [rsp + 0x6f4]
mov dword [rsp + 0xc4], eax
mov dword [rsp + 0x30], 0
jmp 0x140004fa7
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x10
jae 0x140004fc8
mov ecx, dword [rsp + 0x30]
mov rcx, qword [rsp + rcx*8 + 0x6f8]
mov eax, dword [rsp + 0x30]
mov qword [rsp + rax*8 + 0xc8], rcx
jmp 0x140004f9c
mov dword [rsp + 0xd0], 0
mov dword [rsp + 0xd4], 0
mov dword [rsp + 0x158], 0
mov r8d, dword [rsp + 0x94]
lea rax, [rsp + 0x158]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x7f0]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x140005025
xor eax, eax
mov qword [rsp + 0x20], 0
mov r9d, 0x108
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x150]
and al, 0x50
add dword [rax], eax
add byte [rax - 0x75], cl
mov word [rax + rsi*8], fs
invalid
add byte [rax], al
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000505a
xor eax, eax
jmp 0x140005106
movzx ecx, word [rsp + 0x54]
mov rax, qword [rsp + 0x150]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x168], rax
movzx eax, word [rsp + 0x46]
imul rax, rax, 0x28
mov dword [rsp + 0x7c4], eax
mov r9d, dword [rsp + 0x7c4]
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x180]
mov rdx, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x7f0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400050bb
xor eax, eax
jmp 0x140005106
mov dword [rsp + 0x7c0], 0
mov r8d, dword [rsp + 0x94]
lea rax, [rsp + 0x7c0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x158]
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x7f0]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x140005101
xor eax, eax
jmp 0x140005106
mov eax, 1