Function at 0x140001780
Capabilities:
Access peb ldr_data
Create process on windows
Get process filename
Parse pe header
Terminate process

Disassembly:
push rsi
push r12
sub rsp, 0x108
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xf0], rax
lea rcx, str.___Unhooking_with_Peruns_fart_technique_n
call fcn.140001230
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rdx, str.C:WindowsSystem32_notepad.exe
xor r12d, r12d
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], r12
xor r8d, r8d
mov qword [rsp + 0x30], r12
xor ecx, ecx
mov dword [rsp + 0x28], 0x80000
mov dword [rsp + 0x20], r12d
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xd0], xmm0
movups xmmword [rsp + 0xe0], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x20]
mov rcx, qword [rax]
mov eax, 0x5a4d
mov rsi, qword [rcx + 0x20]
cmp word [rsi], ax
je 0x14000185d
lea rcx, str._n____Bad_DOS_Signature_n
call fcn.140001230
jmp 0x1400019ee
mov qword [rsp + 0x130], rdi
movsxd rdi, dword [rsi + 0x3c]
add rdi, rsi
cmp dword [rdi], 0x4550
je 0x140001885
lea rcx, str._n____Bad_NT_Signature_n
call fcn.140001230
jmp 0x1400019e6
mov edx, dword [rdi + 0x50]
lea rcx, str.___Retrieving_ntdll_module_size_:__lu_n
mov qword [rsp + 0x120], rbx
mov qword [rsp + 0x128], rbp
mov qword [rsp + 0x138], r14
mov qword [rsp + 0x100], r15
call fcn.140001230
mov ebx, dword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x50]
mov r9d, ebx
mov r15, rax
mov qword [rsp + 0x70], r12
lea rax, [rsp + 0x70]
mov r8, r15
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movzx r10d, word [rdi + 0x14]
mov rbx, r12
movzx r9d, word [rdi + 6]
add r10, rdi
mov r14, r12
mov rbp, r12
mov r8d, r12d
lea rdx, [r10 + 0x18]
test r9, r9
je 0x140001958
mov rcx, r12
nop dword [rax]
mov eax, dword [rdx]
or eax, 0x20202020
cmp eax, 0x7865742e
je 0x14000193f
inc r8d
inc rcx
add rdx, 0x28
cmp rcx, r9
jl 0x140001920
jmp 0x140001958
movsxd rax, r8d
lea rcx, [rax + rax*4]
mov eax, dword [r10 + rcx*8 + 0x24]
mov ebp, dword [r10 + rcx*8 + 0x20]
lea rbx, [rax + rsi]
lea r14, [rax + r15]
mov eax, dword [r14]
mov r15, qword [rsp + 0x100]
cmp dword [rbx], eax
je 0x140001975
lea rcx, str._n____Bad_section_address_n
call fcn.140001230
jmp 0x1400019ce
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], r12d
mov r8d, 0x80
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, rbp
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x68]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, str.___Ntdll_module_restored_n
call fcn.140001230
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbx, qword [rsp + 0x120]
mov rbp, qword [rsp + 0x128]
mov r14, qword [rsp + 0x138]
mov rdi, qword [rsp + 0x130]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140001b60
add rsp, 0x108
pop r12
pop rsi
ret