Function at 0x452440
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2b4
mov eax, dword [0x62a040]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push esi
push edi
push 0x39
lea eax, [esp + 0x20]
mov edi, edx
mov ebx, ecx
mov dword [esp + 0x14], edi
push eax
mov dword [esp + 0x20], ebx
call sym.SystemInformer.exe_PhEnumProcessesEx
test eax, eax
jns 0x452491
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x1c]
mov esi, edx
mov ecx, dword [ebx]
mov dword [esp + 0x20], edx
lea ecx, [ecx]
cmp dword [esi + 0x44], ecx
je 0x4524b1
mov eax, dword [esi]
test eax, eax
je 0x4524b5
add esi, eax
jne 0x4524a0
jmp 0x4524b5
test esi, esi
jne 0x4524e1
push edx
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0000225
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret
lea ecx, ds:[esp + 0xa0]
mov dword [esp + 0xb0], 0x7ffe0000
lea eax, [ebx + 4]
push ecx
push eax
mov dword [esp + 0x24], eax
call sym.SystemInformer.exe_PhUpperDualBoundElementAvlTree
test eax, eax
je 0x452538
lea ecx, [eax - 8]
mov eax, dword [ecx + 0x24]
add eax, dword [ecx + 0x18]
cmp eax, 0x7ffe0000
jbe 0x452538
test ecx, ecx
je 0x452538
mov eax, dword [ecx + 0x70]
test eax, eax
cmovne ecx, eax
cmp dword [ecx + 0x98], 0
jne 0x452538
mov dword [ecx + 0x98], 4
cmp dword [0x62abb0], 0x69
mov dword [esp + 0x14], esi
jb 0x4525c5
test byte [0x62b650], 1
mov dword [esp + 0x14], esi
jne 0x4525ad
mov ecx, 0x62b650
lock bts dword [ecx], 0x1f
setb al
test al, al
jne 0x452599
push 0
push 4
lea eax, [esp + 0x38]
mov dword [esp + 0x1c], esi
push eax
push 0xc5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop
test eax, eax
js 0x45258d
mov eax, dword [esp + 0x30]
mov dword [0x63143c], eax
mov ecx, 0x62b650
call sym.SystemInformer.exe_PhfEndInitOnce
jmp 0x4525ad
test byte [0x62b650], 1
jne 0x4525a9
xor edx, edx
call sym.SystemInformer.exe_PhfWaitForEvent
mov dword [esp + 0x14], esi
mov edx, dword [0x63143c]
test edx, edx
je 0x4525c5
push 0x12
push 1
mov ecx, ebx
call fcn.00451f00
lea eax, [esp + 0x294]
mov dword [esp + 0x294], 0x2e
push eax
mov dword [esp + 0x29c], str.EnableHeapMemoryTagging
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
test eax, eax
je 0x4525f3
mov ecx, ebx
call fcn.00451fa0
push 0
push 0x18
lea eax, [esp + 0x88]
push eax
push 0
push edi
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x4529f7
mov esi, dword [esp + 0x84]
test esi, esi
je 0x4529f7
lfence
cmp dword [0x62abb0], 0x67
mov edx, esi
push 5
setb al
mov ecx, ebx
movzx eax, al
push eax
call fcn.00451f00
push 0
push 4
lea eax, [esp + 0x3c]
mov ebx, esi
push eax
lea eax, [esi + 0x88]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x4527fb
mov ecx, dword [esp + 0x34]
lea eax, [ecx - 1]
cmp eax, 0x3e6
ja 0x4527fb
lea eax, [ecx*4]
push eax
push 4
lfence
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push 4
mov dword [esp + 0x38], eax
lea ecx, [esi + 0x90]
lea eax, [esp + 0x40]
push eax
push ecx
push edi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x4527e9
lfence
mov eax, dword [esp + 0x34]
push 0
shl eax, 2
push eax
push dword [esp + 0x38]
push dword [esp + 0x44]
push edi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x4527e9
xor edi, edi
lfence
cmp dword [esp + 0x34], edi
jbe 0x4527e5
mov dword [esp + 0x294], esi
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + edi*4]
lea eax, [esp + 0x148]
push eax
push dword [esp + 0x20]
mov dword [esp + 0x160], ebx
call sym.SystemInformer.exe_PhUpperDualBoundElementAvlTree
test eax, eax
je 0x452745
lea esi, ds:[eax - 8]
mov eax, dword [esi + 0x24]
add eax, dword [esi + 0x18]
cmp ebx, eax
jae 0x452745
test esi, esi
je 0x452745
mov eax, dword [esi + 0x70]
test eax, eax
cmovne esi, eax
cmp dword [esi + 0x98], 0
jne 0x452745
mov dword [esi + 0x98], 0xb
jmp 0x452747
xor esi, esi
test esi, esi
je 0x4527d3
push 0
push 0x68
lea eax, [esp + 0xa0]
mov dword [esi + 0x9c], edi
push eax
mov eax, dword [esp + 0x3c]
push dword [eax + edi*4]
push dword [esp + 0x20]
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x4527d3
mov eax, dword [0x62abb0]
jmp 0x452780
cmp eax, 0x3e
jb 0x4527ad
cmp dword [esp + 0xf8], 0xeeffeeff
je 0x4527ba
cmp eax, 0x3f
jb 0x4527d3
cmp dword [esp + 0xa0], 0xddeeddee
jne 0x4527d3
mov eax, dword [esp + 0xa4]
jmp 0x4527c1
cmp dword [esp + 0xfc], 0xeeffeeff
jne 0x4527d3
mov eax, dword [esp + 0xd8]
and eax, 0xf000
mov byte [esi + 0xa0], 1
mov dword [esi + 0xa4], eax
inc edi
cmp edi, dword [esp + 0x34]
jb 0x4526f1
mov ebx, dword [esp + 0x294]
mov edi, dword [esp + 0x10]
push dword [esp + 0x30]
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push 0
push 4
lea eax, [esp + 0x44]
push eax
lea eax, [ebx + 0x38]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov esi, dword [esp + 0x18]
test eax, eax
js 0x45282a
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x45282a
push 0x11
push 1
mov ecx, esi
call fcn.00451f00
push 0
push 4
lea eax, [esp + 0x48]
push eax
lea eax, [ebx + 0x4c]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov edi, edi
test eax, eax
js 0x452857
mov edx, dword [esp + 0x40]
test edx, edx
je 0x452857
push 0x13
push 1
mov ecx, esi
call fcn.00451f00
push 0
push 4
lea eax, [esp + 0x4c]
push eax
lea eax, [ebx + 0x58]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x452885
mov edx, dword [esp + 0x44]
test edx, edx
je 0x452885
push 0x14
push 1
mov ecx, esi
call fcn.00451f00
push 0
push 4
lea eax, [esp + 0x50]
push eax
lea eax, [ebx + 0x94]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
lea esp, [esp]
test eax, eax
js 0x4528b7
mov edx, dword [esp + 0x48]
test edx, edx
je 0x4528b7
push 0x15
push 1
mov ecx, esi
call fcn.00451f00
push 0
push 4
lea eax, [esp + 0x54]
push eax
lea eax, [ebx + 0x1e8]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x4528e5
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x4528e5
push 0x16
push 1
mov ecx, esi
call fcn.00451f00
push 0
push 4
lea eax, [esp + 0x58]
push eax
lea eax, [ebx + 0x1f8]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
lea esp, [esp]
test eax, eax
js 0x452925
mov edx, dword [esp + 0x50]
test edx, edx
je 0x452925
push 0x17
push 1
mov ecx, esi
call fcn.00451f00
test eax, eax
je 0x452925
mov dword [eax + 0x9c], 1
push 0
push 4
lea eax, [esp + 0x5c]
push eax
lea eax, [ebx + 0x200]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
lea esp, [esp]
test eax, eax
js 0x452965
mov edx, dword [esp + 0x54]
test edx, edx
je 0x452965
push 0x17
push 1
mov ecx, esi
call fcn.00451f00
test eax, eax
je 0x452965
mov dword [eax + 0x9c], 2
push 0
push 4
lea eax, [esp + 0x60]
push eax
lea eax, [ebx + 0x230]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
lea esp, [esp]
test eax, eax
js 0x452997
mov edx, dword [esp + 0x58]
test edx, edx
je 0x452997
push 0x18
push 1
mov ecx, esi
call fcn.00451f00
push 0
push 4
lea eax, [esp + 0x64]
push eax
lea eax, [ebx + 0x50]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x4529c5
mov edx, dword [esp + 0x5c]
test edx, edx
je 0x4529c5
push 0x19
push 1
mov ecx, esi
call fcn.00451f00
push 0
push 4
lea eax, [esp + 0x68]
push eax
lea eax, [ebx + 0x45c]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
lea esp, [esp]
test eax, eax
js 0x4529f7
mov edx, dword [esp + 0x60]
test edx, edx
je 0x4529f7
push 0x1a
push 1
mov ecx, esi
call fcn.00451f00
mov edx, dword ds:[esp + 0x14]
xor ebx, ebx
cmp dword [edx + 4], ebx
jbe 0x452afd
lea esi, [edx + 0x104]
mov eax, edx
mov edx, dword [esi]
test edx, edx
je 0x452af0
cmp dword [0x62abb0], 0x67
mov ecx, dword [esp + 0x18]
setb al
push 7
movzx eax, al
push eax
call fcn.00451f00
test eax, eax
je 0x452a41
mov ecx, dword [esi - 0x28]
mov dword [eax + 0x9c], ecx
lea eax, [esp + 0x294]
push eax
push 0x1c
lea eax, [esp + 0x6c]
push eax
push dword [esi]
push edi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
lea esp, [esp]
test eax, eax
js 0x452aec
cmp dword [esp + 0x294], 0x1c
jne 0x452aec
mov edi, dword ds:[esp + 0x6c]
cmp edi, dword [esp + 0x68]
jae 0x452ae8
lea eax, ds:[esp + 0x148]
mov dword [esp + 0x158], edi
push eax
push dword [esp + 0x20]
call sym.SystemInformer.exe_PhUpperDualBoundElementAvlTree
test eax, eax
je 0x452ae8
lea ecx, [eax - 8]
mov eax, dword [ecx + 0x24]
add eax, dword [ecx + 0x18]
cmp edi, eax
jae 0x452ae8
test ecx, ecx
je 0x452ae8
mov eax, dword [ecx + 0x70]
test eax, eax
cmovne ecx, eax
cmp dword [ecx + 0x98], 0
jne 0x452ae8
mov edi, dword [esp + 0x10]
mov dword [ecx + 0x98], 9
test ecx, ecx
je 0x452aec
mov eax, dword [esi - 0x28]
mov dword [ecx + 0x9c], eax
jmp 0x452aec
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc ebx
add esi, 0x60
cmp ebx, dword [eax + 4]
jb 0x452a11
mov ebx, dword [esp + 0x18]
add ebx, 0x1c
mov esi, dword [ebx]
cmp esi, ebx
je 0x452bd5
mov edi, edi
cmp dword [esi + 0x98], 0
jne 0x452bcb
mov eax, dword [esi + 0x30]
test eax, 0x1040000
je 0x452bfe
cmp dword [esi + 0x70], esi
jne 0x452bfe
test eax, 0x1000000
je 0x452b6a
push 0
push 0xc
lea eax, [esp + 0x2c]
push eax
push 6
push dword [esi + 0x18]
push edi
call dword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
test eax, eax
js 0x452b6a
mov eax, dword [esp + 0x2c]
shr eax, 2
and al, 0xf
mov byte [esi + 0xa0], 1
mov byte [esi + 0xa1], al
lea eax, [esp + 0x30]
push eax
push dword [esi + 0x18]
push edi
call sym.SystemInformer.exe_PhGetProcessMappedFileName
jmp 0x452b80
test eax, eax
js 0x452bfe
mov edi, dword [esp + 0x30]
push edi
call sym.SystemInformer.exe_PhResolveDevicePrefix
test eax, eax
je 0x452bb7
mov ecx, edi
mov edi, eax
mov dword [esp + 0x30], edi
test ecx, ecx
je 0x452bb7
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x452bb7
call fcn.004f9e40
mov dword [esi + 0x98], 3
mov dword [esi + 0x9c], edi
mov edi, dword [esp + 0x10]
mov esi, dword [esi]
cmp esi, ebx
jne 0x452b10
push dword [esp + 0x20]
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [esp + 0x2bc]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret
test dword [esi + 0x28], 0x1000
je 0x452cac
mov al, byte [esi + 0x34]
test al, 1
je 0x452cac
test al, 2
jne 0x452cac
push 0
push 0x40
lea eax, [esp + 0xa0]
push eax
push dword [esi + 0x18]
push edi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x452cac
cmp dword [esp + 0xa0], 0xffeeffee
jne 0x452cac
mov edi, dword [esp + 0xb0]
test edi, edi
je 0x452cac
lea eax, [esp + 0x1f0]
mov dword [esp + 0x200], edi
push eax
push dword [esp + 0x20]
call sym.SystemInformer.exe_PhUpperDualBoundElementAvlTree
test eax, eax
je 0x452cac
lea ecx, [eax - 8]
mov eax, dword [ecx + 0x24]
add eax, dword [ecx + 0x18]
cmp edi, eax
jae 0x452cac
test ecx, ecx
je 0x452cac
cmp dword [ecx + 0x18], edi
jne 0x452cac
cmp dword [ecx + 0x98], 0xb
jne 0x452cac
mov dword [esi + 0x98], 0xd
mov dword [esi + 0x9c], ecx
jmp 0x452bc7
test dword [esi + 0x30], 0x40000
je 0x452bc7
cmp dword ds:[esi + 0x20], 2
jne 0x452bc7
mov edi, dword [esp + 0x10]
cmp dword [esi + 0x70], esi
jne 0x452bcb
push 0
push 0x20
lea eax, [esp + 0x2a4]
push eax
push dword [esi + 0x18]
push edi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x452bcb
cmp dword ds:[esp + 0x29c], 0x78746341
jne 0x452bcb
mov dword [esi + 0x98], 0x17
mov dword [esi + 0x9c], 0
jmp 0x452bcb