Function at 0x41ec80
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4a63ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x32c
push ebp
mov ebp, dword [esp + 0x340]
lea eax, [esp + 8]
mov dword [esp + 0x18], 0x104
push eax
push ebp
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x41ecc7
xor eax, eax
jmp 0x41f251
mov eax, dword [esp + 0x344]
push ebx
push esi
push edi
test eax, eax
je 0x41ee5d
call fcn.0049ebe0
mov eax, dword [eax + 8]
lea ecx, [esp + 0x239]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x41f23c
mov edi, str.____1_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x238]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x238], 0x22
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0xd
push 0x4d6508
mov ecx, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push eax
mov eax, dword [esp + 0x24]
and ecx, 3
push 0x4db730
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [esp + 0x28]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.open
push eax
call esi
lea ecx, [esp + 0x28]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4d6500
push eax
call esi
lea edi, [esp + 0x238]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x23c]
push ecx
push 1
push eax
push 0x4db730
push edx
call ebx
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
mov ecx, dword [esp + 0x1c]
push ecx
call ebp
lea edx, [esp + 0x28]
lea eax, [esp + 0x10]
push edx
mov ecx, dword [esp + 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4d6508
push ecx
call esi
lea edx, [esp + 0x28]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4d6500
push ecx
call esi
lea edi, [esp + 0x238]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x238]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x2c]
push 0x4db730
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call ebp
mov edx, dword [esp + 0x1c]
push edx
call ebp
jmp 0x41f242
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
lea eax, [esp + 0x20]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00411160
add esp, 0x10
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x344], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41ef01
lea edx, [esp + 0x2c]
push 1
push edx
lea ecx, [esp + 0x20]
call fcn.00487fa3
mov eax, dword [eax]
mov esi, 0x4d5558
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41eece
test cl, cl
je 0x41eeca
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41eece
add eax, 2
add esi, 2
test cl, cl
jne 0x41eea6
xor eax, eax
jmp 0x41eed3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x2c]
setne bl
call fcn.0048fb71
test bl, bl
je 0x41eef3
push 0x4d5558
lea ecx, [esp + 0x1c]
call fcn.0048ff4d
push str.Internet_Exploreriexplore.exe
lea ecx, [esp + 0x1c]
call fcn.0048ff4d
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x134]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x134]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.MyIEcommand
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [esp + 0x134]
and ecx, 3
push eax
push connect
rep movsb byte es:[edi], byte [esi]
call ebx
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x134]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x134]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4d648c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x134]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push connect
call ebx
or ecx, 0xffffffff
lea edx, [esp + 0x134]
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4d5558
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x138]
push ecx
call fcn.00479010
mov byte [eax], 0
mov edi, str.DefaultIcon
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x134]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x138]
push ecx
push connect
call ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x41f12a
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x24]
lea eax, [esp + 0x30]
push edx
push eax
push 0
push 0
push 0x4db730
push ecx
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x30]
push 0x4d6508
push edx
call fcn.00479010
add esp, 8
test eax, eax
je 0x41f11b
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4d6478
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push 1
push 0
push 0x4db730
push ecx
call ebx
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
jmp 0x41f130
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push str.opennew
push ecx
call ebp
test eax, eax
jne 0x41f162
mov edx, dword [esp + 0x14]
push 7
push str.opennew
push 1
push eax
push 0x4db730
push edx
call ebx
mov eax, dword [esp + 0x10]
push eax
call esi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push str.open
push edx
call ebp
test eax, eax
jne 0x41f228
push 5
push str.open
push 1
push eax
mov eax, dword [esp + 0x24]
push 0x4db730
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push str.opencommand
push eax
call ebp
test eax, eax
jne 0x41f221
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push 0x4db730
push eax
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x30]
push 0x4d6508
push ecx
call fcn.00479010
add esp, 8
test eax, eax
je 0x41f221
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x30]
push edx
push str.__s____1
push eax
call fcn.004796c4
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [esp + 0x20]
dec ecx
push ecx
lea ecx, [esp + 0x34]
push ecx
push 1
push eax
push 0x4db730
push edx
call ebx
mov eax, dword [esp + 0x10]
push eax
call esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x344], 0xffffffff
call fcn.0048fb71
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
push ecx
call ebp
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x330]
pop ebp
mov dword fs:[0], ecx
add esp, 0x338
ret 8