Function at 0x7ff7c00094a0
Capabilities:
Get system information on windows
Get windows directory from kuser_shared_data

Disassembly:
push rbp
push rbx
push rsi
push r13
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x7ff7c01ca008]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov eax, dword [0x7ff7c01d0774]
mov r13, rdx
mov dword [rsp + 0x38], eax
mov r8d, eax
mov r15, rcx
mov byte [rsp + 0x30], 0
mov rcx, qword [0x7ff7c01d3cd0]
mov edx, 4
call qword [sym.imp.kernel32.dll_HeapAlloc_1]
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rax
mov ecx, 0x39
mov rsi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000023
je 0x7ff7c000951d
cmp eax, 0xc0000004
jne 0x7ff7c0009536
mov rcx, qword [0x7ff7c01d3cd0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x38]
jmp 0x7ff7c00094e0
mov qword [rsp + 0x78], rsi
test ebx, ebx
jns 0x7ff7c0009558
mov rcx, qword [0x7ff7c01d3cd0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
jmp 0x7ff7c0009fac
mov ecx, dword [0x7ff7c01d0774]
cmp dword [rsp + 0x38], 0x100000
mov qword [rsp + 0x2a0], rdi
mov rdi, rsi
cmovbe ecx, dword [rsp + 0x38]
mov dword [0x7ff7c01d0774], ecx
mov rcx, qword [r15]
nop
cmp qword [rdi + 0x50], rcx
je 0x7ff7c00095b0
mov eax, dword [rdi]
test eax, eax
je 0x7ff7c0009591
add rdi, rax
jne 0x7ff7c0009580
mov rcx, qword [0x7ff7c01d3cd0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0000225
jmp 0x7ff7c0009fa4
mov qword [rsp + 0x258], r12
mov edx, 0x7ffe0000
mov rcx, r15
mov qword [rsp + 0x250], r14
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x7ff7c00095f0
mov rcx, qword [rax + 0x68]
test rcx, rcx
cmovne rax, rcx
cmp dword [rax + 0xa8], 0
jne 0x7ff7c00095f0
mov dword [rax + 0xa8], 4
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x69
jb 0x7ff7c000969c
test byte [0x7ff7c01cd700], 1
jne 0x7ff7c0009665
lock bts qword [0x7ff7c01cd700], 0x1f
jb 0x7ff7c000964b
xor r9d, r9d
lea rdx, [rbp - 0x80]
mov ecx, 0xc5
lea r8d, [r9 + 8]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov rcx, qword [0x7ff7c01d4290]
test eax, eax
cmovns rcx, qword [rbp - 0x80]
mov qword [0x7ff7c01d4290], rcx
lea rcx, [0x7ff7c01cd700]
call sym.ProcessHacker.exe_PhfSetEvent
jmp 0x7ff7c0009665
test byte [0x7ff7c01cd700], 1
jne 0x7ff7c0009665
xor edx, edx
lea rcx, [0x7ff7c01cd700]
call sym.ProcessHacker.exe_PhfWaitForEvent
mov rdx, qword [0x7ff7c01d4290]
test rdx, rdx
je 0x7ff7c000969c
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x7ff7c000969c
mov rcx, qword [rax + 0x68]
test rcx, rcx
cmovne rax, rcx
cmp dword [rax + 0xa8], 0
jne 0x7ff7c000969c
mov dword [rax + 0xa8], 0x12
xor r12d, r12d
lea r8, [rbp - 0x60]
xor edx, edx
mov qword [rsp + 0x20], r12
mov rcx, r13
lea r9d, [r12 + 0x30]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
nop dword [rax + rax]
test eax, eax
js 0x7ff7c0009879
mov rdx, qword [rbp - 0x58]
test rdx, rdx
je 0x7ff7c0009879
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x67
mov rcx, r15
setb bl
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x7ff7c0009713
test bl, bl
je 0x7ff7c00096fb
mov rcx, qword [rax + 0x68]
test rcx, rcx
cmovne rax, rcx
nop dword [rax + rax]
cmp dword [rax + 0xa8], r12d
jne 0x7ff7c0009713
mov dword [rax + 0xa8], 5
mov rdx, qword [rbp - 0x58]
lea r8, [rsp + 0x34]
add rdx, 0xe8
mov qword [rsp + 0x20], r12
mov r9d, 4
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x7ff7c0009826
mov eax, dword [rsp + 0x34]
cmp eax, 0x3e8
jae 0x7ff7c0009826
mov rcx, qword [0x7ff7c01d3cd0]
mov r8d, eax
shl r8, 3
mov edx, 4
call qword [sym.imp.kernel32.dll_HeapAlloc_1]
mov rdx, qword [rbp - 0x58]
lea r8, [rbp - 0x78]
add rdx, 0xf0
mov qword [rsp + 0x20], r12
mov r9d, 8
mov rcx, r13
mov rsi, rax
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x7ff7c0009811
mov r9d, dword [rsp + 0x34]
mov r8, rsi
mov rdx, qword [rbp - 0x78]
mov rcx, r13
shl r9, 3
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x7ff7c0009811
mov ebx, r12d
cmp dword [rsp + 0x34], ebx
jbe 0x7ff7c0009811
nop word [rax + rax]
mov eax, ebx
mov rcx, r15
mov rdx, qword [rsi + rax*8]
call sym.ProcessHacker.exe_PhLookupMemoryItemList
nop
test rax, rax
je 0x7ff7c0009809
mov rcx, qword [rax + 0x68]
test rcx, rcx
cmovne rax, rcx
cmp dword [rax + 0xa8], r12d
jne 0x7ff7c0009809
mov dword [rax + 0xa8], 0xb
mov dword [rax + 0xb0], ebx
inc ebx
cmp ebx, dword [rsp + 0x34]
jb 0x7ff7c00097d0
mov rcx, qword [0x7ff7c01d3cd0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rdx, qword [rbp - 0x58]
lea r8, [rbp - 0x70]
add rdx, 0x68
mov qword [rsp + 0x20], r12
mov r9d, 8
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x7ff7c0009879
mov rdx, qword [rbp - 0x70]
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x7ff7c0009879
mov rcx, qword [rax + 0x68]
test rcx, rcx
cmovne rax, rcx
cmp dword [rax + 0xa8], r12d
jne 0x7ff7c0009879
mov dword [rax + 0xa8], 0x11
mov r9d, 8
mov qword [rsp + 0x20], r12
lea r8, [rbp - 0x68]
mov rcx, r13
lea edx, [r9 + 0x12]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x7ff7c0009a39
mov r14, qword [rbp - 0x68]
test r14, r14
je 0x7ff7c0009a39
mov rdx, r14
mov byte [rsp + 0x30], 1
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x7ff7c00098dd
mov rcx, qword [rax + 0x68]
test rcx, rcx
cmovne rax, rcx
cmp dword [rax + 0xa8], r12d
jne 0x7ff7c00098dd
mov dword [rax + 0xa8], 6
lea rdx, [r14 + 0x88]
mov qword [rsp + 0x20], r12
mov r9d, 4
lea r8, [rsp + 0x34]
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
nop dword [rax]
test eax, eax
js 0x7ff7c00099e6
mov eax, dword [rsp + 0x34]
cmp eax, 0x3e8
jae 0x7ff7c00099e6
mov rcx, qword [0x7ff7c01d3cd0]
mov r8d, eax
shl r8, 2
mov edx, 4
call qword [sym.imp.kernel32.dll_HeapAlloc_1]
lea rdx, [r14 + 0x90]
mov qword [rsp + 0x20], r12
mov r9d, 4
lea r8, [rsp + 0x48]
mov rcx, r13
mov rsi, rax
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x7ff7c00099d1
mov r9d, dword [rsp + 0x34]
mov r8, rsi
mov edx, dword [rsp + 0x48]
mov rcx, r13
shl r9, 2
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x7ff7c00099d1
mov ebx, r12d
cmp dword [rsp + 0x34], ebx
jbe 0x7ff7c00099d1
nop word [rax + rax]
mov eax, ebx
mov rcx, r15
mov edx, dword [rsi + rax*4]
call sym.ProcessHacker.exe_PhLookupMemoryItemList
nop dword [rax]
test rax, rax
je 0x7ff7c00099c9
mov rcx, qword [rax + 0x68]
test rcx, rcx
cmovne rax, rcx
cmp dword [rax + 0xa8], r12d
jne 0x7ff7c00099c9
mov dword [rax + 0xa8], 0xc
mov dword [rax + 0xb0], ebx
inc ebx
cmp ebx, dword [rsp + 0x34]
jb 0x7ff7c0009990
mov rcx, qword [0x7ff7c01d3cd0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rdx, ds:[r14 + 0x38]
mov qword [rsp + 0x20], r12
mov r9d, 4
lea r8, [rsp + 0x4c]
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x7ff7c0009a39
mov edx, dword [rsp + 0x4c]
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x7ff7c0009a39
mov rcx, qword [rax + 0x68]
test rcx, rcx
cmovne rax, rcx
cmp dword [rax + 0xa8], r12d
jne 0x7ff7c0009a39
mov dword [rax + 0xa8], 0x11
mov esi, r12d
cmp dword [rdi + 4], r12d
jbe 0x7ff7c0009bcc
movzx r12d, byte [rsp + 0x30]
mov eax, esi
imul rbx, rax, 0x88
add rbx, rdi
mov rdx, qword [rbx + 0x168]
test rdx, rdx
je 0x7ff7c0009bba
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x67
mov rcx, r15
setb r14b
call sym.ProcessHacker.exe_PhLookupMemoryItemList
mov rdx, rax
test rax, rax
je 0x7ff7c0009aba
test r14b, r14b
je 0x7ff7c0009a97
mov rcx, qword [rax + 0x68]
test rcx, rcx
cmovne rdx, rcx
cmp dword ds:[rdx + 0xa8], 0
jne 0x7ff7c0009aba
mov dword [rdx + 0xa8], 7
mov rax, qword [rbx + 0x130]
mov qword [rdx + 0xb0], rax
mov rdx, qword [rbx + 0x168]
lea rax, [rsp + 0x58]
mov r9d, 0x38
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x30]
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
nop
test eax, eax
js 0x7ff7c0009bba
cmp qword [rsp + 0x58], 0x38
jne 0x7ff7c0009bba
mov rdx, qword [rbp - 0x20]
cmp rdx, qword [rbp - 0x28]
jae 0x7ff7c0009b3a
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
mov rdx, rax
test rax, rax
je 0x7ff7c0009b3a
mov rcx, qword [rax + 0x68]
test rcx, rcx
cmovne rdx, rcx
cmp dword [rdx + 0xa8], 0
jne 0x7ff7c0009b3a
mov dword [rdx + 0xa8], 9
mov rax, qword [rbx + 0x130]
mov qword [rdx + 0xb0], rax
test r12b, r12b
je 0x7ff7c0009bba
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x7ff7c0009bba
mov edx, eax
lea r8, [rbp + 8]
lea rax, [rsp + 0x58]
mov r9d, 0x1c
mov rcx, r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x7ff7c0009bba
cmp qword [rsp + 0x58], 0x1c
jne 0x7ff7c0009bba
mov eax, dword [rbp + 0x10]
cmp eax, dword [rbp + 0xc]
jae 0x7ff7c0009bba
mov edx, eax
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
mov rdx, rax
test rax, rax
je 0x7ff7c0009bba
mov rcx, qword ds:[rax + 0x68]
test rcx, rcx
cmovne rdx, rcx
cmp dword [rdx + 0xa8], 0
jne 0x7ff7c0009bba
mov dword [rdx + 0xa8], 0xa
mov rax, qword [rbx + 0x130]
mov qword [rdx + 0xb0], rax
inc esi
cmp esi, dword [rdi + 4]
jb 0x7ff7c0009a50
xor r12d, r12d
mov rbx, qword ds:[r15 + 0x38]
lea rsi, [r15 + 0x38]
mov r14d, 0xffffffff
cmp rbx, rsi
je 0x7ff7c0009d6c
nop dword [rax]
cmp dword [rbx + 0xa8], 0
jne 0x7ff7c0009d60
test dword [rbx + 0x58], 0x1040000
je 0x7ff7c0009c77
cmp qword [rbx + 0x68], rbx
jne 0x7ff7c0009c77
mov rdx, qword [rbx + 0x30]
lea r8, [rsp + 0x40]
mov rcx, r13
call sym.ProcessHacker.exe_PhGetProcessMappedFileName
nop dword [rax]
test eax, eax
js 0x7ff7c0009c77
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call sym.ProcessHacker.exe_PhResolveDevicePrefix
test rax, rax
je 0x7ff7c0009c61
mov rcx, rdi
mov qword [rsp + 0x40], rax
mov rdi, rax
test rcx, rcx
je 0x7ff7c0009c61
add rcx, 0xfffffffffffffff0
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x7ff7c0009c5c
call fcn.7ff7c00c6290
mov rdi, qword [rsp + 0x40]
mov dword [rbx + 0xa8], 3
mov qword [rbx + 0xb0], rdi
jmp 0x7ff7c0009d60
test dword ds:[rbx + 0x50], 0x1000
je 0x7ff7c0009d60
movzx eax, byte [rbx + 0x60]
test al, 1
je 0x7ff7c0009d60
test al, 2
jne 0x7ff7c0009d60
mov rdx, qword [rbx + 0x30]
lea r8, [rbp + 0x110]
mov r9d, 0x30
mov qword [rsp + 0x20], r12
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
nop dword [rax]
test eax, eax
js 0x7ff7c0009d60
cmp dword [rbp + 0x120], 0xffeeffee
mov rdi, r12
mov eax, r12d
cmove rdi, qword [rbp + 0x138]
cmp dword [rbp + 0x118], 0xffeeffee
cmove eax, dword [rbp + 0x128]
test rdi, rdi
je 0x7ff7c0009d25
mov rdx, rdi
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x7ff7c0009d60
cmp qword [rax + 0x30], rdi
jne 0x7ff7c0009d60
cmp dword [rax + 0xa8], 0xb
jne 0x7ff7c0009d60
mov dword [rbx + 0xa8], 0xd
jmp 0x7ff7c0009d59
test eax, eax
je 0x7ff7c0009d60
mov edx, eax
mov rcx, r15
mov edi, eax
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x7ff7c0009d60
nop word [rax + rax]
cmp qword [rax + 0x30], rdi
jne 0x7ff7c0009d60
cmp dword [rax + 0xa8], 0xc
jne 0x7ff7c0009d60
mov dword [rbx + 0xa8], 0xe
mov qword [rbx + 0xb0], rax
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x7ff7c0009bf0
xor edx, edx
lea rcx, [rbp + 0x30]
mov r8d, 0xe0
call fcn.7ff7c0123170
cmp qword [0x7ff7c01d69b8], 0
mov qword [rsp + 0x70], r12
je 0x7ff7c0009d9a
movups xmm0, xmmword [0x7ff7c01d69b0]
movaps xmmword [rsp + 0x60], xmm0
jmp 0x7ff7c0009dea
mov ecx, 0x7ffe0030
mov qword [rsp + 0x68], 0x7ffe0030
call sym.ProcessHacker.exe_PhCountStringZ
add rax, rax
mov qword [rsp + 0x60], rax
cmp word [rax + 0x7ffe002e], 0x5c
jne 0x7ff7c0009dc8
add rax, 0xfffffffffffffffe
mov qword [rsp + 0x60], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
mov qword [0x7ff7c01d69b0], rax
lock or dword [rsp], 0
mov qword [0x7ff7c01d69b8], 0x7ffe0030
mov rdi, qword ds:[rsp + 0x60]
mov rdx, qword [0x7ff7c01d3b58]
lea rbx, [rdi + 0x26]
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rdx, qword [rsp + 0x68]
mov r8, rdi
mov rsi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rbx + rcx], r12w
mov rcx, qword [rax + 8]
call fcn.7ff7c0125120
mov rcx, qword [rsi + 8]
lea r8, [0x7ff7c0179760]
movups xmm0, xmmword [0x7ff7c017c4c0]
mov qword [rsp + 0x28], r12
xor r9d, r9d
movups xmmword [rcx + rdi], xmm0
movups xmm1, xmmword [0x7ff7c017c4d0]
movups xmmword [rcx + rdi + 0x10], xmm1
mov eax, dword [0x7ff7c017c4e0]
mov dword [rcx + rdi + 0x20], eax
movzx eax, word [0x7ff7c017c4e4]
mov word [rcx + rdi + 0x24], ax
lea rax, [rsp + 0x70]
mov rdx, qword [rsi + 8]
mov rcx, r13
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhGetProcedureAddressRemote
mov ebx, eax
test eax, eax
js 0x7ff7c0009ea9
mov rdx, qword [rsp + 0x70]
test rdx, rdx
je 0x7ff7c0009ea9
mov r9d, 0xe0
mov qword [rsp + 0x20], r12
lea r8, [rbp + 0x30]
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov ebx, eax
lea rcx, ds:[rsi - 0x10]
lock xadd dword [rcx + 8], r14d
cmp r14d, 1
mov r14, qword [rsp + 0x250]
jne 0x7ff7c0009ec7
call fcn.7ff7c00c6290
test ebx, ebx
js 0x7ff7c0009f86
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x7ff7c0009f86
lea rcx, [rbp + 0x30]
add rcx, rax
lea rax, [rbp + 0xf8]
cmp rax, rcx
ja 0x7ff7c0009f36
mov rdx, qword ds:[rbp + 0xe0]
mov r12, qword [rbp + 0xf0]
test rdx, rdx
je 0x7ff7c0009f36
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x7ff7c0009f36
mov r8, rax
mov rcx, rax
cmp qword [rax + 0x68], rax
jne 0x7ff7c0009f36
nop
mov dword [rcx + 0xa8], 0xf
mov r8, qword [r8]
mov rcx, r8
cmp qword [r8 + 0x68], rax
je 0x7ff7c0009f20
cmp byte [rsp + 0x30], 0
je 0x7ff7c0009f86
nop dword [rax]
test r12, r12
je 0x7ff7c0009f86
mov rdx, r12
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x7ff7c0009f86
mov rcx, rax
mov rdx, rax
cmp qword [rax + 0x68], rax
jne 0x7ff7c0009f86
nop word [rax + rax]
mov dword [rdx + 0xa8], 0x10
mov rcx, qword [rcx]
mov rdx, rcx
cmp qword [rcx + 0x68], rax
je 0x7ff7c0009f70
mov r8, qword [rsp + 0x78]
xor edx, edx
mov rcx, qword [0x7ff7c01d3cd0]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r12, qword [rsp + 0x258]
xor eax, eax
mov rdi, qword [rsp + 0x2a0]
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.7ff7c0121390
add rsp, 0x260
pop r15
pop r13
pop rsi
pop rbx
pop rbp
ret