Function at 0x426610
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 0x426640
sub esi, edx
sar esi, 1
lea eax, [esi + 0x14]
mov esi, 0x104
cmp eax, esi
jbe 0x426670
push ecx
push 0x400023db
call fcn.004078e4
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x42688d
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 0x426695
add eax, 2
sub edx, 1
jne 0x426688
mov eax, esi
mov ecx, edx
sub eax, edx
neg ecx
sbb ecx, ecx
and ecx, eax
test edx, edx
je 0x4266e9
lea eax, [ebp - 0x20c]
lea eax, [eax + ecx*2]
sub esi, ecx
je 0x4266e1
mov edx, 0x403c5c
mov ecx, 0x7ffffffe
sub edx, eax
test ecx, ecx
je 0x4266d7
movzx edi, word [edx + eax]
test di, di
je 0x4266d7
mov word [eax], di
add eax, 2
dec ecx
sub esi, 1
jne 0x4266be
mov edi, dword [ebp - 0x214]
test esi, esi
jne 0x4266e4
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 0x4267f1
test ebx, ebx
je 0x4267dc
xor eax, eax
cmp word [ebx], ax
je 0x4267dc
lea esi, [ebp - 0x20c]
movzx eax, word [esi]
mov ecx, eax
mov dword [ebp - 0x214], ecx
test ax, ax
je 0x426764
mov edx, eax
movzx ecx, dx
mov dword [ebp - 0x214], ecx
cmp dx, 0x5c
je 0x426764
add esi, 2
movzx eax, word [esi]
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x214], ecx
test ax, ax
jne 0x426740
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 0x4267c1
mov eax, dword [ebp - 0x214]
test ax, ax
je 0x4267f1
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 0x42672e
push edi
push 1
push 0x400023a5
call fcn.004078e4
mov eax, dword [ebp - 0x21c]
add esp, 0xc
jmp 0x42688d
push edi
push 1
push 0x400023a5
call fcn.004078e4
add esp, 0xc
jmp 0x42688b
xor esi, esi
test ebx, ebx
je 0x42685c
cmp word [ebx], si
je 0x42685c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x426801
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 0x426841
push ebx
push edi
push 0x403b6c
call fcn.00409950
jmp 0x42687c
xor eax, eax
push eax
push esi
call fcn.004078e4
push edi
push 1
push 0x235d
call fcn.004078e4
add esp, 0x14
jmp 0x42687f
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 0x42687f
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.00416b50
leave
ret 4