Function at 0x437820
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x39
lea eax, [ebp - 0x28]
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x1ac], esi
push eax
mov dword [ebp - 0x1b4], ebx
call sym.ProcessHacker.exe_PhEnumProcessesEx
test eax, eax
jns 0x437869
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e068
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x28]
mov edi, edx
mov ecx, dword [ebx]
mov dword [ebp - 0x1b8], edx
mov dword [ebp - 0x1a4], edi
lea esp, [esp]
cmp dword [edi + 0x44], ecx
je 0x4378bc
mov eax, dword [edi]
test eax, eax
je 0x437895
add edi, eax
mov dword [ebp - 0x1a4], edi
jne 0x437880
push edx
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0000225
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e068
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xb8], 0x7ffe0000
lea eax, [ebx + 4]
push ecx
push eax
mov dword [ebp - 0x1b0], eax
call sym.ProcessHacker.exe_PhUpperDualBoundElementAvlTree
lea esp, [esp]
test eax, eax
je 0x437909
lea ecx, [eax - 8]
mov eax, dword [ecx + 0x24]
add eax, dword [ecx + 0x18]
cmp eax, 0x7ffe0000
jbe 0x437909
mov eax, dword [ecx + 0x38]
test eax, eax
cmovne ecx, eax
cmp dword [ecx + 0x58], 0
jne 0x437909
mov dword [ecx + 0x58], 4
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x69
jb 0x437985
test byte [0x5ae37c], 1
jne 0x43796b
mov eax, 0x5ae37c
lock bts dword [eax], 0x1f
jb 0x437958
push 0
push 4
lea eax, [ebp - 0x28]
push eax
push 0xc5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edx, dword [0x5b222c]
test eax, eax
mov ecx, 0x5ae37c
cmovns edx, dword [ebp - 0x28]
mov dword [0x5b222c], edx
call sym.ProcessHacker.exe_PhfEndInitOnce
jmp 0x43796b
test byte [0x5ae37c], 1
nop
jne 0x43796b
xor edx, edx
mov ecx, eax
call sym.ProcessHacker.exe_PhfWaitForEvent
mov edx, dword [0x5b222c]
test edx, edx
je 0x437985
push 0x12
push 1
mov ecx, ebx
call fcn.004377a0
push 0
push 0x18
lea eax, [ebp - 0x4c]
push eax
push 0
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x437af8
mov edx, dword [ebp - 0x48]
test edx, edx
je 0x437af8
lfence
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x67
mov ecx, ebx
push 5
setb al
movzx eax, al
push eax
call fcn.004377a0
push 0
push 4
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x48]
add eax, 0x88
push eax
push esi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
lea ecx, [ecx]
test eax, eax
js 0x437acc
mov eax, dword [ebp - 0x2c]
cmp eax, 0x3e8
jae 0x437acc
shl eax, 2
push eax
push 4
lfence
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [ebp - 0x48]
mov ebx, eax
push 0
push 4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], ebx
push eax
add ecx, 0x90
push ecx
push esi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x437ab4
lfence
mov eax, dword [ebp - 0x2c]
push 0
shl eax, 2
push eax
push ebx
push dword [ebp - 0x30]
push esi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x437ab4
xor esi, esi
cmp dword [ebp - 0x2c], esi
jbe 0x437aae
mov edi, dword [ebp - 0x28]
mov ebx, dword [edi + esi*4]
lea eax, [ebp - 0xc8]
push eax
push dword [ebp - 0x1b0]
mov dword [ebp - 0xb8], ebx
call sym.ProcessHacker.exe_PhUpperDualBoundElementAvlTree
test eax, eax
je 0x437a9c
lea ecx, ds:[eax - 8]
mov eax, dword [ecx + 0x24]
add eax, dword [ecx + 0x18]
cmp ebx, eax
jae 0x437a9c
mov eax, dword [ecx + 0x38]
test eax, eax
cmovne ecx, eax
cmp dword [ecx + 0x58], 0
jne 0x437a9c
mov dword [ecx + 0x58], 0xb
mov dword [ecx + 0x5c], esi
inc esi
cmp esi, dword [ebp - 0x2c]
jb 0x437a56
mov edi, dword [ebp - 0x1a4]
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x1ac]
push ebx
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [ebp - 0x1b4]
push 0
push 4
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x48]
add eax, 0x38
push eax
push esi
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x437af8
mov edx, dword [ebp - 0x34]
mov ecx, ebx
push 0x11
push 1
call fcn.004377a0
cmp dword [edi + 4], 0
mov dword [ebp - 0x28], 0
jbe 0x437bff
lea esi, [edi + 0x104]
nop
mov ebx, dword [esi]
test ebx, ebx
je 0x437bec
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x67
lea eax, ds:[ebp - 0xc8]
push eax
push dword [ebp - 0x1b0]
setb byte [ebp - 0x1a5]
mov dword [ebp - 0xb8], ebx
call sym.ProcessHacker.exe_PhUpperDualBoundElementAvlTree
test eax, eax
je 0x437b7a
lea ecx, [eax - 8]
mov eax, dword [ecx + 0x24]
add eax, dword [ecx + 0x18]
cmp ebx, eax
jae 0x437b7a
cmp byte [ebp - 0x1a5], 0
je 0x437b67
mov eax, dword [ecx + 0x38]
test eax, eax
cmovne ecx, eax
cmp dword [ecx + 0x58], 0
jne 0x437b7a
mov dword [ecx + 0x58], 7
mov eax, dword [esi - 0x28]
mov dword [ecx + 0x5c], eax
lea eax, [ebp - 0x24]
push eax
push 0x1c
lea eax, [ebp - 0x68]
push eax
push dword [esi]
push dword [ebp - 0x1ac]
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x437bec
cmp dword [ebp - 0x24], 0x1c
jne 0x437bec
mov ebx, dword ds:[ebp - 0x60]
cmp ebx, dword [ebp - 0x64]
jae 0x437bec
lea eax, [ebp - 0x130]
mov dword [ebp - 0x120], ebx
push eax
push dword [ebp - 0x1b0]
call sym.ProcessHacker.exe_PhUpperDualBoundElementAvlTree
lea ecx, [ecx]
test eax, eax
je 0x437bec
lea ecx, [eax - 8]
mov eax, dword [ecx + 0x24]
add eax, dword [ecx + 0x18]
cmp ebx, eax
jae 0x437bec
mov eax, dword [ecx + 0x38]
test eax, eax
cmovne ecx, eax
cmp dword [ecx + 0x58], 0
jne 0x437bec
mov dword [ecx + 0x58], 9
mov eax, dword [esi - 0x28]
mov dword [ecx + 0x5c], eax
mov ebx, dword [ebp - 0x28]
add esi, 0x60
inc ebx
mov dword [ebp - 0x28], ebx
cmp ebx, dword [edi + 4]
jb 0x437b10
mov eax, dword [ebp - 0x1b4]
add eax, 0x1c
mov dword [ebp - 0x1a4], eax
mov esi, dword [eax]
cmp esi, eax
je 0x437c95
cmp dword [esi + 0x58], 0
jne 0x437c8f
test dword [esi + 0x30], 0x1040000
mov ebx, dword [ebp - 0x1ac]
je 0x437cc2
cmp dword [esi + 0x38], esi
jne 0x437cc2
lea eax, [ebp - 0x1b4]
push eax
push dword [esi + 0x18]
push ebx
call sym.ProcessHacker.exe_PhGetProcessMappedFileName
test eax, eax
js 0x437cbc
mov edi, dword [ebp - 0x1b4]
push edi
call sym.ProcessHacker.exe_PhResolveDevicePrefix
test eax, eax
je 0x437c7f
mov ecx, edi
mov edi, eax
mov dword [ebp - 0x1b4], edi
test ecx, ecx
je 0x437c7f
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x437c7f
call fcn.004b3960
mov dword [esi + 0x58], 3
mov dword [esi + 0x5c], edi
mov eax, dword [ebp - 0x1a4]
mov esi, dword [esi]
cmp esi, eax
jne 0x437c18
push dword [ebp - 0x1b8]
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051e068
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1a4]
test dword [esi + 0x28], 0x1000
je 0x437c8f
mov al, byte [esi + 0x34]
test al, 1
je 0x437c89
test al, 2
jne 0x437c89
push 0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x18]
push ebx
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x437c89
xor edi, edi
xor ebx, ebx
cmp dword [ebp - 0x18], 0xffeeffee
jne 0x437cfe
mov edi, dword [ebp - 8]
mov ebx, edi
mov edi, edi
test edi, edi
je 0x437d67
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xb8], edi
push eax
push dword [ebp - 0x1b0]
call sym.ProcessHacker.exe_PhUpperDualBoundElementAvlTree
lea esp, [esp]
test eax, eax
je 0x437c89
mov edx, dword [eax + 0x10]
lea ecx, [eax - 8]
mov eax, dword [ecx + 0x24]
add eax, edx
cmp edi, eax
jae 0x437c89
jmp 0x437d40
cmp edx, edi
jne 0x437c89
cmp dword [ecx + 0x58], 0xb
mov eax, dword [ebp - 0x1a4]
jne 0x437c8f
mov dword [esi + 0x58], 0xd
mov dword [esi + 0x5c], ecx
jmp 0x437c8f
test ebx, ebx
je 0x437c89
lea eax, [ebp - 0x198]
mov dword [ebp - 0x188], ebx
push eax
push dword [ebp - 0x1b0]
call sym.ProcessHacker.exe_PhUpperDualBoundElementAvlTree
test eax, eax
je 0x437c89
mov edx, dword ds:[eax + 0x10]
lea ecx, [eax - 8]
mov eax, dword [ecx + 0x24]
add eax, edx
cmp ebx, eax
jae 0x437c89
cmp edx, ebx
jne 0x437c89
cmp dword ds:[ecx + 0x58], 0xc
mov eax, dword [ebp - 0x1a4]
jne 0x437c8f
mov dword [esi + 0x58], 0xe
mov dword [esi + 0x5c], ecx
jmp 0x437c8f