Function at 0x14000e960
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 0x14000e9c0
mov byte [0x14004e7d2], 1
lea rcx, str.Found_previous_registry_entry__HKCS__1_for_Steam
jmp 0x14000ea08
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 0x14000ed14
lea rcx, str.Created_new_registry_entry__HKCS__1_for_Steam
call fcn.140006140
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 0x14000ea82
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 0x14000eaca
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 0x14000ec14
lea rcx, str.Created_new_registry_entry__HKCS__2_for_Steam
call fcn.140006140
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.1400062b0
mov rdx, qword [rax + 0x10]
movabs rcx, 0x7ffffffffffffffe
sub rcx, rdx
cmp rcx, 0x11
jb 0x14000ee26
mov r9, rax
cmp qword [rax + 0x18], 7
jbe 0x14000eb5e
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.140009070
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 0x14000ec0d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ec08
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ee2c
call fcn.140015d80
mov al, 1
jmp 0x14000ee03
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 0x14000ec21
lea r9, [rbp - 0x49]
lea r8, [rbp + 0x4c]
mov rdx, r10
lea rcx, [rbp - 9]
call fcn.140006d10
nop
lea r8, [rbp - 9]
lea rdx, str.Unable_to_patch_Registry__HKCS__2__error_
lea rcx, [rbp - 0x29]
call fcn.140006fb0
nop
mov rcx, rax
call fcn.140005ed0
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x14000ecb9
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ecb4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ee32
call fcn.140015d80
movdqa xmm0, xmmword [0x140039980]
movdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], 0
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x14000ed05
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ed00
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ee38
call fcn.140015d80
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000ee01
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 0x14000ed21
lea r9, [rbp - 0x49]
lea r8, [rbp + 0x4c]
mov rdx, r10
lea rcx, [rbp - 9]
call fcn.140006d10
nop
lea r8, [rbp - 9]
lea rdx, str.Unable_to_patch_Registry__HKCS__1__error_
lea rcx, [rbp - 0x29]
call fcn.140006fb0
nop
mov rcx, rax
call fcn.140005ed0
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x14000edb9
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000edb4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ee3e
call fcn.140015d80
movdqa xmm0, xmmword [0x140039980]
movdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], 0
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x14000ee01
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000edfc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ee20
call fcn.140015d80
xor al, al
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140015f00
mov rbx, qword [rsp + 0x100]
add rsp, 0xf0
pop rbp
ret
call fcn.14001bbf4
int3
call fcn.140004660
int3
call fcn.14001bbf4
nop
call fcn.14001bbf4
nop
call fcn.14001bbf4
nop
call fcn.14001bbf4
int3