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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dccb
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x5fc150]
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 dword [ebp - 0x444], ecx
mov edx, dword [str.Notepad_file]
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
cmp word [edx], ax
jne 0x4d2fa4
xor ecx, ecx
jmp 0x4d2fbf
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d2fb0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x438]
call fcn.00406c80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x438]
push 0x13
push str._shellopencommand
call fcn.00406760
cmp dword [ebp - 0x424], 8
mov eax, dword [ebp - 0x438]
jae 0x4d2ffa
lea eax, [ebp - 0x438]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [ebp - 0x448]
push ecx
lea ecx, [ebp - 0x43c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000000
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4d3121
lea eax, [ebp - 0x440]
push eax
push 0xf003f
push 0
push dword [0x5fb538]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push dword [0x5fb540]
call edi
lea eax, [eax*2 + 2]
push eax
push dword [0x5fb540]
push 1
push 0
push 0
push dword [ebp - 0x440]
call ebx
push dword [ebp - 0x440]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x444]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x204
lea eax, [ebp - 0x214]
mov dword [ebp - 0x218], 0x22
push 0
push eax
call fcn.00544020
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0054bc95
push str.____1_
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0054bc95
add esp, 0x24
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push 0
push dword [ebp - 0x43c]
call ebx
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [str.Notepad_file]
cmp word [edx], 0
jne 0x4d3131
xor ecx, ecx
jmp 0x4d314b
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d3136
sub ecx, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x438]
call fcn.00406c80
push 0xc
push str.DefaultIcon
lea ecx, [ebp - 0x438]
call fcn.00406760
cmp dword [ebp - 0x424], 8
mov eax, dword [ebp - 0x438]
jae 0x4d317f
lea eax, [ebp - 0x438]
lea ecx, [ebp - 0x448]
push ecx
lea ecx, [ebp - 0x43c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000000
call esi
test eax, eax
jne 0x4d3245
push 0x104
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x444]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x204
lea eax, [ebp - 0x214]
mov dword [ebp - 0x218], 0x22
push 0
push eax
call fcn.00544020
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0054bc95
push 0x5bdbbc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0054bc95
add esp, 0x24
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push 0
push dword [ebp - 0x43c]
call ebx
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x4d326a
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
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.0052c233
mov esp, ebp
pop ebp
ret