Function at 0x4226d0
Capabilities:
Access peb ldr_data
Enumerate processes
Get disk information
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x4e3b06
mov eax, dword fs:[0]
push eax
sub esp, 0x660
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x658], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x674]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x684]
xor esi, esi
push 0x206
lea eax, [esp + 0x262]
push esi
push eax
mov dword [esp + 0x30], esi
mov word [esp + 0x268], si
call fcn.004be240
push 0x228
lea ecx, [esp + 0x40]
push esi
push ecx
mov dword [esp + 0x44], esi
call fcn.004be240
mov edx, dword [0x5143cc]
mov eax, dword [edx + 0xc]
add esp, 0x18
mov ecx, 0x5143cc
mov dword [esp + 0x20], esi
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x67c], esi
call fcn.004221a0
call fcn.00422680
test eax, eax
je 0x4228c4
mov edx, dword [0x5143cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x5143cc
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0x206
lea ecx, [esp + 0x46a]
push esi
mov byte [esp + 0x684], 1
push ecx
mov word [esp + 0x470], si
call fcn.004be240
movzx edx, word [ebp]
push edx
push 0x4f2df8
lea edi, [esp + 0x30]
call fcn.00406130
mov ecx, dword [esp + 0x30]
add esp, 0x14
push 0x104
lea eax, [esp + 0x468]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [esp + 0x464]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4227f0
sub eax, edx
sar eax, 1
lea edx, [esp + 0x464]
mov ebx, eax
push edx
lea eax, [esp + 0x1c]
call fcn.00401470
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x42284e
lea ecx, [eax - 1]
test ecx, ecx
jl 0x4228ba
cmp ecx, eax
jg 0x4228ba
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x42284e
cmp ax, 0x2f
je 0x42284e
mov edx, 0x4f09a4
lea edi, [esp + 0x18]
call fcn.004139a0
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422853
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x422890
add ebp, 6
jne 0x422870
xor eax, eax
jmp 0x422884
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422875
sub eax, edx
sar eax, 1
push eax
push ebp
lea eax, [esp + 0x20]
push eax
call fcn.004060a0
mov byte [esp + 0x67c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4228ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4228ec
push 0x80070057
call fcn.00401350
cmp ebp, esi
jne 0x4228cc
xor eax, eax
jmp 0x4228e0
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4228d1
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x1c]
call fcn.00401470
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
je 0x422a3f
lea ecx, [esp + 0x2c]
push ecx
push esi
mov dword [esp + 0x34], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x422a38
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x28]
je 0x422a16
test eax, eax
je 0x422a16
cmp eax, 4
je 0x422a16
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
mov dword [esp + 0x24], edi
je 0x422a16
call fcn.00422680
test eax, eax
je 0x422994
mov eax, dword [0x51554c]
test eax, eax
je 0x422994
push 0x104
lea edx, [esp + 0x260]
push edx
push edi
call eax
jmp 0x4229af
mov eax, dword [0x515548]
test eax, eax
je 0x422a07
push 0x104
lea ecx, [esp + 0x260]
push ecx
push 0
push edi
call eax
test eax, eax
je 0x422a07
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 0xc]
jne 0x422a07
lea edx, [esp + 0x25c]
push edx
push ecx
call fcn.004b9d0f
add esp, 8
test eax, eax
jne 0x422a07
push eax
push edi
call ebp
mov ecx, dword [esp + 0x34]
mov esi, eax
lea eax, [esp + 0x25c]
push eax
push ecx
call ebx
push eax
push esi
push str.Terminate_Process_return:_d__error:_d__pid:_d__path:_ws
mov ecx, 0x5158b0
call fcn.00489840
add esp, 0x14
test esi, esi
mov esi, dword [esp + 0x1c]
jne 0x422a07
add dword [esp + 0x20], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], 0
lea edx, [esp + 0x2c]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x422935
mov eax, dword [esp + 0x24]
test eax, eax
je 0x422a38
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x67c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422a6a
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 + 0x674]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x658]
xor ecx, esp
call fcn.004b83ee
add esp, 0x66c
ret