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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov eax, dword [edi + 4]
lea ebx, [edi + 4]
mov dword [ebp - 0x28], ebx
cmp dword [eax - 0xc], esi
jl 0x420262
mov dword [ebp - 0x18], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x420274
mov ecx, dword [0x4581d0]
push eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
call fcn.00401988
mov eax, dword [0x4581d0]
push 1
push dword [ebx]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push str._s__d
push eax
call fcn.00408f2b
add esp, 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
push eax
push 0xf003f
push esi
push str.SoftwareClasses
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4202c5
lea ecx, [ebp - 0xc]
call fcn.0040df4e
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
jmp 0x4202c8
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x24]
mov eax, dword [edi + 0xc]
push edx
lea edx, [ebp - 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edx
push esi
push 2
push esi
push esi
push esi
push eax
push ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
call ebx
cmp eax, esi
jne 0x420302
lea ecx, [ebp - 4]
call fcn.0040df4e
mov ecx, dword [ebp - 0x1c]
cmp eax, esi
mov dword [ebp - 4], ecx
je 0x420347
push str.Sie_haben_keine_administrativen_Rechte_
lea ecx, [ebp - 0x20]
call fcn.0040182e
push str.You_do_not_have_administrative_privileges_
lea ecx, [ebp - 0x1c]
call fcn.0040182e
cmp dword [0x45a060], esi
lea eax, [ebp - 0x1c]
jne 0x42032a
lea eax, [ebp - 0x20]
push esi
push dword [edi + 0xc]
push dword [eax]
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x1c]
call fcn.00401802
lea ecx, [ebp - 0x20]
call fcn.00401802
mov edi, dword [edi + 8]
cmp dword [edi - 0xc], esi
jl 0x42035e
mov dword [ebp - 8], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x42036f
mov eax, dword [0x4581d0]
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.00401988
mov edi, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 4], esi
je 0x42039d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], esi
push str._shellopencommand
lea ecx, [ebp - 0x1c]
call fcn.0040182e
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004019f3
lea ecx, [ebp - 0x2c]
mov eax, dword [eax]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push esi
push 2
push esi
push esi
push esi
push eax
mov dword [ebp - 0x20], esi
push dword [ebp - 0x10]
call ebx
cmp eax, esi
jne 0x4203e6
lea ecx, [ebp - 4]
call fcn.0040df4e
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x24]
call fcn.00401802
lea ecx, [ebp - 0x1c]
call fcn.00401802
push str.___1_
lea ecx, [ebp - 0x20]
call fcn.0040182e
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push dword [ebp - 0x28]
push eax
call fcn.004019f3
mov eax, dword [eax]
push esi
push eax
lea ecx, [ebp - 4]
call fcn.00420554
lea ecx, [ebp - 0x24]
call fcn.00401802
lea ecx, [ebp - 0x20]
call fcn.00401802
lea ecx, [ebp - 4]
call fcn.0040df4e
push esi
push esi
push 2
push esi
push esi
lea ecx, [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.004204fd
push str.___Document
lea eax, [ebp - 0x28]
push 0x4ca404
push eax
call fcn.00401a95
mov eax, dword [eax]
push esi
push eax
lea ecx, [ebp - 4]
call fcn.00420554
lea ecx, [ebp - 0x28]
call fcn.00401802
lea ecx, [ebp - 4]
call fcn.0040df4e
push str.DefaultIcon
lea ecx, [ebp - 0x20]
call fcn.0040182e
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004019f3
mov eax, dword [eax]
push esi
push esi
push 2
push esi
push esi
push eax
lea ecx, [ebp - 4]
push dword [ebp - 0x10]
call fcn.004204fd
lea ecx, [ebp - 0x28]
call fcn.00401802
lea ecx, [ebp - 0x20]
call fcn.00401802
push esi
lea ecx, [ebp - 4]
push dword [ebp - 0x14]
call fcn.00420554
lea ecx, [ebp - 4]
call fcn.0040df4e
lea ecx, [ebp - 8]
call fcn.00401802
lea ecx, [ebp - 4]
call fcn.0040df4e
lea ecx, [ebp - 0xc]
call fcn.0040df4e
lea ecx, [ebp - 0x14]
call fcn.00401802
lea ecx, [ebp - 0x18]
call fcn.00401802
pop edi
pop esi
pop ebx
leave
ret