Function at 0x1400494a0
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 [0x14020a008]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov eax, dword [0x140210774]
mov r13, rdx
mov dword [rsp + 0x38], eax
mov r8d, eax
mov r15, rcx
mov byte [rsp + 0x30], 0
mov rcx, qword [0x140213cd0]
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
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 0x14004951d
cmp eax, 0xc0000004
jne 0x140049536
mov rcx, qword [0x140213cd0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x38]
jmp 0x1400494e0
mov qword [rsp + 0x78], rsi
test ebx, ebx
jns 0x140049558
mov rcx, qword [0x140213cd0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
jmp 0x140049fac
mov ecx, dword [0x140210774]
cmp dword [rsp + 0x38], 0x100000
mov qword [rsp + 0x2a0], rdi
mov rdi, rsi
cmovbe ecx, dword [rsp + 0x38]
mov dword [0x140210774], ecx
mov rcx, qword [r15]
nop
cmp qword [rdi + 0x50], rcx
je 0x1400495b0
mov eax, dword [rdi]
test eax, eax
je 0x140049591
add rdi, rax
jne 0x140049580
mov rcx, qword [0x140213cd0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0000225
jmp 0x140049fa4
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 0x1400495f0
mov rcx, qword [rax + 0x68]
test rcx, rcx
cmovne rax, rcx
cmp dword [rax + 0xa8], 0
jne 0x1400495f0
mov dword [rax + 0xa8], 4
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x69
jb 0x14004969c
test byte [0x14020d700], 1
jne 0x140049665
lock bts qword [0x14020d700], 0x1f
jb 0x14004964b
xor r9d, r9d
lea rdx, [rbp - 0x80]
mov ecx, 0xc5
lea r8d, [r9 + 8]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov rcx, qword [0x140214290]
test eax, eax
cmovns rcx, qword [rbp - 0x80]
mov qword [0x140214290], rcx
lea rcx, [0x14020d700]
call sym.ProcessHacker.exe_PhfSetEvent
jmp 0x140049665
test byte [0x14020d700], 1
jne 0x140049665
xor edx, edx
lea rcx, [0x14020d700]
call sym.ProcessHacker.exe_PhfWaitForEvent
mov rdx, qword [0x140214290]
test rdx, rdx
je 0x14004969c
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x14004969c
mov rcx, qword [rax + 0x68]
test rcx, rcx
cmovne rax, rcx
cmp dword [rax + 0xa8], 0
jne 0x14004969c
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 0x140049879
mov rdx, qword [rbp - 0x58]
test rdx, rdx
je 0x140049879
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x67
mov rcx, r15
setb bl
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x140049713
test bl, bl
je 0x1400496fb
mov rcx, qword [rax + 0x68]
test rcx, rcx
cmovne rax, rcx
nop dword [rax + rax]
cmp dword [rax + 0xa8], r12d
jne 0x140049713
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 0x140049826
mov eax, dword [rsp + 0x34]
cmp eax, 0x3e8
jae 0x140049826
mov rcx, qword [0x140213cd0]
mov r8d, eax
shl r8, 3
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
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 0x140049811
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 0x140049811
mov ebx, r12d
cmp dword [rsp + 0x34], ebx
jbe 0x140049811
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 0x140049809
mov rcx, qword [rax + 0x68]
test rcx, rcx
cmovne rax, rcx
cmp dword [rax + 0xa8], r12d
jne 0x140049809
mov dword [rax + 0xa8], 0xb
mov dword [rax + 0xb0], ebx
inc ebx
cmp ebx, dword [rsp + 0x34]
jb 0x1400497d0
mov rcx, qword [0x140213cd0]
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 0x140049879
mov rdx, qword [rbp - 0x70]
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x140049879
mov rcx, qword [rax + 0x68]
test rcx, rcx
cmovne rax, rcx
cmp dword [rax + 0xa8], r12d
jne 0x140049879
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 0x140049a39
mov r14, qword [rbp - 0x68]
test r14, r14
je 0x140049a39
mov rdx, r14
mov byte [rsp + 0x30], 1
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x1400498dd
mov rcx, qword [rax + 0x68]
test rcx, rcx
cmovne rax, rcx
cmp dword [rax + 0xa8], r12d
jne 0x1400498dd
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 0x1400499e6
mov eax, dword [rsp + 0x34]
cmp eax, 0x3e8
jae 0x1400499e6
mov rcx, qword [0x140213cd0]
mov r8d, eax
shl r8, 2
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
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 0x1400499d1
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 0x1400499d1
mov ebx, r12d
cmp dword [rsp + 0x34], ebx
jbe 0x1400499d1
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 0x1400499c9
mov rcx, qword [rax + 0x68]
test rcx, rcx
cmovne rax, rcx
cmp dword [rax + 0xa8], r12d
jne 0x1400499c9
mov dword [rax + 0xa8], 0xc
mov dword [rax + 0xb0], ebx
inc ebx
cmp ebx, dword [rsp + 0x34]
jb 0x140049990
mov rcx, qword [0x140213cd0]
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 0x140049a39
mov edx, dword [rsp + 0x4c]
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x140049a39
mov rcx, qword [rax + 0x68]
test rcx, rcx
cmovne rax, rcx
cmp dword [rax + 0xa8], r12d
jne 0x140049a39
mov dword [rax + 0xa8], 0x11
mov esi, r12d
cmp dword [rdi + 4], r12d
jbe 0x140049bcc
movzx r12d, byte [rsp + 0x30]
mov eax, esi
imul rbx, rax, 0x88
add rbx, rdi
mov rdx, qword [rbx + 0x168]
test rdx, rdx
je 0x140049bba
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x67
mov rcx, r15
setb r14b
call sym.ProcessHacker.exe_PhLookupMemoryItemList
mov rdx, rax
test rax, rax
je 0x140049aba
test r14b, r14b
je 0x140049a97
mov rcx, qword [rax + 0x68]
test rcx, rcx
cmovne rdx, rcx
cmp dword ds:[rdx + 0xa8], 0
jne 0x140049aba
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 0x140049bba
cmp qword [rsp + 0x58], 0x38
jne 0x140049bba
mov rdx, qword [rbp - 0x20]
cmp rdx, qword [rbp - 0x28]
jae 0x140049b3a
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
mov rdx, rax
test rax, rax
je 0x140049b3a
mov rcx, qword [rax + 0x68]
test rcx, rcx
cmovne rdx, rcx
cmp dword [rdx + 0xa8], 0
jne 0x140049b3a
mov dword [rdx + 0xa8], 9
mov rax, qword [rbx + 0x130]
mov qword [rdx + 0xb0], rax
test r12b, r12b
je 0x140049bba
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x140049bba
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 0x140049bba
cmp qword [rsp + 0x58], 0x1c
jne 0x140049bba
mov eax, dword [rbp + 0x10]
cmp eax, dword [rbp + 0xc]
jae 0x140049bba
mov edx, eax
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
mov rdx, rax
test rax, rax
je 0x140049bba
mov rcx, qword ds:[rax + 0x68]
test rcx, rcx
cmovne rdx, rcx
cmp dword [rdx + 0xa8], 0
jne 0x140049bba
mov dword [rdx + 0xa8], 0xa
mov rax, qword [rbx + 0x130]
mov qword [rdx + 0xb0], rax
inc esi
cmp esi, dword [rdi + 4]
jb 0x140049a50
xor r12d, r12d
mov rbx, qword ds:[r15 + 0x38]
lea rsi, [r15 + 0x38]
mov r14d, 0xffffffff
cmp rbx, rsi
je 0x140049d6c
nop dword [rax]
cmp dword [rbx + 0xa8], 0
jne 0x140049d60
test dword [rbx + 0x58], 0x1040000
je 0x140049c77
cmp qword [rbx + 0x68], rbx
jne 0x140049c77
mov rdx, qword [rbx + 0x30]
lea r8, [rsp + 0x40]
mov rcx, r13
call sym.ProcessHacker.exe_PhGetProcessMappedFileName
nop dword [rax]
test eax, eax
js 0x140049c77
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call sym.ProcessHacker.exe_PhResolveDevicePrefix
test rax, rax
je 0x140049c61
mov rcx, rdi
mov qword [rsp + 0x40], rax
mov rdi, rax
test rcx, rcx
je 0x140049c61
add rcx, 0xfffffffffffffff0
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140049c5c
call fcn.140106290
mov rdi, qword [rsp + 0x40]
mov dword [rbx + 0xa8], 3
mov qword [rbx + 0xb0], rdi
jmp 0x140049d60
test dword ds:[rbx + 0x50], 0x1000
je 0x140049d60
movzx eax, byte [rbx + 0x60]
test al, 1
je 0x140049d60
test al, 2
jne 0x140049d60
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 0x140049d60
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 0x140049d25
mov rdx, rdi
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x140049d60
cmp qword [rax + 0x30], rdi
jne 0x140049d60
cmp dword [rax + 0xa8], 0xb
jne 0x140049d60
mov dword [rbx + 0xa8], 0xd
jmp 0x140049d59
test eax, eax
je 0x140049d60
mov edx, eax
mov rcx, r15
mov edi, eax
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x140049d60
nop word [rax + rax]
cmp qword [rax + 0x30], rdi
jne 0x140049d60
cmp dword [rax + 0xa8], 0xc
jne 0x140049d60
mov dword [rbx + 0xa8], 0xe
mov qword [rbx + 0xb0], rax
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x140049bf0
xor edx, edx
lea rcx, [rbp + 0x30]
mov r8d, 0xe0
call fcn.140163170
cmp qword [0x1402169b8], 0
mov qword [rsp + 0x70], r12
je 0x140049d9a
movups xmm0, xmmword [0x1402169b0]
movaps xmmword [rsp + 0x60], xmm0
jmp 0x140049dea
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 0x140049dc8
add rax, 0xfffffffffffffffe
mov qword [rsp + 0x60], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
mov qword [0x1402169b0], rax
lock or dword [rsp], 0
mov qword [0x1402169b8], 0x7ffe0030
mov rdi, qword ds:[rsp + 0x60]
mov rdx, qword [0x140213b58]
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.140165120
mov rcx, qword [rsi + 8]
lea r8, str.LdrSystemDllInitBlock
movups xmm0, xmmword [str.System32_ntdll.dll]
mov qword [rsp + 0x28], r12
xor r9d, r9d
movups xmmword [rcx + rdi], xmm0
movups xmm1, xmmword [0x1401bc4d0]
movups xmmword [rcx + rdi + 0x10], xmm1
mov eax, dword [0x1401bc4e0]
mov dword [rcx + rdi + 0x20], eax
movzx eax, word [0x1401bc4e4]
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 0x140049ea9
mov rdx, qword [rsp + 0x70]
test rdx, rdx
je 0x140049ea9
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 0x140049ec7
call fcn.140106290
test ebx, ebx
js 0x140049f86
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x140049f86
lea rcx, [rbp + 0x30]
add rcx, rax
lea rax, [rbp + 0xf8]
cmp rax, rcx
ja 0x140049f36
mov rdx, qword ds:[rbp + 0xe0]
mov r12, qword [rbp + 0xf0]
test rdx, rdx
je 0x140049f36
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x140049f36
mov r8, rax
mov rcx, rax
cmp qword [rax + 0x68], rax
jne 0x140049f36
nop
mov dword [rcx + 0xa8], 0xf
mov r8, qword [r8]
mov rcx, r8
cmp qword [r8 + 0x68], rax
je 0x140049f20
cmp byte [rsp + 0x30], 0
je 0x140049f86
nop dword [rax]
test r12, r12
je 0x140049f86
mov rdx, r12
mov rcx, r15
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x140049f86
mov rcx, rax
mov rdx, rax
cmp qword [rax + 0x68], rax
jne 0x140049f86
nop word [rax + rax]
mov dword [rdx + 0xa8], 0x10
mov rcx, qword [rcx]
mov rdx, rcx
cmp qword [rcx + 0x68], rax
je 0x140049f70
mov r8, qword [rsp + 0x78]
xor edx, edx
mov rcx, qword [0x140213cd0]
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.140161390
add rsp, 0x260
pop r15
pop r13
pop rsi
pop rbx
pop rbp
ret