Function at 0x440230
Capabilities:
Get cpu information
Get memory capacity
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x64], ecx
push edi
lea eax, [esi + 1]
cmp dword [0x50a570], esi
jne 0x440264
mov ecx, eax
call fcn.00440090
mov esi, eax
test esi, esi
jne 0x440a8f
mov eax, dword [0x50a570]
test eax, eax
je 0x440274
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x50a574]
mov ecx, eax
inc eax
mov dword [0x50a574], eax
test ecx, ecx
jne 0x440a74
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4403bb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process2
push esi
mov ebx, eax
call edi
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
test eax, eax
je 0x44034a
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push ebx
call eax
test eax, eax
je 0x44034a
mov ecx, dword [ebp - 0x10]
cmp word [ebp - 8], 0
movzx edx, word [0x50ba8c]
movzx eax, cx
cmovne edx, eax
movzx eax, cx
mov word [0x50ba8c], dx
cmp eax, 0x8664
ja 0x440336
je 0x440329
cmp eax, 0x200
je 0x44031c
cmp eax, 0x284
jne 0x44037e
mov eax, 7
mov word [0x50ba88], ax
jmp 0x44037e
mov eax, 6
mov word [0x50ba88], ax
jmp 0x44037e
mov eax, 9
mov word [0x50ba88], ax
jmp 0x44037e
cmp eax, 0xaa64
jne 0x44037e
mov eax, 0xc
mov word [0x50ba88], ax
jmp 0x44037e
push 0x4eafb4
push esi
mov dword [ebp - 0xc], 0
call edi
test eax, eax
je 0x440364
lea ecx, [ebp - 0xc]
push ecx
push ebx
call eax
cmp dword [ebp - 0xc], 0
je 0x440377
mov eax, 0x8664
mov word [0x50ba8c], ax
jmp 0x440383
mov dx, word [0x50ba8c]
test dx, dx
je 0x440390
push str.Wow64EnableWow64FsRedirection
push esi
call edi
mov dword [0x50bad8], eax
push 0x4eafe4
push esi
call edi
push 0x4eb004
push esi
mov dword [0x50ba9c], eax
call edi
cmp dword [0x50bae4], 0xf
jl 0x4403bb
push str.PrefetchVirtualMemory
push esi
call edi
mov dword [0x50ba98], eax
push str.NTDLL.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x50ba84], eax
test eax, eax
je 0x440525
push str.RtlNtStatusToDosError
push eax
call edi
push str.RtlInitUnicodeString
push dword [0x50ba84]
mov dword [0x50bad4], eax
call edi
push str.NtOpenFile
push dword [0x50ba84]
mov dword [0x50bad0], eax
call edi
push str.NtCreateFile
push dword [0x50ba84]
call edi
push str.NtReadFile
push dword [0x50ba84]
mov dword [0x50bacc], eax
call edi
push str.NtWriteFile
push dword [0x50ba84]
mov dword [0x50bac8], eax
call edi
push str.NtQueryInformationFile
push dword [0x50ba84]
mov dword [0x50bac4], eax
call edi
push str.NtSetInformationFile
push dword [0x50ba84]
mov dword [0x50bac0], eax
call edi
push str.NtQueryVirtualMemory
push dword [0x50ba84]
mov dword [0x50babc], eax
call edi
push str.NtQueryObject
push dword [0x50ba84]
call edi
push str.NtQueryVolumeInformationFile
push dword [0x50ba84]
mov dword [0x50bab8], eax
call edi
push str.NtQueryInformationProcess
push dword [0x50ba84]
mov dword [0x50bab4], eax
call edi
push str.NtQueryInformationThread
push dword [0x50ba84]
call edi
push str.NtQuerySystemInformation
push dword [0x50ba84]
call edi
push str.NtQueryDirectoryFile
push dword [0x50ba84]
call edi
push str.NtQueryEaFile
push dword [0x50ba84]
mov dword [0x50bab0], eax
call edi
push str.NtClose
push dword [0x50ba84]
call edi
push str.NtFsControlFile
push dword [0x50ba84]
mov dword [0x50baac], eax
call edi
push str.NtDeviceIoControlFile
push dword [0x50ba84]
mov dword [0x50baa8], eax
call edi
push str.NtWaitForSingleObject
push dword [0x50ba84]
mov dword [0x50baa4], eax
call edi
push str.NtDeleteKey
push dword [0x50ba84]
mov dword [0x50baa0], eax
call edi
push 0x509240
push 8
call fcn.0047a6c8
mov esi, eax
add esp, 8
test esi, esi
je 0x440563
push 0x18
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00479ea3
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
jmp 0x440565
xor esi, esi
mov dword [0x50b5c0], esi
test esi, esi
jne 0x440579
mov esi, 8
jmp 0x440a78
push 0x509240
push 8
call fcn.0047a6c8
mov esi, eax
add esp, 8
test esi, esi
je 0x4405ba
push 0x120
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00479ea3
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
jmp 0x4405bc
xor esi, esi
mov dword [0x50b5c4], esi
test esi, esi
jne 0x4405d0
mov esi, 8
jmp 0x440a78
mov eax, dword [0x50ba84]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4407a8
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push str.RtlSetThreadErrorMode
push eax
call edi
mov dword [0x50ba68], eax
test eax, eax
jne 0x4405fc
call esi
cmp dword [0x50ba64], 0
jne 0x440627
mov eax, dword [0x50ba84]
test eax, eax
jne 0x440614
push 0x7e
call ebx
jmp 0x440625
push str.RtlGetVersion
push eax
call edi
mov dword [0x50ba64], eax
test eax, eax
jne 0x440627
call esi
cmp dword [0x50ba60], 0
jne 0x440652
mov eax, dword [0x50ba84]
test eax, eax
jne 0x44063f
push 0x7e
call ebx
jmp 0x440650
push str.RtlPcToFileHeader
push eax
call edi
mov dword [0x50ba60], eax
test eax, eax
jne 0x440652
call esi
mov eax, dword [0x50ba84]
test eax, eax
jne 0x440661
push 0x7e
call ebx
jmp 0x440672
push str.LdrLockLoaderLock
push eax
call edi
mov dword [0x50ba5c], eax
test eax, eax
jne 0x440674
call esi
mov eax, dword [0x50ba84]
test eax, eax
jne 0x440683
push 0x7e
call ebx
jmp 0x440694
push str.LdrUnlockLoaderLock
push eax
call edi
mov dword [0x50ba58], eax
test eax, eax
jne 0x440696
call esi
mov eax, dword [0x50ba84]
test eax, eax
jne 0x4406a5
push 0x7e
call ebx
jmp 0x4406b6
push str.NtQueryDirectoryFileEx
push eax
call edi
mov dword [0x50ba6c], eax
test eax, eax
jne 0x4406b8
call esi
mov eax, dword [0x50ba84]
test eax, eax
jne 0x4406c7
push 0x7e
call ebx
jmp 0x4406d8
push str.NtWow64QueryInformationProcess64
push eax
call edi
mov dword [0x50ba7c], eax
test eax, eax
jne 0x4406da
call esi
mov eax, dword [0x50ba84]
test eax, eax
jne 0x4406e9
push 0x7e
call ebx
jmp 0x4406fa
push str.NtWow64GetNativeSystemInformation
push eax
call edi
mov dword [0x50ba78], eax
test eax, eax
jne 0x4406fc
call esi
mov eax, dword [0x50ba84]
test eax, eax
jne 0x44070b
push 0x7e
call ebx
jmp 0x44071c
push str.NtWow64QueryVirtualMemory64
push eax
call edi
mov dword [0x50ba74], eax
test eax, eax
jne 0x44071e
call esi
mov eax, dword [0x50ba84]
test eax, eax
jne 0x44072d
push 0x7e
call ebx
jmp 0x44073e
push str.NtWow64ReadVirtualMemory64
push eax
call edi
mov dword [0x50ba70], eax
test eax, eax
jne 0x440740
call esi
mov eax, dword [0x50ba78]
test eax, eax
je 0x4407a8
cmp word [0x50ba88], 0
jne 0x44077b
push 0
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
call eax
movzx edx, word [0x50ba88]
test eax, eax
movzx ecx, word [ebp - 0x20]
mov eax, dword [0x50ba78]
cmove edx, ecx
mov word [0x50ba88], dx
push 0
push 0x2c
lea ecx, [ebp - 0x4c]
push ecx
push 0
call eax
test eax, eax
jne 0x4407a8
mov eax, dword [ebp - 0x2c]
mov dword [0x5059e0], eax
movzx eax, byte [ebp - 0x24]
mov dword [0x5059e4], 0
mov dword [0x5059f0], eax
jmp 0x4407ad
mov eax, dword [0x5059f0]
and dword [ebp - 0x64], 1
jne 0x4407df
sub esp, 0xc
lea ecx, [ebp - 0x40]
mov edx, 0x10
push str.aswSP
call fcn.004435d0
add esp, 8
mov edx, eax
mov ecx, 0x50ba80
call fcn.004418d0
mov eax, dword [0x5059f0]
add esp, 8
test eax, eax
mov ecx, 1
cmove eax, ecx
sub esp, 8
mov dword [0x5059f0], eax
call fcn.00441980
add esp, 4
lea eax, [ebp - 8]
xorps xmm0, xmm0
mov edx, str.HardwareDescriptionSystemCentralProcessor0
xor ecx, ecx
movlpd qword [ebp - 0x20], xmm0
push 0x80000002
push eax
push 1
call fcn.004415c0
add esp, 0x10
test eax, eax
jne 0x44087d
mov ecx, dword [ebp - 8]
xor edi, edi
test ecx, ecx
je 0x440867
mov eax, dword [edi + 0x4eb490]
test eax, eax
je 0x440867
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], 8
push edx
lea edx, [ebp - 0x20]
xor ebx, ebx
push edx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x440858
cmp eax, 0xea
jne 0x44085b
mov ebx, dword [ebp - 0xc]
test eax, eax
jne 0x440864
cmp ebx, 4
jae 0x44086f
mov ecx, dword [ebp - 8]
add edi, 4
cmp edi, 0xc
jb 0x440824
mov eax, dword [ebp - 8]
test eax, eax
je 0x44087d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.004928b0
add esp, 0xc
mov dword [ebp - 0x60], 0x40
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x4408a4
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 1
push 0x50ad8c
call edi
test eax, eax
je 0x4408e8
push 0
push 0
push 1
push 0x50ad8c
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [0x50ad80], 0xc
mov dword [0x50ad88], 0
mov dword [0x50ad84], 0x50ad8c
jmp 0x4408ea
call esi
push 1
push 0x50b5ac
call edi
test eax, eax
je 0x440a24
lea eax, [ebp - 8]
mov dword [ebp - 0x1c], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x1c]
mov word [ebp - 0x18], 0x100
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push 2
push 0x800
mov ebx, eax
push 0x50ada0
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
lea esi, [ebx + 8]
push esi
call fcn.0047a32d
add esp, 4
mov dword [ebp - 0x10], eax
push esi
mov esi, eax
push 0
push esi
call fcn.004928b0
add esp, 0xc
mov dword [esi + 4], 0x10000000
lea edi, [ebx + 8]
mov word [esi], 0x900
mov word [esi + 2], di
lea ebx, [esi + 8]
push dword [ebp - 0xc]
push dword [ebp - 8]
push ebx
call fcn.00491db0
movzx eax, word [esi + 2]
add esp, 0xc
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_AddAce]
push 0xffffffffffffffff
push 2
push 0x50ada0
call esi
mov eax, dword [ebp - 0x10]
push dword [ebp - 0xc]
mov dword [eax + 4], 0x1f01ff
mov word [eax], 0x200
mov word [eax + 2], di
push dword [ebp - 8]
push ebx
call fcn.00491db0
mov edi, dword [ebp - 0x10]
add esp, 0xc
movzx eax, word [edi + 2]
push eax
push edi
push 0xffffffffffffffff
push 2
push 0x50ada0
call esi
push edi
call fcn.0047a31f
add esp, 4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push 0
push 0x50ada0
push 1
push 0x50b5ac
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [0x50b5a0], 0xc
mov dword [0x50b5a8], 0
mov dword [0x50b5a4], 0x50b5ac
jmp 0x440a26
call esi
or dword [0x50a578], 2
push 0x18
push 0
mov dword [0x50badc], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x44056f
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x50badc], esi
xor esi, esi
cmp dword [ebp - 0x64], esi
jne 0x440a74
push 0x4e7455
push esi
call fcn.004a4f82
add esp, 8
test esi, esi
je 0x440a7d
call fcn.00440aa0
mov eax, dword [0x50a570]
test eax, eax
je 0x440a8d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00479e61
mov esp, ebp
pop ebp
ret