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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x218], ecx
mov esi, edi
mov dword [ebp - 0x214], edi
xor ecx, ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, cx
jne 0x4264a0
sub esi, edx
sar esi, 1
lea eax, [esi + 0x14]
mov esi, 0x104
cmp eax, esi
jbe 0x4264d0
push ecx
push 0x400023db
call fcn.00407834
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4266ed
push edi
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.0040f2e0
mov edx, esi
lea eax, [ebp - 0x20c]
xor ecx, ecx
cmp word [eax], cx
je 0x4264f5
add eax, 2
sub edx, 1
jne 0x4264e8
mov eax, esi
mov ecx, edx
sub eax, edx
neg ecx
sbb ecx, ecx
and ecx, eax
test edx, edx
je 0x426549
lea eax, [ebp - 0x20c]
lea eax, [eax + ecx*2]
sub esi, ecx
je 0x426541
mov edx, 0x403b9c
mov ecx, 0x7ffffffe
sub edx, eax
test ecx, ecx
je 0x426537
movzx edi, word [edx + eax]
test di, di
je 0x426537
mov word [eax], di
add eax, 2
dec ecx
sub esi, 1
jne 0x42651e
mov edi, dword [ebp - 0x214]
test esi, esi
jne 0x426544
sub eax, 2
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x210]
push eax
push 0x2000000
xor eax, eax
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x426651
test ebx, ebx
je 0x42663c
xor eax, eax
cmp word [ebx], ax
je 0x42663c
lea esi, [ebp - 0x20c]
movzx eax, word [esi]
mov ecx, eax
mov dword [ebp - 0x214], ecx
test ax, ax
je 0x4265c4
mov edx, eax
movzx ecx, dx
mov dword [ebp - 0x214], ecx
cmp dx, 0x5c
je 0x4265c4
add esi, 2
movzx eax, word [esi]
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x214], ecx
test ax, ax
jne 0x4265a0
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
xor eax, eax
push eax
push 0x2000000
push eax
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x426621
mov eax, dword [ebp - 0x214]
test ax, ax
je 0x426651
push dword [ebp - 0x210]
mov word [esi], ax
add esi, 2
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x42658e
push edi
push 1
push 0x400023a5
call fcn.00407834
mov eax, dword [ebp - 0x21c]
add esp, 0xc
jmp 0x4266ed
push edi
push 1
push 0x400023a5
call fcn.00407834
add esp, 0xc
jmp 0x4266eb
xor esi, esi
test ebx, ebx
je 0x4266bc
cmp word [ebx], si
je 0x4266bc
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x426661
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 2
push esi
push 0x4020a8
push dword [ebp - 0x210]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x4266a1
push ebx
push edi
push 0x403aac
call fcn.00409890
jmp 0x4266dc
xor eax, eax
push eax
push esi
call fcn.00407834
push edi
push 1
push 0x235d
call fcn.00407834
add esp, 0x14
jmp 0x4266df
push esi
push dword [ebp - 0x210]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x4266df
push edi
push 1
push 0x400023a5
call fcn.00407834
add esp, 0xc
push dword [ebp - 0x210]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416ad0
leave
ret 4