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

Disassembly:
sub esp, 0x230
mov eax, dword [0x41413c]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [esp + 0x234]
push ebx
push ebp
mov ebp, dword [esp + 0x240]
push esi
push 0x204
mov dword [esp + 0x24], ecx
xor ebx, ebx
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x30]
xor edx, edx
xor eax, eax
push ebx
push ecx
mov word [esp + 0x34], dx
mov word [esp + 0x36], ax
call fcn.00405370
push edi
lea edx, [esp + 0x38]
push str.CLSID_s
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
lea edx, [esp + 0x44]
push edx
push 0x80000000
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x4018f3
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
cmp eax, ebx
je 0x4018e8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x18]
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x4018fa
cmp esi, ebx
je 0x4018f3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x401a81
cmp esi, ebx
je 0x401909
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], ebx
push edi
lea edx, [esp + 0x2c]
push str.CLSID_sDefaultIcon
push edx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x80000000
lea edx, [esp + 0x2c]
lea esi, [esp + 0x10]
call fcn.00401ad0
test eax, eax
je 0x40194d
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x401946
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x401a81
mov esi, dword [esp + 0xc]
cmp ebp, ebx
je 0x4018e8
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebp
push 1
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
jne 0x4018e8
cmp esi, ebx
je 0x401984
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], ebx
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
push edi
lea ecx, [esp + 0x2c]
push str.CLSID_sShellOpenCommand
push ecx
mov dword [esp + 0x1c], ebx
call ebp
add esp, 0xc
push 0x80000000
lea edx, [esp + 0x2c]
lea esi, [esp + 0x10]
call fcn.00401ad0
test eax, eax
je 0x4019c4
lea esi, [esp + 0xc]
call fcn.00401b60
xor eax, eax
jmp 0x401a81
mov esi, dword [esp + 0x20]
lea edx, [esp + 0xc]
push edx
call fcn.00401aa0
lea esi, [esp + 0xc]
test eax, eax
jne 0x4019b8
call fcn.00401b30
push edi
lea eax, [esp + 0x2c]
push str.CLSID_sShellFolder
push eax
call ebp
add esp, 0xc
push 0x80000000
lea edx, [esp + 0x2c]
call fcn.00401ad0
test eax, eax
jne 0x4019b4
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x18]
push ecx
push 3
push ebx
push str.Attributes
push edx
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], bl
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4019b8
call fcn.00401b30
push edi
lea eax, [esp + 0x2c]
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerDesktopNameSpace_s
push eax
call ebp
add esp, 0xc
push 0x80000002
lea edx, [esp + 0x2c]
call fcn.00401ad0
test eax, eax
jne 0x4019b4
mov ecx, esi
mov esi, dword [esp + 0x18]
push ecx
call fcn.00401aa0
lea esi, [esp + 0xc]
test eax, eax
jne 0x4019b8
call fcn.00401b30
call fcn.00401b60
mov eax, 1
mov ecx, dword [esp + 0x234]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404c1a
add esp, 0x230
ret 8