Function at 0x49d163
Capabilities:
Enumerate processes
Get disk information
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push str.KillProcessByPath_Begin_r_n
push 0x55b31c
mov dword [ebp - 0x65c], eax
call fcn.004a9913
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
mov ebx, esi
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x658], esi
push esi
push eax
call fcn.004bf240
push 0x228
lea eax, [ebp - 0x63c]
mov dword [ebp - 0x640], esi
push esi
push eax
call fcn.004bf240
add esp, 0x20
mov dword [ebp - 0x64c], esi
mov dword [ebp - 0x654], esi
call fcn.00420bd2
push eax
lea ecx, [ebp - 0x644]
call fcn.00423e41
mov dword [ebp - 0x650], esi
call fcn.0049fbf1
call fcn.0049ce3b
test eax, eax
je 0x49d2d1
call fcn.00420bd2
push eax
lea ecx, [ebp - 0x648]
call fcn.00423e41
xor eax, eax
push 0x206
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push esi
push eax
call fcn.004bf240
movzx eax, word [edi]
push eax
lea eax, [ebp - 0x648]
push 0x4fc7e4
push eax
call fcn.00424501
mov esi, dword [ebp - 0x648]
lea eax, [ebp - 0x414]
add esp, 0x18
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [ebp - 0x414]
push eax
call fcn.004241d7
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x644]
call fcn.0042415e
lea eax, [ebp - 0x644]
push eax
call fcn.0049dfdb
pop ecx
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x658]
jne 0x49d298
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x49d2c7
add edi, 6
push edi
call fcn.004241d7
pop ecx
push eax
push edi
lea ecx, [ebp - 0x644]
call fcn.0043be5f
lea ecx, [esi - 0x10]
call fcn.004206ab
jmp 0x49d2e5
push edi
call fcn.004241d7
pop ecx
push eax
push edi
lea ecx, [ebp - 0x644]
call fcn.0042415e
mov esi, dword [ebp - 0x644]
push esi
push str.KillProcessByPath_path:_ws
push 0x55b31c
call fcn.004a9913
add esp, 0xc
xor eax, eax
push eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x644], edi
cmp edi, 0xffffffff
je 0x49d484
lea eax, [ebp - 0x640]
mov dword [ebp - 0x640], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x49d47d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
mov dword [ebp - 0x658], ecx
mov eax, dword [ebp - 0x638]
cmp eax, ecx
je 0x49d56b
test eax, eax
je 0x49d56b
cmp eax, 4
je 0x49d56b
push eax
xor eax, eax
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x49d56b
call fcn.0049ce3b
test eax, eax
je 0x49d3a2
mov ecx, dword [0x55b260]
test ecx, ecx
je 0x49d3a2
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call ecx
jmp 0x49d3c1
mov eax, dword [0x55b25c]
test eax, eax
je 0x49d560
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
xor ecx, ecx
push ecx
push ebx
call eax
test eax, eax
je 0x49d560
cmp dword [ebp + 0x10], 0
je 0x49d50c
cmp eax, dword [esi - 0xc]
jb 0x49d560
push dword [esi - 0xc]
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.004bf31b
add esp, 0xc
test eax, eax
jne 0x49d560
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x49d4d2
mov dword [ebp - 0x648], eax
lea eax, [ebp - 0x648]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x49d525
cmp dword [ebp - 0x648], 0x103
jne 0x49d560
mov dword [ebp - 0x654], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x650], eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x638]
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 0x55b31c
call fcn.004a9913
add esp, 0x18
test ebx, ebx
je 0x49d47d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x65c]
test ecx, ecx
je 0x49d496
mov eax, dword [ebp - 0x64c]
mov dword [ecx], eax
push dword [ebp - 0x650]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.KillProcessByPath_End_r_n
push 0x55b31c
call fcn.004a9913
pop ecx
pop ecx
lea ecx, [esi - 0x10]
call fcn.004206ab
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x654]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
inc dword [ebp - 0x64c]
push 0xbb8
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
test edi, edi
jne 0x49d4fd
push str.Terminate_process_WaitForSingleObject_WAIT_OBJECT_0
push 0x55b31c
call fcn.004a9913
pop ecx
pop ecx
jmp 0x49d55a
cmp edi, 0x102
jne 0x49d540
push str.Terminate_process_WaitForSingleObject_WAIT_TIMEOUT
jmp 0x49d4ef
cmp eax, dword [esi - 0xc]
jne 0x49d560
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.004bcbf4
pop ecx
pop ecx
jmp 0x49d3ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetExitCodeProcess_errcode_d_r_n
push 0x55b31c
call fcn.004a9913
add esp, 0xc
jmp 0x49d560
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Terminate_process_WaitForSingleObject_dwRet_d_errcode_d_r_n
push 0x55b31c
call fcn.004a9913
add esp, 0x10
mov edi, dword [ebp - 0x644]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ebx, eax
lea eax, [ebp - 0x640]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x49d472
mov ecx, dword [ebp - 0x658]
jmp 0x49d346