Function at 0x10037bd0
Capabilities:
Check for time delay via gettickcount
Generate random numbers via winapi
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
push ebx
push ebp
mov ebp, dword [0x100828f0]
push esi
push edi
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call fcn.10037ac0
add esp, 4
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.10037ac0
add esp, 4
call dword [sym.imp.USER32.dll_GetClipboardOwner]
push eax
call fcn.10037ac0
add esp, 4
call dword [sym.imp.USER32.dll_GetClipboardViewer]
push eax
call fcn.10037ac0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add esp, 4
call esi
push eax
call fcn.10037ac0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.10037ac0
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
add esp, 4
call edi
push eax
call fcn.10037ac0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.10037ac0
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 4
call ebx
push eax
call fcn.10037ac0
add esp, 4
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.10037ac0
add esp, 4
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.10037ac0
add esp, 4
call dword [sym.imp.USER32.dll_GetInputState]
push eax
call fcn.10037ac0
add esp, 4
call dword [sym.imp.USER32.dll_GetMessagePos]
push eax
call fcn.10037ac0
add esp, 4
call dword [sym.imp.USER32.dll_GetMessageTime]
push eax
call fcn.10037ac0
add esp, 4
call dword [sym.imp.USER32.dll_GetOpenClipboardWindow]
push eax
call fcn.10037ac0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.10037ac0
add esp, 4
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
push eax
call fcn.10037ac0
add esp, 4
push 0xbf
call dword [sym.imp.USER32.dll_GetQueueStatus]
push eax
call fcn.10037ac0
add esp, 4
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetCaretPos]
lea ecx, [esp + 0x3c]
push 8
push ecx
call fcn.10037860
add esp, 8
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x3c]
push 8
push eax
call fcn.10037860
add esp, 8
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x54], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea edx, [esp + 0x50]
push 0x20
push edx
call fcn.10037860
add esp, 8
call edi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
lea eax, [esp + 0x34]
push 8
push eax
call fcn.10037860
lea ecx, [esp + 0x1c]
push 8
push ecx
call fcn.10037860
lea edx, [esp + 0x30]
push 8
push edx
call fcn.10037860
lea eax, [esp + 0x44]
push 8
push eax
call fcn.10037860
add esp, 0x20
call esi
lea ecx, [esp + 0x2c]
push ecx
mov esi, eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x40]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
lea edx, [esp + 0x34]
push 8
push edx
call fcn.10037860
lea eax, [esp + 0x1c]
push 8
push eax
call fcn.10037860
lea ecx, [esp + 0x30]
push 8
push ecx
call fcn.10037860
lea edx, [esp + 0x44]
push 8
push edx
call fcn.10037860
add esp, 0x20
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessWorkingSetSize]
mov edx, dword [esp + 0x1c]
push edx
call fcn.10037ac0
mov eax, dword [esp + 0x48]
push eax
call fcn.10037ac0
add esp, 8
cmp dword [0x10082918], 0
jne 0x10037e54
lea ecx, [esp + 0x70]
push ecx
mov dword [esp + 0x74], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea edx, [esp + 0x70]
push 0x44
push edx
call fcn.10037860
add esp, 8
mov dword [0x10082918], 1
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x10037e6c
push 8
lea ecx, [esp + 0x4c]
push ecx
jmp 0x10037e79
call ebx
push 4
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
push edx
call fcn.10037860
mov eax, dword [0x100827a0]
add esp, 8
test eax, eax
je 0x10037eb1
push 0x100827a8
push 0x140
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x10037eb1
push 0x140
push 0x100827a8
call fcn.10037860
add esp, 8
call fcn.10037740
pop edi
mov dword [0x100828f0], ebp
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret