Function at 0x10042990
Capabilities:
Acquire debug privileges
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ae92b
mov eax, dword fs:[0]
push eax
mov eax, 0x1878
call fcn.100759e0
mov eax, dword [0x100de514]
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
lea eax, [ebp - 0x1884]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10042a33
lea eax, [ebp - 0x1224]
mov dword [ebp - 0x1228], 1
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x1228]
mov dword [ebp - 0x121c], 2
push eax
push 0
push dword [ebp - 0x1884]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x1884]
call ebx
push 0
push 2
mov dword [ebp - 0x1880], 0xffffffff
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x1880], esi
push 0x228
lea eax, [ebp - 0x1878]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x187c], 0x22c
call fcn.100805f0
add esp, 0xc
lea eax, [ebp - 0x187c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10042d3c
cmp dword [ebp - 0x1874], 0
jne 0x10042ac8
lea eax, [ebp - 0x187c]
push eax
push dword [ebp - 0x1880]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x10042d3c
cmp dword [ebp - 0x1874], 0
jne 0x10042ac8
lea eax, [ebp - 0x187c]
push eax
lea ecx, [ebp - 0x1880]
call fcn.10042d90
test eax, eax
je 0x10042d3c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop word [eax + eax]
mov esi, dword [ebp - 0x1874]
lea eax, [ebp - 0x1858]
push 0x15
push str.BenchmarkLauncher.exe
push eax
call fcn.10091e9a
add esp, 0xc
test eax, eax
je 0x10042b1e
push 0x19
lea eax, [ebp - 0x1858]
push str.BenchmarkLauncher_x64.exe
push eax
call fcn.10091e9a
add esp, 0xc
test eax, eax
jne 0x10042d03
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100805f0
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10042c1e
push 0x800
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.100805f0
add esp, 0xc
lea eax, [ebp - 0xa18]
push 0x400
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x10042c1b
push 0x800
lea eax, [ebp - 0x1218]
push 0
push eax
call fcn.100805f0
lea eax, [ebp - 0xa18]
push 0x7e
push eax
call fcn.100809c6
add esp, 0x14
test eax, eax
je 0x10042be3
push 0x400
lea eax, [ebp - 0x1218]
push eax
lea eax, [ebp - 0xa18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x10042be3
lea ecx, [ebp - 0x1218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10042bd0
lea eax, [ebp - 0x1218]
jmp 0x10042c01
lea ecx, [ebp - 0xa18]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10042bf0
lea eax, [ebp - 0xa18]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.1009177b
add esp, 0x10
push esi
call ebx
lea eax, [ebp - 0x218]
push eax
call fcn.10054e50
add esp, 4
test eax, eax
je 0x10042d03
push dword [ebp - 0x1874]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x424
mov esi, eax
mov dword [ebp - 0x1650], 0x428
lea eax, [ebp - 0x164c]
push 0
push eax
call fcn.100805f0
add esp, 0xc
lea eax, [ebp - 0x1650]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x10042cfb
nop dword [eax]
push 0xc
lea eax, [ebp - 0x1630]
push str.GearNtKe.dll
push eax
call fcn.10091e9a
add esp, 0xc
test eax, eax
jne 0x10042ce4
mov eax, dword [ebp - 0x1634]
test eax, eax
je 0x10042ce4
push str.AddProcess
push eax
call edi
push str.SetSpeed
push dword [ebp - 0x1634]
mov ebx, eax
call edi
push str.GetSpeed
push dword [ebp - 0x1634]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10042cde
test ebx, ebx
je 0x10042cde
test edi, edi
jne 0x10042d70
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [ebp - 0x1650]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x10042c80
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x10042d03
push esi
call ebx
lea eax, [ebp - 0x187c]
push eax
push dword [ebp - 0x1880]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x10042d3c
cmp dword [ebp - 0x1874], 0
jne 0x10042d34
lea eax, [ebp - 0x187c]
push eax
lea ecx, [ebp - 0x1880]
call fcn.10042d90
test eax, eax
jne 0x10042ae0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, dword [ebp - 0x1880]
cmp ecx, 0xffffffff
je 0x10042d52
push ecx
call edi
mov eax, esi
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.1007590b
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x10042d7e
push esi
call edi
mov esi, 1
jmp 0x10042d44