Function at 0x40b430
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
push closesocket
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40b4b5
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
push str.OpenKey_HKEY_LOCAL_MACHINE_s_failed
push 0x25f
push str..Cutil_Driver.c
push 1
mov ecx, str.cutil_driver_AddFilterReg
call fcn.00405d70
add esp, 0x14
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
push str.OpenKey_HKEY_LOCAL_MACHINE_s_failed
push 0x25f
push str..Cutil_Driver.c
push 1
mov ecx, str.cutil_driver_AddFilterReg
call fcn.00405a90
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x10
ret
mov esi, 0x1000
mov eax, str.IsaSvc
mov dword [esp + 0xc], esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40b4c6
sub eax, edx
add eax, 0x1000
push eax
call fcn.00414831
mov edi, eax
add esp, 4
test edi, edi
je 0x40b4ac
mov ecx, dword [esp + 0xc]
push ecx
push 0
push edi
call fcn.0041c150
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push edi
push 0
push 0
push str.netsvcs
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x40b5bb
cmp dword [esp + 0xc], esi
jae 0x40b63b
mov eax, edi
mov esi, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40b530
sub eax, edx
je 0x40b595
cmp ebp, dword [esp + 0xc]
jae 0x40b595
push str.IsaSvc
push esi
call fcn.004157a3
add esp, 8
test eax, eax
je 0x40b59b
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40b560
sub eax, edx
lea ebp, [eax + ebp + 1]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40b574
sub eax, edx
lea esi, [esi + eax + 1]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40b588
sub eax, edx
jne 0x40b53d
mov ebp, dword [esp + 0x14]
jmp 0x40b5da
push edi
call fcn.0041336e
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x10
ret
cmp ebp, 2
jne 0x40b63b
push 0x1000
push 0
push edi
mov dword [esp + 0x18], 1
mov esi, edi
call fcn.0041c150
add esp, 0xc
test esi, esi
je 0x40b63b
mov eax, str.IsaSvc
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x40b5e7
mov eax, str.IsaSvc
lea edx, [eax + 1]
jmp 0x40b600
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40b600
sub eax, edx
mov edx, dword [esp + 0xc]
lea eax, [edx + eax + 1]
mov dword [esp + 0xc], eax
mov byte [eax + edi - 1], cl
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push eax
push edi
push 7
push 0
push str.netsvcs
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0x14], eax
mov ebp, eax
push edi
call fcn.0041336e
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
test ebp, ebp
pop esi
sete al
pop ebp
add esp, 0x10
ret