Function at 0x14002d630
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x5e8]
sub rsp, 0x6c0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400b14a0]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov rsi, rdx
movzx r12d, cl
lea r8, str.Start_associate
lea rdx, str.INFO
mov rcx, qword [rsi + 0x8e40]
call fcn.140018920
lea rbx, [rsi + 0xca0]
mov rcx, rsi
call fcn.140022b70
mov rdi, rax
lea rdx, [0x140089770]
lea rcx, [0x140088718]
call fcn.140007130
mov r8, rax
mov qword [rsp + 0x20], rbx
mov r9, rdi
mov edx, 0x104
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov rcx, rsi
call fcn.140022b70
mov rdi, rax
lea rdx, str.s_torrent.ico
lea rcx, [0x140088718]
call fcn.140007130
mov r8, rax
mov r9, rdi
mov edx, 0x104
lea rcx, [rbp + 0x190]
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
xor r13d, r13d
mov word [rbp - 0x70], r13w
lea rdx, str._s_____1_
lea rcx, [0x14008865c]
call fcn.140007130
mov r8, rax
lea r9, [rbp + 0x3a0]
mov edx, 0x100
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea rdx, str.ona_shellopencommand
lea rcx, [0x14008a0f8]
call fcn.140007130
mov rbx, rax
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002d7d7
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x70]
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9d, [r13 + 1]
xor r8d, r8d
lea rdx, [0x1400882a8]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x14002d888
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x60]
call fcn.14000264c
nop
mov rdx, rbx
mov rcx, rax
call fcn.140002680
mov rcx, rax
call fcn.1400018c0
mov qword [rsp + 0x40], r13
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002d87e
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x70]
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1400882a8]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x60]
call fcn.140001624
lea rdx, str.onaDefaultIcon
lea rcx, [0x14008a0f8]
call fcn.140007130
mov rbx, rax
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002d92f
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x190]
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x190]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1400882a8]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x14002d9e6
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x60]
call fcn.14000264c
nop
mov rdx, rbx
mov rcx, rax
call fcn.140002680
mov rcx, rax
call fcn.1400018c0
mov qword [rsp + 0x40], r13
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002d9dc
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x190]
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x190]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1400882a8]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x60]
call fcn.140001624
lea rdx, str.pplicationsZona.exe_shellopencommand
lea rcx, [0x140089bd4]
call fcn.140007130
mov qword [rsp + 0x40], r13
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002da7a
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x70]
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1400882a8]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.RL_Protocol
lea rcx, [0x1400886e8]
call fcn.140007130
mov rdi, rax
lea rdx, str.oftwareClassesZona
lea rcx, [0x140088580]
call fcn.140007130
mov rdx, rax
lea r9, [0x1400882a8]
mov r8, rdi
mov rcx, 0xffffffff80000001
call fcn.140004920
lea rdx, str.RL_Protocol
lea rcx, [0x1400886e8]
call fcn.140007130
mov rdi, rax
lea rdx, [0x14008a1a8]
lea rcx, [0x14008a0f8]
call fcn.140007130
mov rdx, rax
lea r9, [0x1400882a8]
mov r8, rdi
mov rcx, 0xffffffff80000000
call fcn.140004920
lea rdx, str.INFO
mov rcx, qword [rsi + 0x8e40]
test r12b, r12b
je 0x14002e0bd
lea r8, str.associate_.torrent_file
call fcn.140018920
lea rdx, [0x14008a1a8]
lea rcx, [0x14008a0f8]
call fcn.140007130
mov rdi, rax
lea rdx, str.zona
lea rcx, [0x14008885c]
call fcn.140007130
mov rcx, rax
mov r8, rdi
lea rdx, [0x1400882a8]
call fcn.14002d590
lea rdx, [0x14008a1a8]
lea rcx, [0x14008a0f8]
call fcn.140007130
mov rdi, rax
lea rdx, str.torrent
lea rcx, [0x14008885c]
call fcn.140007130
mov rcx, rax
mov r8, rdi
lea rdx, [0x1400882a8]
call fcn.14002d590
lea rdx, str.torrent
lea rcx, [0x14008885c]
call fcn.140007130
mov rbx, rax
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea r12, str.application_x_bittorrent
test eax, eax
jne 0x14002dc2a
mov dword [rsp + 0x28], 0x32
mov qword [rsp + 0x20], r12
lea r9d, [rax + 1]
xor r8d, r8d
lea rdx, str.Content_Type
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x14002dcc6
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x60]
call fcn.14000264c
nop
mov rdx, rbx
mov rcx, rax
call fcn.140002680
mov rcx, rax
call fcn.1400018c0
mov qword [rsp + 0x40], r13
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002dcbc
mov dword [rsp + 0x28], 0x32
mov qword [rsp + 0x20], r12
lea r9d, [rax + 1]
xor r8d, r8d
lea rdx, str.Content_Type
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x60]
call fcn.140001624
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.MIMEDatabaseContent_Type_application_x_bittorrent
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea rbx, str..torrent
test eax, eax
jne 0x14002dd47
mov dword [rsp + 0x28], 0x12
mov qword [rsp + 0x20], rbx
lea r9d, [rax + 1]
xor r8d, r8d
lea rdx, str.Extension
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x14002dde7
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x60]
call fcn.14000264c
nop
lea rdx, str.MIMEDatabaseContent_Type_application_x_bittorrent
mov rcx, rax
call fcn.140002680
mov rcx, rax
call fcn.1400018c0
mov qword [rsp + 0x40], r13
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002dddd
mov dword [rsp + 0x28], 0x12
mov qword [rsp + 0x20], rbx
lea r9d, [rax + 1]
xor r8d, r8d
lea rdx, str.Extension
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x60]
call fcn.140001624
lea rdx, str.ona_Download
lea rcx, [0x14008a0f8]
call fcn.140007130
mov rdi, rax
lea rdx, [0x14008a1a8]
lea rcx, [0x14008a0f8]
call fcn.140007130
mov rcx, rax
mov r8, rdi
lea rdx, [0x1400882a8]
call fcn.14002d590
lea rdx, str.ona_shell
lea rcx, [0x14008a0f8]
call fcn.140007130
mov rbx, rax
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea r14, str.open
test eax, eax
jne 0x14002deb5
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], r14
lea r9d, [rax + 1]
xor r8d, r8d
lea rdx, [0x1400882a8]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x14002df51
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x60]
call fcn.14000264c
nop
mov rdx, rbx
mov rcx, rax
call fcn.140002680
mov rcx, rax
call fcn.1400018c0
mov qword [rsp + 0x40], r13
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002df47
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], r14
lea r9d, [rax + 1]
xor r8d, r8d
lea rdx, [0x1400882a8]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x60]
call fcn.140001624
lea rdx, [0x14008a1a8]
lea rcx, [0x14008a0f8]
call fcn.140007130
mov rbx, rax
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002dfdd
mov dword [rsp + 0x28], 0x32
mov qword [rsp + 0x20], r12
lea r9d, [rax + 1]
xor r8d, r8d
lea rdx, str.Content_Type
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x14002e079
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x60]
call fcn.14000264c
nop
mov rdx, rbx
mov rcx, rax
call fcn.140002680
mov rcx, rax
call fcn.1400018c0
mov qword [rsp + 0x40], r13
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002e06f
mov dword [rsp + 0x28], 0x32
mov qword [rsp + 0x20], r12
lea r9d, [rax + 1]
xor r8d, r8d
lea rdx, str.Content_Type
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x60]
call fcn.140001624
lea rdx, [0x14008a1a8]
lea rcx, [0x14008a0f8]
call fcn.140007130
mov rdi, rax
lea rdx, str.oftwareMicrosoftWindowsCurrentVersionExplorerFileExts.torrentOpenWithProgids
lea rcx, [0x140088580]
call fcn.140007130
mov rdx, rax
lea r9, [0x1400882a8]
mov r8, rdi
mov rcx, 0xffffffff80000001
call fcn.140004920
jmp 0x14002e0c9
lea r8, str.Dont_associate_.torrent_files
call fcn.140018920
lea r8, str.End_associate
lea rdx, str.INFO
mov rcx, qword [rsi + 0x8e40]
call fcn.140018920
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.14005ba60
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret