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

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4bed17
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [0x4fce50]
mov eax, dword [eax]
call fcn.0046ede8
push 0x4bed30
push dword [ebp - 4]
push 0x4bed3c
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404ed8
test bl, bl
je 0x4bec1b
push 4
push 0x4bed44
push 1
push 0x4bed4c
push 0x80000000
call sub.advapi32.dll_RegSetValueA
mov ebx, dword [ebp - 8]
mov edi, ebx
test edi, edi
je 0x4be805
sub edi, 4
mov edi, dword [edi]
push edi
mov eax, dword [ebp - 8]
call fcn.00405018
mov esi, eax
push esi
push 1
push 0x4bed5c
push 0x80000000
call sub.advapi32.dll_RegSetValueA
push 4
push 0x4bed44
push 1
push 0x4bed7c
push 0x80000000
call sub.advapi32.dll_RegSetValueA
mov edi, ebx
test edi, edi
je 0x4be845
sub edi, 4
mov edi, dword [edi]
push edi
push esi
push 1
push 0x4bed8c
push 0x80000000
call sub.advapi32.dll_RegSetValueA
push 4
push 0x4bed44
push 1
push 0x4beda8
push 0x80000000
call sub.advapi32.dll_RegSetValueA
mov edi, ebx
test edi, edi
je 0x4be87b
sub edi, 4
mov edi, dword [edi]
push edi
push esi
push 1
push 0x4bedb4
push 0x80000000
call sub.advapi32.dll_RegSetValueA
push 4
push 0x4bed44
push 1
push 0x4bedcc
push 0x80000000
call sub.advapi32.dll_RegSetValueA
mov edi, ebx
test edi, edi
je 0x4be8b1
sub edi, 4
mov edi, dword [edi]
push edi
push esi
push 1
push 0x4bedd8
push 0x80000000
call sub.advapi32.dll_RegSetValueA
mov edi, ebx
test edi, edi
je 0x4be8cf
sub edi, 4
mov edi, dword [edi]
push edi
push esi
push 1
push 0x4bedf4
push 0x80000000
call sub.advapi32.dll_RegSetValueA
push 4
push 0x4bed44
push 1
push 0x4bee18
push 0x80000000
call sub.advapi32.dll_RegSetValueA
mov edi, ebx
test edi, edi
je 0x4be905
sub edi, 4
mov edi, dword [edi]
push edi
push esi
push 1
push 0x4bee30
push 0x80000000
call sub.advapi32.dll_RegSetValueA
push 0
push 0x4bee54
push 1
push 0x4bee58
push 0x80000000
call sub.advapi32.dll_RegSetValueA
push 0
push 0x4bee54
push 1
push 0x4bee70
push 0x80000000
call sub.advapi32.dll_RegSetValueA
push 4
push 0x4bed44
push 1
push 0x4beeac
push 0x80000001
call sub.advapi32.dll_RegSetValueA
mov edi, ebx
test edi, edi
je 0x4be96b
sub edi, 4
mov edi, dword [edi]
push edi
push esi
push 1
push 0x4beed0
push 0x80000001
call sub.advapi32.dll_RegSetValueA
push 4
push 0x4bed44
push 1
push 0x4bef00
push 0x80000001
call sub.advapi32.dll_RegSetValueA
mov edi, ebx
test edi, edi
je 0x4be9a1
sub edi, 4
mov edi, dword [edi]
push edi
push esi
push 1
push 0x4bef20
push 0x80000001
call sub.advapi32.dll_RegSetValueA
push 4
push 0x4bed44
push 1
push 0x4bef50
push 0x80000001
call sub.advapi32.dll_RegSetValueA
mov edi, ebx
test edi, edi
je 0x4be9d7
sub edi, 4
mov edi, dword [edi]
push edi
push esi
push 1
push 0x4bef6c
push 0x80000001
call sub.advapi32.dll_RegSetValueA
mov edi, ebx
test edi, edi
je 0x4be9f5
sub edi, 4
mov edi, dword [edi]
push edi
push esi
push 1
push 0x4bef98
push 0x80000001
call sub.advapi32.dll_RegSetValueA
push 4
push 0x4bed44
push 1
push 0x4befc4
push 0x80000001
call sub.advapi32.dll_RegSetValueA
mov edi, ebx
test edi, edi
je 0x4bea2b
sub edi, 4
mov edi, dword [edi]
push edi
push esi
push 1
push 0x4befe4
push 0x80000001
call sub.advapi32.dll_RegSetValueA
push 4
push 0x4bed44
push 1
push 0x4bf010
push 0x80000001
call sub.advapi32.dll_RegSetValueA
mov edi, ebx
test edi, edi
je 0x4bea61
sub edi, 4
mov edi, dword [edi]
push edi
push esi
push 1
push 0x4bf038
push 0x80000001
call sub.advapi32.dll_RegSetValueA
mov edi, ebx
test edi, edi
je 0x4bea7f
sub edi, 4
mov edi, dword [edi]
push edi
push esi
push 1
push 0x4bf070
push 0x80000001
call sub.advapi32.dll_RegSetValueA
push 4
push 0x4bed44
push 1
push 0x4beeac
push 0x80000002
call sub.advapi32.dll_RegSetValueA
mov edi, ebx
test edi, edi
je 0x4beab5
sub edi, 4
mov edi, dword [edi]
push edi
push esi
push 1
push 0x4beed0
push 0x80000002
call sub.advapi32.dll_RegSetValueA
push 4
push 0x4bed44
push 1
push 0x4bef00
push 0x80000002
call sub.advapi32.dll_RegSetValueA
mov edi, ebx
test edi, edi
je 0x4beaeb
sub edi, 4
mov edi, dword [edi]
push edi
push esi
push 1
push 0x4bef20
push 0x80000002
call sub.advapi32.dll_RegSetValueA
mov edi, ebx
test edi, edi
je 0x4beb09
sub edi, 4
mov edi, dword [edi]
push edi
push esi
push 1
push 0x4bf0a8
push 0x80000002
call sub.advapi32.dll_RegSetValueA
push 4
push 0x4bed44
push 1
push 0x4bef50
push 0x80000002
call sub.advapi32.dll_RegSetValueA
mov edi, ebx
test edi, edi
je 0x4beb3f
sub edi, 4
mov edi, dword [edi]
push edi
push esi
push 1
push 0x4bef6c
push 0x80000002
call sub.advapi32.dll_RegSetValueA
push 4
push 0x4bed44
push 1
push 0x4befc4
push 0x80000002
call sub.advapi32.dll_RegSetValueA
mov edi, ebx
test edi, edi
je 0x4beb75
sub edi, 4
mov edi, dword [edi]
push edi
push esi
push 1
push 0x4befe4
push 0x80000002
call sub.advapi32.dll_RegSetValueA
push 4
push 0x4bed44
push 1
push 0x4bf010
push 0x80000002
call sub.advapi32.dll_RegSetValueA
mov edi, ebx
test edi, edi
je 0x4bebab
sub edi, 4
mov edi, dword [edi]
push edi
push esi
push 1
push 0x4bf038
push 0x80000002
call sub.advapi32.dll_RegSetValueA
mov edi, ebx
test edi, edi
je 0x4bebc9
sub edi, 4
mov edi, dword [edi]
push edi
push esi
push 1
push 0x4bf0d8
push 0x80000000
call sub.advapi32.dll_RegSetValueA
mov edi, ebx
test edi, edi
je 0x4bebe7
sub edi, 4
mov edi, dword [edi]
push edi
push esi
push 1
push 0x4bf100
push 0x80000000
call sub.advapi32.dll_RegSetValueA
test ebx, ebx
je 0x4bec03
sub ebx, 4
mov ebx, dword [ebx]
push ebx
push esi
push 1
push 0x4bf11c
push 0x80000001
call sub.advapi32.dll_RegSetValueA
jmp 0x4becfc
push 0x4bf148
push 0x80000002
call sub.advapi32.dll_RegDeleteKeyA
push 0x4bf170
push 0x80000002
call sub.advapi32.dll_RegDeleteKeyA
push 0x4bf194
push 0x80000002
call sub.advapi32.dll_RegDeleteKeyA
push 0x4bf1b4
push 0x80000002
call sub.advapi32.dll_RegDeleteKeyA
push 0x4bf1d8
push 0x80000002
call sub.advapi32.dll_RegDeleteKeyA
push 0x4bf148
push 0x80000001
call sub.advapi32.dll_RegDeleteKeyA
push 0x4bf170
push 0x80000001
call sub.advapi32.dll_RegDeleteKeyA
push 0x4bf194
push 0x80000001
call sub.advapi32.dll_RegDeleteKeyA
push 0x4bf1b4
push 0x80000001
call sub.advapi32.dll_RegDeleteKeyA
push 0x4bf1d8
push 0x80000001
call sub.advapi32.dll_RegDeleteKeyA
push 0x4bf204
push 0x80000000
call sub.advapi32.dll_RegDeleteKeyA
push 0x4bf218
push 0x80000000
call sub.advapi32.dll_RegDeleteKeyA
push 0x4bf22c
push 0x80000000
call sub.advapi32.dll_RegDeleteKeyA
push 0x4bf23c
push 0x80000000
call sub.advapi32.dll_RegDeleteKeyA
push 0x4bf24c
push 0x80000000
call sub.advapi32.dll_RegDeleteKeyA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bed1e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b78
ret