Function at 0x40a610
Capabilities:
Allocate or change rwx memory
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14d4
call fcn.0042e430
mov eax, dword [0x43f0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14c0], eax
cmp dword [ebp - 0x14c0], 0xffffffff
jne 0x40a644
jmp 0x40a8ae
mov dword [ebp - 0x14b4], 0x128
lea eax, [ebp - 0x14b4]
push eax
mov ecx, dword [ebp - 0x14c0]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40a677
mov edx, dword [ebp - 0x14c0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a8ae
mov eax, dword [ebp - 0x14ac]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x14b8], eax
cmp dword [ebp - 0x14b8], 0
jne 0x40a6ac
mov ecx, dword [ebp - 0x14c0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a8ae
push 1
mov edx, dword [ebp - 0x14b8]
push edx
push 0x43399c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x14bc], eax
cmp dword [ebp - 0x14bc], 0
jne 0x40a6ee
mov eax, dword [ebp - 0x14b8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14c0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a8ae
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov dword [ebp - 0x14cc], eax
mov dword [ebp - 8], 0xffffffff
push 0x6c078965
mov edx, dword [ebp - 0x14cc]
push edx
lea ecx, [ebp - 0x138c]
call fcn.0040b540
lea eax, [ebp - 0x14d4]
mov dword [ebp - 0x14c8], eax
mov ecx, dword [ebp - 0x14c8]
mov dword [ecx], 0x1000
mov edx, dword [ebp - 0x14c8]
mov dword [edx + 4], 0x7ffff000
mov eax, dword [ebp - 0x14d0]
push eax
mov ecx, dword [ebp - 0x14d4]
push ecx
lea edx, [ebp - 0x138c]
push edx
lea ecx, [ebp - 0x14d4]
call fcn.0040aa90
mov dword [ebp - 0x14c4], eax
push 0
push 0x40
push 4
mov eax, dword [ebp - 0x14bc]
push eax
mov ecx, dword [ebp - 0x14b8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x40a7ac
mov edx, dword [ebp - 0x14b8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14c0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14bc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40a8ae
push 4
mov edx, dword [ebp - 0x14bc]
push edx
mov eax, dword [ebp - 0x14c4]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
test eax, eax
jne 0x40a80e
push 0
push 0x20
push 4
mov ecx, dword [ebp - 0x14bc]
push ecx
mov edx, dword [ebp - 0x14b8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [ebp - 0x14b8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14c0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14bc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40a8ae
push 0
push 0x20
push 4
mov eax, dword [ebp - 0x14c4]
push eax
mov ecx, dword [ebp - 0x14b8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x40a887
push 4
mov edx, dword [ebp - 0x14c4]
push edx
mov eax, dword [ebp - 0x14bc]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
push 0
push 0x40
push 4
mov ecx, dword [ebp - 0x14bc]
push ecx
mov edx, dword [ebp - 0x14b8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [ebp - 0x14b8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14c0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14bc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40a8ae
mov eax, dword [ebp - 0x14bc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x14b8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14c0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e417
mov esp, ebp
pop ebp
ret