Function at 0x246d5fba
Capabilities:
Set registry value

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 0x1e4
push ebx
mov dword [ebp - 8], eax
push esi
mov dword [ebp - 0x18], eax
push edi
push dword [ebp + 0x34]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.246d5a7a
add esp, 0x24
test eax, eax
jne 0x246d5ffc
xor eax, eax
jmp 0x246d62d3
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0x28]
call fcn.246d5886
add esp, 8
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x144]
push ecx
push str.CLSID_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x144]
push ecx
push 0xf003f
push 0
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x246d604c
xor eax, eax
jmp 0x246d62d3
lea eax, [ebp - 0x14]
lea ecx, [ebp - 8]
push eax
xor ebx, ebx
push ecx
mov esi, 0xf003f
push ebx
mov edi, section..data
push esi
push ebx
push edi
push ebx
push str.Control
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x246d62ad
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 8]
push eax
mov dword [ebp - 8], ebx
push ecx
push ebx
push esi
push ebx
push edi
push ebx
push str.MiscStatus
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x246d62ad
push 2
lea eax, [ebp - 0x144]
push eax
mov byte [ebp - 0x143], bl
mov byte [ebp - 0x144], 0x30
push 1
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x246d62ad
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
push ecx
push ebx
push esi
push ebx
push edi
push ebx
push 0x246d8d28
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x246d62ad
push dword [ebp + 0x2c]
push 0x246d8d24
lea ecx, [ebp - 0x144]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea ecx, [ebp - 0x144]
push eax
push ecx
push 1
push ebx
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x18]
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
jne 0x246d62ad
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x144]
push eax
push dword [0x246da2fc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movzx ecx, word [ebp + 0x30]
push ecx
lea edx, [ebp - 0x40]
push str.___d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x144]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 8]
push ecx
push edx
push ebx
push esi
push ebx
push edi
push ebx
push str.ToolboxBitmap32
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x246d62ad
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea ecx, [ebp - 0x144]
push eax
push ecx
push 1
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x246d62ad
lea eax, [ebp - 0xc]
push eax
push 0x246d8ec0
push 1
push ebx
push 0x246d8eb0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x246d62ad
mov ecx, dword [0x246d84e8]
cmp ecx, ebx
jle 0x246d6258
mov edx, 0x246da290
lea eax, [ebp - 0x1e4]
lea esi, [ebp - 0x144]
cmp eax, esi
jae 0x246d6242
mov edi, eax
mov esi, dword [edx]
add edx, 4
add eax, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
inc ebx
cmp ecx, ebx
jg 0x246d6225
lea eax, [ebp - 0x1e4]
push eax
push ecx
push dword [ebp + 0x28]
mov eax, dword [ebp - 0xc]
push dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov edx, dword [0x246d84ec]
test edx, edx
jle 0x246d62a2
xor ebx, ebx
mov ecx, 0x246da2a0
lea eax, [ebp - 0x1e4]
lea esi, [ebp - 0x144]
cmp eax, esi
jae 0x246d628c
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
add eax, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
inc ebx
cmp ebx, edx
jl 0x246d626f
lea eax, [ebp - 0x1e4]
push eax
push edx
push dword [ebp + 0x28]
mov eax, dword [ebp - 0xc]
push dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
mov eax, dword [ebp - 0xc]
push dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
cmp dword [ebp - 0x10], 0
je 0x246d62bc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x246d62cb
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 1
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret