Function at 0x2687958b
Capabilities:
Check os version
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd3c
lea eax, [ebp - 0x140]
push eax
mov dword [ebp - 0x140], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x268795b1
leave
ret
cmp dword [ebp - 0x130], 2
push ebx
push esi
push edi
jne 0x268798ad
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x2c], ebx
je 0x26879a85
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push ebx
call edi
push str.EnumProcessModules
push ebx
mov esi, eax
call edi
push str.GetModuleFileNameExW
push ebx
mov dword [ebp - 0x28], eax
call edi
push str.GetProcessMemoryInfo
push ebx
mov dword [ebp - 0x20], eax
call edi
push str.GetProcessImageFileNameW
push ebx
mov dword [ebp - 0x18], eax
call edi
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x1c], eax
je 0x26879776
cmp dword [ebp - 0x28], ebx
je 0x26879776
cmp dword [ebp - 0x20], ebx
je 0x26879776
cmp dword [ebp - 0x18], ebx
je 0x26879776
mov dword [ebp - 0x14], 0x400
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0xc], ebx
je 0x26879662
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x14]
add eax, eax
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x26879776
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x14]
push eax
call esi
test eax, eax
je 0x26879769
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x14]
je 0x26879644
shr dword [ebp - 0x24], 2
mov dword [ebp - 0x10], ebx
je 0x26879897
mov esi, 0x104
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov word [ebp - 0x784], bx
lea ebx, [eax + ecx*4]
mov eax, dword [ebx]
push eax
push 0
push 0x410
mov dword [ebp - 4], eax
call edi
test eax, eax
mov dword [ebp - 8], eax
jne 0x2687970b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x26879886
call fcn.268e99b2
test eax, eax
je 0x26879886
push dword [ebp - 4]
push 0
push 0x1000
call edi
test eax, eax
mov dword [ebp - 8], eax
je 0x26879886
lea eax, [ebp - 0x14]
push eax
push 0x190
lea eax, [ebp - 0xd3c]
push eax
push dword [ebp - 8]
call dword [ebp - 0x28]
test eax, eax
je 0x268797c7
push 0x20a
lea eax, [ebp - 0x784]
push eax
push dword [ebp - 0xd3c]
push dword [ebp - 8]
call dword [ebp - 0x20]
test eax, eax
je 0x2687987d
push 0x238
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
test edx, edx
pop ecx
je 0x2687977d
mov ecx, 0x8e
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, edx
jmp 0x2687977f
push dword [ebp - 0xc]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
jmp 0x26879a78
xor ecx, ecx
test ecx, ecx
mov dword [ebp - 4], ecx
je 0x2687987d
mov eax, dword [ebx]
mov dword [ecx + 0x20c], eax
push esi
push esi
lea eax, [ebp - 0x784]
mov ebx, ecx
call fcn.268dfa74
mov ebx, dword [ebp + 8]
pop ecx
pop ecx
push 0
lea eax, [ebp - 4]
push eax
call fcn.268d6a6b
mov eax, dword [ebp - 4]
push 0x28
add eax, 0x210
push eax
push dword [ebp - 8]
call dword [ebp - 0x18]
jmp 0x2687987d
cmp dword [ebp - 0x1c], 0
je 0x2687987d
push esi
lea eax, [ebp - 0x784]
push eax
push dword [ebp - 8]
call dword [ebp - 0x1c]
test eax, eax
je 0x2687987d
push 0x238
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
test edx, edx
pop ecx
je 0x26879808
mov ecx, 0x8e
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 4], edx
jmp 0x2687980c
and dword [ebp - 4], 0
mov eax, dword [ebx]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20c], eax
and word [ebp - 0x578], 0
xor eax, eax
mov ecx, 0x82
lea edi, [ebp - 0x576]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x578]
push eax
lea eax, [ebp - 0x784]
push eax
call fcn.26879487
mov ebx, dword [ebp - 4]
pop ecx
pop ecx
push esi
test eax, eax
push esi
lea eax, [ebp - 0x578]
jne 0x26879858
lea eax, [ebp - 0x784]
call fcn.268dfa74
mov ebx, dword [ebp + 8]
pop ecx
pop ecx
push 0
lea eax, [ebp - 4]
push eax
call fcn.268d6a6b
mov edi, dword [ebp - 4]
push 0xa
xor eax, eax
pop ecx
add edi, 0x210
rep stosd dword es:[edi], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
xor ebx, ebx
cmp eax, dword [ebp - 0x24]
jb 0x268796ac
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x26879a75
cmp dword [ebp - 0x130], 1
jne 0x26879a85
and dword [ebp - 0x36c], 0
xor eax, eax
mov ecx, 0x8a
lea edi, [ebp - 0x368]
push str.KERNEL32.DLL
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
mov dword [ebp - 0x2c], esi
je 0x26879a85
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x26912dec
push esi
call edi
push str.Process32First
push esi
mov dword [ebp - 0x10], eax
call edi
push str.Process32Next
push esi
mov ebx, eax
call edi
push str.Module32First
push esi
mov dword [ebp - 0x18], eax
call edi
push str.Module32Next
push esi
mov dword [ebp - 0x28], eax
call edi
xor esi, esi
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0xc], eax
je 0x26879a78
cmp ebx, esi
je 0x26879a78
cmp dword [ebp - 0x10], esi
je 0x26879a78
push esi
push 2
call dword [ebp - 0x10]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x26879a78
lea ecx, [ebp - 0x36c]
push ecx
push eax
mov dword [ebp - 0x36c], 0x22c
call ebx
test eax, eax
je 0x26879a6c
mov esi, 0x104
push dword [ebp - 0x364]
and dword [ebp - 0xbac], 0
xor eax, eax
mov ecx, 0x109
lea edi, [ebp - 0xba8]
push 8
rep stosd dword es:[edi], eax
call dword [ebp - 0x10]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 8], edi
je 0x26879a57
lea eax, [ebp - 0xbac]
push eax
push edi
mov dword [ebp - 0xbac], 0x428
call dword [ebp - 0x28]
jmp 0x268799f3
lea eax, [ebp - 0x578]
push eax
push 0
push 0
lea ecx, [ebp - 0x98c]
call fcn.268634ae
lea eax, [ebp - 0x578]
push str..EXE
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0x14
test eax, eax
je 0x268799f9
lea eax, [ebp - 0xbac]
push eax
push edi
call dword [ebp - 0xc]
test eax, eax
jne 0x268799b9
jmp 0x26879a4e
push 0x238
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
test edx, edx
pop ecx
je 0x26879a19
mov ecx, 0x8e
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, edx
jmp 0x26879a1b
xor ecx, ecx
test ecx, ecx
mov dword [ebp - 0x1c], ecx
je 0x26879a4e
mov eax, dword [ebp - 0x364]
mov dword [ecx + 0x20c], eax
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x98c]
mov ebx, ecx
call fcn.268dfa74
mov ebx, dword [ebp + 8]
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.268d6a6b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x36c]
push eax
push dword [ebp - 0x20]
call dword [ebp - 0x18]
test eax, eax
jne 0x26879973
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x26879a87
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret