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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42526d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x44d0b8]
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
cmp dword [ebx + 0x8c], 0
je 0x401d79
lea esi, [ebx + 0x7c]
push esi
lea ecx, [ebp - 0x28]
call fcn.00401e20
lea edi, [ebx + 0x94]
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
jb 0x401afb
mov edi, dword [edi]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x401b0b
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x401b7d
cmp word [eax], 0
je 0x401b7d
test edi, edi
je 0x401b7d
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 2
push 0
push 0
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401b6d
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401b43
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
push 0x431f50
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x401b88
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401b88
push 0x80070057
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebx + 0xec], 0
je 0x401c5c
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x401bb2
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x401ba6
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00401f00
push str.DefaultIcon
lea ecx, [ebp - 0x28]
call fcn.00402050
cmp dword [ebx + 0xf0], 8
lea edi, [ebx + 0xdc]
jb 0x401bd0
mov edi, dword [edi]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x401be4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x401d2a
cmp word [eax], 0
je 0x401d2a
test edi, edi
je 0x401d2a
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 2
push 0
push 0
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401c4e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401c24
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
push 0x431f50
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x401c5c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebx + 0x44], 0
je 0x401d43
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x401c88
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x401c7e
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00401f00
push str._shellopencommand
lea ecx, [ebp - 0x28]
call fcn.00402050
cmp dword [ebx + 0x48], 8
lea esi, [ebx + 0x34]
jb 0x401ca0
mov esi, dword [esi]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x401cb4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x401d3c
cmp word [eax], 0
je 0x401d3c
test esi, esi
je 0x401d3c
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 2
push 0
push 0
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401d1a
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401cf0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push 0x431f50
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x401d43
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401d43
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x80070057
call edi
jmp 0x401c62
push 0x80070057
call edi
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x401d79
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401d6f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d9a
push ecx
push edx
call fcn.00409232
add esp, 8
mov eax, 1
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.004091ef
mov esp, ebp
pop ebp
ret
call fcn.0040da2f
int3