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

Disassembly:
push rbp
push rbx
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x368]
sub rsp, 0x468
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov r15, rdx
mov r13, rcx
xor edx, edx
lea rcx, [rbp + 0xc0]
mov r8d, 0x1a8
call fcn.1401868c0
xor edi, edi
mov qword [rsp + 0x60], r15
cmp byte [0x140240e3f], dil
mov qword [rsp + 0x68], rdi
je 0x14005f3e8
lea rax, ds:[rbp + 0xa0]
mov dword [rbp - 0x78], 0x410
mov qword [rbp - 0x80], rax
lea rcx, [rbp - 0x68]
lea rax, [rsp + 0x60]
mov dword [rbp - 0x68], edi
mov qword [rbp - 0x70], rax
call fcn.14011f9e0
mov dword [rsp + 0x48], edi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], 0x20
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x60]
jmp 0x14005f477
xorps xmm0, xmm0
mov dword [rbp], 0x30
lea r9, [rsp + 0x60]
mov qword [rbp + 8], rdi
lea r8, [rbp]
mov dword [rbp + 0x18], edi
mov edx, 0x410
mov qword [rbp + 0x10], rdi
lea rcx, [rbp + 0xa0]
movdqu xmmword [rbp + 0x20], xmm0
call qword [sym.imp.ntdll.dll_NtOpenProcess]
nop dword [rax]
cmp eax, 0xc0000022
jne 0x14005f499
movzx eax, byte [0x140240e3f]
test al, al
je 0x14005f4af
lea rax, [rbp + 0xa0]
mov dword [rbp - 0x58], 0x410
mov qword [rbp - 0x60], rax
lea rcx, [rbp - 0x48]
lea rax, [rsp + 0x60]
mov dword [rbp - 0x48], edi
mov qword [rbp - 0x50], rax
call fcn.14011f9e0
mov dword [rsp + 0x48], edi
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], 0x20
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x70]
mov rcx, qword [0x140241b70]
xor r9d, r9d
mov dword [rsp + 0x28], 0x999920cb
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
nop dword [rax]
test eax, eax
jns 0x14005f6a5
movzx eax, byte [0x140240e3f]
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], rdi
test al, al
je 0x14005f50b
lea rax, ds:[rbp + 0xa0]
mov dword [rbp - 0x38], 0x400
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x28]
lea rax, [rsp + 0x70]
mov dword [rbp - 0x28], edi
mov qword [rbp - 0x30], rax
call fcn.14011f9e0
mov dword [rsp + 0x48], edi
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], 0x20
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x80]
jmp 0x14005f5a6
xorps xmm0, xmm0
mov dword [rbp + 0x30], 0x30
lea r9, [rsp + 0x70]
mov qword [rbp + 0x38], rdi
lea r8, [rbp + 0x30]
mov dword [rbp + 0x48], edi
mov edx, 0x400
mov qword [rbp + 0x40], rdi
lea rcx, [rbp + 0xa0]
movdqu xmmword [rbp + 0x50], xmm0
call qword [sym.imp.ntdll.dll_NtOpenProcess]
mov ebx, eax
cmp eax, 0xc0000022
jne 0x14005f5ca
cmp byte [0x140240e3f], dil
je 0x14005f5fb
lea rax, ds:[rbp + 0xa0]
mov dword [rbp - 0x18], 0x400
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 8]
lea rax, [rsp + 0x70]
mov dword [rbp - 8], edi
mov qword [rbp - 0x10], rax
call fcn.14011f9e0
mov dword [rsp + 0x48], edi
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], 0x20
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x90]
mov rcx, qword [0x140241b70]
xor r9d, r9d
mov dword [rsp + 0x28], 0x999920cb
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov ebx, eax
test ebx, ebx
jns 0x14005f6a5
cmp ebx, 0xc0000022
je 0x14005f5fb
nop word [rax + rax]
cmp ebx, 0xc0000005
je 0x14005f5fb
mov eax, ebx
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x14005f60a
movzx eax, bx
jmp 0x14005f606
lfence
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jne 0x14005f616
lfence
mov ecx, ebx
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x14005f625
lfence
mov ecx, eax
call sym.ProcessHacker.exe_PhGetWin32Message
lea r9, str.Unable_to_open_the_process.
mov rbx, rax
mov rcx, r13
test rax, rax
je 0x14005f68c
lfence
lfence
mov rax, qword [rax + 8]
mov edx, 0x20
mov qword [rsp + 0x28], rax
mov r8d, 0xfffe
lea rax, [0x1401b8d58]
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhShowMessage2
lea rcx, [rbx - 0x10]
mov r14d, 0xffffffff
lock xadd dword [rcx + 8], r14d
cmp r14d, 1
jne 0x14005fa0c
lfence
call fcn.1400fbcc0
jmp 0x14005fa0c
lea r8, [0x1401efb68]
mov edx, 0x10
call sym.ProcessHacker.exe_PhShowMessage
nop dword [rax]
jmp 0x14005fa0c
mov qword [rsp + 0x4b0], rsi
mov rsi, qword [0x1402447d8]
mov qword [rsp + 0x460], r12
mov r12, qword [rbp + 0xa0]
mov qword [rsp + 0x58], rdi
test rsi, rsi
je 0x14005f6d6
mov r14, qword [0x1402447d0]
jmp 0x14005f70a
mov esi, 0x7ffe0030
mov ecx, esi
call sym.ProcessHacker.exe_PhCountStringZ
add rax, rax
cmp word [rax + 0x7ffe002e], 0x5c
lea r14, [rax - 2]
cmovne r14, rax
mov qword [0x1402447d0], r14
lock or dword [rsp], edi
mov qword [0x1402447d8], rsi
mov rdx, qword [0x1402418e8]
lea rbx, [r14 + 0x26]
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rdi, rax
mov r8, r14
mov rdx, rsi
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + rbx], ax
mov rcx, qword [rdi + 8]
call fcn.140188690
mov rcx, qword ds:[rdi + 8]
lea r8, str.LdrSystemDllInitBlock
movups xmm0, xmmword [str.System32_ntdll.dll]
xor esi, esi
xor r9d, r9d
mov qword [rsp + 0x28], rsi
movups xmmword [rcx + r14], xmm0
movups xmm1, xmmword [0x1401dcd88]
movups xmmword [rcx + r14 + 0x10], xmm1
mov eax, dword [0x1401dcd98]
mov dword [rcx + r14 + 0x20], eax
movzx eax, word [0x1401dcd9c]
mov word [rcx + r14 + 0x24], ax
lea rax, [rsp + 0x58]
mov rdx, qword [rdi + 8]
mov rcx, r12
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhGetProcedureAddressRemote
mov r14d, 0xffffffff
lea rcx, [rdi - 0x10]
mov edx, r14d
mov ebx, eax
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x14005f7c5
nop
call fcn.1400fbcc0
test ebx, ebx
js 0x14005f850
cmp qword [rsp + 0x58], rsi
je 0x14005f842
lfence
mov rcx, qword [0x140241998]
mov edx, 4
mov r8d, 0xf0
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor edx, edx
mov r8d, 0xf0
mov rcx, rax
mov rbx, rax
call fcn.1401868c0
mov rdx, qword ds:[rsp + 0x58]
mov r9d, 0xf0
mov r8, rbx
mov qword [rsp + 0x20], rsi
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
jns 0x14005f849
lfence
mov rcx, qword [0x140241998]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop
jmp 0x14005f850
mov rbx, qword [rbp + 0xa8]
mov qword [rbp + 0xc8], rbx
mov rcx, qword ds:[rbp + 0xa0]
lea rdx, [rbp + 0x280]
call fcn.140085d20
test eax, eax
js 0x14005f9d4
xor r12d, r12d
lea rbx, [rbp + 0xe0]
mov edi, r12d
lea rsi, [rbp + 0x280]
mov rdx, qword [rsi]
test rdx, rdx
je 0x14005f8b9
lea r9, [rbp + 0xa8]
mov ecx, edi
lea r8, [rbp + 0xb0]
call fcn.140086220
nop
test al, al
je 0x14005f8b9
mov rax, qword [rbp + 0xb0]
mov qword [rbx - 8], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbx], rax
inc edi
add rsi, 8
add rbx, 0x18
cmp edi, 0x11
jl 0x14005f881
cmp r15, 4
jne 0x14005f94a
xor r9d, r9d
lea rdx, [rbp + 0x274]
mov r8d, r15d
mov ecx, 0xdd
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x14005f94a
mov eax, dword [rbp + 0x274]
lea r9, [rbp + 0xa8]
mov ecx, eax
lea r8, [rbp + 0xb0]
shr ecx, 4
lea rdx, [rbp + 0x270]
and ecx, 0x30
and eax, 0x100
or ecx, eax
shr ecx, 4
mov dword [rbp + 0x270], ecx
lea ecx, [r15 + 0xb]
call fcn.140086220
test al, al
je 0x14005f94a
mov rax, qword [rbp + 0xb0]
mov qword [rbp + 0x240], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x248], rax
mov rcx, qword [0x140241948]
lea rax, [rbp + 0xc0]
lea r9, [0x14005fa40]
mov qword [rsp + 0x20], rax
mov r8, r13
mov edx, 0xd7
call qword [sym.imp.USER32.dll_DialogBoxParamW]
lea rbx, [rbp + 0xe0]
mov edi, 0x11
nop
mov rcx, qword [rbx - 8]
mov qword [rbx - 8], r12
test rcx, rcx
je 0x14005f9a5
add rcx, 0xfffffffffffffff0
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14005f9a5
nop
call fcn.1400fbcc0
mov rcx, qword [rbx]
mov qword [rbx], r12
test rcx, rcx
je 0x14005f9ca
add rcx, 0xfffffffffffffff0
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14005f9ca
call fcn.1400fbcc0
add rbx, 0x18
sub rdi, 1
jne 0x14005f980
mov r8, qword [rbp + 0xc8]
mov r12, qword [rsp + 0x460]
mov rsi, qword [rsp + 0x4b0]
test r8, r8
je 0x14005f9ff
mov rcx, qword [0x140241998]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0x468
pop r15
pop r14
pop r13
pop rdi
pop rbx
pop rbp
ret