Function at 0x401f80
Capabilities:
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441cbc
mov eax, dword fs:[0]
push eax
sub esp, 0x85c
mov eax, dword [0x45c070]
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
push 0x400
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00421ce0
add esp, 0xc
mov dword [ebp - 0x814], 0x400
xor eax, eax
mov dword [ebp - 0x848], 0
lea ecx, [ebp - 0x844]
mov dword [ebp - 0x830], 7
mov dword [ebp - 0x834], 0
push 0xffffffffffffffff
push eax
push 0x45e248
mov word [ebp - 0x844], ax
call fcn.00406f70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x84c]
cmp dword [0x45e28c], 8
mov eax, 0x45e278
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmovae eax, dword [0x45e278]
push ecx
push eax
push 0x80000000
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4020e4
lea eax, [ebp - 0x810]
push 0x452b48
push eax
call fcn.00407690
lea ecx, [ebp - 0x810]
add esp, 8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402062
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x810]
push eax
push 1
push 0
push 0
push dword [ebp - 0x84c]
call ebx
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], 0x400
push 0x452884
push eax
call fcn.00407690
lea ecx, [ebp - 0x810]
add esp, 8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4020b5
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x810]
push eax
push 1
push 0
push str.URL_Protocol
push dword [ebp - 0x84c]
call ebx
push dword [ebp - 0x84c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push str.DefaultIcon
mov edx, 0x45e278
lea ecx, [ebp - 0x82c]
call fcn.004062b0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84c]
cmp dword [ebp - 0x818], 8
lea eax, [ebp - 0x82c]
push ecx
cmovae eax, dword [ebp - 0x82c]
push eax
push 0x80000000
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4021e2
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00421ce0
add esp, 0xc
mov dword [ebp - 0x814], 0x400
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x848]
push eax
push 0
push 0
push dword [ebp - 0x84c]
call edi
test eax, eax
je 0x4021e2
cmp dword [ebp - 0x830], 8
lea eax, [ebp - 0x844]
cmovae eax, dword [ebp - 0x844]
push eax
lea eax, [ebp - 0x410]
push str._s__0
push eax
call fcn.00407690
lea ecx, [ebp - 0x410]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4021b6
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x410]
push eax
push 1
push 0
push 0
push dword [ebp - 0x84c]
call ebx
push dword [ebp - 0x84c]
call esi
push str._shellopencommand
mov edx, 0x45e278
lea ecx, [ebp - 0x864]
call fcn.004062b0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x82c]
cmp eax, esi
je 0x402255
mov eax, dword [ebp - 0x818]
cmp eax, 8
jb 0x40222c
inc eax
lea ecx, [ebp - 0x82c]
push eax
push dword [ebp - 0x82c]
call fcn.00407820
xor eax, eax
mov dword [ebp - 0x818], 7
push esi
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x81c], 0
mov word [ebp - 0x82c], ax
call fcn.00407620
mov eax, dword [ebp - 0x850]
cmp eax, 8
jb 0x402273
inc eax
lea ecx, [ebp - 0x864]
push eax
push dword [ebp - 0x864]
call fcn.00407820
cmp dword [ebp - 0x818], 8
lea ecx, [ebp - 0x84c]
lea eax, [ebp - 0x82c]
cmovae eax, dword [ebp - 0x82c]
push ecx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4023a3
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00421ce0
add esp, 0xc
mov dword [ebp - 0x814], 0x400
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push 0x452884
push dword [ebp - 0x84c]
call edi
test eax, eax
lea eax, [ebp - 0x844]
je 0x402323
cmp dword [ebp - 0x830], 8
cmovae eax, dword [ebp - 0x844]
push eax
lea eax, [ebp - 0x410]
push str.__s______1_
push eax
call fcn.00407690
lea ecx, [ebp - 0x410]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402316
jmp 0x402382
cmp dword [ebp - 0x830], 8
cmovae eax, dword [ebp - 0x844]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00420dd4
add esp, 8
test eax, eax
jne 0x4023a3
cmp dword [ebp - 0x830], 8
lea eax, [ebp - 0x844]
cmovae eax, dword [ebp - 0x844]
push eax
lea eax, [ebp - 0x410]
push str.__s______1_
push eax
call fcn.00407690
lea ecx, [ebp - 0x410]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402377
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x410]
push eax
push 1
push 0
push 0
push dword [ebp - 0x84c]
call ebx
push dword [ebp - 0x84c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x818]
cmp eax, 8
jb 0x4023cd
inc eax
lea ecx, [ebp - 0x82c]
push eax
push dword [ebp - 0x82c]
call fcn.00407820
xor eax, eax
mov dword [ebp - 0x818], 7
mov word [ebp - 0x82c], ax
mov eax, dword [ebp - 0x830]
mov dword [ebp - 0x81c], 0
cmp eax, 8
jb 0x402408
inc eax
lea ecx, [ebp - 0x844]
push eax
push dword [ebp - 0x844]
call fcn.00407820
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.0041e8a6
mov esp, ebp
pop ebp
ret