Function at 0x140030f30
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push r12
push r13
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov eax, dword [0x140155b64]
mov r15, rcx
mov dword [rbp + 0xf8], eax
mov r8d, eax
xor r12b, r12b
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rbp + 0xf8]
lea r9, [rbp + 0xf8]
mov rdx, rax
mov ecx, 0x39
mov r13, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000023
je 0x140030fa2
cmp eax, 0xc0000004
jne 0x140030fbd
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, r13
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rbp + 0xf8]
jmp 0x140030f61
mov qword [rsp + 0x50], r13
test eax, eax
jns 0x140030fe6
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, r13
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r13, qword [rbp + 0xf0]
mov qword [rsp + 0x50], r13
jmp 0x140031003
mov ecx, dword [0x140155b64]
cmp dword [rbp + 0xf8], 0x100000
cmovbe ecx, dword [rbp + 0xf8]
mov dword [0x140155b64], ecx
test ebx, ebx
jns 0x140031019
mov eax, ebx
add rsp, 0x1b0
pop r15
pop r13
pop r12
pop rbx
pop rbp
ret
mov rcx, qword [r15]
mov qword [rsp + 0x1a8], rdi
mov rdi, r13
cmp qword [rdi + 0x50], rcx
je 0x140031054
mov eax, dword [rdi]
test eax, eax
je 0x140031038
add rdi, rax
jne 0x140031027
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, r13
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0000225
jmp 0x1400316eb
mov qword [rsp + 0x1e0], rsi
mov edx, 0x7ffe0000
mov rcx, r15
mov qword [rsp + 0x1a0], r14
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x140031094
mov rcx, qword [rax + 0x60]
test rcx, rcx
cmovne rax, rcx
cmp dword [rax + 0xa0], 0
jne 0x140031094
mov dword [rax + 0xa0], 4
mov rbx, qword [rbp + 0xe8]
lea r8, [rbp]
xor r14d, r14d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], r14
lea r9d, [r14 + 0x30]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400311e2
mov rdx, qword [rbp + 8]
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x1400310ed
mov rcx, qword [rax + 0x60]
test rcx, rcx
cmovne rax, rcx
cmp dword [rax + 0xa0], r14d
jne 0x1400310ed
mov dword [rax + 0xa0], 5
mov rdx, qword [rbp + 8]
lea r8, [rbp + 0xf0]
add rdx, 0xe8
mov qword [rsp + 0x20], r14
mov r9d, 4
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x1400311e2
mov eax, dword [rbp + 0xf0]
cmp eax, 0x3e8
jae 0x1400311e2
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8d, eax
shl r8, 3
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdx, qword [rbp + 8]
lea r8, [rsp + 0x70]
add rdx, 0xf0
mov qword [rsp + 0x20], r14
mov r9d, 8
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x1400311d0
mov r9d, dword [rbp + 0xf0]
mov r8, rsi
mov rdx, qword [rsp + 0x70]
mov rcx, rbx
shl r9, 3
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x1400311d0
mov ebx, r14d
cmp dword [rbp + 0xf0], ebx
jbe 0x1400311c9
mov edx, ebx
mov r9d, 0xb
mov rcx, r15
mov rdx, qword [rsi + rdx*8]
call fcn.140030ee0
test rax, rax
je 0x1400311bf
mov dword [rax + 0xa8], ebx
inc ebx
cmp ebx, dword [rbp + 0xf0]
jb 0x1400311a0
mov rbx, qword [rbp + 0xe8]
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r9d, 8
mov qword [rsp + 0x20], r14
lea r8, [rsp + 0x78]
mov rcx, rbx
lea edx, [r9 + 0x12]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x14003131a
mov rbx, qword [rsp + 0x78]
test rbx, rbx
je 0x14003131a
mov r9d, 6
mov rdx, rbx
mov rcx, r15
mov r12b, 1
call fcn.140030ee0
mov rcx, qword [rbp + 0xe8]
lea rdx, [rbx + 0x88]
mov r9d, 4
mov qword [rsp + 0x20], r14
lea r8, [rbp + 0xf0]
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x14003131a
mov eax, dword [rbp + 0xf0]
cmp eax, 0x3e8
jae 0x14003131a
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8d, eax
shl r8, 2
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea rdx, [rbx + 0x90]
mov qword [rsp + 0x20], r14
mov rbx, qword [rbp + 0xe8]
lea r8, [rsp + 0x40]
mov rcx, rbx
mov r9d, 4
mov rsi, rax
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x140031308
mov r9d, dword [rbp + 0xf0]
mov r8, rsi
mov edx, dword [rsp + 0x40]
mov rcx, rbx
shl r9, 2
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x140031308
mov ebx, r14d
cmp dword [rbp + 0xf0], ebx
jbe 0x140031308
nop
mov eax, ebx
mov r9d, 0xc
mov rcx, r15
mov edx, dword [rsi + rax*4]
call fcn.140030ee0
test rax, rax
je 0x1400312fe
mov dword [rax + 0xa8], ebx
inc ebx
cmp ebx, dword [rbp + 0xf0]
jb 0x1400312e0
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor edx, edx
cmp dword [rdi + 4], edx
jbe 0x14003153a
jmp 0x140031332
xor edx, edx
mov eax, r14d
lea rsi, [rdi + 0x100]
imul rcx, rax, 0x88
add rsi, rcx
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
jae 0x140031407
cmp byte [0x14015e000], 0
mov rax, qword [rsi + 0x30]
mov ebx, dword [sym.ProcessHacker.exe_ThreadQueryAccess]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rdx
je 0x14003137b
mov eax, ebx
and eax, 0x848
cmp eax, ebx
je 0x1400313bb
mov qword [rbp - 0x48], rdx
lea r9, [rsp + 0x58]
mov dword [rbp - 0x38], edx
lea r8, [rbp - 0x50]
mov qword [rbp - 0x40], rdx
lea rcx, [rsp + 0x30]
xorps xmm0, xmm0
mov dword [rbp - 0x50], 0x30
mov edx, ebx
movdqu xmmword [rbp - 0x30], xmm0
call qword [sym.imp.ntdll.dll_NtOpenThread]
cmp eax, 0xc0000022
jne 0x1400313cc
cmp byte [0x14015e000], 0
je 0x140031407
lea r8, [rsp + 0x58]
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1400c0680
test eax, eax
js 0x140031407
mov rcx, qword [rsp + 0x30]
lea r8, [rbp + 0x68]
mov r9d, 0x30
mov qword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x1400313fc
mov rax, qword [rbp + 0x70]
mov qword [rsi + 0x68], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtClose]
mov rdx, qword [rsi + 0x68]
test rdx, rdx
je 0x14003152d
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
mov rdx, rax
test rax, rax
je 0x14003144d
mov rcx, qword [rax + 0x60]
test rcx, rcx
cmovne rdx, rcx
cmp dword [rdx + 0xa0], 0
jne 0x14003144d
mov dword [rdx + 0xa0], 7
mov rax, qword [rsi + 0x30]
mov qword [rdx + 0xa8], rax
mov rbx, qword [rbp + 0xe8]
lea rax, [rsp + 0x48]
mov rdx, qword [rsi + 0x68]
lea r8, [rbp + 0x30]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov r9d, 0x38
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x14003152d
cmp qword [rsp + 0x48], 0x38
jne 0x14003152d
mov rdx, qword [rbp + 0x40]
cmp rdx, qword [rbp + 0x38]
jae 0x1400314cc
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
mov rdx, rax
test rax, rax
je 0x1400314cc
mov rcx, qword [rax + 0x60]
test rcx, rcx
cmovne rdx, rcx
cmp dword [rdx + 0xa0], 0
jne 0x1400314cc
mov dword [rdx + 0xa0], 9
mov rax, qword [rsi + 0x30]
mov qword [rdx + 0xa8], rax
test r12b, r12b
je 0x14003152d
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x14003152d
mov edx, eax
lea r8, [rbp - 0x20]
lea rax, [rsp + 0x48]
mov r9d, 0x1c
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x14003152d
cmp qword [rsp + 0x48], 0x1c
jne 0x14003152d
mov eax, dword [rbp - 0x18]
cmp eax, dword [rbp - 0x1c]
jae 0x14003152d
mov edx, eax
mov r9d, 0xa
mov rcx, r15
call fcn.140030ee0
test rax, rax
je 0x14003152d
mov rcx, qword [rsi + 0x30]
mov qword [rax + 0xa8], rcx
inc r14d
cmp r14d, dword [rdi + 4]
jb 0x140031330
mov rbx, qword [r15 + 0x38]
lea rsi, [r15 + 0x38]
mov r14, qword [rsp + 0x1a0]
cmp rbx, rsi
je 0x1400316cf
mov r13, qword [rbp + 0xe8]
nop word [rax + rax]
cmp dword [rbx + 0xa0], 0
jne 0x1400316be
test dword [rbx + 0x58], 0x1040000
je 0x1400315e4
cmp qword [rbx + 0x60], rbx
jne 0x1400315e4
mov rdx, qword [rbx + 0x30]
lea r8, [rsp + 0x38]
mov rcx, r13
call sym.ProcessHacker.exe_PhGetProcessMappedFileName
test eax, eax
js 0x1400315e4
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call sym.ProcessHacker.exe_PhResolveDevicePrefix
test rax, rax
je 0x1400315ce
mov rcx, rdi
mov qword [rsp + 0x38], rax
mov rdi, rax
test rcx, rcx
je 0x1400315ce
add rcx, 0xfffffffffffffff0
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400315c9
call fcn.1400ae900
mov rdi, qword [rsp + 0x38]
mov dword [rbx + 0xa0], 3
mov qword [rbx + 0xa8], rdi
jmp 0x1400316be
test dword [rbx + 0x50], 0x1000
je 0x1400316be
mov rdx, qword [rbx + 0x30]
lea r8, [rbp - 0x80]
mov r9d, 0x30
mov qword [rsp + 0x20], 0
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x1400316be
xor edx, edx
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
mov ecx, edx
mov edi, edx
jb 0x140031642
cmp dword [rbp - 0x70], 0xffeeffee
cmove rdi, qword [rbp - 0x58]
cmp dword [rbp - 0x78], 0xffeeffee
jne 0x140031659
mov ecx, dword [rbp - 0x68]
jmp 0x140031659
cmp dword [rbp - 0x70], 0xffeeffee
cmove rdi, qword [rbp - 0x68]
cmp dword [rbp - 0x78], 0xffeeffee
cmove ecx, dword [rbp - 0x70]
test rdi, rdi
je 0x140031689
mov rdx, rdi
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x1400316be
cmp qword [rax + 0x30], rdi
jne 0x1400316be
cmp dword [rax + 0xa0], 0xb
jne 0x1400316be
mov dword [rbx + 0xa0], 0xd
jmp 0x1400316b7
test ecx, ecx
je 0x1400316be
mov edi, ecx
mov edx, ecx
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x1400316be
cmp qword [rax + 0x30], rdi
jne 0x1400316be
cmp dword [rax + 0xa0], 0xc
jne 0x1400316be
mov dword [rbx + 0xa0], 0xe
mov qword [rbx + 0xa8], rax
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x140031560
mov r13, qword [rsp + 0x50]
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, r13
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rsi, qword [rsp + 0x1e0]
xor eax, eax
mov rdi, qword [rsp + 0x1a8]
add rsp, 0x1b0
pop r15
pop r13
pop r12
pop rbx
pop rbp
ret