Function at 0x140030610
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r15
lea rbp, [rsp - 0xf8]
sub rsp, 0x1f8
mov eax, dword [0x140156cdc]
mov r13, rdx
mov dword [rbp + 0x148], eax
mov r8d, eax
mov r15, rcx
xor r12b, r12b
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rbp + 0x148]
lea r9, [rbp + 0x148]
mov rdx, rax
mov ecx, 0x39
mov rsi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000023
je 0x140030682
cmp eax, 0xc0000004
jne 0x14003069d
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rbp + 0x148]
jmp 0x140030641
mov qword [rsp + 0x68], rsi
test eax, eax
jns 0x1400306c6
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rsi, qword [rbp + 0x140]
mov qword [rsp + 0x68], rsi
jmp 0x1400306e3
mov ecx, dword [0x140156cdc]
cmp dword [rbp + 0x148], 0x100000
cmovbe ecx, dword [rbp + 0x148]
mov dword [0x140156cdc], ecx
test ebx, ebx
jns 0x1400306fa
mov eax, ebx
add rsp, 0x1f8
pop r15
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [r15]
mov qword [rsp + 0x230], rdi
mov rdi, rsi
cmp qword [rdi + 0x50], rcx
je 0x140030735
mov eax, dword [rdi]
test eax, eax
je 0x140030719
add rdi, rax
jne 0x140030708
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0000225
jmp 0x140030e18
mov edx, 0x7ffe0000
mov qword [rsp + 0x1f0], r14
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x14003076d
mov rcx, qword [rax + 0x60]
test rcx, rcx
cmovne rax, rcx
cmp dword [rax + 0xa0], 0
jne 0x14003076d
mov dword [rax + 0xa0], 4
xor esi, esi
lea r8, [rbp + 0x68]
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, r13
lea r9d, [rsi + 0x30]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400308ad
mov rdx, qword [rbp + 0x70]
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x1400307bd
mov rcx, qword [rax + 0x60]
test rcx, rcx
cmovne rax, rcx
cmp dword [rax + 0xa0], esi
jne 0x1400307bd
mov dword [rax + 0xa0], 5
mov rdx, qword [rbp + 0x70]
lea r8, [rbp + 0x140]
add rdx, 0xe8
mov qword [rsp + 0x20], rsi
mov r9d, 4
mov rcx, r13
call sym.ProcessHacker.exe_PhReadVirtualMemory
test eax, eax
js 0x1400308ad
mov eax, dword [rbp + 0x140]
cmp eax, 0x3e8
jae 0x1400308ad
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 + 0x70]
lea r8, [rbp - 0x80]
xor ebx, ebx
add rdx, 0xf0
mov rcx, r13
mov qword [rsp + 0x20], rbx
mov rsi, rax
lea r9d, [rbx + 8]
call sym.ProcessHacker.exe_PhReadVirtualMemory
test eax, eax
js 0x140030899
mov r9d, dword [rbp + 0x140]
mov r8, rsi
mov rdx, qword [rbp - 0x80]
mov rcx, r13
shl r9, 3
mov qword [rsp + 0x20], rbx
call sym.ProcessHacker.exe_PhReadVirtualMemory
test eax, eax
js 0x140030899
cmp dword [rbp + 0x140], ebx
jbe 0x140030899
nop dword [rax + rax]
mov edx, ebx
mov r9d, 0xb
mov rcx, r15
mov rdx, qword [rsi + rdx*8]
call fcn.1400305c0
test rax, rax
je 0x14003088f
mov dword [rax + 0xa8], ebx
inc ebx
cmp ebx, dword [rbp + 0x140]
jb 0x140030870
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor esi, esi
mov r9d, 8
mov qword [rsp + 0x20], rsi
lea r8, [rbp - 0x78]
mov rcx, r13
lea edx, [r9 + 0x12]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400309dc
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x1400309dc
mov r9d, 6
mov rdx, rbx
mov rcx, r15
mov r12b, 1
call fcn.1400305c0
lea rdx, [rbx + 0x88]
mov qword [rsp + 0x20], rsi
mov r9d, 4
lea r8, [rbp + 0x140]
mov rcx, r13
call sym.ProcessHacker.exe_PhReadVirtualMemory
test eax, eax
js 0x1400309dc
mov eax, dword [rbp + 0x140]
cmp eax, 0x3e8
jae 0x1400309dc
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 rcx, r13
xor ebx, ebx
lea r8, [rsp + 0x60]
mov rsi, rax
mov qword [rsp + 0x20], rbx
lea r9d, [rbx + 4]
call sym.ProcessHacker.exe_PhReadVirtualMemory
test eax, eax
js 0x1400309c8
mov r9d, dword [rbp + 0x140]
mov r8, rsi
mov edx, dword [rsp + 0x60]
mov rcx, r13
shl r9, 2
mov qword [rsp + 0x20], rbx
call sym.ProcessHacker.exe_PhReadVirtualMemory
test eax, eax
js 0x1400309c8
cmp dword [rbp + 0x140], ebx
jbe 0x1400309c8
nop word [rax + rax]
mov eax, ebx
mov r9d, 0xc
mov rcx, r15
mov edx, dword [rsi + rax*4]
call fcn.1400305c0
test rax, rax
je 0x1400309be
mov dword [rax + 0xa8], ebx
inc ebx
cmp ebx, dword [rbp + 0x140]
jb 0x1400309a0
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor esi, esi
cmp dword [rdi + 4], 0
mov r14d, esi
jbe 0x140030c0a
nop dword [rax]
mov eax, r14d
lea rbx, [rdi + 0x100]
imul rcx, rax, 0x88
add rbx, rcx
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
jae 0x140030a5e
mov r8, qword [rbx + 0x30]
lea rcx, [rsp + 0x70]
mov edx, dword [sym.ProcessHacker.exe_ThreadQueryAccess]
call sym.ProcessHacker.exe_PhOpenThread
test eax, eax
js 0x140030a5e
mov rcx, qword [rsp + 0x70]
lea r8, [rbp + 0xb8]
mov r9d, 0x30
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x140030a53
mov rax, qword [rbp + 0xc0]
mov qword [rbx + 0x68], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtClose]
mov rdx, qword [rbx + 0x68]
test rdx, rdx
je 0x140030bfd
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
mov rdx, rax
test rax, rax
je 0x140030aa4
mov rcx, qword [rax + 0x60]
test rcx, rcx
cmovne rdx, rcx
cmp dword [rdx + 0xa0], 0
jne 0x140030aa4
mov dword [rdx + 0xa0], 7
mov rax, qword [rbx + 0x30]
mov qword [rdx + 0xa8], rax
mov rsi, qword [rbx + 0x68]
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov r9d, 0x38
lea r8, [rbp + 0x30]
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
cmp eax, 0xc0000022
jne 0x140030b40
mov rcx, qword [0x14015c480]
test rcx, rcx
je 0x140030bfb
lea rax, [rbp + 0x30]
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], rax
xor esi, esi
mov dword [rsp + 0x48], esi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rsi
xor r9d, r9d
mov qword [rbp - 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 0x28
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rbp + 0x98]
mov dword [rsp + 0x28], 0x999920e3
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x28], 0x38
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
jmp 0x140030b42
xor esi, esi
test eax, eax
js 0x140030bfd
cmp qword [rsp + 0x50], 0x38
jne 0x140030bfd
mov rdx, qword [rbp + 0x40]
cmp rdx, qword [rbp + 0x38]
jae 0x140030b99
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
mov rdx, rax
test rax, rax
je 0x140030b99
mov rcx, qword [rax + 0x60]
test rcx, rcx
cmovne rdx, rcx
cmp dword [rdx + 0xa0], 0
jne 0x140030b99
mov dword [rdx + 0xa0], 9
mov rax, qword [rbx + 0x30]
mov qword [rdx + 0xa8], rax
test r12b, r12b
je 0x140030bfd
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x140030bfd
mov edx, eax
lea r8, [rbp + 0x10]
lea rax, [rsp + 0x50]
mov r9d, 0x1c
mov rcx, r13
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhReadVirtualMemory
test eax, eax
js 0x140030bfd
cmp qword [rsp + 0x50], 0x1c
jne 0x140030bfd
mov eax, dword [rbp + 0x18]
cmp eax, dword [rbp + 0x14]
jae 0x140030bfd
mov edx, eax
mov r9d, 0xa
mov rcx, r15
call fcn.1400305c0
test rax, rax
je 0x140030bfd
mov rcx, qword [rbx + 0x30]
mov qword [rax + 0xa8], rcx
jmp 0x140030bfd
xor esi, esi
inc r14d
cmp r14d, dword [rdi + 4]
jb 0x1400309f0
mov rbx, qword [r15 + 0x38]
lea rsi, [r15 + 0x38]
cmp rbx, rsi
je 0x140030dfa
nop dword [rax + rax]
cmp dword [rbx + 0xa0], 0
jne 0x140030dee
test dword [rbx + 0x58], 0x1040000
je 0x140030ca4
cmp qword [rbx + 0x60], rbx
jne 0x140030ca4
mov rdx, qword [rbx + 0x30]
lea r8, [rsp + 0x58]
mov rcx, r13
call sym.ProcessHacker.exe_PhGetProcessMappedFileName
test eax, eax
js 0x140030ca4
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call sym.ProcessHacker.exe_PhResolveDevicePrefix
test rax, rax
je 0x140030c8e
mov rcx, rdi
mov qword [rsp + 0x58], rax
mov rdi, rax
test rcx, rcx
je 0x140030c8e
add rcx, 0xfffffffffffffff0
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140030c89
call fcn.1400ae580
mov rdi, qword [rsp + 0x58]
mov dword [rbx + 0xa0], 3
mov qword [rbx + 0xa8], rdi
jmp 0x140030dee
test dword [rbx + 0x50], 0x1000
je 0x140030dee
mov rdi, qword [rbx + 0x30]
lea r8, [rbp - 0x70]
xor r14d, r14d
mov rdx, rdi
mov rcx, r13
mov qword [rsp + 0x20], r14
lea r9d, [r14 + 0x30]
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
cmp eax, 0xc0000022
jne 0x140030d41
mov rcx, qword [0x14015c480]
test rcx, rcx
je 0x140030dee
mov dword [rsp + 0x48], r14d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], r14
xor r9d, r9d
mov qword [rbp - 8], rax
xor r8d, r8d
mov dword [rsp + 0x38], 0x28
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rbp + 0xa8]
mov dword [rsp + 0x28], 0x999920e3
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], rdi
mov qword [rbp], 0x30
mov qword [rbp + 8], r14
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
js 0x140030dee
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
mov ecx, r14d
mov rdi, r14
jb 0x140030d72
cmp dword [rbp - 0x60], 0xffeeffee
cmove rdi, qword [rbp - 0x48]
cmp dword [rbp - 0x68], 0xffeeffee
jne 0x140030d89
mov ecx, dword [rbp - 0x58]
jmp 0x140030d89
cmp dword [rbp - 0x60], 0xffeeffee
cmove rdi, qword [rbp - 0x58]
cmp dword [rbp - 0x68], 0xffeeffee
cmove ecx, dword [rbp - 0x60]
test rdi, rdi
je 0x140030db9
mov rdx, rdi
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x140030dee
cmp qword [rax + 0x30], rdi
jne 0x140030dee
cmp dword [rax + 0xa0], 0xb
jne 0x140030dee
mov dword [rbx + 0xa0], 0xd
jmp 0x140030de7
test ecx, ecx
je 0x140030dee
mov edi, ecx
mov edx, ecx
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x140030dee
cmp qword [rax + 0x30], rdi
jne 0x140030dee
cmp dword [rax + 0xa0], 0xc
jne 0x140030dee
mov dword [rbx + 0xa0], 0xe
mov qword [rbx + 0xa8], rax
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x140030c20
mov r8, qword [rsp + 0x68]
xor edx, edx
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r14, qword [rsp + 0x1f0]
xor eax, eax
mov rdi, qword [rsp + 0x230]
add rsp, 0x1f8
pop r15
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret