Function at 0x1401b4fe0
Capabilities:
Enumerate processes
Query or enumerate registry value

Disassembly:
push rbx
push r12
sub rsp, 0x1a8
xor r12d, r12d
mov dword [rcx], 0x18
mov rbx, rcx
mov qword [rcx + 0x40], r12
mov dword [rcx + 0x10], r12d
add rcx, 0x18
lea edx, [r12 + 1]
mov qword [rbx + 8], rcx
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
cmp eax, 1
jne 0x1401b538e
mov qword [rsp + 0x1a0], rbp
mov ebp, r12d
mov qword [rsp + 0x198], rsi
mov qword [rsp + 0x190], rdi
mov qword [rsp + 0x188], r14
mov qword [rsp + 0x180], r15
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.1401b5b30
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], r12
lea rdx, str.SoftwareValveSteamActiveProcess
mov dword [rsp + 0x1c0], r12d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1401b50da
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x1c8]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x1d8]
lea rax, [rsp + 0x1c0]
mov dword [rsp + 0x1c8], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x14048794c]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [rsp + 0x1c0]
test esi, esi
jne 0x1401b5146
xor edx, edx
lea ecx, [rsi + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1401b5146
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x130
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1401b513d
lea rdx, [rsp + 0x7c]
lea rcx, str.steam.exe
call fcn.140333d80
test eax, eax
je 0x1401b5139
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1401b5111
jmp 0x1401b513d
mov esi, dword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, esi
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x1401b5179
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.1401b5b30
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x38]
mov ecx, 0x44
mov dword [rsp + 0x1d0], 0x44
call fcn.14031dcb4
xor edx, edx
lea r9, [rsp + 0x1d0]
mov r8, rax
mov rsi, rax
lea ecx, [rdx + 0x1a]
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
mov r14, qword [rsp + 0x40]
mov edi, 0x2c
test r14, r14
je 0x1401b51c2
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
lea edi, [rax + 0x2c]
test rsi, rsi
je 0x1401b51d2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
add edi, eax
test rbp, rbp
je 0x1401b51e2
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
add edi, eax
call fcn.14029bdd0
movsxd r15, edi
lea r8, str.c:_buildslave_steam_rel_client_hotfix_win64_build_srcoverlaycommonipcwin32.cpp
mov byte [rsp + 0x28], 1
mov r9d, 0xa8
mov rdx, r15
mov byte [rsp + 0x20], r12b
mov rcx, qword [rax]
mov r10, qword [rcx + 0x10]
mov rcx, rax
call r10
mov qword [rbx + 0x40], rax
test rax, rax
je 0x1401b5358
mov r8, r15
xor edx, edx
mov rcx, rax
call fcn.1403224b0
mov rcx, qword [rbx + 0x40]
mov r8d, 2
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x1401b5274
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.InitializeAcl_failed._GetLastError_returned:__d_n
call fcn.14029c740
call fcn.14029bdd0
mov rdx, qword [rbx + 0x40]
xor r8d, r8d
mov rcx, rax
mov r9, qword [rax]
call qword [r9 + 0x38]
mov qword [rbx + 0x40], r12
jmp 0x1401b5340
test r14, r14
je 0x1401b52a9
mov rcx, qword [rbx + 0x40]
mov r9, r14
mov edx, 2
mov r8d, 0x10000000
call qword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x1401b52a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.AddAccessAllowedAce_failed_for_the_process_owner._GetLastError_returned:__d_n
call fcn.14029c740
test rsi, rsi
je 0x1401b52de
mov rcx, qword [rbx + 0x40]
mov r9, rsi
mov edx, 2
mov r8d, 0x10000000
call qword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x1401b52de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.AddAccessAllowedAce_failed_for_administrator._GetLastError_returned:__d_n
call fcn.14029c740
test rbp, rbp
je 0x1401b5313
mov rcx, qword [rbx + 0x40]
mov r9, rbp
mov edx, 2
mov r8d, 0x10000000
call qword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x1401b5313
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.AddAccessAllowedAce_failed_for_steam._GetLastError_returned:__d_n
call fcn.14029c740
mov r8, qword [rbx + 0x40]
xor r9d, r9d
mov rcx, qword [rbx + 8]
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x1401b5340
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetSecurityDescriptorDacl_failed._GetLastError_returned:__d_n
call fcn.14029c740
mov rcx, r14
call fcn.14031dc44
mov rcx, rsi
call fcn.14031dc44
mov rcx, rbp
call fcn.14031dc44
mov r14, qword [rsp + 0x188]
mov rax, rbx
mov rdi, qword [rsp + 0x190]
mov rsi, qword [rsp + 0x198]
mov rbp, qword [rsp + 0x1a0]
mov r15, qword [rsp + 0x180]
add rsp, 0x1a8
pop r12
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.InitializeSecurityDescriptor_failed._GetLastError_returned:__d_n
call fcn.14029c740
mov rax, rbx
add rsp, 0x1a8
pop r12
pop rbx
ret