Function at 0x14006c240
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 [0x140152ea4]
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 0x14006c2b2
cmp eax, 0xc0000004
jne 0x14006c2cd
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 0x14006c271
mov qword [rsp + 0x68], rsi
test eax, eax
jns 0x14006c2f6
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 0x14006c313
mov ecx, dword [0x140152ea4]
cmp dword [rbp + 0x148], 0x100000
cmovbe ecx, dword [rbp + 0x148]
mov dword [0x140152ea4], ecx
test ebx, ebx
jns 0x14006c32a
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 0x14006c365
mov eax, dword [rdi]
test eax, eax
je 0x14006c349
add rdi, rax
jne 0x14006c338
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0000225
jmp 0x14006ca48
mov edx, 0x7ffe0000
mov qword [rsp + 0x1f0], r14
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x14006c39d
mov rcx, qword [rax + 0x60]
test rcx, rcx
cmovne rax, rcx
cmp dword [rax + 0xa0], 0
jne 0x14006c39d
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 0x14006c4dd
mov rdx, qword [rbp + 0x70]
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x14006c3ed
mov rcx, qword [rax + 0x60]
test rcx, rcx
cmovne rax, rcx
cmp dword [rax + 0xa0], esi
jne 0x14006c3ed
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 0x14006c4dd
mov eax, dword [rbp + 0x140]
cmp eax, 0x3e8
jae 0x14006c4dd
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 0x14006c4c9
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 0x14006c4c9
cmp dword [rbp + 0x140], ebx
jbe 0x14006c4c9
nop dword [rax + rax]
mov edx, ebx
mov r9d, 0xb
mov rcx, r15
mov rdx, qword [rsi + rdx*8]
call fcn.14006c1f0
test rax, rax
je 0x14006c4bf
mov dword [rax + 0xa8], ebx
inc ebx
cmp ebx, dword [rbp + 0x140]
jb 0x14006c4a0
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 0x14006c60c
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x14006c60c
mov r9d, 6
mov rdx, rbx
mov rcx, r15
mov r12b, 1
call fcn.14006c1f0
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 0x14006c60c
mov eax, dword [rbp + 0x140]
cmp eax, 0x3e8
jae 0x14006c60c
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 0x14006c5f8
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 0x14006c5f8
cmp dword [rbp + 0x140], ebx
jbe 0x14006c5f8
nop word [rax + rax]
mov eax, ebx
mov r9d, 0xc
mov rcx, r15
mov edx, dword [rsi + rax*4]
call fcn.14006c1f0
test rax, rax
je 0x14006c5ee
mov dword [rax + 0xa8], ebx
inc ebx
cmp ebx, dword [rbp + 0x140]
jb 0x14006c5d0
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 0x14006c83a
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 0x14006c68e
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 0x14006c68e
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 0x14006c683
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 0x14006c82d
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
mov rdx, rax
test rax, rax
je 0x14006c6d4
mov rcx, qword [rax + 0x60]
test rcx, rcx
cmovne rdx, rcx
cmp dword [rdx + 0xa0], 0
jne 0x14006c6d4
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 0x14006c770
mov rcx, qword [0x14015a2a8]
test rcx, rcx
je 0x14006c82b
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 0x14006c772
xor esi, esi
test eax, eax
js 0x14006c82d
cmp qword [rsp + 0x50], 0x38
jne 0x14006c82d
mov rdx, qword [rbp + 0x40]
cmp rdx, qword [rbp + 0x38]
jae 0x14006c7c9
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
mov rdx, rax
test rax, rax
je 0x14006c7c9
mov rcx, qword [rax + 0x60]
test rcx, rcx
cmovne rdx, rcx
cmp dword [rdx + 0xa0], 0
jne 0x14006c7c9
mov dword [rdx + 0xa0], 9
mov rax, qword [rbx + 0x30]
mov qword [rdx + 0xa8], rax
test r12b, r12b
je 0x14006c82d
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x14006c82d
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 0x14006c82d
cmp qword [rsp + 0x50], 0x1c
jne 0x14006c82d
mov eax, dword [rbp + 0x18]
cmp eax, dword [rbp + 0x14]
jae 0x14006c82d
mov edx, eax
mov r9d, 0xa
mov rcx, r15
call fcn.14006c1f0
test rax, rax
je 0x14006c82d
mov rcx, qword [rbx + 0x30]
mov qword [rax + 0xa8], rcx
jmp 0x14006c82d
xor esi, esi
inc r14d
cmp r14d, dword [rdi + 4]
jb 0x14006c620
mov rbx, qword [r15 + 0x38]
lea rsi, [r15 + 0x38]
cmp rbx, rsi
je 0x14006ca2a
nop dword [rax + rax]
cmp dword [rbx + 0xa0], 0
jne 0x14006ca1e
test dword [rbx + 0x58], 0x1040000
je 0x14006c8d4
cmp qword [rbx + 0x60], rbx
jne 0x14006c8d4
mov rdx, qword [rbx + 0x30]
lea r8, [rsp + 0x58]
mov rcx, r13
call sym.ProcessHacker.exe_PhGetProcessMappedFileName
test eax, eax
js 0x14006c8d4
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call sym.ProcessHacker.exe_PhResolveDevicePrefix
test rax, rax
je 0x14006c8be
mov rcx, rdi
mov qword [rsp + 0x58], rax
mov rdi, rax
test rcx, rcx
je 0x14006c8be
add rcx, 0xfffffffffffffff0
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14006c8b9
call fcn.1400258b0
mov rdi, qword [rsp + 0x58]
mov dword [rbx + 0xa0], 3
mov qword [rbx + 0xa8], rdi
jmp 0x14006ca1e
test dword [rbx + 0x50], 0x1000
je 0x14006ca1e
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 0x14006c971
mov rcx, qword [0x14015a2a8]
test rcx, rcx
je 0x14006ca1e
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 0x14006ca1e
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
mov ecx, r14d
mov rdi, r14
jb 0x14006c9a2
cmp dword [rbp - 0x60], 0xffeeffee
cmove rdi, qword [rbp - 0x48]
cmp dword [rbp - 0x68], 0xffeeffee
jne 0x14006c9b9
mov ecx, dword [rbp - 0x58]
jmp 0x14006c9b9
cmp dword [rbp - 0x60], 0xffeeffee
cmove rdi, qword [rbp - 0x58]
cmp dword [rbp - 0x68], 0xffeeffee
cmove ecx, dword [rbp - 0x60]
test rdi, rdi
je 0x14006c9e9
mov rdx, rdi
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x14006ca1e
cmp qword [rax + 0x30], rdi
jne 0x14006ca1e
cmp dword [rax + 0xa0], 0xb
jne 0x14006ca1e
mov dword [rbx + 0xa0], 0xd
jmp 0x14006ca17
test ecx, ecx
je 0x14006ca1e
mov edi, ecx
mov edx, ecx
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x14006ca1e
cmp qword [rax + 0x30], rdi
jne 0x14006ca1e
cmp dword [rax + 0xa0], 0xc
jne 0x14006ca1e
mov dword [rbx + 0xa0], 0xe
mov qword [rbx + 0xa8], rax
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x14006c850
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