Function at 0x462ba0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf8
lea eax, [ebp - 0x1b8]
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0xc], ebx
push 0
push eax
mov dword [ebp - 0x1c4], edi
call fcn.00580ff0
add esp, 0xc
lea eax, [ebp - 0x1b0]
push 0xf0
push 0
push eax
call fcn.00580ff0
add esp, 0xc
mov dword [ebp - 0x1c0], ebx
cmp dword [0x635f50], 3
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x1bc], 0
push eax
jl 0x462c22
mov edx, 0x410
lea ecx, [ebp - 0xb4]
call fcn.00523a80
nop
jmp 0x462c7e
lea eax, [ebp - 0x1dc]
mov dword [ebp - 0x1dc], 0x18
push eax
push 0x410
lea eax, [ebp - 0xb4]
mov dword [ebp - 0x1d8], 0
push eax
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c8], 0
call dword [sym.imp.ntdll.dll_NtOpenProcess]
cmp eax, 0xc0000022
je 0x462c88
mov edi, edi
test eax, eax
jns 0x462d89
push ebx
push 0x400
lea eax, [ebp - 0xb4]
push eax
call sym.SystemInformer.exe_PhOpenProcess
mov esi, eax
test esi, esi
jns 0x462d89
cmp esi, 0xc0000022
je 0x462cde
cmp esi, 0xc0000005
je 0x462cde
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x462ccc
movzx eax, si
jmp 0x462ce8
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x462cec
mov eax, esi
jmp 0x462ce8
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x462cf7
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x462d05
push eax
lfence
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x462d61
lfence
lfence
push dword [esi + 4]
push 0x5cc39c
push str.Unable_to_open_the_process.
push 0xfffe
push 0x20
push edi
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x462fb2
lfence
call fcn.004fbe40
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret
push str.Unable_to_open_the_process.
push 0x5cc39c
push 0x10
push edi
call sym.SystemInformer.exe_PhShowMessage
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xb4]
lea eax, [ebp - 8]
push 0
push eax
push 0
push str.LdrSystemDllInitBlock
push 0x630e34
push ebx
call sym.SystemInformer.exe_PhGetProcedureAddressRemote
mov edi, eax
test edi, edi
js 0x462e24
push 0x98
push 4
lfence
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0x98
mov esi, eax
push 0
push esi
call fcn.00580ff0
add esp, 0xc
push 0
push 0x98
push esi
push dword [ebp - 8]
push ebx
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x462fc3
mov ecx, dword [esi]
lea eax, [esi + 0x7c]
add ecx, esi
cmp eax, ecx
jbe 0x462e1e
push esi
push 0
lfence
push dword [0x633f94]
mov edi, 0xc0000004
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test edi, edi
js 0x462e24
mov esi, dword [ebp - 0x1bc]
mov dword [ebp - 0x1b4], esi
mov ecx, dword [ebp - 0xb4]
lea edx, [ebp - 0xb0]
call fcn.004865a0
test eax, eax
js 0x462f8d
xor esi, esi
lea edi, [ebp - 0x1a8]
mov edx, dword [ebp + esi*4 - 0xb0]
test edx, edx
je 0x462e7a
lea eax, [ebp - 0xbc]
mov ecx, esi
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00486a20
test al, al
je 0x462e7a
mov eax, dword [ebp - 0xb8]
mov dword [edi - 4], eax
mov eax, dword [ebp - 0xbc]
mov dword [edi], eax
inc esi
add edi, 0xc
cmp esi, 0x14
jb 0x462e45
cmp dword [ebp - 0xc], 4
jne 0x462ef3
push 0
push 4
lea eax, [ebp - 0xc]
push eax
push 0xdd
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, edi
test eax, eax
js 0x462ef3
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
mov ecx, eax
and eax, 0x100
shr ecx, 4
and ecx, 0x30
or ecx, eax
lea eax, [ebp - 0xbc]
shr ecx, 4
push eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 8], ecx
push eax
mov ecx, 0xf
call fcn.00486a20
test al, al
je 0x462ef3
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xf4], eax
mov esi, dword [0x633f80]
lea eax, [ebp - 0x1bc]
push eax
push 0
push 5
push 0xd7
push esi
call sym.SystemInformer.exe_PhLoadResource
test al, al
je 0x462f32
lea eax, [ebp - 0x1b8]
push eax
push 0x462fe0
push dword [ebp - 0x1c4]
push dword [ebp - 0x1bc]
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
lea esi, [ebp - 0x1a8]
mov edi, 0x14
lea ecx, [ecx]
mov eax, dword [esi - 4]
mov dword [esi - 4], 0
test eax, eax
je 0x462f65
lea ecx, [eax - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x462f65
lea esp, [esp]
call fcn.004fbe40
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
je 0x462f85
lea ecx, [eax - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x462f85
nop
call fcn.004fbe40
add esi, 0xc
sub edi, 1
jne 0x462f40
mov eax, dword [ebp - 0x1b4]
test eax, eax
je 0x462fa6
push eax
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 0xb4]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret
push esi
push 0
lfence
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x462e24