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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d0ab
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x54b144]
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 edi, ecx
mov dword [ebp - 0x65c], edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004dcc10
push 0x22c
lea eax, [ebp - 0x64c]
push ebx
push eax
call fcn.004dcc10
add esp, 0x18
mov dword [ebp - 0x658], ebx
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x490ade
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x650], eax
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x54f140], ebx
jne 0x490708
cmp dword [0x54f144], ebx
jne 0x490708
push str.Psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x490702
push 0x534884
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x53489c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x54f140], eax
call esi
mov dword [0x54f144], eax
jmp 0x490708
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [0x54bbfc]
cmp eax, 0xffffffff
jne 0x490742
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call esi
mov esi, eax
test esi, esi
je 0x490757
push 0x54bbfc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x490757
mov eax, dword [0x54bbfc]
test eax, eax
je 0x490761
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x490ae8
jmp 0x490770
mov dword [0x54bbfc], 0
test edi, edi
jne 0x4908dc
xor ecx, ecx
jmp 0x4908f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x654], eax
push 0x208
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.004dcc10
movzx eax, word [edi]
push eax
lea eax, [ebp - 0x654]
push 0x534a0c
push eax
call fcn.0048cb40
mov esi, dword [ebp - 0x654]
lea eax, [ebp - 0x420]
add esp, 0x18
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4907d0
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x650]
call fcn.0044f440
push 1
lea eax, [ebp - 0x660]
push eax
lea ecx, [ebp - 0x650]
call fcn.0048bd20
mov ecx, 0x5329c0
mov eax, dword [eax]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x490836
test dx, dx
je 0x490832
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x490836
add eax, 4
add ecx, 4
test dx, dx
jne 0x490810
xor edi, edi
jmp 0x49083b
sbb edi, edi
or edi, 1
mov edx, dword [ebp - 0x660]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x490859
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x49086f
push 1
push 0x5329c0
lea ecx, [ebp - 0x650]
call fcn.0048c350
mov edx, dword [ebp - 0x65c]
mov ecx, edx
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490880
sub ecx, edi
sar ecx, 1
cmp ecx, 3
jbe 0x4908be
add edx, 6
jne 0x49089d
xor ecx, ecx
jmp 0x4908b1
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4908a2
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x650]
call fcn.0048c350
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4908fd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4908fd
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4908e1
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x650]
call fcn.0044f440
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, dword [ebp - 0x650]
mov edi, eax
mov dword [ebp - 0x65c], edi
cmp edi, 0xffffffff
je 0x490a9d
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x64c], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x490a96
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x654], eax
nop dword [eax + eax]
mov ecx, dword [ebp - 0x644]
cmp ecx, eax
je 0x490a70
test ecx, ecx
je 0x490a70
cmp ecx, 4
je 0x490a70
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x490a70
mov ecx, dword [0x54bbfc]
cmp ecx, 0xffffffff
jne 0x4909c7
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
test edi, edi
je 0x4909e5
push 0x54bbfc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x4909e5
mov ecx, dword [0x54bbfc]
test ecx, ecx
je 0x4909ef
mov eax, dword [0x54f144]
test eax, eax
je 0x4909ef
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push ebx
call eax
jmp 0x490a09
mov dword [0x54bbfc], 0
mov eax, dword [0x54f140]
test eax, eax
je 0x490a61
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
push ebx
call eax
test eax, eax
je 0x490a61
cmp eax, dword [esi - 0xc]
jne 0x490a61
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004e0469
add esp, 8
test eax, eax
jne 0x490a61
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x644]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Terminate_Process_return:_d__error:_d__pid:_d__path:_ws
push 0x54bba8
call fcn.0048d420
add esp, 0x18
test edi, edi
jne 0x490a61
inc dword [ebp - 0x658]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x65c]
xor ebx, ebx
lea eax, [ebp - 0x64c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
mov eax, dword [ebp - 0x654]
jne 0x490950
test ebx, ebx
je 0x490a96
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x490abc
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x658]
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.004dafe6
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00450130
push 0x80004005
call fcn.00450130
int3