Function at 0x14000e980
Capabilities:
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x14004d2c0]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor ebx, ebx
mov qword [rbp - 0x41], rbx
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x14003a368]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000e9e0
mov byte [0x14004e7d2], 1
lea rcx, str.Found_previous_registry_entry__HKCS__1_for_Steam
jmp 0x14000ea28
mov qword [rsp + 0x40], rbx
lea rax, [rbp - 0x41]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14003a368]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000ed34
lea rcx, str.Created_new_registry_entry__HKCS__1_for_Steam
call fcn.1400060e0
mov qword [rbp - 0x31], rbx
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.steamShellOpenCommand
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000eaa2
mov byte [0x14004e7d3], 1
mov dword [rbp - 0x39], 1
lea rax, [0x14004d15c]
mov qword [rsp + 0x28], rax
lea rax, [0x14005a7e0]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x39]
xor r8d, r8d
lea rdx, [0x14003a444]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, str.Found_previous_registry_entry__HKCS__2_for_Steam
jmp 0x14000eaea
mov qword [rsp + 0x40], rbx
lea rax, [rbp - 0x31]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.steamShellOpenCommand
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000ec34
lea rcx, str.Created_new_registry_entry__HKCS__2_for_Steam
call fcn.1400060e0
mov dword [rsp + 0x28], 0x13
lea rax, str.URL:steam_protocol
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rbx, [0x140039760]
mov rdx, rbx
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.URL_Protocol
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.140006250
mov rdx, qword [rax + 0x10]
movabs rcx, 0x7ffffffffffffffe
sub rcx, rdx
cmp rcx, 0x11
jb 0x14000ee46
mov r9, rax
cmp qword [rax + 0x18], 7
jbe 0x14000eb7e
mov r9, qword [rax]
mov qword [rsp + 0x30], 0x11
lea rcx, str.steam.exe______1_
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdx
mov r8, rax
movzx edx, byte [rbp - 0x49]
lea rcx, [rbp + 0x17]
call fcn.140009010
mov eax, dword [rbp + 0x27]
lea eax, [rax*2 + 2]
lea rcx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 7
cmova rcx, qword [rbp + 0x17]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14003a444]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp + 0x2f]
cmp rdx, 7
jbe 0x14000ec2d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ec28
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ee4c
call fcn.140015da0
mov al, 1
jmp 0x14000ee23
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r10, [rbp + 0x4c]
dec r10
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx ecx, dl
shl cl, 2
lea eax, [rcx + rdx]
add al, al
sub r8b, al
add r8b, 0x30
mov byte [r10], r8b
mov r8d, edx
test edx, edx
jne 0x14000ec41
lea r9, [rbp - 0x49]
lea r8, [rbp + 0x4c]
mov rdx, r10
lea rcx, [rbp - 9]
call fcn.140006cb0
nop
lea r8, [rbp - 9]
lea rdx, str.Unable_to_patch_Registry__HKCS__2__error_
lea rcx, [rbp - 0x29]
call fcn.140006f50
nop
mov rcx, rax
call fcn.140005e70
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x14000ecd9
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ecd4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ee52
call fcn.140015da0
movdqa xmm0, xmmword [0x140039980]
movdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], 0
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x14000ed25
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ed20
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ee58
call fcn.140015da0
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000ee21
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r10, [rbp + 0x4c]
dec r10
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx ecx, dl
shl cl, 2
lea eax, [rcx + rdx]
add al, al
sub r8b, al
add r8b, 0x30
mov byte [r10], r8b
mov r8d, edx
test edx, edx
jne 0x14000ed41
lea r9, [rbp - 0x49]
lea r8, [rbp + 0x4c]
mov rdx, r10
lea rcx, [rbp - 9]
call fcn.140006cb0
nop
lea r8, [rbp - 9]
lea rdx, str.Unable_to_patch_Registry__HKCS__1__error_
lea rcx, [rbp - 0x29]
call fcn.140006f50
nop
mov rcx, rax
call fcn.140005e70
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x14000edd9
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000edd4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ee5e
call fcn.140015da0
movdqa xmm0, xmmword [0x140039980]
movdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], 0
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x14000ee21
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ee1c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ee40
call fcn.140015da0
xor al, al
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140015f20
mov rbx, qword [rsp + 0x100]
add rsp, 0xf0
pop rbp
ret
call fcn.14001bc14
int3
call fcn.140004660
int3
call fcn.14001bc14
nop
call fcn.14001bc14
nop
call fcn.14001bc14
nop
call fcn.14001bc14
int3