Function at 0x14000ca20
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 [0x14004d140]
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, [0x14003a278]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ca80
mov byte [0x14004e632], 1
lea rcx, str.Found_previous_registry_entry__HKCS__1_for_Steam
jmp 0x14000cac8
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, [0x14003a278]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000ce23
lea rcx, str.Created_new_registry_entry__HKCS__1_for_Steam
call fcn.1400134d0
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 0x14000cb42
mov byte [0x14004e633], 1
mov dword [rbp - 0x39], 1
lea rax, [0x14004d00c]
mov qword [rsp + 0x28], rax
lea rax, [0x14005a640]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x39]
xor r8d, r8d
lea rdx, [0x14003a354]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, str.Found_previous_registry_entry__HKCS__2_for_Steam
jmp 0x14000cb8a
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 0x14000cd1a
lea rcx, str.Created_new_registry_entry__HKCS__2_for_Steam
call fcn.1400134d0
mov dword [rsp + 0x28], 0x13
lea rax, str.URL:steam_protocol
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rbx, [0x140039858]
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]
lea rcx, [rbp - 0x29]
call fcn.140011c50
nop
mov rdx, qword [rax + 0x10]
movabs rcx, 0x7ffffffffffffffe
sub rcx, rdx
cmp rcx, 0x11
jb 0x14000cf35
mov r9, rax
cmp qword [rax + 0x18], 7
jbe 0x14000cc23
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.140004be0
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x14000cc8e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cc89
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000cf3b
call fcn.140015708
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, [0x14003a354]
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 0x14000cd13
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cd0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000cf41
call fcn.140015708
mov al, 1
jmp 0x14000cf12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r10, [rbp + 0x4c]
nop word [rax + rax]
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 0x14000cd30
lea r9, [rbp - 0x49]
lea r8, [rbp + 0x4c]
mov rdx, r10
lea rcx, [rbp - 0x29]
call fcn.140001350
nop
lea r8, [rbp - 0x29]
lea rdx, str.Unable_to_patch_Registry__HKCS__2__error_
lea rcx, [rbp - 9]
call fcn.1400015f0
nop
mov rcx, rax
call fcn.140007e50
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x14000cdc8
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cdc3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000cf47
call fcn.140015708
movdqa xmm0, xmmword [0x14003b4a0]
movdqu xmmword [rbp + 7], xmm0
mov byte [rbp - 9], 0
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x14000ce14
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ce0f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000cf4d
call fcn.140015708
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000cf10
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 0x14000ce30
lea r9, [rbp - 0x49]
lea r8, [rbp + 0x4c]
mov rdx, r10
lea rcx, [rbp - 0x29]
call fcn.140001350
nop
lea r8, [rbp - 0x29]
lea rdx, str.Unable_to_patch_Registry__HKCS__1__error_
lea rcx, [rbp - 9]
call fcn.1400015f0
nop
mov rcx, rax
call fcn.140007e50
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x14000cec8
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cec3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000cf53
call fcn.140015708
movdqa xmm0, xmmword [0x14003b4a0]
movdqu xmmword [rbp + 7], xmm0
mov byte [rbp - 9], 0
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x14000cf10
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cf0b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000cf2f
call fcn.140015708
xor al, al
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140015ac0
mov rbx, qword [rsp + 0x100]
add rsp, 0xf0
pop rbp
ret
call fcn.14001c51c
nop
call fcn.140008960
nop
call fcn.14001c51c
int3
call fcn.14001c51c
nop
call fcn.14001c51c
nop
call fcn.14001c51c
nop
call fcn.14001c51c
int3