Function at 0x1400080e4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov r12, r9
mov r13, r8
mov rbx, rdx
mov r15, rcx
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rsp + 0x50]
call fcn.1400021c0
xor edi, edi
test r15, r15
jne 0x140008130
mov eax, 0xc000000d
jmp 0x1400085c7
mov qword [rsp + 0x50], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov r14d, dword [rsp + 0x148]
mov eax, r14d
shr eax, 7
and al, 1
mov byte [rsp + 0xa9], al
lea rcx, [rsp + 0x50]
je 0x14000816e
call fcn.1400017e0
jmp 0x140008173
call fcn.140007614
mov esi, eax
test eax, eax
js 0x140008492
mov qword [rsp + 0x120], 0x2000
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x120]
xor r8d, r8d
lea rdx, [rsp + 0x80]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov esi, eax
test eax, eax
js 0x140008492
mov qword [rsp + 0xc0], 0x30
mov qword [rsp + 0xd8], rdi
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0xd0], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xe0], xmm0
mov byte [rsp + 0x20], dil
xor r9d, r9d
lea r8, [rsp + 0xc0]
mov edx, 0x1f0003
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwCreateEvent]
mov esi, eax
mov ebx, 2
test eax, eax
js 0x14000824f
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9b, 1
mov r8, qword [sym.imp.ntoskrnl.exe_ExEventObjectType]
mov r8, qword [r8]
mov edx, ebx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov esi, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0xb0], xmm0
mov edx, 0x7fff
mov ecx, edx
lea r8, [0x14000a270]
mov rax, r8
cmp word [rax], di
je 0x140008279
add rax, rbx
sub rcx, 1
jne 0x14000826b
mov rax, rcx
sub rdx, rcx
neg rax
sbb rax, rax
and rax, rdx
test rcx, rcx
je 0x1400082ab
add rax, rax
mov word [rsp + 0xb0], ax
add ax, bx
mov word [rsp + 0xb2], ax
mov qword [rsp + 0xb8], r8
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
setne r8b
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x50]
call fcn.140006b80
mov rbx, rax
xor r9d, r9d
mov r8, r15
lea rdx, [0x14000a290]
mov rcx, rax
call fcn.140006844
mov qword [rsp + 0x98], rax
xor r9d, r9d
mov r8, r15
lea rdx, [0x14000a250]
mov rcx, rbx
call fcn.140006844
mov qword [rsp + 0xa0], rax
mov rbx, qword [rsp + 0x128]
test esi, esi
js 0x140008492
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov al, byte [rsp + 0x140]
mov byte [rsp + 0x20], al
mov r9, r12
mov r8, r13
mov rdx, rbx
mov rcx, r15
call fcn.140007834
mov esi, eax
test eax, eax
js 0x140008492
bt r14d, 0xc
jb 0x140008372
mov eax, dword [0x14000454c]
test eax, eax
je 0x140008372
or dword [rax + r15], 0x38
test esi, esi
js 0x140008492
test r14b, 0x40
je 0x1400083b0
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rbx, rax
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rdx + 0x10]
mov qword [rbx + 0x10], rcx
test rax, rax
je 0x1400083b0
mov ecx, dword [rdx + 0x10]
mov dword [rax + 8], ecx
test esi, esi
js 0x140008492
shr r14d, 0x10
and r14b, 1
mov dl, r14b
lea rcx, [rsp + 0x50]
call fcn.1400071b8
mov esi, eax
mov dword [rsp + 0x40], eax
jmp 0x1400083dd
test esi, esi
js 0x140008492
cmp dword [rsp + 0x150], edi
je 0x140008492
mov r8d, dword [rsp + 0x150]
mov rax, qword [rsp + 0x160]
add r8, qword [rax + 0x10]
mov rax, qword [rsp + 0x80]
add rax, 0x1010
mov rcx, qword [rsp + 0x158]
mov edx, 8
lea r9d, [rdx + 0x78]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
add rax, r9
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rax - 0x10], xmm1
add rcx, r9
sub rdx, 1
jne 0x140008425
mov rax, qword [rsp + 0x80]
add rax, 0x1010
mov qword [rsp + 0x20], rax
lea r9d, [rdx + 1]
lea rdx, [rsp + 0x50]
xor ecx, ecx
call fcn.1400073c8
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x1400084a5
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp qword [rsp + 0x88], rdi
je 0x1400084cf
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, rax
call fcn.140001c40
test al, al
jne 0x1400084cf
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400084df
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000851c
mov qword [rsp + 0x120], 0xfffffffffffe7960
xor edx, edx
call fcn.140001b80
lea r8, [rsp + 0x120]
mov dl, 1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp qword [rsp + 0x58], rdi
je 0x140008548
mov qword [rsp + 0x120], rdi
mov r9d, 0x8000
lea r8, [rsp + 0x120]
lea rdx, [rsp + 0x58]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
cmp qword [rsp + 0x80], rdi
je 0x1400085b6
mov qword [rsp + 0x120], rdi
mov r9d, 0x8000
lea r8, [rsp + 0x120]
lea rdx, [rsp + 0x80]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
jmp 0x1400085b6
mov rax, qword [rbx]
lea rcx, [rsp + 0x70]
cmp qword [rbx + 8], rcx
jne 0x1400085e4
cmp qword [rax + 8], rbx
jne 0x1400085e4
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
mov qword [rax + 8], rcx
lea rcx, [rbx + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov edx, 0x2a6cf6e7
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rbx, qword [rsp + 0x70]
lea rax, [rsp + 0x70]
cmp rbx, rax
jne 0x14000857c
mov eax, esi
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, 3
int 0x29
int3