Function at 0x140009ac8
Capabilities:
Access pe header
Allocate or change rwx memory
Delete file
Execute shellcode via indirect call
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140005090]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0xf0]
xor esi, esi
mov r12, qword [rbp + 0xf8]
mov r14d, esi
mov qword [rsp + 0x78], rax
mov r15d, esi
mov r13, r8
mov qword [rbp - 0x70], rdx
mov rbx, rdx
mov qword [rsp + 0x68], rcx
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
lea edx, [rsi + 0x58]
mov r8d, 0x656e6f42
test rax, rax
lea ecx, [rsi + 1]
mov rdi, rax
setne byte [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
xor edx, edx
lea r8d, [r15 + 0x58]
mov rcx, rax
mov rsi, rax
call fcn.1400025c0
lea rcx, [rsi + 0x30]
mov rdx, rbx
call fcn.14000e7dc
lea rdx, [rsi + 0x20]
lea rcx, [rsi + 0x30]
call fcn.14000e8c8
mov eax, dword [rbp + 0xe8]
lea rdx, [rsi + 0x20]
mov rcx, qword [rsp + 0x78]
mov dword [rsi + 0x4c], eax
xor eax, eax
mov r8d, eax
test rdi, rdi
sete r8b
add rcx, 0x20
mov dword [rsi + 0x48], r8d
call fcn.14000a66c
mov rbx, rax
test rax, rax
je 0x140009c19
lea rcx, [rsi + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov edx, 0x656e6f42
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
movups xmm0, xmmword [rbx]
xor eax, eax
movups xmmword [r12], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [r12 + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [r12 + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [r12 + 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [r12 + 0x40], xmm0
movsd xmm1, qword [rbx + 0x50]
movsd qword [r12 + 0x50], xmm1
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140002410
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
lea rax, [rsi + 0x30]
lea r9, [0x14000f880]
mov qword [rsp + 0x20], rax
lea r8, [0x14000f8a0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea rbx, [rsi + 0x18]
test r13, r13
jne 0x140009dde
mov rcx, qword [rbp - 0x70]
mov rdx, rbx
call fcn.14000a41c
xor edx, edx
mov r14d, eax
test eax, eax
jns 0x140009de1
mov eax, dword [rbp + 0xe8]
and eax, 0x8000
test r14d, r14d
js 0x14000a042
test eax, eax
jne 0x140009e56
lfence
mov rcx, qword [rbx]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], edx
mov qword [rbp - 0x68], rdx
lea rdx, [rbp - 0x68]
call fcn.14000a2f8
xor edx, edx
mov r14, rax
test rax, rax
je 0x140009e56
mov edi, dword [rsp + 0x70]
test edi, edi
je 0x140009e56
test r13, r13
je 0x140009e3c
xorps xmm0, xmm0
mov qword [rbp - 0x78], rdx
xorps xmm1, xmm1
mov dword [rbp - 0x1c], edx
mov dword [rbp - 4], edx
lea rcx, [rbp - 0x58]
mov ebx, 0x200
mov edx, ebx
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x58], xmm1
movups xmmword [rbp - 0x30], xmm0
call fcn.14000e760
lea rdx, [0x14000f8e0]
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor r13d, r13d
mov dword [rbp - 0x20], 0x30
mov dword [rsp + 0x50], r13d
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], r13
lea r9, [rbp - 0x30]
mov dword [rsp + 0x40], 0x20
lea r8, [rbp - 0x20]
mov dword [rsp + 0x38], r13d
lea rcx, [rbp - 0x78]
mov dword [rsp + 0x30], 1
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x80
mov edx, 0x110002
mov qword [rsp + 0x20], r13
mov qword [rbp - 0x18], r13
mov dword [rbp - 8], ebx
mov qword [rbp - 0x10], rax
movdqu xmmword [rbp], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
js 0x140009e06
mov eax, dword [rbp - 0x68]
xor r9d, r9d
mov rcx, qword [rbp - 0x78]
xor r8d, r8d
mov qword [rsp + 0x40], r13
xor edx, edx
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov rcx, qword [rbp - 0x78]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebx, ebx
js 0x140009e06
lea r9, [0x14000f930]
movabs r8, 0xfffff78000000030
lea rdx, [0x14000f960]
lea rcx, [rbp - 0x58]
call fcn.140001900
mov r9, qword [rsp + 0x78]
lea rcx, [rbp - 0x58]
mov r8d, edi
xor edx, edx
call fcn.14000ac90
jmp 0x140009e26
mov qword [rbx], r13
lfence
mov rcx, qword [rbx]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
xor edx, edx
mov r15, rax
test rax, rax
jne 0x140009c61
mov r14d, 0xc000007b
jmp 0x14000a042
lfence
xor edx, edx
mov dword [rsp + 0x20], ebx
lea r9, [0x14000f880]
lea r8, [0x14000f970]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
jmp 0x140009e54
lfence
mov r9, qword [rsp + 0x78]
mov dl, 1
mov r8d, dword [rsp + 0x70]
mov rcx, qword [rbp - 0x70]
call fcn.14000ac90
xor edx, edx
mov r13d, dword [rbp + 0xe8]
test r13b, 0x10
je 0x140009ed0
mov rdi, qword [rsp + 0x68]
xorps xmm0, xmm0
mov rcx, rdi
mov qword [rbp + 0x20], rdx
mov dword [rbp + 0x38], edx
mov word [rbp + 0x3e], dx
movups xmmword [rbp + 0x10], xmm0
call qword [sym.imp.ntoskrnl.exe_PsGetProcessId]
lea r8, [rbp + 0x10]
mov word [rbp + 0x3c], 0x101
mov dword [rbp + 0x30], eax
lea rdx, [rbp + 0x20]
mov eax, dword [r15 + 0x50]
mov rcx, rdi
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x34], 0x40
call fcn.14000dbfc
xor edx, edx
mov r14d, eax
test eax, eax
js 0x14000a04e
mov rcx, qword [rbp + 0x10]
lea rbx, [rsi + 0x10]
mov qword [rbx], rcx
mov rcx, qword [rbp + 0x18]
mov qword [rsi + 0x40], rcx
jmp 0x140009f65
lfence
mov eax, 0x20b
cmp word [r15 + 0x18], ax
jne 0x140009ee5
mov rax, qword [r15 + 0x30]
jmp 0x140009ee9
mov eax, dword [r15 + 0x34]
lea rbx, [rsi + 0x10]
mov dword [rsp + 0x28], 0x40
mov qword [rbx], rax
lea rdi, [rsi + 0x40]
mov eax, dword [r15 + 0x50]
mov r9, rdi
xor r8d, r8d
mov qword [rdi], rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x1000
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov r14d, eax
xor eax, eax
test r14d, r14d
jns 0x140009f65
lfence
mov qword [rbx], rax
mov r9, rdi
mov eax, dword [r15 + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], 0x40
mov rdx, rbx
or rcx, 0xffffffffffffffff
mov qword [rdi], rax
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
xor edx, edx
mov r14d, eax
test eax, eax
js 0x14000a049
lfence
mov r8d, dword [r15 + 0x54]
mov rdx, qword [rsi + 0x18]
mov rcx, qword [rbx]
call fcn.1400026c0
mov eax, 0x10b
lea r13, [r15 + 0x108]
cmp word [r15 + 0x18], ax
jne 0x140009f92
lea r13, [r15 + 0xf8]
movzx eax, word [r15 + 6]
lea rcx, [rax + rax*4]
lea rax, [rcx*8]
add rax, r13
cmp r13, rax
jae 0x140009ff4
lea rdi, [r13 + 0x10]
test dword [rdi + 0x14], 0xe0000000
je 0x140009fd3
mov eax, dword [rdi]
test eax, eax
je 0x140009fd3
mov edx, dword [rdi + 4]
mov r8d, eax
mov ecx, dword [rdi - 4]
add rdx, qword [rsi + 0x18]
add rcx, qword [rbx]
call fcn.1400026c0
movzx eax, word [r15 + 6]
add rdi, 0x28
lea rcx, [rax + rax*4]
lea rdx, [rcx*8]
add rdx, r13
lea rax, [rdi - 0x10]
cmp rax, rdx
jb 0x140009faf
xor edx, edx
test r14d, r14d
js 0x14000a042
lfence
mov rcx, qword [rbx]
mov r9d, 0xc000007b
lea r8d, [r9 - 0x63]
call fcn.140001280
xor edx, edx
mov r14d, eax
test eax, eax
jns 0x14000a042
lfence
mov dword [rsp + 0x28], eax
lea r9, [0x14000f880]
mov rax, qword [rbp - 0x70]
lea r8, [0x14000f570]
lea ecx, [rdx + 0x4d]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
xor edx, edx
mov r13d, dword [rbp + 0xe8]
mov rdi, qword [rsp + 0x68]
mov r8, qword [rsp + 0x78]
lea rcx, [r8 + 0x20]
mov rax, qword [rcx]
cmp qword [rax + 8], rcx
jne 0x14000a2ef
mov qword [rsi], rax
lea rbx, [rsi + 0x10]
mov qword [rsi + 8], rcx
mov qword [rax + 8], rsi
mov qword [rcx], rsi
test r14d, r14d
js 0x14000a1c2
lfence
mov rcx, qword [rbx]
mov eax, 0x10b
cmp word [r15 + 0x18], ax
mov dword [rsp + 0x28], r13d
sete r9b
mov qword [rsp + 0x20], r8
xor edx, edx
mov r8, rdi
call fcn.14000b510
xor edx, edx
mov r14d, eax
test eax, eax
js 0x14000a1bd
lfence
test r13b, 0x10
je 0x14000a0d3
mov rdx, qword [rbx]
xor r8d, r8d
mov rcx, rdi
call fcn.14000eab0
mov r14d, eax
jmp 0x14000a1a9
mov eax, dword [r15 + 0x54]
lea r8, [rbp - 0x80]
mov qword [rsp + 0x20], rdx
mov r9d, 2
mov rdx, rbx
mov qword [rbp - 0x80], rax
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
mov r14d, eax
lea r13, [r15 + 0x108]
mov eax, 0x10b
cmp word [r15 + 0x18], ax
jne 0x14000a114
lea r13, [r15 + 0xf8]
movzx eax, word [r15 + 6]
lea rcx, [rax + rax*4]
lea rax, [rcx*8]
add rax, r13
cmp r13, rax
jae 0x14000a1a2
lea rdi, [r13 + 0xc]
mov ecx, dword [rdi + 0x18]
xor edx, edx
call fcn.140009610
mov ecx, dword [rdi]
lea r8, [rbp - 0x80]
add rcx, qword [rbx]
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x60], rcx
mov ecx, dword [rdi - 4]
mov qword [rbp - 0x80], rcx
or rcx, 0xffffffffffffffff
cmp eax, 1
je 0x14000a170
and qword [rsp + 0x20], 0
mov r9d, eax
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
or r14d, eax
jmp 0x14000a17c
mov r9d, 0x4000
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
movzx eax, word [r15 + 6]
add rdi, 0x28
lea rcx, [rax + rax*4]
lea rdx, [rcx*8]
add rdx, r13
lea rax, [rdi - 0xc]
cmp rax, rdx
jb 0x14000a131
mov rdi, qword [rsp + 0x68]
mov r13d, dword [rbp + 0xe8]
xor edx, edx
test r14d, r14d
js 0x14000a1bd
lfence
mov rcx, qword [rbx]
call fcn.14000966c
xor edx, edx
mov r8, qword [rsp + 0x78]
bt r13d, 0xc
jb 0x14000a1e2
test r14d, r14d
js 0x14000a1e2
cmp byte [rsp + 0x60], dl
jne 0x14000a1e2
lfence
mov rdx, qword [rbx]
mov rcx, r8
call fcn.14000971c
mov rcx, qword [rsi + 0x18]
xor r15d, r15d
test rcx, rcx
je 0x14000a1fd
mov edx, 0x656e6f42
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [rsi + 0x18], r15
test r14d, r14d
js 0x14000a24c
test r12, r12
je 0x14000a2e7
movups xmm0, xmmword [rsi]
movups xmmword [r12], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [r12 + 0x10], xmm1
movups xmm0, xmmword [rsi + 0x20]
movups xmmword [r12 + 0x20], xmm0
movups xmm1, xmmword [rsi + 0x30]
movups xmmword [r12 + 0x30], xmm1
movups xmm0, xmmword [rsi + 0x40]
movups xmmword [r12 + 0x40], xmm0
movsd xmm1, qword [rsi + 0x50]
movsd qword [r12 + 0x50], xmm1
jmp 0x14000a2e7
lfence
mov rax, qword [rsi]
cmp qword [rax + 8], rsi
jne 0x14000a2ef
mov rcx, qword [rsi + 8]
cmp qword [rcx], rsi
jne 0x14000a2ef
lfence
mov qword [rcx], rax
mov qword [rax + 8], rcx
cmp qword [rbx], r15
je 0x14000a2cf
lfence
test r13b, 0x10
je 0x14000a2b4
xorps xmm0, xmm0
mov rcx, rdi
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
call qword [sym.imp.ntoskrnl.exe_PsGetProcessId]
lea r8, [rbp + 0x60]
mov word [rbp + 0x5c], 0x100
lea rdx, [rbp + 0x40]
mov dword [rbp + 0x50], eax
mov rcx, rdi
call fcn.14000dbfc
jmp 0x14000a2cf
mov r9d, 0x8000
mov qword [rbp - 0x48], r15
lea r8, [rbp - 0x48]
mov rdx, rbx
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
lea rcx, [rsi + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov edx, 0x656e6f42
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, r14d
jmp 0x140009bf2
mov ecx, 3
int 0x29
int3