Function at 0x402240
Capabilities:
Reference sql statements
Reference wmi statements
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438478
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x449080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.00402170
add esp, 8
mov dword [ebp - 4], 0
push 0x43a77c
lea edx, [ebp - 0x40]
push edx
push str.SELECT__FROM_Win32_Process_WHERE_ExecutablePath_LIKE__
lea eax, [ebp - 0x58]
push eax
call fcn.004062c0
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x80]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00406280
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.0040baa0
nop
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
mov dword [ebp - 0x9c], eax
lea ecx, [ebp - 0x28]
call fcn.00411790
push eax
lea ecx, [ebp - 0xa4]
call fcn.0040ae70
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x88]
call fcn.0040ca20
mov dword [ebp - 0x94], eax
push 0x43a7fc
lea ecx, [ebp - 0xa0]
call fcn.0040add0
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x90]
call fcn.0040ca20
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0x30
mov ecx, dword [ebp - 0x94]
push ecx
mov edx, dword [ebp - 0x98]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x9c]
test eax, eax
jl 0x40237a
mov dword [ebp - 0x70], 1
jmp 0x402381
mov dword [ebp - 0x70], 0
mov cl, byte [ebp - 0x70]
mov byte [ebp - 0x59], cl
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa0]
call fcn.0040be20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa4]
call fcn.0040be20
movzx edx, byte [ebp - 0x59]
test edx, edx
je 0x4025a3
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x60], 0
je 0x402594
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0xa8], edx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x64]
push ecx
push 1
push 0xffffffffffffffff
mov edx, dword [ebp - 0x60]
push edx
call dword [ebp - 0xa8]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x74], 0
jne 0x4023fb
jmp 0x402594
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0xac], edx
push 0
push 0
lea eax, [ebp - 0xd8]
push eax
push 0
push 0x43a800
mov ecx, dword [ebp - 0x64]
push ecx
call dword [ebp - 0xac]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jl 0x402580
mov edx, dword [ebp - 0xd0]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x402572
push 0
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4024b7
push 0x43a870
push 0x44a1f8
call fcn.00405eb0
add esp, 8
push str.Successfully_terminated_process_with_PID:
push eax
call fcn.00405eb0
add esp, 8
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0x68]
push edx
mov ecx, dword [ebp - 0xb0]
call fcn.0040c630
mov dword [ebp - 0xb4], eax
push 0x4093e0
mov ecx, dword [ebp - 0xb4]
call fcn.0040c800
nop
jmp 0x402567
push 0x43a908
push 0x44a2b8
call fcn.00405eb0
add esp, 8
push str.Failed_to_terminate_process_with_PID:
push eax
call fcn.00405eb0
add esp, 8
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0xb8]
call fcn.0040c630
push str.._Error_code:
push eax
call fcn.00405eb0
add esp, 8
mov dword [ebp - 0xc0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
push ecx
mov ecx, dword [ebp - 0xc0]
call fcn.0040c630
push 0x43a884
push eax
call fcn.00405eb0
add esp, 8
mov dword [ebp - 0xc4], eax
push 0x17d
mov ecx, dword [ebp - 0xc4]
call fcn.0040c250
push 0x43a880
push eax
call fcn.00405eb0
add esp, 8
mov dword [ebp - 0xc8], eax
push 0x4093e0
mov ecx, dword [ebp - 0xc8]
call fcn.0040c800
nop
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [edx + 8]
call ecx
nop
jmp 0x4023bf
mov edx, dword [ebp - 0x60]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [eax + 8]
call edx
nop
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040baa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040baa0
nop
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004173a4
mov esp, ebp
pop ebp
ret