Function at 0x426650
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 [0x42e0b4]
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 0x426680
sub esi, edx
sar esi, 1
lea eax, [esi + 0x14]
mov esi, 0x104
cmp eax, esi
jbe 0x4266b0
push ecx
push 0x400023db
call fcn.004078e4
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4268cd
push edi
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.0040f3a0
mov edx, esi
lea eax, [ebp - 0x20c]
xor ecx, ecx
cmp word [eax], cx
je 0x4266d5
add eax, 2
sub edx, 1
jne 0x4266c8
mov eax, esi
mov ecx, edx
sub eax, edx
neg ecx
sbb ecx, ecx
and ecx, eax
test edx, edx
je 0x426729
lea eax, [ebp - 0x20c]
lea eax, [eax + ecx*2]
sub esi, ecx
je 0x426721
mov edx, 0x403c5c
mov ecx, 0x7ffffffe
sub edx, eax
test ecx, ecx
je 0x426717
movzx edi, word [edx + eax]
test di, di
je 0x426717
mov word [eax], di
add eax, 2
dec ecx
sub esi, 1
jne 0x4266fe
mov edi, dword [ebp - 0x214]
test esi, esi
jne 0x426724
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 0x426831
test ebx, ebx
je 0x42681c
xor eax, eax
cmp word [ebx], ax
je 0x42681c
lea esi, [ebp - 0x20c]
movzx eax, word [esi]
mov ecx, eax
mov dword [ebp - 0x214], ecx
test ax, ax
je 0x4267a4
mov edx, eax
movzx ecx, dx
mov dword [ebp - 0x214], ecx
cmp dx, 0x5c
je 0x4267a4
add esi, 2
movzx eax, word [esi]
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x214], ecx
test ax, ax
jne 0x426780
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 0x426801
mov eax, dword [ebp - 0x214]
test ax, ax
je 0x426831
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 0x42676e
push edi
push 1
push 0x400023a5
call fcn.004078e4
mov eax, dword [ebp - 0x21c]
add esp, 0xc
jmp 0x4268cd
push edi
push 1
push 0x400023a5
call fcn.004078e4
add esp, 0xc
jmp 0x4268cb
xor esi, esi
test ebx, ebx
je 0x42689c
cmp word [ebx], si
je 0x42689c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x426841
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 2
push esi
push 0x4020b8
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 0x426881
push ebx
push edi
push 0x403b6c
call fcn.00409950
jmp 0x4268bc
xor eax, eax
push eax
push esi
call fcn.004078e4
push edi
push 1
push 0x235d
call fcn.004078e4
add esp, 0x14
jmp 0x4268bf
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 0x4268bf
push edi
push 1
push 0x400023a5
call fcn.004078e4
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.00416b30
leave
ret 4