Function at 0x4264dc
Capabilities:
Enumerate processes
Get disk information
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a4bac
mov eax, dword fs:[0]
push eax
sub esp, 0x670
mov eax, dword [0x4d3a00]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
push edi
mov eax, dword [0x4d3a00]
xor eax, esp
push eax
lea eax, [esp + 0x680]
mov dword fs:[0], eax
mov dword [esp + 0x2c], edx
mov edi, ecx
push str.KillProcessByPath_Begin_r_n
push 0x4d8930
call fcn.00427a5d
xor eax, eax
xor esi, esi
push 0x206
mov word [esp + 0x270], ax
mov ebx, esi
lea eax, [esp + 0x272]
mov dword [esp + 0x24], esi
push esi
push eax
call fcn.00482250
add esp, 0x14
mov dword [esp + 0x34], esi
lea eax, [esp + 0x38]
push 0x228
push esi
push eax
call fcn.00482250
add esp, 0xc
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.0040224a
push eax
lea ecx, [esp + 0x20]
call fcn.0041217c
mov dword [esp + 0x688], 1
mov dword [esp + 0x28], esi
call fcn.0042635a
call fcn.00426490
test eax, eax
je 0x426685
call fcn.0040224a
push eax
lea ecx, [esp + 0x18]
call fcn.0041217c
mov byte [esp + 0x688], 3
xor eax, eax
push 0x206
mov word [esp + 0x470], ax
lea eax, [esp + 0x472]
push esi
push eax
call fcn.00482250
movzx eax, word [edi]
add esp, 0xc
push eax
lea eax, [esp + 0x18]
push 0x4b9704
push eax
call fcn.0041d4c7
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x478]
add esp, 0xc
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea ecx, [esp + 0x46c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x18]
jne 0x426617
sub ecx, edx
lea eax, [esp + 0x46c]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00412275
lea ecx, [esp + 0x1c]
call fcn.00426068
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x18]
jne 0x426648
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x426673
add edi, 6
mov ecx, edi
call fcn.0040465a
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.004130ec
mov byte [esp + 0x688], 1
lea ecx, [esi - 0x10]
call fcn.00411bb2
jmp 0x42668f
push edi
lea ecx, [esp + 0x20]
call fcn.0041210a
mov esi, dword [esp + 0x1c]
push esi
push str.KillProcessByPath_path:_ws
push 0x4d8930
call fcn.00427a5d
add esp, 0xc
xor eax, eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0xffffffff
je 0x426811
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x42680a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x3c]
cmp eax, ecx
je 0x4268ee
test eax, eax
je 0x4268ee
cmp eax, 4
je 0x4268ee
push eax
xor eax, eax
push eax
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4268ee
call fcn.00426490
test eax, eax
je 0x426742
mov eax, dword [0x4d79a0]
test eax, eax
je 0x426742
push 0x104
lea ecx, [esp + 0x268]
push ecx
push ebx
call eax
jmp 0x426762
mov eax, dword [0x4d79a8]
test eax, eax
je 0x4268e3
push 0x104
lea ecx, [esp + 0x268]
push ecx
xor ecx, ecx
push ecx
push ebx
call eax
test eax, eax
je 0x4268e3
cmp eax, dword [esi - 0xc]
jb 0x4268e3
push dword [esi - 0xc]
lea eax, [esp + 0x268]
push eax
push esi
call fcn.0047d706
add esp, 0xc
test eax, eax
jne 0x4268e3
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x42688d
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x426872
cmp dword [esp + 0x18], 0x103
jne 0x4268e3
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x264]
push eax
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
xor eax, eax
push eax
push str.Terminate_Process_return:_d__error:_d__pid:_d__path:_ws
push 0x4d8930
call fcn.00427a5d
add esp, 0x18
test ebx, ebx
je 0x42680a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x42681f
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.KillProcessByPath_End_r_n
push 0x4d8930
call fcn.00427a5d
pop ecx
pop ecx
or dword [esp + 0x688], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00411bb2
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x680]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetExitCodeProcess_errcode_d_r_n
push 0x4d8930
call fcn.00427a5d
add esp, 0xc
jmp 0x4268e3
inc dword [esp + 0x20]
push 0xbb8
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
test edi, edi
jne 0x4268b6
push str.Terminate_process_WaitForSingleObject_WAIT_OBJECT_0
push 0x4d8930
call fcn.00427a5d
pop ecx
pop ecx
jmp 0x4268df
cmp edi, 0x102
jne 0x4268c5
push str.Terminate_process_WaitForSingleObject_WAIT_TIMEOUT
jmp 0x4268a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Terminate_process_WaitForSingleObject_dwRet_d_errcode_d_r_n
push 0x4d8930
call fcn.00427a5d
add esp, 0x10
mov edi, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ebx, eax
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4267ff
mov ecx, dword [esp + 0x30]
jmp 0x4266e8