Function at 0x41ece0
Capabilities:
Create process on windows
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5996fd
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x5da084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41ed25
xor al, al
jmp 0x41ee09
lea eax, [ebp - 0x290]
mov dword [ebp - 0x290], edi
mov dword [ebp - 0x348], eax
lea eax, [ebp - 0x284]
mov dword [ebp - 4], 0
push eax
push edi
mov dword [ebp - 0x284], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x41ed65
mov byte [ebp - 0x285], al
jmp 0x41edf7
lea eax, [ebp - 0x294]
mov dword [ebp - 0x34c], eax
push dword [ebp - 0x27c]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x294], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x41edcf
mov edx, str.CoreSync.exe
lea ecx, [ebp - 0x260]
nop
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x41edc6
test ax, ax
je 0x41edc2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x41edc6
add ecx, 4
add edx, 4
test ax, ax
jne 0x41eda0
xor eax, eax
jmp 0x41edcb
sbb eax, eax
or eax, 1
test eax, eax
je 0x41ee24
mov byte [ebp - 4], 0
test esi, esi
je 0x41edde
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x284]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x41ed71
mov byte [ebp - 0x285], 1
push dword [ebp - 0x290]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x285]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056eb71
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x5dfbe0]
test ecx, ecx
je 0x41eea3
mov eax, dword [ecx]
push 3
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x41eea3
push ecx
lea ecx, [ebp - 0x344]
call fcn.00430ce0
mov dword [ebp - 0x2ac], str.customhook
mov dword [ebp - 0x2a8], 3
mov dword [ebp - 0x2a4], str.C:jenkins_slaveDailymain_metaDesktopWinmain_rebar_buildinstallerCoreSyncCustomHookwinCoreSyncCustomHook.cpp
mov dword [ebp - 0x2a0], 0x11f
mov dword [ebp - 0x29c], str.killCoreSync
mov byte [ebp - 0x298], 1
mov edx, str.Asking_CoreSync_process_to_quit
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x344]
call fcn.00416960
lea ecx, [ebp - 0x344]
mov byte [ebp - 4], 1
call fcn.00430bd0
push 0xd
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x41efc5
mov ecx, dword [0x5dfbe0]
test ecx, ecx
je 0x41ef33
mov eax, dword [ecx]
push 3
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x41ef33
push ecx
lea ecx, [ebp - 0x344]
call fcn.00430ce0
mov dword [ebp - 0x2ac], str.customhook
mov dword [ebp - 0x2a8], 3
mov dword [ebp - 0x2a4], str.C:jenkins_slaveDailymain_metaDesktopWinmain_rebar_buildinstallerCoreSyncCustomHookwinCoreSyncCustomHook.cpp
mov dword [ebp - 0x2a0], 0x123
mov dword [ebp - 0x29c], str.killCoreSync
mov byte [ebp - 0x298], 1
mov edx, str.Successfully_terminated_Coresync__about_to_wait_to_double_check
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x344]
call fcn.00416960
lea ecx, [ebp - 0x344]
mov byte [ebp - 4], 1
call fcn.00430bd0
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x5dfbe0]
cmp eax, 0x102
jne 0x41f10f
test ecx, ecx
je 0x41efc5
mov eax, dword [ecx]
push 3
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x41efc5
push ecx
lea ecx, [ebp - 0x344]
call fcn.00430ce0
mov dword [ebp - 0x2ac], str.customhook
mov dword [ebp - 0x2a8], 3
mov dword [ebp - 0x2a4], str.C:jenkins_slaveDailymain_metaDesktopWinmain_rebar_buildinstallerCoreSyncCustomHookwinCoreSyncCustomHook.cpp
mov dword [ebp - 0x2a0], 0x127
mov dword [ebp - 0x29c], str.killCoreSync
mov byte [ebp - 0x298], 1
mov edx, str.Wait_for_CoreSync_process_quit_timed_out_
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x344]
call fcn.00416960
lea ecx, [ebp - 0x344]
call fcn.00430bd0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov eax, dword [str.__T__F]
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x40], eax
mov ax, word [0x5bd858]
mov dword [ebp - 0x30], 6
mov dword [ebp - 0x2c], 0xf
mov word [ebp - 0x3c], ax
push 6
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 7
push eax
push 0x19
push str.taskkill__IM_CoreSync.exe
push ecx
push dword [ebp - 0x28c]
lea ecx, [ebp - 0x58]
call fcn.00410950
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x41f056
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41f04c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f298
push ecx
push edx
call fcn.0056ebaf
add esp, 8
movups xmm1, xmmword [ebp - 0x58]
lea ecx, [ebp - 0x28]
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x18], xmm0
cmp dword [ebp - 0x14], 0x10
movd eax, xmm1
push 0
movups xmmword [ebp - 0x28], xmm1
cmovae ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [0x5dfbe0]
cmp eax, 0xffffffff
je 0x41f190
test ecx, ecx
je 0x41f103
mov eax, dword [ecx]
push 3
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x41f103
push ecx
lea ecx, [ebp - 0x344]
call fcn.00430ce0
mov dword [ebp - 0x2ac], str.customhook
mov dword [ebp - 0x2a8], 3
mov dword [ebp - 0x2a4], str.C:jenkins_slaveDailymain_metaDesktopWinmain_rebar_buildinstallerCoreSyncCustomHookwinCoreSyncCustomHook.cpp
mov dword [ebp - 0x2a0], 0x135
mov dword [ebp - 0x29c], str.killCoreSync
mov byte [ebp - 0x298], 1
mov edx, str.Successfully_terminated_Coresync
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x344]
call fcn.00416960
lea ecx, [ebp - 0x344]
call fcn.00430bd0
mov byte [ebp - 0x285], 1
jmp 0x41f20c
test ecx, ecx
je 0x41f184
mov eax, dword [ecx]
push 3
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x41f184
push ecx
lea ecx, [ebp - 0x344]
call fcn.00430ce0
mov dword [ebp - 0x2ac], str.customhook
mov dword [ebp - 0x2a8], 3
mov dword [ebp - 0x2a4], str.C:jenkins_slaveDailymain_metaDesktopWinmain_rebar_buildinstallerCoreSyncCustomHookwinCoreSyncCustomHook.cpp
mov dword [ebp - 0x2a0], 0x12b
mov dword [ebp - 0x29c], str.killCoreSync
mov byte [ebp - 0x298], 1
mov edx, str.CoreSync_exited_with_waiting.
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x344]
call fcn.00416960
lea ecx, [ebp - 0x344]
call fcn.00430bd0
mov byte [ebp - 0x285], 1
jmp 0x41f27e
test ecx, ecx
je 0x41f205
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x41f205
push ecx
lea ecx, [ebp - 0x344]
call fcn.00430ce0
mov dword [ebp - 0x2ac], str.customhook
mov dword [ebp - 0x2a8], 1
mov dword [ebp - 0x2a4], str.C:jenkins_slaveDailymain_metaDesktopWinmain_rebar_buildinstallerCoreSyncCustomHookwinCoreSyncCustomHook.cpp
mov dword [ebp - 0x2a0], 0x138
mov dword [ebp - 0x29c], str.killCoreSync
mov byte [ebp - 0x298], 1
mov edx, str.Unable_to_terminate_CoreSync_
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x344]
call fcn.00416960
lea ecx, [ebp - 0x344]
call fcn.00430bd0
mov byte [ebp - 0x285], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x41f23c
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41f232
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f298
push ecx
push edx
call fcn.0056ebaf
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x41f26c
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41f262
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f298
push ecx
push edx
call fcn.0056ebaf
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x294]
test eax, eax
je 0x41edf7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41edf7
call fcn.00578112
int3