Function at 0x180085030
Capabilities:
Get system information on windows

Disassembly:
jmp 0x180085030
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x490
lea rdi, [rsp + 0x30]
mov ecx, pe_nt_image_headers64
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4a0]
mov rax, qword [0x1805a6200]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov byte [rsp + 0x64], 0
mov edx, 0x39
lea rcx, [rsp + 0x48]
call sym.ProcessMonitor.dll_PhEnumProcessesEx
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x180085095
mov eax, dword [rsp + 0x30]
jmp 0x180085d55
mov rax, qword [rsp + 0x4a0]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x48]
call sym.ProcessMonitor.dll_PhFindProcessInformation
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1800850cb
mov rcx, qword [rsp + 0x48]
call sym.ProcessMonitor.dll_PhFree
mov eax, 0xc0000225
jmp 0x180085d55
mov r9d, 4
mov r8b, 1
mov edx, 0x7ffe0000
mov rcx, qword [rsp + 0x4a0]
call fcn.18000e580
cmp dword [0x18059ff7c], 0x69
jb 0x180085164
lea rcx, [0x18058ea28]
call fcn.180012d60
movzx eax, al
test eax, eax
je 0x18008513d
xor r9d, r9d
mov r8d, 8
lea rdx, [rsp + 0x88]
mov ecx, 0xc5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jl 0x180085131
mov rax, qword [rsp + 0x88]
mov qword [0x1805a9b70], rax
lea rcx, [0x18058ea28]
call sym.ProcessMonitor.dll_PhfEndInitOnce
cmp qword [0x1805a9b70], 0
je 0x180085164
mov r9d, 0x12
mov r8b, 1
mov rdx, qword [0x1805a9b70]
mov rcx, qword [rsp + 0x4a0]
call fcn.18000e580
mov rcx, qword [rsp + 0x4a0]
call fcn.180013320
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x4a8]
call fcn.18000a110
test eax, eax
jl 0x18008538b
cmp qword [rsp + 0xb0], 0
je 0x18008538b
cmp dword [0x18059ff7c], 0x67
jae 0x1800851b3
mov dword [rsp + 0x468], 1
jmp 0x1800851be
mov dword [rsp + 0x468], 0
mov r9d, 5
movzx r8d, byte [rsp + 0x468]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x4a0]
call fcn.18000e580
mov rax, qword [rsp + 0xb0]
add rax, 0xe8
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0xf4]
mov rdx, rax
mov rcx, qword [rsp + 0x4a8]
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
jl 0x180085335
cmp dword [rsp + 0xf4], 0x3e8
jae 0x180085335
mov eax, dword [rsp + 0xf4]
shl rax, 3
mov rcx, rax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0xb0]
add rax, 0xf0
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x118]
mov rdx, rax
mov rcx, qword [rsp + 0x4a8]
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
jl 0x180085328
mov eax, dword [rsp + 0xf4]
shl rax, 3
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x128]
mov rdx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x4a8]
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
jl 0x180085328
mov dword [rsp + 0x60], 0
jmp 0x1800852d7
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0xf4]
cmp dword [rsp + 0x60], eax
jae 0x180085328
mov eax, dword [rsp + 0x60]
mov r9d, 0xb
mov r8b, 1
mov rcx, qword [rsp + 0x128]
mov rdx, qword [rcx + rax*8]
mov rcx, qword [rsp + 0x4a0]
call fcn.18000e580
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x180085326
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x60]
mov dword [rax + 0xb0], ecx
jmp 0x1800852cd
mov rcx, qword [rsp + 0x128]
call sym.ProcessMonitor.dll_PhFree
mov rax, qword [rsp + 0xb0]
add rax, 0x68
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x138]
mov rdx, rax
mov rcx, qword [rsp + 0x4a8]
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
jl 0x18008538b
mov r9d, 0x11
mov r8b, 1
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x4a0]
call fcn.18000e580
lea rdx, [rsp + 0x158]
mov rcx, qword [rsp + 0x4a8]
call fcn.180004710
test eax, eax
jl 0x1800855a8
cmp qword [rsp + 0x158], 0
je 0x1800855a8
mov byte [rsp + 0x64], 1
mov r9d, 6
mov r8b, 1
mov rdx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x4a0]
call fcn.18000e580
mov rax, qword [rsp + 0x158]
add rax, 0x88
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0xf4]
mov rdx, rax
mov rcx, qword [rsp + 0x4a8]
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
jl 0x18008554b
cmp dword [rsp + 0xf4], 0x3e8
jae 0x18008554b
mov eax, dword [rsp + 0xf4]
shl rax, 2
mov rcx, rax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x188], rax
mov rax, qword [rsp + 0x158]
add rax, 0x90
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0x174]
mov rdx, rax
mov rcx, qword [rsp + 0x4a8]
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
jl 0x18008553e
mov eax, dword [rsp + 0xf4]
shl rax, 2
mov qword [rsp + 0x470], rax
mov ecx, dword [rsp + 0x174]
call fcn.180001390
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x470]
mov r9, rcx
mov r8, qword [rsp + 0x188]
mov rdx, rax
mov rcx, qword [rsp + 0x4a8]
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
jl 0x18008553e
mov dword [rsp + 0x60], 0
jmp 0x1800854e6
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0xf4]
cmp dword [rsp + 0x60], eax
jae 0x18008553e
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x188]
mov ecx, dword [rcx + rax*4]
call fcn.180001390
mov r9d, 0xc
mov r8b, 1
mov rdx, rax
mov rcx, qword [rsp + 0x4a0]
call fcn.18000e580
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x18008553c
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x60]
mov dword [rax + 0xb0], ecx
jmp 0x1800854dc
mov rcx, qword [rsp + 0x188]
call sym.ProcessMonitor.dll_PhFree
mov rax, qword [rsp + 0x158]
add rax, 0x38
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0x194]
mov rdx, rax
mov rcx, qword [rsp + 0x4a8]
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
jl 0x1800855a8
mov ecx, dword [rsp + 0x194]
call fcn.180001390
mov r9d, 0x11
mov r8b, 1
mov rdx, rax
mov rcx, qword [rsp + 0x4a0]
call fcn.18000e580
mov dword [rsp + 0x60], 0
jmp 0x1800855bc
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x60], eax
jae 0x1800857e6
mov eax, dword [rsp + 0x60]
imul rax, rax, 0x88
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax + 0x100]
mov qword [rsp + 0x1a8], rax
mov rax, qword [rsp + 0x1a8]
cmp qword [rax + 0x68], 0
je 0x1800857e1
cmp dword [0x18059ff7c], 0x67
jae 0x180085617
mov dword [rsp + 0x478], 1
jmp 0x180085622
mov dword [rsp + 0x478], 0
mov r9d, 7
movzx r8d, byte [rsp + 0x478]
mov rax, qword [rsp + 0x1a8]
mov rdx, qword [rax + 0x68]
mov rcx, qword [rsp + 0x4a0]
call fcn.18000e580
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x18008566f
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x1a8]
mov rcx, qword [rcx + 0x30]
mov qword [rax + 0xb0], rcx
lea rax, [rsp + 0x208]
mov qword [rsp + 0x20], rax
mov r9d, 0x38
lea r8, [rsp + 0x1b8]
mov rax, qword [rsp + 0x1a8]
mov rdx, qword [rax + 0x68]
mov rcx, qword [rsp + 0x4a8]
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
jl 0x1800857e1
cmp qword [rsp + 0x208], 0x38
jne 0x1800857e1
mov rax, qword [rsp + 0x1c0]
cmp qword [rsp + 0x1c8], rax
jae 0x180085710
mov r9d, 9
mov r8b, 1
mov rdx, qword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x4a0]
call fcn.18000e580
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x180085710
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x1a8]
mov rcx, qword [rcx + 0x30]
mov qword [rax + 0xb0], rcx
movzx eax, byte [rsp + 0x64]
test eax, eax
je 0x1800857e1
cmp qword [rsp + 0x1b8], 0
je 0x1800857e1
mov rcx, qword [rsp + 0x1b8]
call fcn.180007b20
mov dword [rsp + 0x214], eax
mov ecx, dword [rsp + 0x214]
call fcn.180001390
lea rcx, [rsp + 0x208]
mov qword [rsp + 0x20], rcx
mov r9d, 0x1c
lea r8, [rsp + 0x228]
mov rdx, rax
mov rcx, qword [rsp + 0x4a8]
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
jl 0x1800857e1
cmp qword [rsp + 0x208], 0x1c
jne 0x1800857e1
mov eax, dword [rsp + 0x22c]
cmp dword [rsp + 0x230], eax
jae 0x1800857e1
mov ecx, dword [rsp + 0x230]
call fcn.180001390
mov r9d, 0xa
mov r8b, 1
mov rdx, rax
mov rcx, qword [rsp + 0x4a0]
call fcn.18000e580
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x1800857e1
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x1a8]
mov rcx, qword [rcx + 0x30]
mov qword [rax + 0xb0], rcx
jmp 0x1800855b2
mov rax, qword [rsp + 0x4a0]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x70], rax
jmp 0x180085806
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x4a0]
add rax, 0x38
cmp qword [rsp + 0x70], rax
je 0x180085aef
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
cmp dword [rax + 0xa8], 0
je 0x180085837
jmp 0x1800857f9
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x58]
and eax, 0x1040000
test eax, eax
je 0x1800858db
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x68]
cmp qword [rax + 0x68], rcx
jne 0x1800858db
lea r8, [rsp + 0x268]
mov rax, qword [rsp + 0x68]
mov rdx, qword [rax + 0x30]
mov rcx, qword [rsp + 0x4a8]
call sym.ProcessMonitor.dll_PhGetProcessMappedFileName
test eax, eax
jl 0x1800858db
mov rcx, qword [rsp + 0x268]
call sym.ProcessMonitor.dll_PhResolveDevicePrefix
mov qword [rsp + 0x278], rax
cmp qword [rsp + 0x278], 0
je 0x1800858b3
mov rdx, qword [rsp + 0x278]
lea rcx, [rsp + 0x268]
call fcn.180003fd0
mov rax, qword [rsp + 0x68]
mov dword [rax + 0xa8], 3
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x268]
mov qword [rax + 0xb0], rcx
jmp 0x1800857f9
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x50]
and eax, 0x1000
test eax, eax
je 0x180085aea
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax + 0x60]
and al, 1
movzx eax, al
test eax, eax
je 0x180085aea
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax + 0x60]
shr al, 1
and al, 1
movzx eax, al
test eax, eax
jne 0x180085aea
mov qword [rsp + 0x20], 0
mov r9d, 0x30
lea r8, [rsp + 0x288]
mov rax, qword [rsp + 0x68]
mov rdx, qword [rax + 0x30]
mov rcx, qword [rsp + 0x4a8]
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
jl 0x180085aea
mov qword [rsp + 0x2c8], 0
mov dword [rsp + 0x2d0], 0
lea rax, [rsp + 0x288]
mov qword [rsp + 0x2e0], rax
lea rax, [rsp + 0x288]
mov qword [rsp + 0x2e8], rax
mov rax, qword [rsp + 0x2e0]
cmp dword [rax + 0x10], 0xffeeffee
jne 0x1800859b0
mov rax, qword [rsp + 0x2e0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x2c8], rax
mov rax, qword [rsp + 0x2e8]
cmp dword [rax + 8], 0xffeeffee
jne 0x1800859d3
mov rax, qword [rsp + 0x2e8]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x2d0], eax
cmp qword [rsp + 0x2c8], 0
je 0x180085a5a
mov rdx, qword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x4a0]
call sym.ProcessMonitor.dll_PhLookupMemoryItemList
mov qword [rsp + 0x2d8], rax
cmp qword [rsp + 0x2d8], 0
je 0x180085a55
mov rax, qword [rsp + 0x2d8]
mov rcx, qword [rsp + 0x2c8]
cmp qword [rax + 0x30], rcx
jne 0x180085a55
mov rax, qword [rsp + 0x2d8]
cmp dword [rax + 0xa8], 0xb
jne 0x180085a55
mov rax, qword [rsp + 0x68]
mov dword [rax + 0xa8], 0xd
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x2d8]
mov qword [rax + 0xb0], rcx
jmp 0x1800857f9
jmp 0x180085aea
cmp dword [rsp + 0x2d0], 0
je 0x180085aea
mov ecx, dword [rsp + 0x2d0]
call fcn.180001390
mov rdx, rax
mov rcx, qword [rsp + 0x4a0]
call sym.ProcessMonitor.dll_PhLookupMemoryItemList
mov qword [rsp + 0x2d8], rax
cmp qword [rsp + 0x2d8], 0
je 0x180085aea
mov ecx, dword [rsp + 0x2d0]
call fcn.180001390
mov rcx, qword [rsp + 0x2d8]
cmp qword [rcx + 0x30], rax
jne 0x180085aea
mov rax, qword [rsp + 0x2d8]
cmp dword [rax + 0xa8], 0xc
jne 0x180085aea
mov rax, qword [rsp + 0x68]
mov dword [rax + 0xa8], 0xe
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x2d8]
mov qword [rax + 0xb0], rcx
jmp 0x1800857f9
jmp 0x1800857f9
lea rax, [rsp + 0x300]
mov rdi, rax
xor eax, eax
mov ecx, 0xf0
rep stosb byte [rdi], al
mov qword [rsp + 0x408], 0
lea rcx, [rsp + 0x428]
call sym.ProcessMonitor.dll_PhGetSystemRoot
lea rdx, str.System32_ntdll.dll
lea rcx, [rsp + 0x428]
call fcn.180009520
mov qword [rsp + 0x448], rax
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x408]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, str.LdrSystemDllInitBlock
mov rax, qword [rsp + 0x448]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x4a8]
call sym.ProcessMonitor.dll_PhGetProcedureAddressRemote
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x180085bb8
cmp qword [rsp + 0x408], 0
je 0x180085bb8
mov qword [rsp + 0x20], 0
mov r9d, 0xf0
lea r8, [rsp + 0x300]
mov rdx, qword [rsp + 0x408]
mov rcx, qword [rsp + 0x4a8]
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x448]
call sym.ProcessMonitor.dll_PhDereferenceObject
cmp dword [rsp + 0x30], 0
jl 0x180085d49
cmp dword [rsp + 0x300], 0
je 0x180085d49
mov qword [rsp + 0x450], 0
mov qword [rsp + 0x458], 0
lea rax, [rsp + 0x3d0]
mov ecx, dword [rsp + 0x300]
lea rcx, [rsp + rcx + 0x300]
cmp rax, rcx
ja 0x180085c32
mov rax, qword [rsp + 0x3b8]
mov qword [rsp + 0x450], rax
mov rax, qword [rsp + 0x3c8]
mov qword [rsp + 0x458], rax
cmp qword [rsp + 0x450], 0
je 0x180085cb7
mov rdx, qword [rsp + 0x450]
mov rcx, qword [rsp + 0x4a0]
call sym.ProcessMonitor.dll_PhLookupMemoryItemList
mov qword [rsp + 0x418], rax
cmp qword [rsp + 0x418], 0
je 0x180085cb7
mov rax, qword [rsp + 0x418]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x418]
cmp qword [rax + 0x68], rcx
jne 0x180085cb7
mov rax, qword [rsp + 0x68]
mov dword [rax + 0xa8], 0xf
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x68], rax
jmp 0x180085c7c
movzx eax, byte [rsp + 0x64]
test eax, eax
je 0x180085d49
cmp qword [rsp + 0x458], 0
je 0x180085d49
mov rdx, qword [rsp + 0x458]
mov rcx, qword [rsp + 0x4a0]
call sym.ProcessMonitor.dll_PhLookupMemoryItemList
mov qword [rsp + 0x418], rax
cmp qword [rsp + 0x418], 0
je 0x180085d49
mov rax, qword [rsp + 0x418]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x418]
cmp qword [rax + 0x68], rcx
jne 0x180085d49
mov rax, qword [rsp + 0x68]
mov dword [rax + 0xa8], 0x10
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x68], rax
jmp 0x180085d0e
mov rcx, qword [rsp + 0x48]
call sym.ProcessMonitor.dll_PhFree
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1803bc8c0]
call fcn.180014e20
mov rax, rdi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18000ce90
add rsp, 0x490
pop rdi
ret