Function at 0x40d240
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446190
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x45c3a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor bl, bl
lea ecx, [edi + 0x10]
mov byte [ebp - 0x51], bl
call fcn.0040ae10
mov edi, dword [edi + 0x14]
mov esi, dword [edi]
cmp esi, edi
je 0x40d45e
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x44], eax
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x40], ax
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x50], vtable.CProcessInfo.0
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
call fcn.004036a0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push str.KOSinj.exe
push eax
call fcn.0041bcd7
add esp, 8
test eax, eax
jne 0x40d430
mov byte [ebp - 0x51], 1
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
push dword [ebp - 0x4c]
push eax
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x40d31d
push eax
lea ecx, [ebp - 0x28]
call fcn.0040b050
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
push str.CSessionMonitor::IsInjectorRunning
push str.Process_found___u____s_
push 0x462e98
call fcn.004025d0
add esp, 0x14
cmp dword [ebp - 0x18], 0
jne 0x40d373
cmp dword [ebp - 0x14], 8
jb 0x40d35a
push dword [ebp - 0x28]
call fcn.0041b8e3
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x40d430
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.CSessionMonitor::IsInjectorRunning
push str.Verifying_digital_signature...___s_
push 0x462e98
call fcn.004025d0
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.00402120
test al, al
jne 0x40d408
cmp dword [ebp - 0x14], 8
lea ebx, [ebp - 0x28]
cmovae ebx, dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.CSessionMonitor::IsInjectorRunning
push str.Failed_to_verify_digital_signature.___s___0x_08X_
push 0x462e98
call fcn.004025d0
add esp, 0x14
push str.CSessionMonitor::IsInjectorRunning
push str.Killing_suspicious_process...
push 0x462e98
call fcn.004025d0
add esp, 0xc
push dword [ebp - 0x4c]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x40d41f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d41f
push str.CSessionMonitor::IsInjectorRunning
push str.Successfully_verified
push 0x462e98
call fcn.004025d0
add esp, 0xc
cmp dword [ebp - 0x14], 8
jb 0x40d430
push dword [ebp - 0x28]
call fcn.0041b8e3
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x50], vtable.CProcessInfo.0
jb 0x40d44f
push dword [ebp - 0x40]
call fcn.0041b8e3
add esp, 4
mov esi, dword [esi]
cmp esi, edi
jne 0x40d287
mov al, byte [ebp - 0x51]
jmp 0x40d460
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b8d4
mov esp, ebp
pop ebp
ret