Function at 0x140009510
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push rbp
push rbx
push rsi
push r13
lea rbp, [rsp - 0xf8]
sub rsp, 0x1f8
xor esi, esi
mov byte [rbp + 0x130], 0
mov r13, rdx
mov qword [rsp + 0x20], rsi
lea r8, [rbp + 0xb0]
xor edx, edx
mov rbx, rcx
lea r9d, [rsi + 0x30]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x140009ae7
cmp qword [rbp + 0xd0], 4
jne 0x140009575
mov dword [r13], 1
xor eax, eax
add rsp, 0x1f8
pop r13
pop rsi
pop rbx
pop rbp
ret
cmp qword [0x14015dae8], rsi
mov qword [rsp + 0x1f0], r12
je 0x140009594
movups xmm0, xmmword [0x14015dae0]
movaps xmmword [rsp + 0x50], xmm0
jmp 0x1400095e3
mov ecx, 0x7ffe0030
mov qword [rsp + 0x38], 0x7ffe0030
call sym.MercyssMercyr.exe_PhCountStringZ
add rax, rax
mov qword [rsp + 0x30], rax
cmp word [rax + 0x7ffe002e], 0x5c
jne 0x1400095c2
sub rax, 2
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
mov qword [0x14015dae0], rax
lock or dword [rsp], esi
mov qword [0x14015dae8], 0x7ffe0030
lea r8, [rsp + 0x40]
mov edx, 0x1b
mov rcx, rbx
call fcn.1400b89d0
mov r12d, eax
test eax, eax
js 0x140009adf
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x220], rdi
mov qword [rsp + 0x1e8], r14
mov qword [rsp + 0x1e0], r15
movzx edx, word [rbx]
mov rcx, qword [rbx + 8]
call sym.MercyssMercyr.exe_PhCreateStringEx
mov rcx, qword [sym.MercyssMercyr.exe_PhHeapHandle]
mov r8, rbx
xor edx, edx
mov rdi, rax
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, rdi
call sym.MercyssMercyr.exe_PhGetFileName
or r15d, 0xffffffff
mov qword [rsp + 0x48], rax
mov edx, r15d
lea rcx, [rdi - 0x10]
mov rbx, rax
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x140009668
call fcn.1400ae900
movups xmm0, xmmword [rbx]
mov r14, qword [rsp + 0x50]
mov qword [rsp + 0x60], r14
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmm0
movq rdi, xmm1
movdqa xmm0, xmm1
psrldq xmm0, 8
mov qword [rsp + 0x30], rdi
movq rbx, xmm0
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x68], rbx
cmp rdi, r14
jb 0x140009a99
mov r8b, 1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call sym.MercyssMercyr.exe_PhEqualStringRef
test al, al
je 0x140009a99
lea rax, [0x1401261b8]
mov qword [rsp + 0x70], 0x1a
add rbx, r14
mov qword [rsp + 0x78], rax
sub rdi, r14
mov qword [rsp + 0x38], rbx
mov r8b, 1
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call sym.MercyssMercyr.exe_PhEqualStringRef
test al, al
je 0x140009707
mov esi, 0xd
jmp 0x140009a99
mov qword [rbp - 0x80], 0x12
lea rax, str.System32
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x70], 0x12
cmp rdi, 0x12
jb 0x140009740
mov r8b, 1
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x70]
call sym.MercyssMercyr.exe_PhEqualStringRef
test al, al
jne 0x140009788
mov qword [rbp - 0x60], 0x12
lea rax, str.SysWow64
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x50], 0x12
cmp rdi, 0x12
jb 0x140009a99
mov r8b, 1
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x50]
call sym.MercyssMercyr.exe_PhEqualStringRef
test al, al
je 0x140009a99
mov byte [rbp + 0x130], 1
lea rax, str._smss.exe
mov qword [rbp - 0x40], 0x12
add rbx, 0x12
mov qword [rbp - 0x38], rax
sub rdi, 0x12
mov qword [rsp + 0x38], rbx
mov r8b, 1
mov qword [rsp + 0x30], rdi
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x30]
call sym.MercyssMercyr.exe_PhEqualStringRef
test al, al
je 0x1400097cc
mov esi, 2
jmp 0x140009a99
lea rax, str.csrss.exe
mov qword [rbp - 0x30], 0x14
mov r8b, 1
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x30]
call sym.MercyssMercyr.exe_PhEqualStringRef
test al, al
je 0x1400097fe
mov esi, 3
jmp 0x140009a99
lea rax, str.wininit.exe
mov qword [rbp - 0x20], 0x18
mov r8b, 1
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x30]
call sym.MercyssMercyr.exe_PhEqualStringRef
test al, al
je 0x140009830
mov esi, 4
jmp 0x140009a99
lea rax, str._services.exe
mov qword [rbp - 0x10], 0x1a
mov r8b, 1
mov qword [rbp - 8], rax
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x30]
call sym.MercyssMercyr.exe_PhEqualStringRef
test al, al
je 0x140009862
mov esi, 5
jmp 0x140009a99
lea rax, str.lsass.exe
mov qword [rbp], 0x14
mov r8b, 1
mov qword [rbp + 8], rax
lea rdx, [rbp]
lea rcx, [rsp + 0x30]
call sym.MercyssMercyr.exe_PhEqualStringRef
test al, al
je 0x140009894
mov esi, 6
jmp 0x140009a99
lea rax, str.lsm.exe
mov qword [rbp + 0x10], 0x10
mov r8b, 1
mov qword [rbp + 0x18], rax
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x30]
call sym.MercyssMercyr.exe_PhEqualStringRef
test al, al
je 0x1400098c6
mov esi, 7
jmp 0x140009a99
lea rax, str.winlogon.exe
mov qword [rbp + 0x20], 0x1a
mov r8b, 1
mov qword [rbp + 0x28], rax
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x30]
call sym.MercyssMercyr.exe_PhEqualStringRef
test al, al
je 0x1400098f8
mov esi, 8
jmp 0x140009a99
lea rax, str._svchost.exe
mov qword [rbp + 0x30], 0x18
mov r8b, 1
mov qword [rbp + 0x38], rax
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x30]
call sym.MercyssMercyr.exe_PhEqualStringRef
test al, al
je 0x14000992a
mov esi, 9
jmp 0x140009a99
lea rax, str._rundll32.exe
mov qword [rbp + 0x40], 0x1a
mov r8b, 1
mov qword [rbp + 0x48], rax
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x30]
call sym.MercyssMercyr.exe_PhEqualStringRef
test al, al
je 0x14000995c
mov esi, 0xa
jmp 0x140009a99
lea rax, str.dllhost.exe
mov qword [rbp + 0x50], 0x18
mov r8b, 1
mov qword [rbp + 0x58], rax
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x30]
call sym.MercyssMercyr.exe_PhEqualStringRef
test al, al
je 0x14000998e
mov esi, 0xb
jmp 0x140009a99
lea rax, str._taskeng.exe
mov qword [rbp + 0x60], 0x18
mov r8b, 1
mov qword [rbp + 0x68], rax
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x30]
call sym.MercyssMercyr.exe_PhEqualStringRef
test al, al
je 0x1400099c0
mov esi, 0xc
jmp 0x140009a99
lea rax, str._taskhost.exe
mov qword [rbp + 0x70], 0x1a
mov r8b, 1
mov qword [rbp + 0x78], rax
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x30]
call sym.MercyssMercyr.exe_PhEqualStringRef
test al, al
je 0x1400099f2
mov esi, 0xc
jmp 0x140009a99
lea rax, str._taskhostex.exe
mov qword [rbp + 0x80], 0x1e
mov r8b, 1
mov qword [rbp + 0x88], rax
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x30]
call sym.MercyssMercyr.exe_PhEqualStringRef
test al, al
je 0x140009a2a
mov esi, 0xc
jmp 0x140009a99
lea rax, str._taskhostw.exe
mov qword [rbp + 0x90], 0x1c
mov r8b, 1
mov qword [rbp + 0x98], rax
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x30]
call sym.MercyssMercyr.exe_PhEqualStringRef
test al, al
je 0x140009a62
mov esi, 0xc
jmp 0x140009a99
lea rax, str.wudfhost.exe
mov qword [rbp + 0xa0], 0x1a
mov r8b, 1
mov qword [rbp + 0xa8], rax
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x30]
call sym.MercyssMercyr.exe_PhEqualStringRef
test al, al
mov ecx, 0xe
cmovne esi, ecx
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], r15d
mov r14, qword [rsp + 0x1e8]
cmp r15d, 1
mov r15, qword [rsp + 0x1e0]
mov rdi, qword [rsp + 0x220]
jne 0x140009acb
call fcn.1400ae900
cmp byte [rbp + 0x130], 0
je 0x140009ad8
bts esi, 0x11
mov dword [r13], esi
mov eax, r12d
mov r12, qword [rsp + 0x1f0]
add rsp, 0x1f8
pop r13
pop rsi
pop rbx
pop rbp
ret