Function at 0x414c30
Capabilities:
Allocate or change rwx memory

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x120
mov dword [rsp + 0x98], 0
mov qword [rsp + 0x60], 0x1000
mov qword [rsp + 0x68], 0
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0xa8]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
cmp qword [rsp + 0x138], 0
jne 0x414caa
mov eax, 0xc000000d
jmp 0x4151db
mov rax, qword [rsp + 0x138]
mov qword [rax + 8], 0
movzx eax, byte [rsp + 0x140]
test eax, eax
je 0x414d64
mov rcx, qword [rsp + 0x130]
call sub.ntoskrnl.exe_PsGetProcessId
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x68], 0
mov byte [rsp + 0x90], 1
mov byte [rsp + 0x91], 1
mov qword [rsp + 0x80], 0x40
mov qword [rsp + 0x88], 0x1000
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x130]
call fcn.004136a0
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0
jge 0x414d4e
mov eax, dword [rsp + 0x98]
jmp 0x4151db
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0xa0]
mov qword [rax + 8], rcx
jmp 0x414d9e
mov rax, qword [rsp + 0x138]
add rax, 8
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwAllocateVirtualMemory
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0
jl 0x4151d4
mov rax, qword [rsp + 0x138]
mov rax, qword [rax + 8]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x138]
mov rcx, qword [rax]
call sub.ntoskrnl.exe_PsGetProcessWow64Process
test rax, rax
je 0x414de2
mov dword [rsp + 0x114], 1
jmp 0x414ded
mov dword [rsp + 0x114], 0
movzx eax, byte [rsp + 0x114]
mov byte [rsp + 0xc0], al
lea rdx, [0x00434110]
lea rcx, [rsp + 0xb0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
movzx r8d, byte [rsp + 0xc0]
lea rdx, [rsp + 0xb0]
mov rax, qword [rsp + 0x138]
mov rcx, qword [rax]
call fcn.0040edb0
xor r9d, r9d
mov rcx, qword [rsp + 0x138]
mov r8, qword [rcx]
lea rdx, [0x00434280]
mov rcx, rax
call fcn.0040f250
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0
je 0x4151c9
mov dword [rsp + 0xd8], 0
lea rax, [rsp + 0xe0]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xd0]
add rax, 0x100
mov qword [rsp + 0x108], rax
mov dword [rsp + 0x110], 0
mov rax, qword [rsp + 0x108]
mov qword [rax], 0xffffffffffff3cb0
movzx eax, byte [rsp + 0xc0]
test eax, eax
je 0x414fb7
mov eax, dword [rsp + 0x110]
mov rcx, qword [rsp + 0xd0]
mov byte [rcx + rax], 0x68
mov eax, dword [rsp + 0x110]
mov rcx, qword [rsp + 0xd0]
mov edx, dword [rsp + 0x108]
mov dword [rcx + rax + 1], edx
mov eax, dword [rsp + 0x110]
add eax, 5
mov dword [rsp + 0x110], eax
mov eax, dword [rsp + 0x110]
mov rcx, qword [rsp + 0xd0]
mov word [rcx + rax], 0x16a
mov eax, dword [rsp + 0x110]
add eax, 2
mov dword [rsp + 0x110], eax
mov eax, dword [rsp + 0x110]
mov rcx, qword [rsp + 0xd0]
mov byte [rcx + rax], 0xb8
mov eax, dword [rsp + 0x110]
mov rcx, qword [rsp + 0xd0]
mov edx, dword [rsp + 0xc8]
mov dword [rcx + rax + 1], edx
mov eax, dword [rsp + 0x110]
add eax, 5
mov dword [rsp + 0x110], eax
mov eax, dword [rsp + 0x110]
mov rcx, qword [rsp + 0xd0]
mov word [rcx + rax], 0xd0ff
mov eax, dword [rsp + 0x110]
add eax, 2
mov dword [rsp + 0x110], eax
mov eax, dword [rsp + 0x110]
mov rcx, qword [rsp + 0xd0]
mov word [rcx + rax], 0xf0eb
mov eax, dword [rsp + 0x110]
add eax, 2
mov dword [rsp + 0x110], eax
jmp 0x4150c5
mov eax, dword [rsp + 0x110]
mov rcx, qword [rsp + 0xd0]
mov word [rcx + rax], 0xb948
mov eax, dword [rsp + 0x110]
mov rcx, qword [rsp + 0xd0]
mov qword [rcx + rax + 2], 1
mov eax, dword [rsp + 0x110]
add eax, 0xa
mov dword [rsp + 0x110], eax
mov eax, dword [rsp + 0x110]
mov rcx, qword [rsp + 0xd0]
mov word [rcx + rax], 0xba48
mov eax, dword [rsp + 0x110]
mov rcx, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0x108]
mov qword [rcx + rax + 2], rdx
mov eax, dword [rsp + 0x110]
add eax, 0xa
mov dword [rsp + 0x110], eax
mov eax, dword [rsp + 0x110]
mov rcx, qword [rsp + 0xd0]
mov word [rcx + rax], 0xb848
mov eax, dword [rsp + 0x110]
mov rcx, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xc8]
mov qword [rcx + rax + 2], rdx
mov eax, dword [rsp + 0x110]
add eax, 0xa
mov dword [rsp + 0x110], eax
mov eax, dword [rsp + 0x110]
mov rcx, qword [rsp + 0xd0]
mov word [rcx + rax], 0xd0ff
mov eax, dword [rsp + 0x110]
add eax, 2
mov dword [rsp + 0x110], eax
mov eax, dword [rsp + 0x110]
mov rcx, qword [rsp + 0xd0]
mov word [rcx + rax], 0xdeeb
mov eax, dword [rsp + 0x110]
add eax, 2
mov dword [rsp + 0x110], eax
mov dword [rsp + 0xd8], 0x30
mov qword [rsp + 0xe0], 0
mov dword [rsp + 0xf0], 0x200
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x100], 0
mov rax, qword [rsp + 0x138]
add rax, 0x10
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0x100000
mov qword [rsp + 0x40], 0x1000
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x138]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x20], rcx
mov r9, 0xffffffffffffffff
lea r8, [rsp + 0xd8]
mov edx, 0x1f03ff
mov rcx, rax
call fcn.0042b100
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0
jl 0x4151c7
mov rax, qword [rsp + 0x138]
add rax, 0x18
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rax, qword [sym.imp.ntoskrnl.exe_PsThreadType]
mov r8, qword [rax]
mov edx, 0x1f03ff
mov rax, qword [rsp + 0x138]
mov rcx, qword [rax + 0x10]
call fcn.0040a3e0
jmp 0x4151d4
mov dword [rsp + 0x98], 0xc0000225
mov eax, dword [rsp + 0x98]
add rsp, 0x120
pop rdi
ret