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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x447044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x30f]
push 0
push eax
mov byte [ebp - 0x310], 0
call fcn.004272d0
lea ecx, [ebp - 0x310]
push ecx
push 0x108a308
call fcn.0040b5f0
push 0x103
lea edx, [ebp - 0x20b]
push 0
push edx
mov dword [ebp - 0x318], 0
mov byte [ebp - 0x20c], 0
call fcn.004272d0
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.004272d0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x310]
push ecx
lea edx, [ebp - 0x20c]
push str._swmcEncryption7.exe___1_decrypt
push edx
call esi
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x108]
push str._swmcEncryption7.exe
push ecx
call esi
lea ebx, [ebp - 0x20c]
add esp, 0x44
lea eax, [ebx + 1]
jmp 0x40a210
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x40a210
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea edx, [ebp - 0x318]
push edx
sub ebx, eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x43b8bc
push SysReAllocString
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40a3d9
mov ecx, dword [ebp - 0x314]
push ebx
push str.WinMaster7_File
push 1
push 0
push 0x438a00
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x314]
push edx
call esi
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x314]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str..wm7eDefaultIcon
push SysReAllocString
call edi
test eax, eax
jne 0x40a2ca
push ebx
lea edx, [ebp - 0x108]
push edx
push 1
push eax
mov eax, dword [ebp - 0x314]
push 0x438a00
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x314]
push ecx
call esi
lea edx, [ebp - 0x318]
push edx
lea eax, [ebp - 0x314]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str..wm7e_shell
push SysReAllocString
call edi
test eax, eax
jne 0x40a387
mov ecx, dword [ebp - 0x314]
push ecx
call esi
lea edx, [ebp - 0x318]
push edx
lea eax, [ebp - 0x314]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str..wm7eShellopen
push SysReAllocString
call edi
test eax, eax
jne 0x40a387
mov ecx, dword [ebp - 0x314]
push ecx
call esi
lea edx, [ebp - 0x318]
push edx
lea eax, [ebp - 0x314]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str..wm7eShellopencommand
push SysReAllocString
call edi
test eax, eax
jne 0x40a387
mov edx, dword [ebp - 0x314]
push ebx
lea ecx, [ebp - 0x20c]
push ecx
push 1
push eax
push 0x438a00
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x314]
push eax
call esi
lea ecx, [ebp - 0x318]
push ecx
lea edx, [ebp - 0x314]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str..wm7eDefaultIcon
push SysReAllocString
call edi
test eax, eax
jne 0x40a3d9
mov ecx, dword [ebp - 0x314]
push ebx
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push 0x438a00
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x314]
push edx
call esi
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x314]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x43b924
push SysReAllocString
call edi
test eax, eax
jne 0x40a58c
mov edx, dword [ebp - 0x314]
push ebx
push str.WinMaster7_File
push 1
push eax
push 0x438a00
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x314]
push eax
call esi
lea ecx, [ebp - 0x318]
push ecx
lea edx, [ebp - 0x314]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str..wsefDefaultIcon
push SysReAllocString
call edi
test eax, eax
jne 0x40a47e
mov ecx, dword [ebp - 0x314]
push ebx
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push 0x438a00
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x314]
push edx
call esi
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x314]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str..wsef_shell
push SysReAllocString
call edi
test eax, eax
jne 0x40a53b
mov edx, dword [ebp - 0x314]
push edx
call esi
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x314]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str..wsefShellopen
push SysReAllocString
call edi
test eax, eax
jne 0x40a53b
mov edx, dword [ebp - 0x314]
push edx
call esi
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x314]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str..wsefShellopencommand
push SysReAllocString
call edi
test eax, eax
jne 0x40a53b
push ebx
lea edx, [ebp - 0x20c]
push edx
push 1
push eax
mov eax, dword [ebp - 0x314]
push 0x438a00
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x314]
push ecx
call esi
lea edx, [ebp - 0x318]
push edx
lea eax, [ebp - 0x314]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str..wsefDefaultIcon
push SysReAllocString
call edi
test eax, eax
jne 0x40a58c
mov edx, dword [ebp - 0x314]
push ebx
lea ecx, [ebp - 0x108]
push ecx
push 1
push eax
push 0x438a00
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x314]
push eax
call esi
lea ecx, [ebp - 0x318]
push ecx
lea edx, [ebp - 0x314]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x43b97c
push SysReAllocString
call edi
test eax, eax
jne 0x40a73f
push ebx
push str.WinMaster7_File
push 1
push eax
mov eax, dword [ebp - 0x314]
push 0x438a00
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x314]
push ecx
call esi
lea edx, [ebp - 0x318]
push edx
lea eax, [ebp - 0x314]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str..jm7eDefaultIcon
push SysReAllocString
call edi
test eax, eax
jne 0x40a630
mov edx, dword [ebp - 0x314]
push ebx
lea ecx, [ebp - 0x108]
push ecx
push 1
push eax
push 0x438a00
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x314]
push eax
call esi
lea ecx, [ebp - 0x318]
push ecx
lea edx, [ebp - 0x314]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str..jm7e_shell
push SysReAllocString
call edi
test eax, eax
jne 0x40a6ee
mov eax, dword [ebp - 0x314]
push eax
call esi
lea ecx, [ebp - 0x318]
push ecx
lea edx, [ebp - 0x314]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str..jm7eShellopen
push SysReAllocString
call edi
test eax, eax
jne 0x40a6ee
mov eax, dword [ebp - 0x314]
push eax
call esi
lea ecx, [ebp - 0x318]
push ecx
lea edx, [ebp - 0x314]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str..jm7eShellopencommand
push SysReAllocString
call edi
test eax, eax
jne 0x40a6ee
mov ecx, dword [ebp - 0x314]
push ebx
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x438a00
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x314]
push edx
call esi
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x314]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str..jm7eDefaultIcon
push SysReAllocString
call edi
test eax, eax
jne 0x40a73f
push ebx
lea edx, [ebp - 0x108]
push edx
push 1
push eax
mov eax, dword [ebp - 0x314]
push 0x438a00
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x314]
push ecx
call esi
lea edx, [ebp - 0x318]
push edx
lea eax, [ebp - 0x314]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x43b9d4
push SysReAllocString
call edi
test eax, eax
jne 0x40a908
mov ecx, dword [ebp - 0x314]
push ebx
push str.WinMaster7_File
push 1
push eax
push 0x438a00
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x314]
push edx
call esi
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x314]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str..jsefDefaultIcon
push SysReAllocString
call edi
test eax, eax
jne 0x40a7e3
push ebx
lea edx, [ebp - 0x108]
push edx
push 1
push eax
mov eax, dword [ebp - 0x314]
push 0x438a00
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x314]
push ecx
call esi
lea edx, [ebp - 0x318]
push edx
lea eax, [ebp - 0x314]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str..jsef_shell
push SysReAllocString
call edi
test eax, eax
jne 0x40a8a0
mov ecx, dword [ebp - 0x314]
push ecx
call esi
lea edx, [ebp - 0x318]
push edx
lea eax, [ebp - 0x314]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str..jsefShellopen
push SysReAllocString
call edi
test eax, eax
jne 0x40a8a0
mov ecx, dword [ebp - 0x314]
push ecx
call esi
lea edx, [ebp - 0x318]
push edx
lea eax, [ebp - 0x314]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str..jsefShellopencommand
push SysReAllocString
call edi
test eax, eax
jne 0x40a8a0
mov edx, dword [ebp - 0x314]
push ebx
lea ecx, [ebp - 0x20c]
push ecx
push 1
push eax
push 0x438a00
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x314]
push eax
call esi
lea ecx, [ebp - 0x318]
push ecx
lea edx, [ebp - 0x314]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str..jsefDefaultIcon
push SysReAllocString
call edi
test eax, eax
jne 0x40a908
mov ecx, dword [ebp - 0x314]
push ebx
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push 0x438a00
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x314]
push edx
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f53e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041f53e
mov esp, ebp
pop ebp
ret