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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454e7b
mov eax, dword fs:[0]
push eax
sub esp, 0x668
mov eax, dword [0x46c018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x670], edx
mov edi, ecx
mov dword [ebp - 0x668], edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.0042f000
add esp, 0xc
lea eax, [ebp - 0x654]
push 0x22c
push ebx
push eax
call fcn.0042f000
add esp, 0xc
mov dword [ebp - 0x65c], ebx
mov dword [ebp - 0x660], ebx
mov dword [ebp - 4], ebx
call fcn.00402c30
mov ecx, eax
test ecx, ecx
je 0x414c25
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x658], eax
mov dword [ebp - 4], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x46eecc], ebx
jne 0x41482e
cmp dword [0x46eed0], ebx
jne 0x41482e
push str.Psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x414828
push str.GetModuleFileNameExW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetProcessImageFileNameW
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x46eecc], eax
call esi
mov dword [0x46eed0], eax
jmp 0x41482e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [0x46ccec]
cmp eax, 0xffffffff
jne 0x414868
push 0x463cac
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call esi
mov esi, eax
test esi, esi
je 0x414881
push 0x46ccec
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x414881
mov eax, dword [0x46ccec]
test eax, eax
je 0x41488b
mov byte [ebp - 4], 2
call fcn.00402c30
mov ecx, eax
test ecx, ecx
je 0x414c2f
jmp 0x41489a
mov dword [0x46ccec], 0
test edi, edi
jne 0x414a0e
xor ecx, ecx
jmp 0x414a22
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x66c], eax
push 0x208
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.0042f000
movzx eax, word [edi]
add esp, 0xc
push eax
lea eax, [ebp - 0x66c]
push 0x4641cc
push eax
call fcn.00411d90
mov esi, dword [ebp - 0x66c]
lea eax, [ebp - 0x424]
add esp, 0xc
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea ecx, [ebp - 0x424]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414900
sub ecx, edx
lea eax, [ebp - 0x424]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x658]
call fcn.0040e740
push 1
lea eax, [ebp - 0x664]
push eax
lea ecx, [ebp - 0x658]
call fcn.0040e230
mov eax, dword [eax]
mov ecx, 0x4634a8
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x414966
test dx, dx
je 0x414962
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x414966
add eax, 4
add ecx, 4
test dx, dx
jne 0x414940
xor edi, edi
jmp 0x41496b
sbb edi, edi
or edi, 1
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x664]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41498d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x4149a3
push 1
push 0x4634a8
lea ecx, [ebp - 0x658]
call fcn.0040e830
mov edi, dword [ebp - 0x668]
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4149b0
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x4149f0
lea edx, [edi + 6]
test edx, edx
jne 0x4149cf
xor ecx, ecx
jmp 0x4149e3
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4149d4
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x658]
call fcn.0040e830
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x414a2f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x414a2f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414a13
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x658]
call fcn.0040e740
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, dword [ebp - 0x658]
mov edi, eax
mov dword [ebp - 0x668], edi
cmp edi, 0xffffffff
je 0x414bd9
lea eax, [ebp - 0x654]
mov dword [ebp - 0x654], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x414bd2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
mov dword [ebp - 0x664], ecx
nop
mov eax, dword [ebp - 0x64c]
cmp eax, ecx
je 0x414bab
test eax, eax
je 0x414bab
cmp eax, 4
je 0x414bab
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x414bab
mov ecx, dword [0x46ccec]
cmp ecx, 0xffffffff
jne 0x414af7
push 0x463cac
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 0x414b15
push 0x46ccec
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x414b15
mov ecx, dword [0x46ccec]
test ecx, ecx
je 0x414b1f
mov eax, dword [0x46eed0]
test eax, eax
je 0x414b1f
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push ebx
call eax
jmp 0x414b39
mov dword [0x46ccec], 0
mov eax, dword [0x46eecc]
test eax, eax
je 0x414b9c
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0
push ebx
call eax
test eax, eax
je 0x414b9c
mov ecx, dword [esi - 0xc]
cmp eax, ecx
jbe 0x414b9c
push ecx
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.0043b57d
add esp, 0xc
test eax, eax
jne 0x414b9c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x64c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Terminate_Process_return:_d__error:_d__pid:_d__path:_ws
push 0x46cca0
call fcn.00415860
add esp, 0x18
test edi, edi
jne 0x414b96
inc dword [ebp - 0x660]
jmp 0x414b9c
inc dword [ebp - 0x65c]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x668]
xor ebx, ebx
lea eax, [ebp - 0x654]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov ecx, dword [ebp - 0x664]
test eax, eax
jne 0x414a80
test ebx, ebx
je 0x414bd2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x670]
test ecx, ecx
je 0x414beb
mov eax, dword [ebp - 0x65c]
mov dword [ecx], eax
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x414c03
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x660]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042cd02
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040f2e0
push 0x80004005
call fcn.0040f2e0
int3