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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42522d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x44d0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x14], 0
je 0x401a6f
mov ecx, dword [edi + 0x14]
lea edx, [edi + 4]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x401a8f
cmp dword [edx + 0x14], 8
jb 0x401854
mov edx, dword [edx]
push ecx
push edx
push 1
push 0x431f4c
push ecx
push dword [ebp - 0x48]
lea ecx, [ebp - 0x28]
call fcn.00402250
lea esi, [edi + 0x7c]
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov ecx, esi
mov dword [ebp - 0x48], esi
jb 0x401883
mov ecx, dword [esi]
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x401897
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x401910
cmp word [eax], 0
je 0x401910
test ecx, ecx
je 0x401910
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x44], 0
push ecx
lea ecx, [ebp - 0x44]
push ecx
push 0
push 2
push 0
push 0
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401900
mov edx, dword [ebp - 0x48]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x48], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4018d5
sub ecx, dword [ebp - 0x48]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x431f50
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40191b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40191b
push 0x80070057
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [edi + 0x44], 0
je 0x401a39
mov ecx, dword [esi + 0x10]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x13
jb 0x401a94
cmp dword [esi + 0x14], 8
jb 0x401940
mov esi, dword [esi]
push 0x13
push str._shellopencommand
push ecx
push esi
push ecx
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x40]
call fcn.00402250
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x40198f
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401985
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a99
push ecx
push edx
call fcn.00409232
add esp, 8
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x18], xmm0
cmp dword [edi + 0x48], 8
lea esi, [edi + 0x34]
jb 0x4019ac
mov esi, dword [esi]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x4019bc
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x401a2e
cmp word [eax], 0
je 0x401a2e
test esi, esi
je 0x401a2e
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x44], 0
push ecx
lea ecx, [ebp - 0x44]
push ecx
push 0
push 2
push 0
push 0
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401a1e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4019f4
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push 0x431f50
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x401a39
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401a39
push 0x80070057
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x401a6f
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401a65
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a99
push ecx
push edx
call fcn.00409232
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004091ef
mov esp, ebp
pop ebp
ret
call fcn.004012a0
call fcn.004012a0
call fcn.0040da2f
int3