Function at 0x1002b87e
Capabilities:
Check os version
Get memory capacity
Link many functions at runtime

Disassembly:
push ebp
mov eax, 0x4dc
lea ebp, [esp - 0x78]
call fcn.1005ead0
mov eax, dword [0x100a4120]
xor eax, dword [ebp + 0x7c]
and dword [ebp + 0x60], 0
and dword [ebp + 0x5c], 0
push ebx
push esi
mov dword [ebp + 0x74], eax
push edi
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ADVAPI32.DLL
call edi
push str.KERNEL32.DLL
mov dword [ebp + 0x68], eax
call edi
push str.NETAPI32.DLL
mov ebx, eax
call edi
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0x64], eax
je 0x1002b98a
push str.NetStatisticsGet
push eax
call esi
push str.NetApiBufferFree
push dword [ebp + 0x64]
mov dword [ebp + 0x6c], eax
call esi
xor ecx, ecx
cmp dword [ebp + 0x6c], ecx
mov dword [ebp + 0x58], eax
je 0x1002b981
cmp eax, ecx
je 0x1002b981
lea eax, [ebp + 0x70]
push eax
push ecx
push ecx
push str.LanmanWorkstation
push ecx
call dword [ebp + 0x6c]
test eax, eax
jne 0x1002b948
fld qword [0x10079420]
push 8
pop eax
call fcn.1005ead0
fstp qword [esp]
push 0xd8
push dword [ebp + 0x70]
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
push dword [ebp + 0x70]
call dword [ebp + 0x58]
lea eax, [ebp + 0x70]
push eax
xor eax, eax
push eax
push eax
push str.LanmanServer
push eax
call dword [ebp + 0x6c]
test eax, eax
jne 0x1002b981
fld qword [0x100793f8]
push 8
pop eax
call fcn.1005ead0
fstp qword [esp]
push 0x44
push dword [ebp + 0x70]
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
push dword [ebp + 0x70]
call dword [ebp + 0x58]
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp + 0x68], 0
je 0x1002ba8e
push str.CryptAcquireContextW
push dword [ebp + 0x68]
call esi
push str.CryptGenRandom
push dword [ebp + 0x68]
mov dword [ebp + 0x6c], eax
call esi
push str.CryptReleaseContext
push dword [ebp + 0x68]
mov dword [ebp + 0x70], eax
call esi
xor ecx, ecx
cmp dword [ebp + 0x6c], ecx
mov dword [ebp + 0x64], eax
je 0x1002ba85
cmp dword [ebp + 0x70], ecx
je 0x1002ba85
cmp eax, ecx
je 0x1002ba85
push 0xf0000000
push 1
push ecx
push ecx
lea eax, [ebp + 0x60]
push eax
call dword [ebp + 0x6c]
test eax, eax
je 0x1002ba2b
lea eax, [ebp - 0x84]
push eax
push 0x40
push dword [ebp + 0x60]
call dword [ebp + 0x70]
test eax, eax
je 0x1002ba23
push 8
fldz
pop eax
call fcn.1005ead0
fstp qword [esp]
lea eax, [ebp - 0x84]
push 0x40
push eax
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
mov dword [ebp + 0x5c], 1
push 0
push dword [ebp + 0x60]
call dword [ebp + 0x64]
push 0
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
push 0
lea eax, [ebp + 0x60]
push eax
call dword [ebp + 0x6c]
test eax, eax
je 0x1002ba85
lea eax, [ebp - 0x84]
push eax
push 0x40
push dword [ebp + 0x60]
call dword [ebp + 0x70]
test eax, eax
je 0x1002ba7d
fld qword [0x10079358]
push 8
pop eax
call fcn.1005ead0
fstp qword [esp]
lea eax, [ebp - 0x84]
push 0x40
push eax
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
mov dword [ebp + 0x5c], 1
push 0
push dword [ebp + 0x60]
call dword [ebp + 0x64]
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x108], 2
jne 0x1002baa4
call fcn.100015a3
test eax, eax
jne 0x1002bb86
push str.USER32.DLL
call edi
test eax, eax
mov dword [ebp + 0x6c], eax
je 0x1002bb86
push str.GetForegroundWindow
push eax
call esi
push str.GetCursorInfo
push dword [ebp + 0x6c]
mov edi, eax
call esi
push 0x10079318
push dword [ebp + 0x6c]
mov dword [ebp + 0x68], eax
call esi
test edi, edi
mov dword [ebp + 0x64], eax
je 0x1002bafe
call edi
fldz
push 8
mov dword [ebp + 0x54], eax
pop eax
call fcn.1005ead0
fstp qword [esp]
lea eax, [ebp + 0x54]
push 4
push eax
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
xor eax, eax
cmp dword [ebp + 0x68], eax
je 0x1002bb51
cmp dword [ebp - 0x108], 2
jne 0x1002bb1a
cmp dword [ebp - 0x114], 5
jae 0x1002bb1a
mov dword [ebp + 0x68], eax
cmp dword [ebp + 0x68], eax
je 0x1002bb51
lea eax, [ebp + 0x20]
push eax
mov dword [ebp + 0x20], 0x14
call dword [ebp + 0x68]
test eax, eax
je 0x1002bb51
fld qword [0x10079310]
push 8
pop eax
call fcn.1005ead0
fstp qword [esp]
push dword [ebp + 0x20]
lea eax, [ebp + 0x20]
push eax
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
cmp dword [ebp + 0x64], 0
je 0x1002bb7d
push 0xbf
call dword [ebp + 0x64]
fld1
push 8
mov dword [ebp + 0x50], eax
pop eax
call fcn.1005ead0
fstp qword [esp]
lea eax, [ebp + 0x50]
push 4
push eax
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x1002be87
push str.CreateToolhelp32Snapshot
push ebx
xor edi, edi
call esi
push str.CloseToolhelp32Snapshot
push ebx
mov dword [ebp + 0x64], eax
call esi
push str.Heap32First
push ebx
mov dword [ebp + 0x54], eax
call esi
push str.Heap32Next
push ebx
mov dword [ebp + 0x68], eax
call esi
push str.Heap32ListFirst
push ebx
mov dword [ebp + 0x48], eax
call esi
push str.Heap32ListNext
push ebx
mov dword [ebp + 0x58], eax
call esi
push str.Process32First
push ebx
mov dword [ebp + 0x34], eax
call esi
push str.Process32Next
push ebx
mov dword [ebp + 0x38], eax
call esi
push str.Thread32First
push ebx
mov dword [ebp + 0x40], eax
call esi
push str.Thread32Next
push ebx
mov dword [ebp + 0x4c], eax
call esi
push str.Module32First
push ebx
mov dword [ebp + 0x44], eax
call esi
push 0x10079240
push ebx
mov dword [ebp + 0x3c], eax
call esi
xor esi, esi
cmp dword [ebp + 0x64], esi
mov dword [ebp + 0x1c], eax
je 0x1002be80
cmp dword [ebp + 0x68], esi
je 0x1002be80
cmp dword [ebp + 0x48], esi
je 0x1002be80
cmp dword [ebp + 0x58], esi
je 0x1002be80
cmp dword [ebp + 0x34], esi
je 0x1002be80
cmp dword [ebp + 0x38], esi
je 0x1002be80
cmp dword [ebp + 0x40], esi
je 0x1002be80
cmp dword [ebp + 0x4c], esi
je 0x1002be80
cmp dword [ebp + 0x44], esi
je 0x1002be80
cmp dword [ebp + 0x3c], esi
je 0x1002be80
cmp eax, esi
je 0x1002be80
push esi
push 0xf
call dword [ebp + 0x64]
cmp eax, 0xffffffff
mov dword [ebp + 0x70], eax
je 0x1002be80
cmp dword [ebp + 0x5c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x24], 0x10
je 0x1002bca6
call esi
mov edi, eax
add edi, 0x3e8
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x70]
call dword [ebp + 0x58]
test eax, eax
je 0x1002bd43
fld qword [0x10079238]
push 8
pop eax
call fcn.1005ead0
fstp qword [esp]
push dword [ebp + 0x24]
lea eax, [ebp + 0x24]
push eax
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
push dword [ebp + 0x2c]
lea eax, [ebp - 0x24]
push dword [ebp + 0x28]
mov dword [ebp - 0x24], 0x24
push eax
call dword [ebp + 0x68]
test eax, eax
je 0x1002bd2b
mov dword [ebp + 0x6c], 0x50
fld qword [0x10079230]
push 8
pop eax
call fcn.1005ead0
fstp qword [esp]
push dword [ebp - 0x24]
lea eax, [ebp - 0x24]
push eax
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
call dword [ebp + 0x48]
test eax, eax
je 0x1002bd2b
dec dword [ebp + 0x6c]
cmp dword [ebp + 0x6c], 0
jg 0x1002bcf7
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x70]
call dword [ebp + 0x34]
test eax, eax
je 0x1002bd43
call esi
cmp eax, edi
jb 0x1002bcb8
cmp dword [ebp + 0x5c], 0
mov dword [ebp - 0x240], 0x128
je 0x1002bd5d
call esi
mov edi, eax
add edi, 0x3e8
lea eax, [ebp - 0x240]
push eax
push dword [ebp + 0x70]
call dword [ebp + 0x38]
test eax, eax
je 0x1002bdab
fld qword [0x10079228]
push 8
pop eax
call fcn.1005ead0
fstp qword [esp]
push dword [ebp - 0x240]
lea eax, [ebp - 0x240]
push eax
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
lea eax, [ebp - 0x240]
push eax
push dword [ebp + 0x70]
call dword [ebp + 0x40]
test eax, eax
je 0x1002bdab
call esi
cmp eax, edi
jb 0x1002bd6e
cmp dword [ebp + 0x5c], 0
mov dword [ebp], 0x1c
je 0x1002bdc2
call esi
mov edi, eax
add edi, 0x3e8
lea eax, [ebp]
push eax
push dword [ebp + 0x70]
call dword [ebp + 0x4c]
test eax, eax
je 0x1002be04
fld qword [0x10079220]
push 8
pop eax
call fcn.1005ead0
fstp qword [esp]
push dword [ebp]
lea eax, [ebp]
push eax
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
lea eax, [ebp]
push eax
push dword [ebp + 0x70]
call dword [ebp + 0x44]
test eax, eax
je 0x1002be04
call esi
cmp eax, edi
jb 0x1002bdd0
cmp dword [ebp + 0x5c], 0
mov dword [ebp - 0x464], 0x224
je 0x1002be1e
call esi
mov edi, eax
add edi, 0x3e8
lea eax, [ebp - 0x464]
push eax
push dword [ebp + 0x70]
call dword [ebp + 0x3c]
test eax, eax
je 0x1002be6c
fld qword [0x10079228]
push 8
pop eax
call fcn.1005ead0
fstp qword [esp]
push dword [ebp - 0x464]
lea eax, [ebp - 0x464]
push eax
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
lea eax, [ebp - 0x464]
push eax
push dword [ebp + 0x70]
call dword [ebp + 0x1c]
test eax, eax
je 0x1002be6c
call esi
cmp eax, edi
jb 0x1002be2f
cmp dword [ebp + 0x54], 0
push dword [ebp + 0x70]
je 0x1002be7a
call dword [ebp + 0x54]
jmp 0x1002be80
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.1002b6a0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
fld1
push 8
pop eax
call fcn.1005ead0
fstp qword [esp]
lea eax, [ebp - 0x44]
push 0x20
push eax
call sym.LIBEAY32.dll_RAND_add
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
fld1
push 8
mov dword [ebp + 0x50], eax
pop eax
call fcn.1005ead0
fstp qword [esp]
lea eax, [ebp + 0x50]
push 4
push eax
call sym.LIBEAY32.dll_RAND_add
mov ecx, dword [ebp + 0x74]
xor ecx, dword [ebp + 0x7c]
add esp, 0x10
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.1005eb3e
add ebp, 0x78
leave
ret