Function at 0x4017a0
Capabilities:
Delete registry key
Persist via windows service
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x28
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SOFTWAREIntellon_CorporationIdSetNWAAdapters
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4017f2
lea ecx, [esp]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x40ae88
push 0
push str.SOFTWAREIntellon_CorporationIdSetNWAAdapters
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401c8b
push 0
push 0
mov eax, dword [esp + 8]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push 0
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x401822
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x14]
push ebx
push ebp
xor eax, eax
push esi
push edi
test ecx, ecx
mov dword [esp + 0x28], eax
jbe 0x401ac1
lea ecx, [esp + 0x30]
lea edx, [esp + 0x2c]
push ecx
push 0
push 0
push 0
push edx
push 0x40d2e0
push eax
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x4c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x401aac
mov eax, dword [0x40d2c0]
xor ebx, ebx
test eax, eax
jbe 0x401a9c
mov ebp, 0x40c2c0
mov esi, ebp
mov eax, 0x40d2e0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4018a8
test cl, cl
je 0x4018a4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4018a8
add eax, 2
add esi, 2
test cl, cl
jne 0x401884
xor eax, eax
jmp 0x4018ad
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401a88
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0xf003f
push 0
push 0x40d2e0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401a88
mov eax, dword [0x40ae84]
test eax, eax
jne 0x4018f7
mov ecx, 0x13
mov esi, str.SystemCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318_
mov edi, 0x40d3e0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x401908
mov ecx, 0xb
mov esi, str.SystemCurrentControlSetServicesClassNet_
mov edi, 0x40d3e0
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, 0x40d2e0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x40d3e0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
mov ecx, edx
push eax
push 0x20019
and ecx, 3
push 0
push 0x40d3e0
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401966
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401a88
mov eax, dword [0x40ae84]
mov edi, 0x100
test eax, eax
mov dword [esp + 0x14], edi
jne 0x4019d9
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push 0x40c1c0
push eax
push 0
push str.NetCfgInstanceId
push ecx
call esi
test eax, eax
je 0x4019b8
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
jmp 0x401a88
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push 0x40d1c0
push edx
push 0
push str.NetCfgInstanceId
mov dword [esp + 0x28], edi
push eax
jmp 0x401a35
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push 0x40c1c0
push edx
push 0
push str.DriverDesc
push eax
call esi
test eax, eax
je 0x401a16
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
jmp 0x401a88
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push 0x40d1c0
push ecx
push 0
push str.DriverDesc
mov dword [esp + 0x28], edi
push edx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov ecx, dword [esp + 0x18]
push ecx
call edi
test esi, esi
jne 0x401a88
mov esi, 0x40d1c0
mov eax, 0x40c1c0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401a7f
test cl, cl
je 0x401a7b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401a7f
add eax, 2
add esi, 2
test cl, cl
jne 0x401a5b
xor eax, eax
jmp 0x401a84
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401aac
mov eax, dword [0x40d2c0]
inc ebx
add ebp, 0x100
cmp ebx, eax
jb 0x40187d
mov eax, dword [esp + 0x10]
push 0x40d2e0
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jb 0x401838
mov eax, dword [0x40d2c0]
mov dword [esp + 0x28], 0
test eax, eax
jbe 0x401c7c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebp, 0x40c2c0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push 0
push ebp
push edx
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401c50
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0
push eax
push 0
push 0xf003f
push 0
push 0x40ae88
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401c50
mov eax, dword [0x40ae84]
test eax, eax
jne 0x401b52
mov ecx, 0x13
mov esi, str.SystemCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318_
mov edi, 0x40d3e0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x401b63
mov ecx, 0xb
mov esi, str.SystemCurrentControlSetServicesClassNet_
mov edi, 0x40d3e0
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x40d3e0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x20]
mov ecx, edx
push eax
push 0xf003f
and ecx, 3
push 0
push 0x40d3e0
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401c50
mov eax, dword [0x40ae84]
mov esi, 0x100
test eax, eax
mov dword [esp + 0x1c], esi
jne 0x401c02
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push 0x40c1c0
push edx
push 0
push str.NetCfgInstanceId
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401c02
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push 0x40c1c0
push 1
push eax
push str.NetCfgInstanceId
push edx
call ebx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push 0x40c1c0
push ecx
push 0
push str.DriverDesc
push edx
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401c45
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push 0x40c1c0
push 1
push 0
push str.DriverDesc
push ecx
call ebx
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401c5f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
mov ecx, dword [0x40d2c0]
inc eax
add ebp, 0x100
cmp eax, ecx
mov dword [esp + 0x28], eax
jb 0x401ae1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret