Function at 0x1000b290
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009d925
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x100b7bd0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x100b7bd0]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000b6c0
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x40]
push eax
push ebx
push ebx
push ebx
push ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1000b334
mov edx, dword [esp + 0x18]
push edx
jmp 0x1000b6ba
cmp dword [esp + 0x1c], 0x400
ja 0x1000b6b5
mov eax, dword [esp + 0x24]
cmp eax, 0x400
ja 0x1000b6b5
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x28], esi
jbe 0x1000b6a6
mov eax, dword [esp + 0x1c]
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100788a2
mov ecx, dword [esp + 0x1c]
mov edi, eax
mov eax, dword [esp + 0x20]
add esp, 4
add eax, 1
push eax
push edi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1000b68c
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push 0x20019
push ebx
mov word [edi + edx*2 + 2], bx
mov ecx, dword [esp + 0x24]
push edi
push ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000b68c
mov eax, 7
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd0], ebx
mov word [esp + 0xc0], bx
mov dword [esp + 0xf0], eax
mov dword [esp + 0xec], ebx
mov word [esp + 0xdc], bx
mov dword [esp + 0x10c], eax
mov dword [esp + 0x108], ebx
mov word [esp + 0xf8], bx
push str.ServiceName
lea ecx, [esp + 0x34]
mov dword [esp + 0x12c], ebx
call fcn.10004220
mov byte [esp + 0x128], 1
mov edx, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
lea esi, [esp + 0x50]
call fcn.1000b160
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xc8]
mov byte [esp + 0x134], 2
call fcn.10002490
mov ecx, esi
call fcn.10008190
lea ecx, [esp + 0x30]
mov byte [esp + 0x128], bl
call fcn.10008190
push str.Description
lea ecx, [esp + 0x34]
call fcn.10004220
mov byte [esp + 0x128], 3
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
lea esi, [esp + 0x50]
call fcn.1000b160
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x134], 4
call fcn.10002490
mov ecx, esi
call fcn.10008190
lea ecx, [esp + 0x30]
mov byte [esp + 0x128], bl
call fcn.10008190
cmp dword [esp + 0xd0], ebx
je 0x1000b649
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_
lea ecx, [esp + 0xa4]
call fcn.10004220
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [esp + 0xac]
mov byte [esp + 0x134], 5
call fcn.10002380
push str.Connection
lea ecx, [esp + 0xa4]
call fcn.100030f0
cmp dword [esp + 0xb8], 8
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x14], ebx
jae 0x1000b530
lea eax, [esp + 0xa4]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000b5b5
push str.Name
lea ecx, [esp + 0x6c]
call fcn.10004220
mov byte [esp + 0x128], 6
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x6c]
lea esi, [esp + 0x88]
call fcn.1000b160
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x100]
mov byte [esp + 0x134], 7
call fcn.10002490
mov ecx, esi
call fcn.10008190
lea ecx, [esp + 0x68]
mov byte [esp + 0x128], 5
call fcn.10008190
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x108], ebx
je 0x1000b636
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
lea ecx, [esp + 0xa4]
call fcn.10004260
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xc4]
push edx
lea ecx, [esp + 0xac]
call fcn.10002380
cmp dword [esp + 0xb8], 8
mov eax, dword [esp + 0xa4]
jae 0x1000b5fe
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000b62a
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
jmp 0x1000b636
lea ecx, [esp + 0xf4]
call fcn.10001fd0
lea ecx, [esp + 0xa0]
mov byte [esp + 0x128], bl
call fcn.10008190
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x108], ebx
je 0x1000b671
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0xbc]
push ecx
add esi, 0x20
call fcn.1000baf0
lea esi, [esp + 0xbc]
mov dword [esp + 0x128], 0xffffffff
call fcn.1000b6f0
mov esi, dword [esp + 0x28]
push edi
call fcn.10079647
add esi, 1
add esp, 4
cmp esi, dword [esp + 0x24]
mov dword [esp + 0x28], esi
jb 0x1000b35f
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x1000b6c2
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.1007a1bc
mov esp, ebp
pop ebp
ret 4