Function at 0x40a4ce
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
push esi
push edi
xor ebx, ebx
push 0x100
mov esi, 0x186
push ebx
mov edi, ecx
push esi
mov dword [ebp - 0x24], ebx
call fcn.0040acec
add esp, 0xc
mov dword [ebp - 0x28], eax
push 0x100
push ebx
push esi
call fcn.0040acec
add esp, 0xc
mov dword [ebp - 0x2c], eax
add edi, 0x542
push edi
call fcn.0040f1c0
cmp byte [edi], bl
lea eax, [eax + edi + 1]
pop ecx
mov dword [ebp - 0x30], eax
je 0x40aa71
push dword [0x41e368]
push dword [ebp + 8]
push eax
call fcn.0040a2e6
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x40aa6a
mov ecx, dword [0x41e374]
mov al, byte [edi]
push 0x100
push ebx
sub al, byte [ecx]
push 0x23a
neg al
sbb eax, eax
inc eax
mov dword [ebp - 0x18], eax
call fcn.0040acec
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x40a57c
push eax
call fcn.0040f1c0
inc eax
pop ecx
mov dword [ebp - 8], eax
jmp 0x40a57f
mov dword [ebp - 8], ebx
call fcn.0040ace8
test eax, eax
je 0x40a9d6
lea eax, [edi + 1]
mov esi, 0x80000000
push eax
push esi
call fcn.0040a426
pop ecx
lea eax, [ebp - 0xc]
pop ecx
push eax
lea eax, [edi + 1]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40a9c3
xor esi, esi
cmp dword [ebp - 0x18], ebx
je 0x40a6f9
cmp dword [ebp - 0x14], ebx
je 0x40a6f9
push dword [ebp - 8]
push dword [ebp - 0x14]
push 1
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
jne 0x40a67a
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionExtensions
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40a616
lea eax, [edi + 1]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push str.ShellNew
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
jne 0x40a67a
push ebx
push str.PK_STRING
push 6
lea ecx, [ebp - 0x44]
call fcn.0040ad2e
cmp dword [ebp - 0x3c], ebx
je 0x40a666
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
push 3
push ebx
push str.Data
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40a666
xor esi, esi
jmp 0x40a669
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x44]
call fcn.0040adb8
cmp esi, ebx
jne 0x40a986
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
mov esi, 0x80000000
push esi
call fcn.0040a426
pop ecx
lea eax, [ebp - 0xc]
pop ecx
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
jne 0x40a6f9
push 0x100
push ebx
push 0x23b
call fcn.0040acec
mov esi, eax
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 0x10], esi
je 0x40a6ed
push esi
call fcn.0040f1c0
pop ecx
inc eax
push eax
push esi
push 1
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
jne 0x40a6ed
xor esi, esi
jmp 0x40a6f0
push 1
pop esi
push dword [ebp - 0x10]
call fcn.0040ecb0
pop ecx
cmp esi, ebx
jne 0x40a986
mov dword [ebp - 8], str.open
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
cmp eax, ebx
je 0x40a986
cmp dword [ebp - 0x18], ebx
jne 0x40a726
cmp ecx, 0x41e384
jge 0x40a986
cmp dword [ecx + 8], ebx
je 0x40a796
push eax
lea eax, [ebp - 0x148]
push str.shell_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp esi, ebx
jne 0x40a761
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40a761
xor esi, esi
jmp 0x40a764
push 1
pop esi
cmp esi, ebx
jne 0x40a796
mov esi, dword [ebp - 8]
push dword [esi + 8]
call fcn.0040f1c0
pop ecx
inc eax
push eax
push dword [esi + 8]
push 1
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
neg esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
push dword [eax]
lea eax, [ebp - 0x148]
push str.shell_scommand
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp esi, ebx
jne 0x40a7d0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40a7d0
xor esi, esi
jmp 0x40a7d3
push 1
pop esi
cmp esi, ebx
jne 0x40a853
cmp dword [ebp - 0x18], ebx
je 0x40a828
mov eax, dword [0x41e36c]
inc eax
push eax
push 0x421df4
push dword [ebp - 0x1c]
call fcn.0040a2e6
mov esi, eax
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 0x10], esi
je 0x40a81a
push esi
call fcn.0040f1c0
pop ecx
inc eax
push eax
push esi
push 1
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
jne 0x40a81a
xor esi, esi
jmp 0x40a81d
push 1
pop esi
push dword [ebp - 0x10]
call fcn.0040ecb0
pop ecx
jmp 0x40a84a
push dword [ebp - 0x1c]
call fcn.0040f1c0
pop ecx
inc eax
push eax
push dword [ebp - 0x1c]
push 1
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], ebx
je 0x40a97a
cmp esi, ebx
jne 0x40a97a
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x148]
push dword [esi]
push str.shell_sddeexec
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40a977
push dword [esi + 4]
call fcn.0040f1c0
pop ecx
inc eax
push eax
push dword [esi + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push 1
push ebx
push dword [ebp - 4]
call esi
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x10], eax
jne 0x40a91e
lea eax, [ebp - 0x20]
push eax
push str.application
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40a91e
push dword [ebp - 0x1c]
call fcn.0040aa9e
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
je 0x40a907
cmp byte [eax], bl
je 0x40a907
push eax
call fcn.0040f1c0
pop ecx
inc eax
push eax
push dword [ebp - 0x10]
push 1
push ebx
push dword [ebp - 0x20]
call esi
test eax, eax
jne 0x40a907
xor esi, esi
jmp 0x40a90a
push 1
pop esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call fcn.0040ecb0
pop ecx
jmp 0x40a921
push 1
pop esi
cmp esi, ebx
jne 0x40a969
lea eax, [ebp - 0x20]
push eax
push str.topic
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40a969
mov esi, str.system
push esi
call fcn.0040f1c0
pop ecx
inc eax
push eax
push esi
push 1
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push dword [ebp - 0x20]
mov esi, eax
neg esi
sbb esi, esi
neg esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a96c
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a97a
push 1
pop esi
add dword [ebp - 8], 0xc
cmp esi, ebx
je 0x40a708
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x40a9d1
lea eax, [edi + 1]
mov esi, 0x80000000
push eax
push esi
call fcn.0040a426
cmp dword [ebp - 0x18], ebx
pop ecx
pop ecx
je 0x40a9b9
cmp dword [ebp - 0x14], ebx
je 0x40a9b9
push dword [ebp - 0x14]
push esi
call fcn.0040a426
pop ecx
pop ecx
cmp dword [ebp - 0x28], ebx
je 0x40a9d1
push dword [ebp - 0x28]
jmp 0x40a9cb
cmp dword [ebp - 0x28], ebx
je 0x40a9d1
push dword [ebp - 0x28]
call fcn.0040bbcd
pop ecx
call fcn.0040ec6c
cmp dword [ebp - 0x18], ebx
jne 0x40aa2e
mov eax, dword [0x41e36c]
inc eax
push eax
push edi
push dword [ebp - 0x1c]
call fcn.0040a2e6
add esp, 0xc
mov esi, eax
add edi, 2
push esi
push edi
push str.Extensions
call dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
cmp dword [ebp - 0x24], ebx
jne 0x40aa0c
cmp eax, ebx
mov dword [ebp - 0x24], ebx
je 0x40aa13
mov dword [ebp - 0x24], 1
cmp eax, ebx
jne 0x40aa25
cmp dword [ebp - 0x2c], ebx
je 0x40aa25
push dword [ebp - 0x2c]
call fcn.0040bbcd
pop ecx
push esi
call fcn.0040ecb0
pop ecx
jmp 0x40aa45
add edi, 2
push ebx
push edi
push str.Extensions
call dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
mov dword [ebp - 0x24], 1
push dword [ebp - 0x14]
call fcn.0040ecb0
pop ecx
push dword [ebp - 0x1c]
call fcn.0040ecb0
mov esi, dword [ebp - 0x30]
pop ecx
push esi
call fcn.0040f1c0
pop ecx
lea edi, [eax + esi + 1]
jmp 0x40a510
push ebx
call fcn.0040ecb0
pop ecx
cmp dword [ebp - 0x24], ebx
je 0x40aa85
push ebx
push ebx
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
push dword [ebp - 0x2c]
call fcn.0040ecb0
pop ecx
push dword [ebp - 0x28]
call fcn.0040ecb0
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4