Function at 0x1000d770
Capabilities:
Acquire debug privileges
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
sub esp, 0x2f4
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x304]
mov dword [esp + 0x18], esi
mov dword [esp + 0x40], 0x128
mov ecx, eax
push 0x10030c58
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x1000d7c0
inc eax
jmp 0x1000d7a4
lea edx, [esp + 0x40]
push edx
push esi
call sub.KERNEL32.dll_Process32First
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], eax
test eax, eax
je 0x1000d9ce
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.MSVCRT.dll__strlwr]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x204]
add esp, 4
rep stosd dword es:[edi], eax
lea edi, [esp + 0x68]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x104
jae 0x1000d9bd
lea edi, [esp + 0x68]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x200]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x200]
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
push 0x10030c58
push esi
call edi
add esp, 8
test eax, eax
je 0x1000d861
lea esi, [eax + 1]
jmp 0x1000d847
mov ecx, dword [esp + 0x14]
push ecx
push esi
call edi
add esp, 8
test eax, eax
jbe 0x1000d9aa
mov edx, dword [esp + 0x4c]
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push edx
push 0
push 1
call edi
mov esi, eax
test esi, esi
je 0x1000d89c
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebp
jmp 0x1000d9aa
lea eax, [esp + 0x16c]
mov dword [esp + 0x16c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x17c], 2
jne 0x1000d9bd
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0x10
push ecx
push 0
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [0x1003c44c]
test eax, eax
jne 0x1000d90e
call ebx
cmp eax, 0x3f0
jne 0x1000d9bd
lea edx, [esp + 0x10]
push edx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x1003c448]
test eax, eax
je 0x1000d9bd
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 1
push eax
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x3c], 2
call dword [0x1003c444]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push 0x10
push eax
push 0
push ecx
call dword [0x1003c440]
test eax, eax
jne 0x1000d95d
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
jmp 0x1000d9bd
call ebx
cmp eax, 0x514
jne 0x1000d96f
mov eax, dword [esp + 0x10]
push eax
call ebp
jmp 0x1000d9bd
mov ecx, dword [esp + 0x4c]
push ecx
push 0
push 1
call edi
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call ebx
mov eax, dword [esp + 0x10]
push 0
push 0
lea edx, [esp + 0x3c]
push 0x10
push edx
push 0
push eax
call dword [0x1003c440]
mov ecx, dword [esp + 0x10]
push ecx
call ebp
test esi, esi
je 0x1000d9bd
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x44]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x1000d7e4
mov esi, dword [esp + 0x1c]
pop ebx
push esi
call ebp
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x2f4
ret