Function at 0x414320
Capabilities:
Enumerate gui resources
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4faab0
mov eax, dword fs:[0]
push eax
mov eax, 0x1130
call fcn.00401acd
mov eax, dword [0x533d80]
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 ax, word [0x500ce0]
xor ebx, ebx
movq xmm0, qword [str._unknown_]
push 0xfa
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x10a]
push ebx
push eax
movq qword [ebp - 0x114], xmm0
call fcn.00402b12
add esp, 0xc
lea eax, [ebp - 0x1134]
push eax
push 0x1000
lea eax, [ebp - 0x1114]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4145f6
mov eax, dword [ebp - 0x1134]
xor edi, edi
shr eax, 2
mov dword [ebp - 0x1118], eax
mov dword [ebp - 0x111c], edi
test eax, eax
je 0x4145f4
nop word [eax + eax]
cmp dword [ebp + edi*4 - 0x1114], 0
je 0x4145e5
mov esi, dword [ebp + edi*4 - 0x1114]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
je 0x4145df
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4145d2
lea eax, [ebp - 0x113c]
push eax
push 4
lea eax, [ebp - 0x1138]
push eax
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4145d2
push 0x104
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x1138]
push edi
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x4145d2
lea eax, [ebp - 0x114]
push eax
push str.smmon.exe
call fcn.00403a49
add esp, 8
test eax, eax
jne 0x4145d2
mov eax, dword [ebp - 0x111c]
mov eax, dword [ebp + eax*4 - 0x1114]
mov dword [ebp - 0x1130], eax
push 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x1128], 0
mov dword [ebp - 0x1124], 0
mov dword [ebp - 0x1120], 0
call fcn.0040207c
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x112c]
mov dword [eax + 4], 0
mov dword [ebp - 0x112c], eax
mov dword [eax], ecx
lea eax, [ebp - 0x1130]
push eax
push 0x403a67
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x4145a8
mov ecx, dword [ebp - 0x1124]
xor esi, esi
mov edx, dword [ebp - 0x1128]
mov eax, ecx
sub eax, edx
sar eax, 2
test eax, eax
je 0x41457a
nop word [eax + eax]
sub ecx, edx
sar ecx, 2
cmp esi, ecx
jb 0x414553
push str.vector_subscript_out_of_range
push 0x5001e0
push 0
push 0x766
push 0x501a80
push 2
call fcn.00404fac
add esp, 0x18
cmp eax, 1
jne 0x41452f
int3
push 0
push 0x766
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.38.33130include_vector
push 0x500a74
push str._vector_subscript_out_of_range_
call fcn.00405178
mov edx, dword [ebp - 0x1128]
add esp, 0x14
push 0
push 0
push 0x10
push dword [edx + esi*4]
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 0x1124]
inc esi
mov edx, dword [ebp - 0x1128]
mov eax, ecx
sub eax, edx
sar eax, 2
cmp esi, eax
jb 0x414500
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7d0
push edi
call esi
test eax, eax
je 0x4145a1
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x7d0
push edi
call esi
test eax, eax
jne 0x4145c7
mov ebx, 1
jmp 0x4145c7
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x7d0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov eax, 1
cmove ebx, eax
lea ecx, [ebp - 0x112c]
call fcn.004050fb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x111c]
mov eax, dword [ebp - 0x1118]
inc edi
mov dword [ebp - 0x111c], edi
cmp edi, eax
jb 0x4143d0
mov eax, ebx
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.00402a5e
mov esp, ebp
pop ebp
ret