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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477123
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x49b3d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebx + 0x8c28]
push str.Start_associate
push str.INFO
mov dword [ebp - 0x660], ebx
call fcn.00416a80
cmp word [ebx + 0x80c], 0
lea esi, [ebx + 0x80c]
jne 0x42e423
cmp word [ebx + 0x604], 0
lea edi, [ebx + 0x604]
jne 0x42e403
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, ebx
call edx
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x42e417
mov word [esi], ax
cmp word [esi], 0
lea eax, [ebx + 0x604]
je 0x42e425
mov eax, esi
lea ecx, [ebx + 0xaec]
push ecx
push eax
push 0x485754
push 0x484350
call fcn.004087e0
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 8
push eax
lea edx, [ebp - 0x620]
push 0x104
push edx
call edi
add esp, 0x14
cmp word [esi], 0
jne 0x42e49b
add ebx, 0x604
cmp word [ebx], 0
jne 0x42e475
mov ecx, dword [ebp - 0x660]
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebx, dword [ebp - 0x660]
test eax, eax
jne 0x42e48f
mov word [esi], ax
cmp word [esi], 0
jne 0x42e49b
lea esi, [ebx + 0x604]
push esi
push str.s_torrent.ico
push 0x484350
call fcn.004087e0
add esp, 8
push eax
lea ecx, [ebp - 0x418]
push 0x104
push ecx
call edi
add esp, 0x10
lea eax, [ebp - 0x620]
push eax
xor edx, edx
push str._s_____1_
push 0x48429c
mov word [ebp - 0x210], dx
call fcn.004087e0
add esp, 8
push eax
lea ecx, [ebp - 0x210]
push 0x100
push ecx
call edi
push str.ona_shellopencommand
push 0x486120
call fcn.004087e0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
add esp, 0x18
push 0
lea edx, [ebp - 0x65c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
mov esi, eax
push esi
push SysReAllocString
call ebx
test eax, eax
jne 0x42e57a
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e536
sub eax, edx
mov edx, dword [ebp - 0x65c]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x210]
push ecx
push 1
push 0
push 0x484020
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov eax, dword [ebp - 0x65c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x42e5c9
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025d0
push 0x484020
push esi
push eax
mov dword [ebp - 4], 0
call fcn.0040260f
call fcn.0040263b
lea edi, [ebp - 0x210]
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406420
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402601
push str.onaDefaultIcon
push 0x486120
call fcn.004087e0
add esp, 8
push 0
lea ecx, [ebp - 0x65c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edi, eax
push edi
push SysReAllocString
call ebx
test eax, eax
jne 0x42e654
lea eax, [ebp - 0x418]
lea edx, [eax + 2]
jmp 0x42e610
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e610
mov ecx, dword [ebp - 0x65c]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x418]
push eax
push 1
push 0
push 0x484020
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x65c]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x42e6a3
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025d0
push 0x484020
push edi
push eax
mov dword [ebp - 4], 1
call fcn.0040260f
call fcn.0040263b
lea edi, [ebp - 0x418]
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406420
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402601
push str.pplicationsZona.exe_shellopencommand
push 0x485b8c
call fcn.004087e0
add esp, 8
push 0
lea ecx, [ebp - 0x65c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push SysReAllocString
call ebx
test eax, eax
jne 0x42e71e
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e6e0
mov ecx, dword [ebp - 0x65c]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push 0x484020
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x65c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.RL_Protocol
push 0x484328
call fcn.004087e0
add esp, 8
push eax
push str.oftwareClassesZona
push 0x4841d0
call fcn.004087e0
add esp, 8
mov edi, 0x484020
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406420
push str.RL_Protocol
push 0x484328
call fcn.004087e0
add esp, 0xc
push eax
push 0x486118
push 0x486120
call fcn.004087e0
add esp, 8
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406420
add esp, 4
cmp byte [ebp + 8], 0
je 0x42ec31
mov eax, dword [ebp - 0x660]
mov ecx, dword [eax + 0x8c28]
push str.associate_.torrent_file
push str.INFO
call fcn.00416a80
push 0x486118
push 0x486120
call fcn.004087e0
push str.zona
push 0x484610
mov edi, eax
call fcn.004087e0
mov esi, eax
push 0x484020
mov ecx, esi
mov edx, SysReAllocString
call fcn.00406420
add esp, 0x14
test al, al
jne 0x42e830
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025d0
push 0x484020
push esi
push eax
mov dword [ebp - 4], 2
call fcn.0040260f
call fcn.0040263b
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406420
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402601
push 0x486118
push 0x486120
call fcn.004087e0
push str.torrent
push 0x484610
mov edi, eax
call fcn.004087e0
mov esi, eax
push 0x484020
mov ecx, esi
mov edx, SysReAllocString
call fcn.00406420
add esp, 0x14
test al, al
jne 0x42e8b3
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025d0
push 0x484020
push esi
push eax
mov dword [ebp - 4], 3
call fcn.0040260f
call fcn.0040263b
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406420
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402601
push str.torrent
push 0x484610
call fcn.004087e0
add esp, 8
push 0
lea ecx, [ebp - 0x65c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov esi, eax
push esi
push SysReAllocString
call ebx
test eax, eax
jne 0x42e918
mov edx, dword [ebp - 0x65c]
push 0x32
push str.application_x_bittorrent
push 1
push eax
push str.Content_Type
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov eax, dword [ebp - 0x65c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x42e966
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025d0
push str.Content_Type
push esi
push eax
mov dword [ebp - 4], 4
call fcn.0040260f
call fcn.0040263b
mov edi, str.application_x_bittorrent
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406420
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402601
push 0
lea ecx, [ebp - 0x65c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.MIMEDatabaseContent_Type_application_x_bittorrent
push SysReAllocString
call ebx
test eax, eax
jne 0x42e9bb
mov edx, dword [ebp - 0x65c]
push 0x12
push str..torrent
push 1
push eax
push str.Extension
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x65c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x42ea0d
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025d0
push str.Extension
push str.MIMEDatabaseContent_Type_application_x_bittorrent
push eax
mov dword [ebp - 4], 5
call fcn.0040260f
call fcn.0040263b
mov edi, str..torrent
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406420
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402601
push str.ona_Download
push 0x486120
call fcn.004087e0
push 0x486118
push 0x486120
mov edi, eax
call fcn.004087e0
mov esi, eax
push 0x484020
mov ecx, esi
mov edx, SysReAllocString
call fcn.00406420
add esp, 0x14
test al, al
jne 0x42ea90
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025d0
push 0x484020
push esi
push eax
mov dword [ebp - 4], 6
call fcn.0040260f
call fcn.0040263b
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406420
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402601
push str.ona_shell
push 0x486120
call fcn.004087e0
add esp, 8
push 0
lea ecx, [ebp - 0x65c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov esi, eax
push esi
push SysReAllocString
call ebx
test eax, eax
jne 0x42eaf5
mov edx, dword [ebp - 0x65c]
push 0xa
push str.open
push 1
push eax
push 0x484020
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov eax, dword [ebp - 0x65c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x42eb43
push str.SoftwareClasses_
lea eax, [ebp - 0x63c]
call fcn.004025d0
push 0x484020
push esi
push eax
mov dword [ebp - 4], 7
call fcn.0040260f
call fcn.0040263b
mov edi, str.open
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406420
add esp, 4
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402601
push 0x486118
push 0x486120
call fcn.004087e0
add esp, 8
push 0
lea ecx, [ebp - 0x65c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov esi, eax
push esi
push SysReAllocString
call ebx
test eax, eax
jne 0x42eba8
mov edx, dword [ebp - 0x65c]
push 0x32
push str.application_x_bittorrent
push 1
push eax
push str.Content_Type
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov eax, dword [ebp - 0x65c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x42ebf6
push str.SoftwareClasses_
lea eax, [ebp - 0x658]
call fcn.004025d0
push str.Content_Type
push esi
push eax
mov dword [ebp - 4], 8
call fcn.0040260f
call fcn.0040263b
mov edi, str.application_x_bittorrent
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406420
add esp, 4
lea ecx, [ebp - 0x658]
mov dword [ebp - 4], 0xffffffff
call fcn.00402601
push 0x486118
push 0x486120
call fcn.004087e0
add esp, 8
push eax
push str.oftwareMicrosoftWindowsCurrentVersionExplorerFileExts.torrentOpenWithProgids
push 0x4841d0
call fcn.004087e0
add esp, 8
mov edi, 0x484020
mov ecx, eax
mov edx, SysReAllocString
call fcn.00406420
add esp, 4
jmp 0x42ec4c
mov ecx, dword [ebp - 0x660]
mov ecx, dword [ecx + 0x8c28]
push str.Dont_associate_.torrent_files
push str.INFO
call fcn.00416a80
mov edx, dword [ebp - 0x660]
mov ecx, dword [edx + 0x8c28]
push str.End_associate
push str.INFO
call fcn.00416a80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458db6
mov esp, ebp
pop ebp
ret