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

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
lea rbp, [rsp - 0x128]
sub rsp, 0x228
mov eax, dword [0x14018de54]
xor r13b, r13b
mov byte [rbp + 0x170], r13b
mov r8d, eax
mov dword [rsp + 0x30], eax
mov r12, rdx
mov r14, rcx
mov rcx, qword [0x140196670]
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0x39
mov rsi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000023
je 0x1400362d3
cmp eax, 0xc0000004
jne 0x1400362ec
mov rcx, qword [0x140196670]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x30]
jmp 0x140036296
mov qword [rsp + 0x60], rsi
test ebx, ebx
jns 0x140036309
mov rcx, qword [0x140196670]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x140036322
mov ecx, dword [0x14018de54]
cmp dword [rsp + 0x30], 0x100000
cmovbe ecx, dword [rsp + 0x30]
mov dword [0x14018de54], ecx
test ebx, ebx
jns 0x140036339
mov eax, ebx
add rsp, 0x228
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [r14]
mov qword [rsp + 0x260], rdi
mov rdi, rsi
cmp qword [rdi + 0x50], rcx
je 0x140036374
mov eax, dword [rdi]
test eax, eax
je 0x140036358
add rdi, rax
jne 0x140036347
mov rcx, qword [0x140196670]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0000225
jmp 0x140036af4
mov edx, 0x7ffe0000
mov qword [rsp + 0x220], r15
mov rcx, r14
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x1400363ac
mov rcx, qword [rax + 0x60]
test rcx, rcx
cmovne rax, rcx
cmp dword [rax + 0xa0], 0
jne 0x1400363ac
mov dword [rax + 0xa0], 4
xor r15d, r15d
lea r8, [rbp - 0x60]
xor edx, edx
mov qword [rsp + 0x20], r15
mov rcx, r12
lea r9d, [r15 + 0x30]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x140036513
mov rdx, qword [rbp - 0x58]
test rdx, rdx
je 0x140036513
lea r9d, [r15 + 5]
mov rcx, r14
call fcn.140036210
mov rdx, qword [rbp - 0x58]
lea r9d, [r15 + 4]
add rdx, 0xe8
mov qword [rsp + 0x20], r15
lea r8, [rbp + 0x178]
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x1400364db
mov eax, dword [rbp + 0x178]
cmp eax, 0x3e8
jae 0x1400364db
mov rcx, qword [0x140196670]
lea edx, [r15 + 4]
mov r8d, eax
shl r8, 3
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdx, qword [rbp - 0x58]
lea r9d, [r15 + 8]
add rdx, 0xf0
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x68]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x1400364c9
mov r9d, dword [rbp + 0x178]
mov r8, rsi
mov rdx, qword [rsp + 0x68]
mov rcx, r12
shl r9, 3
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x1400364c9
mov ebx, r15d
cmp dword [rbp + 0x178], ebx
jbe 0x1400364c9
nop word [rax + rax]
mov edx, ebx
mov r9d, 0xb
mov rcx, r14
mov rdx, qword [rsi + rdx*8]
call fcn.140036210
test rax, rax
je 0x1400364bf
mov dword [rax + 0xa8], ebx
inc ebx
cmp ebx, dword [rbp + 0x178]
jb 0x1400364a0
mov rcx, qword [0x140196670]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rdx, qword [rbp - 0x58]
lea r8, [rsp + 0x70]
add rdx, 0x68
mov qword [rsp + 0x20], r15
mov r9d, 8
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x140036513
mov rdx, qword [rsp + 0x70]
mov r9d, 0x11
mov rcx, r14
call fcn.140036210
mov r9d, 8
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x78]
mov rcx, r12
lea edx, [r9 + 0x12]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x140036685
mov r13, qword [rsp + 0x78]
test r13, r13
je 0x140036874
mov r9d, 6
mov byte [rbp + 0x170], 1
mov rdx, r13
mov rcx, r14
call fcn.140036210
lea rdx, [r13 + 0x88]
mov qword [rsp + 0x20], r15
mov r9d, 4
lea r8, [rbp + 0x178]
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x14003664a
mov eax, dword [rbp + 0x178]
cmp eax, 0x3e8
jae 0x14003664a
mov rcx, qword [0x140196670]
mov r8d, eax
shl r8, 2
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea rdx, [r13 + 0x90]
mov qword [rsp + 0x20], r15
mov r9d, 4
lea r8, [rsp + 0x40]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x140036638
mov r9d, dword [rbp + 0x178]
mov r8, rsi
mov edx, dword [rsp + 0x40]
mov rcx, r12
shl r9, 2
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x140036638
mov ebx, r15d
cmp dword [rbp + 0x178], ebx
jbe 0x140036638
nop dword [rax + rax]
mov eax, ebx
mov r9d, 0xc
mov rcx, r14
mov edx, dword [rsi + rax*4]
call fcn.140036210
test rax, rax
je 0x14003662e
mov dword [rax + 0xa8], ebx
inc ebx
cmp ebx, dword [rbp + 0x178]
jb 0x140036610
mov rcx, qword [0x140196670]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rdx, [r13 + 0x38]
mov qword [rsp + 0x20], r15
mov r9d, 4
lea r8, [rsp + 0x44]
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x14003667d
mov edx, dword [rsp + 0x44]
mov r9d, 0x11
mov rcx, r14
call fcn.140036210
movzx r13d, byte [rbp + 0x170]
mov esi, r15d
cmp dword [rdi + 4], r15d
jbe 0x1400367d7
mov eax, esi
imul rbx, rax, 0x88
add rbx, rdi
mov rdx, qword [rbx + 0x168]
test rdx, rdx
je 0x1400367cc
mov rcx, r14
call sym.ProcessHacker.exe_PhLookupMemoryItemList
mov rdx, rax
test rax, rax
je 0x1400366ea
mov rcx, qword [rax + 0x60]
test rcx, rcx
cmovne rdx, rcx
cmp dword [rdx + 0xa0], r15d
jne 0x1400366ea
mov dword [rdx + 0xa0], 7
mov rax, qword [rbx + 0x130]
mov qword [rdx + 0xa8], rax
mov rdx, qword [rbx + 0x168]
lea rax, [rsp + 0x50]
mov r9d, 0x38
mov qword [rsp + 0x20], rax
lea r8, [rbp]
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x1400367cc
cmp qword [rsp + 0x50], 0x38
jne 0x1400367cc
mov rdx, qword [rbp + 0x10]
cmp rdx, qword [rbp + 8]
jae 0x140036768
mov rcx, r14
call sym.ProcessHacker.exe_PhLookupMemoryItemList
mov rdx, rax
test rax, rax
je 0x140036768
mov rcx, qword [rax + 0x60]
test rcx, rcx
cmovne rdx, rcx
cmp dword [rdx + 0xa0], r15d
jne 0x140036768
mov dword [rdx + 0xa0], 9
mov rax, qword [rbx + 0x130]
mov qword [rdx + 0xa8], rax
test r13b, r13b
je 0x1400367cc
mov rax, qword [rbp]
test rax, rax
je 0x1400367cc
mov edx, eax
lea r8, [rbp - 0x80]
lea rax, [rsp + 0x50]
mov r9d, 0x1c
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x1400367cc
cmp qword [rsp + 0x50], 0x1c
jne 0x1400367cc
mov eax, dword [rbp - 0x78]
cmp eax, dword [rbp - 0x7c]
jae 0x1400367cc
mov edx, eax
mov r9d, 0xa
mov rcx, r14
call fcn.140036210
test rax, rax
je 0x1400367cc
mov rcx, qword [rbx + 0x130]
mov qword [rax + 0xa8], rcx
inc esi
cmp esi, dword [rdi + 4]
jb 0x140036692
mov rbx, qword [r14 + 0x38]
lea rsi, [r14 + 0x38]
or r13d, 0xffffffff
cmp rbx, rsi
je 0x140036938
nop dword [rax]
cmp dword [rbx + 0xa0], r15d
jne 0x14003692c
test dword [rbx + 0x58], 0x1040000
je 0x140036879
cmp qword [rbx + 0x60], rbx
jne 0x140036879
mov rdx, qword [rbx + 0x30]
lea r8, [rsp + 0x38]
mov rcx, r12
call sym.ProcessHacker.exe_PhGetProcessMappedFileName
test eax, eax
js 0x140036879
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call sym.ProcessHacker.exe_PhResolveDevicePrefix
test rax, rax
je 0x14003685e
mov rcx, rdi
mov qword [rsp + 0x38], rax
mov rdi, rax
test rcx, rcx
je 0x14003685e
add rcx, 0xfffffffffffffff0
mov eax, r13d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140036859
call fcn.1400c8bc0
mov rdi, qword [rsp + 0x38]
mov dword [rbx + 0xa0], 3
mov qword [rbx + 0xa8], rdi
jmp 0x14003692c
jmp 0x140036685
test dword [rbx + 0x50], 0x1000
je 0x14003692c
mov rdx, qword [rbx + 0x30]
lea r8, [rbp - 0x30]
mov r9d, 0x30
mov qword [rsp + 0x20], r15
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x14003692c
cmp dword [rbp - 0x20], 0xffeeffee
mov rdi, r15
mov eax, r15d
cmove rdi, qword [rbp - 8]
cmp dword [rbp - 0x28], 0xffeeffee
cmove eax, dword [rbp - 0x18]
test rdi, rdi
je 0x1400368f7
mov rdx, rdi
mov rcx, r14
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x14003692c
cmp qword [rax + 0x30], rdi
jne 0x14003692c
cmp dword [rax + 0xa0], 0xb
jne 0x14003692c
mov dword [rbx + 0xa0], 0xd
jmp 0x140036925
test eax, eax
je 0x14003692c
mov edx, eax
mov rcx, r14
mov edi, eax
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x14003692c
cmp qword [rax + 0x30], rdi
jne 0x14003692c
cmp dword [rax + 0xa0], 0xc
jne 0x14003692c
mov dword [rbx + 0xa0], 0xe
mov qword [rbx + 0xa8], rax
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x1400367f0
xor edx, edx
lea rcx, [rbp + 0x40]
mov r8d, 0xe0
call fcn.14010ed90
mov ecx, 0x7ffe0030
mov qword [rsp + 0x58], r15
call sym.ProcessHacker.exe_PhCountStringZ
mov rsi, rax
lea rcx, str.System32_ntdll.dll
add rsi, rsi
call sym.ProcessHacker.exe_PhCountStringZ
mov rdx, qword [0x140196800]
mov rdi, rax
add rdi, rdi
lea rbx, [rdi + rsi]
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov r8, rsi
mov qword [rsp + 0x48], rax
mov edx, 0x7ffe0030
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rcx + rbx], r15w
mov rcx, qword [rax + 8]
call fcn.14010e700
mov rbx, qword [rsp + 0x48]
lea rdx, str.System32_ntdll.dll
mov r8, rdi
mov rcx, qword [rbx + 8]
add rcx, rsi
call fcn.14010e700
mov rdx, qword [rbx + 8]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], r15
lea r8, str.LdrSystemDllInitBlock
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rcx, r12
call sym.ProcessHacker.exe_PhGetProcedureAddressRemote
mov ebx, eax
test eax, eax
js 0x140036a14
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x140036a14
mov r9d, 0xe0
mov qword [rsp + 0x20], r15
lea r8, [rbp + 0x40]
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], r13d
cmp r13d, 1
jne 0x140036a2e
call fcn.1400c8bc0
test ebx, ebx
js 0x140036ad6
mov eax, dword [rbp + 0x40]
test eax, eax
je 0x140036ad6
lea rcx, [rbp + 0x40]
add rcx, rax
lea rax, [rbp + 0x108]
cmp rax, rcx
ja 0x140036a96
mov rdx, qword [rbp + 0xf0]
mov r15, qword [rbp + 0x100]
test rdx, rdx
je 0x140036a96
mov rcx, r14
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x140036a96
mov rcx, rax
mov rdx, rax
cmp qword [rax + 0x60], rax
jne 0x140036a96
mov dword [rdx + 0xa0], 0xf
mov rcx, qword [rcx]
mov rdx, rcx
cmp qword [rcx + 0x60], rax
je 0x140036a80
cmp byte [rbp + 0x170], 0
je 0x140036ad6
test r15, r15
je 0x140036ad6
mov rdx, r15
mov rcx, r14
call sym.ProcessHacker.exe_PhLookupMemoryItemList
test rax, rax
je 0x140036ad6
mov rcx, rax
mov rdx, rax
cmp qword [rax + 0x60], rax
jne 0x140036ad6
mov dword [rdx + 0xa0], 0x10
mov rcx, qword [rcx]
mov rdx, rcx
cmp qword [rcx + 0x60], rax
je 0x140036ac0
mov r8, qword [rsp + 0x60]
xor edx, edx
mov rcx, qword [0x140196670]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r15, qword [rsp + 0x220]
xor eax, eax
mov rdi, qword [rsp + 0x260]
add rsp, 0x228
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret