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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x8c
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x459600
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x50], eax
cmp dword [ecx + 0x14], 8
mov edx, ecx
jb 0x4589a1
mov edx, dword [ecx]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x10], 1
sub esp, 0x24
mov dword [esp + 0x20], eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x20], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
movaps xmm0, xmmword [0x72be30]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], edx
mov dword [esp], connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x458b84
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x458a04
lea ecx, [eax - 0x80000000]
cmp ecx, 7
ja 0x458bd7
cmp ecx, 6
je 0x458bd7
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x10], 0xc
push dword [ebp - 0x60]
push str.URL:
lea eax, [ebp - 0x50]
push eax
call fcn.0045995f
add esp, 0xc
xorps xmm0, xmm0
lea ecx, [ebp - 0x38]
movsd qword [ecx + 0x10], xmm0
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ebp - 0x10], 0xf
push 0
push 0x79ba1e
call fcn.004051ae
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x3c], 8
jb 0x458a5b
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x20], ecx
lea eax, [eax*2 + 2]
cmp dword [ebp - 0x24], 8
lea ecx, [ebp - 0x38]
jb 0x458a6e
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x10], 2
push eax
push dword [ebp - 0x20]
push 1
push 0
push ecx
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x458aa4
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x38]
call fcn.00404bbf
add esp, 8
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x458abf
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x50]
call fcn.00404bbf
add esp, 8
test esi, esi
jne 0x458b84
xorps xmm0, xmm0
lea ecx, [ebp - 0x50]
movsd qword [ecx + 0x10], xmm0
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ebp - 0x10], 0xc
push 0
push 0x79ba1e
call fcn.004051ae
lea ecx, [ebp - 0x38]
xorps xmm0, xmm0
movsd qword [ecx + 0x10], xmm0
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ebp - 0x10], 0xe
push 0xc
push str.URL_Protocol
call fcn.004051ae
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x3c], 8
lea ecx, [ebp - 0x50]
jb 0x458b1e
mov ecx, dword [ebp - 0x50]
lea eax, [eax*2 + 2]
cmp dword [ebp - 0x24], 8
lea edx, [ebp - 0x38]
jb 0x458b31
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x10], 3
push eax
push ecx
push 1
push 0
push edx
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x458b65
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x38]
call fcn.00404bbf
add esp, 8
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x458b80
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x50]
call fcn.00404bbf
add esp, 8
test esi, esi
je 0x458c00
xor ebx, ebx
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x458b9d
lea ecx, [eax - 0x80000000]
cmp ecx, 7
ja 0x458bb3
cmp ecx, 6
je 0x458bb3
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret
cmp eax, 0x80000050
je 0x458b9d
cmp eax, 0x80000060
je 0x458b9d
mov dword [ebp - 0x10], 0xb
push eax
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x20]
jmp 0x458b9d
cmp eax, 0x80000050
je 0x458a04
cmp eax, 0x80000060
je 0x458a04
mov dword [ebp - 0x10], 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x458a04
mov eax, dword [0x7f20d4]
mov ecx, dword [0x7f325c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4590f6
mov eax, dword [0x7f20cc]
mov ecx, 0x7f20bc
cmp dword [0x7f20d0], 8
jb 0x458c3a
mov ecx, dword [0x7f20bc]
mov dword [ebp - 0x10], 0xc
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, eax
cmp edx, dword [0x7f20cc]
jb 0x458ca9
add edx, 0x104
mov ecx, 0x7f20bc
push 0
push edx
call fcn.00404c5a
mov eax, 0x7f20bc
cmp dword [0x7f20d0], 8
jb 0x458c7b
mov eax, dword [0x7f20bc]
push dword [0x7f20cc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, 0x7f20bc
push 0
push eax
mov dword [ebp - 0x20], eax
call fcn.00404c5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x20]
test eax, eax
jne 0x458c4d
jmp 0x458cb6
mov ecx, 0x7f20bc
push 0
push edx
call fcn.00404c5a
xorps xmm0, xmm0
movsd qword [ebp - 0x40], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x50], xmm0
mov eax, dword [0x7f20cc]
mov edx, 0x7f20bc
cmp dword [0x7f20d0], 8
jb 0x458cde
mov edx, dword [0x7f20bc]
lea ecx, [ebp - 0x50]
push eax
push edx
call fcn.00405036
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x38]
push str.DefaultIcon
push dword [ebp - 0x60]
push eax
call fcn.004596ee
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x24], 8
lea edx, [ebp - 0x38]
jb 0x458d1b
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x10], 5
sub esp, 0x24
mov dword [esp + 0x20], eax
lea ecx, [ebp - 0x78]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
movaps xmm0, xmmword [0x72be30]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], edx
mov dword [esp], connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test eax, eax
jne 0x458d7c
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x458d76
lea ecx, [eax - 0x80000000]
cmp ecx, 7
ja 0x458f73
cmp ecx, 6
je 0x458f73
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x458d97
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x38]
call fcn.00404bbf
add esp, 8
test esi, esi
jne 0x458e55
mov dword [ebp - 0x10], 0x10
lea ecx, [ebp - 0x38]
push 0x79b65e
lea eax, [ebp - 0x50]
push eax
push ecx
call fcn.004596ee
add esp, 0xc
xorps xmm0, xmm0
lea ecx, [ebp - 0x78]
movsd qword [ecx + 0x10], xmm0
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ebp - 0x10], 0x11
push 0
push 0x79ba1e
call fcn.004051ae
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x24], 8
lea edx, [ebp - 0x38]
jb 0x458dee
mov edx, dword [ebp - 0x38]
lea eax, [eax*2 + 2]
cmp dword [ebp - 0x64], 8
lea esi, [ebp - 0x78]
jb 0x458e01
mov esi, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x10], 6
push eax
push edx
push 1
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x64]
cmp eax, 8
jb 0x458e36
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x78]
call fcn.00404bbf
add esp, 8
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x458e51
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x38]
call fcn.00404bbf
add esp, 8
test esi, esi
je 0x458eb6
xor ebx, ebx
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x458e6e
lea ecx, [eax - 0x80000000]
cmp ecx, 7
ja 0x458e92
cmp ecx, 6
je 0x458e92
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x458b86
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x50]
call fcn.00404bbf
add esp, 8
jmp 0x458b86
cmp eax, 0x80000050
je 0x458e6e
cmp eax, 0x80000060
je 0x458e6e
mov dword [ebp - 0x10], 0xa
push eax
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x20]
jmp 0x458e6e
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x10], 0x12
lea eax, [ebp - 0x38]
push str._shellopencommand
push dword [ebp - 0x60]
push eax
call fcn.004596ee
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x24], 8
lea edx, [ebp - 0x38]
jb 0x458ee9
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x10], 8
sub esp, 0x24
mov dword [esp + 0x20], eax
lea ecx, [ebp - 0x78]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
movaps xmm0, xmmword [0x72be30]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], edx
mov dword [esp], connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
lea esi, [ebp - 0x78]
jne 0x458f4d
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x458f47
lea ecx, [eax - 0x80000000]
cmp ecx, 7
ja 0x4590c4
cmp ecx, 6
je 0x4590c4
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x458f68
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x38]
call fcn.00404bbf
add esp, 8
test edi, edi
je 0x458fa2
xor ebx, ebx
jmp 0x459076
cmp eax, 0x80000050
je 0x458d76
cmp eax, 0x80000060
je 0x458d76
mov dword [ebp - 0x10], 4
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x20]
jmp 0x458d76
mov dword [ebp - 0x10], 0x12
lea eax, [ebp - 0x50]
push eax
push 0x79ba1c
push esi
call fcn.0045995f
add esp, 0xc
mov dword [ebp - 0x10], 0x13
lea eax, [ebp - 0x38]
push str.__uri__1
lea ecx, [ebp - 0x78]
push ecx
push eax
call fcn.004599c6
add esp, 0xc
mov dword [ebp - 0x10], 0x14
lea ecx, [ebp - 0x98]
push 0x79ba1e
call fcn.00459930
lea esi, [ebp - 0x80]
lea ecx, [ebp - 0x54]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x98]
push eax
push esi
call fcn.00459a10
cmp dword [esi], 0
sete bl
mov eax, dword [ebp - 0x84]
cmp eax, 8
jb 0x45902c
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x98]
call fcn.00404bbf
add esp, 8
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x459047
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x38]
call fcn.00404bbf
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], 0
mov eax, dword [ebp - 0x64]
cmp eax, 8
jb 0x459076
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x78]
call fcn.00404bbf
add esp, 8
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x458e57
lea ecx, [eax - 0x80000000]
cmp ecx, 7
ja 0x459095
cmp ecx, 6
jne 0x458e57
cmp eax, 0x80000050
je 0x458e57
cmp eax, 0x80000060
je 0x458e57
mov dword [ebp - 0x10], 9
push eax
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x20]
jmp 0x458e57
cmp eax, 0x80000050
je 0x458f47
cmp eax, 0x80000060
je 0x458f47
mov dword [ebp - 0x10], 7
push eax
mov dword [ebp - 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x20]
lea esi, [ebp - 0x78]
jmp 0x458f47
push 0x7f20d4
call fcn.0053e579
add esp, 4
cmp dword [0x7f20d4], 0xffffffff
jne 0x458c21
xorps xmm0, xmm0
movsd qword [0x7f20cc], xmm0
xorps xmm0, xmm0
movups xmmword [0x7f20bc], xmm0
mov dword [ebp - 0x10], 0xd
mov ecx, 0x7f20bc
push 0x104
push 0
call fcn.00404c88
push 0x4593b2
call fcn.0053e73b
add esp, 4
push 0x7f20d4
call fcn.0053e5f3
add esp, 4
jmp 0x458c21