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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5214
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x100
mov dword [ebp - 4], 2
mov ecx, 0x51c276
call fcn.004c108d
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00407910
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x20]
push ecx
lea ecx, [ebp - 0xac]
call fcn.00407910
mov byte [ebp - 4], 4
lea edx, [ebp + 0x20]
push edx
lea ecx, [ebp - 0x94]
call fcn.00407910
mov byte [ebp - 4], 5
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.Application
lea ecx, [ebp - 0xc4]
call fcn.0040ff40
mov ecx, eax
call fcn.00405da0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40e739
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x94]
call fcn.004054f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xac]
call fcn.004054f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc4]
call fcn.004054f0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.004054f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x20]
call fcn.004054f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x38]
call fcn.004054f0
jmp 0x40ec3c
push str._Authors
push 0x4ec05c
lea ecx, [ebp - 0x54]
call fcn.00407470
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x44]
push eax
push str.The
lea ecx, [ebp - 0x50]
push ecx
call fcn.004082d0
add esp, 0xc
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.00408230
add esp, 0xc
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x50]
call fcn.00407d20
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x54]
call fcn.00407d20
lea ecx, [ebp - 0x30]
call fcn.00409ec0
lea edx, [eax + eax + 2]
push edx
lea ecx, [ebp - 0x30]
call fcn.00408170
push eax
push 1
push 0
push str.ApplicationCompany
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x4ec0a8
lea ecx, [ebp - 0x2c]
call fcn.00407470
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2c]
call fcn.00409ec0
lea ecx, [eax + eax + 2]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00408170
push eax
push 1
push 0
push 0x4ec0b4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp + 8]
call fcn.00405da0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x14]
mov dx, word [ecx]
mov word [ebp - 0x32], dx
add dword [ebp - 0x14], 2
cmp word [ebp - 0x32], 0
jne 0x40e819
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x58]
sar eax, 1
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
lea edx, [ecx + ecx + 2]
push edx
lea ecx, [ebp + 8]
call fcn.00405da0
push eax
push 1
push 0
push 0x4ec0e4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x4ec104
lea ecx, [ebp - 0x28]
call fcn.00407470
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x28]
call fcn.00409ec0
lea ecx, [eax + eax + 2]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00408170
push eax
push 1
push 0
push 0x4ec11c
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.TSBrowser
lea ecx, [ebp - 0x24]
call fcn.00407470
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x24]
call fcn.00409ec0
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x24]
call fcn.00408170
push eax
push 1
push 0
push str.AppUserModelId
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4ec170
lea ecx, [ebp - 0xac]
call fcn.0040ff40
mov ecx, eax
call fcn.00405da0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40e99f
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x24]
call fcn.00407d20
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
call fcn.00407d20
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c]
call fcn.00407d20
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.00407d20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x94]
call fcn.004054f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xac]
call fcn.004054f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc4]
call fcn.004054f0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.004054f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x20]
call fcn.004054f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x38]
call fcn.004054f0
jmp 0x40ec3c
lea ecx, [ebp + 8]
call fcn.00405da0
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
add ecx, 2
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x18]
mov ax, word [edx]
mov word [ebp - 0x34], ax
add dword [ebp - 0x18], 2
cmp word [ebp - 0x34], 0
jne 0x40e9b3
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x60]
sar ecx, 1
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
lea eax, [edx + edx + 2]
push eax
lea ecx, [ebp + 8]
call fcn.00405da0
push eax
push 1
push 0
push 0x4ec18c
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str._shellopencommand
lea ecx, [ebp - 0x94]
call fcn.0040ff40
mov ecx, eax
call fcn.00405da0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40eac5
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x24]
call fcn.00407d20
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
call fcn.00407d20
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c]
call fcn.00407d20
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.00407d20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x94]
call fcn.004054f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xac]
call fcn.004054f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc4]
call fcn.004054f0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.004054f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x20]
call fcn.004054f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x38]
call fcn.004054f0
jmp 0x40ec3c
push str.___single_argument__1
push 0x4ec1e4
lea ecx, [ebp + 0x38]
push ecx
push 0x4ec1e8
lea edx, [ebp - 0x10c]
push edx
call fcn.00406190
add esp, 0xc
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x6c]
push ecx
lea edx, [ebp - 0xf4]
push edx
call fcn.00406150
add esp, 0xc
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x74]
push ecx
lea edx, [ebp - 0xdc]
push edx
call fcn.00406150
add esp, 0xc
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xf4]
call fcn.004054f0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x10c]
call fcn.004054f0
lea ecx, [ebp - 0xdc]
call fcn.00405da0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 2
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x20]
mov dx, word [ecx]
mov word [ebp - 0x36], dx
add dword [ebp - 0x20], 2
cmp word [ebp - 0x36], 0
jne 0x40eb5c
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x78]
sar eax, 1
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
lea edx, [ecx + ecx + 2]
push edx
lea ecx, [ebp - 0xdc]
call fcn.00405da0
push eax
push 1
push 0
push 0x4ec1ec
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xdc]
call fcn.004054f0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x24]
call fcn.00407d20
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
call fcn.00407d20
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c]
call fcn.00407d20
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.00407d20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x94]
call fcn.004054f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xac]
call fcn.004054f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc4]
call fcn.004054f0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.004054f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x20]
call fcn.004054f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x38]
call fcn.004054f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret