Function at 0x43b180
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
mov eax, dword [0x5c7004]
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 0x43b1c9
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c91
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 0x43b21c
mov eax, dword [edi]
test eax, eax
je 0x43b1f5
add edi, eax
mov dword [ebp - 0x1a4], edi
jne 0x43b1e0
push edx
push 0
push dword [0x5cd55c]
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.00534c91
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 0x43b269
lea ecx, [eax - 8]
mov eax, dword [ecx + 0x24]
add eax, dword [ecx + 0x18]
cmp eax, 0x7ffe0000
jbe 0x43b269
mov eax, dword [ecx + 0x38]
test eax, eax
cmovne ecx, eax
cmp dword [ecx + 0x58], 0
jne 0x43b269
mov dword [ecx + 0x58], 4
cmp dword [0x5c7aa8], 0x69
jb 0x43b2e5
test byte [0x5c9764], 1
jne 0x43b2cb
mov eax, 0x5c9764
lock bts dword [eax], 0x1f
jb 0x43b2b8
push 0
push 4
lea eax, [ebp - 0x28]
push eax
push 0xc5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edx, dword [0x5cd9d8]
test eax, eax
mov ecx, 0x5c9764
cmovns edx, dword [ebp - 0x28]
mov dword [0x5cd9d8], edx
call sym.ProcessHacker.exe_PhfEndInitOnce
jmp 0x43b2cb
test byte [0x5c9764], 1
nop
jne 0x43b2cb
xor edx, edx
mov ecx, eax
call sym.ProcessHacker.exe_PhfWaitForEvent
mov edx, dword [0x5cd9d8]
test edx, edx
je 0x43b2e5
push 0x12
push 1
mov ecx, ebx
call fcn.0043b100
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 0x43b458
mov edx, dword [ebp - 0x48]
test edx, edx
je 0x43b458
lfence
cmp dword [0x5c7aa8], 0x67
mov ecx, ebx
push 5
setb al
movzx eax, al
push eax
call fcn.0043b100
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 0x43b42c
mov eax, dword [ebp - 0x2c]
cmp eax, 0x3e8
jae 0x43b42c
shl eax, 2
push eax
push 4
lfence
push dword [0x5cd55c]
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 0x43b414
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 0x43b414
xor esi, esi
cmp dword [ebp - 0x2c], esi
jbe 0x43b40e
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 0x43b3fc
lea ecx, ds:[eax - 8]
mov eax, dword [ecx + 0x24]
add eax, dword [ecx + 0x18]
cmp ebx, eax
jae 0x43b3fc
mov eax, dword [ecx + 0x38]
test eax, eax
cmovne ecx, eax
cmp dword [ecx + 0x58], 0
jne 0x43b3fc
mov dword [ecx + 0x58], 0xb
mov dword [ecx + 0x5c], esi
inc esi
cmp esi, dword [ebp - 0x2c]
jb 0x43b3b6
mov edi, dword [ebp - 0x1a4]
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x1ac]
push ebx
push 0
push dword [0x5cd55c]
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 0x43b458
mov edx, dword [ebp - 0x34]
mov ecx, ebx
push 0x11
push 1
call fcn.0043b100
cmp dword [edi + 4], 0
mov dword [ebp - 0x28], 0
jbe 0x43b55f
lea esi, [edi + 0x104]
nop
mov ebx, dword [esi]
test ebx, ebx
je 0x43b54c
cmp dword [0x5c7aa8], 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 0x43b4da
lea ecx, [eax - 8]
mov eax, dword [ecx + 0x24]
add eax, dword [ecx + 0x18]
cmp ebx, eax
jae 0x43b4da
cmp byte [ebp - 0x1a5], 0
je 0x43b4c7
mov eax, dword [ecx + 0x38]
test eax, eax
cmovne ecx, eax
cmp dword [ecx + 0x58], 0
jne 0x43b4da
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 0x43b54c
cmp dword [ebp - 0x24], 0x1c
jne 0x43b54c
mov ebx, dword ds:[ebp - 0x60]
cmp ebx, dword [ebp - 0x64]
jae 0x43b54c
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 0x43b54c
lea ecx, [eax - 8]
mov eax, dword [ecx + 0x24]
add eax, dword [ecx + 0x18]
cmp ebx, eax
jae 0x43b54c
mov eax, dword [ecx + 0x38]
test eax, eax
cmovne ecx, eax
cmp dword [ecx + 0x58], 0
jne 0x43b54c
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 0x43b470
mov eax, dword [ebp - 0x1b4]
add eax, 0x1c
mov dword [ebp - 0x1a4], eax
mov esi, dword [eax]
cmp esi, eax
je 0x43b5f5
cmp dword [esi + 0x58], 0
jne 0x43b5ef
test dword [esi + 0x30], 0x1040000
mov ebx, dword [ebp - 0x1ac]
je 0x43b622
cmp dword [esi + 0x38], esi
jne 0x43b622
lea eax, [ebp - 0x1b4]
push eax
push dword [esi + 0x18]
push ebx
call sym.ProcessHacker.exe_PhGetProcessMappedFileName
test eax, eax
js 0x43b61c
mov edi, dword [ebp - 0x1b4]
push edi
call sym.ProcessHacker.exe_PhResolveDevicePrefix
test eax, eax
je 0x43b5df
mov ecx, edi
mov edi, eax
mov dword [ebp - 0x1b4], edi
test ecx, ecx
je 0x43b5df
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x43b5df
call fcn.004c1f60
mov dword [esi + 0x58], 3
mov dword [esi + 0x5c], edi
mov eax, dword [ebp - 0x1a4]
mov esi, dword [esi]
cmp esi, eax
jne 0x43b578
push dword [ebp - 0x1b8]
push 0
push dword [0x5cd55c]
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.00534c91
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1a4]
test dword [esi + 0x28], 0x1000
je 0x43b5ef
mov al, byte [esi + 0x34]
test al, 1
je 0x43b5e9
test al, 2
jne 0x43b5e9
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 0x43b5e9
xor edi, edi
xor ebx, ebx
cmp dword [ebp - 0x18], 0xffeeffee
jne 0x43b65e
mov edi, dword [ebp - 8]
mov ebx, edi
mov edi, edi
test edi, edi
je 0x43b6c7
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 0x43b5e9
mov edx, dword [eax + 0x10]
lea ecx, [eax - 8]
mov eax, dword [ecx + 0x24]
add eax, edx
cmp edi, eax
jae 0x43b5e9
jmp 0x43b6a0
cmp edx, edi
jne 0x43b5e9
cmp dword [ecx + 0x58], 0xb
mov eax, dword [ebp - 0x1a4]
jne 0x43b5ef
mov dword [esi + 0x58], 0xd
mov dword [esi + 0x5c], ecx
jmp 0x43b5ef
test ebx, ebx
je 0x43b5e9
lea eax, [ebp - 0x198]
mov dword [ebp - 0x188], ebx
push eax
push dword [ebp - 0x1b0]
call sym.ProcessHacker.exe_PhUpperDualBoundElementAvlTree
test eax, eax
je 0x43b5e9
mov edx, dword ds:[eax + 0x10]
lea ecx, [eax - 8]
mov eax, dword [ecx + 0x24]
add eax, edx
cmp ebx, eax
jae 0x43b5e9
cmp edx, ebx
jne 0x43b5e9
cmp dword ds:[ecx + 0x58], 0xc
mov eax, dword [ebp - 0x1a4]
jne 0x43b5ef
mov dword [esi + 0x58], 0xe
mov dword [esi + 0x5c], ecx
jmp 0x43b5ef