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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43b6b6
mov eax, dword fs:[0]
push eax
sub esp, 0x670
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x680]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x206
mov esi, ecx
lea ecx, [esp + 0x26a]
push ebx
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], ebx
mov word [esp + 0x270], bx
call fcn.00420090
push 0x228
lea edx, [esp + 0x48]
push ebx
push edx
mov dword [esp + 0x4c], ebx
call fcn.00420090
mov eax, dword [0x44bcf4]
mov edx, dword [eax + 0xc]
add esp, 0x18
mov ecx, 0x44bcf4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x688], ebx
call fcn.00414ed0
cmp dword [0x44bbf0], 0xffffffff
jne 0x416857
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x41675b
push 0x44bbf0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
jne 0x416857
mov dword [0x44bbf0], ebx
cmp esi, ebx
je 0x416781
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416770
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x18]
call fcn.00401ec0
mov edi, dword [esp + 0x14]
push edi
push str.KillProcessByPath_path:_ws
push 0x44cfe0
call fcn.00412920
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
je 0x416a81
lea ecx, [esp + 0x34]
push ecx
push esi
mov dword [esp + 0x3c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x416a7a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x30]
je 0x416a50
test eax, eax
je 0x416a50
cmp eax, 4
je 0x416a50
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [esp + 0x18], eax
je 0x416a50
call fcn.00415030
test eax, eax
je 0x4169bc
mov eax, dword [0x44cf34]
test eax, eax
je 0x4169bc
mov ecx, dword [esp + 0x18]
push 0x104
lea edx, [esp + 0x268]
push edx
push ecx
call eax
jmp 0x4169db
cmp dword [0x44bbf0], ebx
je 0x416761
mov eax, dword [0x44bcf4]
mov edx, dword [eax + 0xc]
mov ecx, 0x44bcf4
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0x206
lea eax, [esp + 0x472]
push ebx
mov byte [esp + 0x690], 1
push eax
mov word [esp + 0x478], bx
call fcn.00420090
movzx ecx, word [esi]
push ecx
push 0x43fd04
lea edi, [esp + 0x30]
call fcn.00402160
mov edi, dword [esp + 0x30]
add esp, 0x14
push 0x104
lea edx, [esp + 0x470]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [esp + 0x46c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4168d3
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x46c]
mov ebx, eax
push ecx
lea eax, [esp + 0x18]
call fcn.00401ec0
lea edx, [esp + 0x14]
push edx
mov eax, 1
lea ecx, [esp + 0x2c]
call fcn.0040bc60
push eax
mov ecx, 0x43fc94
call fcn.0040bcd0
mov bl, al
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416938
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41694d
push 1
push 0x43fc94
lea ecx, [esp + 0x1c]
push ecx
call fcn.00402020
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416952
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x41698f
add esi, 6
jne 0x41696f
xor eax, eax
jmp 0x416983
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416974
sub eax, edx
sar eax, 1
push eax
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.00402020
lea eax, [edi - 0x10]
mov byte [esp + 0x688], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41678b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41678b
mov eax, dword [0x44cf30]
test eax, eax
je 0x416a3d
mov ecx, dword [esp + 0x18]
push 0x104
lea edx, [esp + 0x268]
push edx
push 0
push ecx
call eax
test eax, eax
je 0x416a3d
mov ecx, dword [edi - 0xc]
cmp eax, ecx
jbe 0x416a3d
push ecx
lea edx, [esp + 0x268]
push edx
push edi
call fcn.0041e1cb
add esp, 0xc
test eax, eax
jne 0x416a3d
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x264]
push ecx
push edx
mov edi, eax
call ebx
push eax
push edi
push str.Terminate_Process_return:_d__error:_d__pid:_d__path:_ws
push 0x44cfe0
call fcn.00412920
add esp, 0x18
test edi, edi
mov edi, dword [esp + 0x14]
jne 0x416a38
add dword [esp + 0x20], 1
jmp 0x416a3d
add dword [esp + 0x24], 1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x34]
push ecx
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4167eb
mov eax, dword [esp + 0x18]
test eax, eax
je 0x416a76
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x416a8f
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x688], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416ab6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
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.0041cb94
mov esp, ebp
pop ebp
ret