Function at 0x498f47
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10308
call fcn.004aa330
push esi
push edi
mov eax, dword [0x525510]
mov dword [ebp - 0x10308], eax
mov cl, byte [0x525514]
mov byte [ebp - 0x10304], cl
mov ecx, 0x3e
xor eax, eax
lea edi, [ebp - 0x10303]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x214], 0
mov edi, str.EnumUSBROOT_HUB
lea edx, [ebp - 0x210]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
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, [ebp - 0x2b8]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x210]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x498ff1
xor eax, eax
jmp 0x4995e7
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2b0]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x49903c
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4995e7
mov dword [ebp - 0x2a8], 0
jmp 0x499057
mov eax, dword [ebp - 0x2a8]
add eax, 1
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
cmp ecx, dword [ebp - 0x2b0]
jae 0x49920f
mov dword [ebp - 0x21c], 0x80
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x29c]
push ecx
mov edx, dword [ebp - 0x2a8]
push edx
mov eax, dword [ebp - 0x2b8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x4990c2
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4995e7
mov edi, str.EnumUSBROOT_HUB_
lea edx, [ebp - 0x10208]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
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, [ebp - 0x29c]
push ecx
lea edx, [ebp - 0x10208]
push edx
call fcn.004a9f40
add esp, 8
lea eax, [ebp - 0x2a0]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x10208]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x499143
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4995e7
mov dword [ebp - 0x2a4], 0xff
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push 0x525540
mov edx, dword [ebp - 0x2a0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x4991a1
mov eax, dword [ebp - 0x2a0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4995e7
mov edi, 0x525550
mov edx, dword [ebp - 0x214]
imul edx, edx, 0xff
lea eax, [ebp + edx - 0x10108]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
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, [ebp - 0xfc]
push ecx
mov edx, dword [ebp - 0x214]
imul edx, edx, 0xff
lea eax, [ebp + edx - 0x10108]
push eax
call fcn.004a9f40
add esp, 8
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
jmp 0x499048
mov edx, dword [ebp - 0x2a0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2b8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, str.EnumUSBROOT_HUB20
lea edx, [ebp - 0x210]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
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, [ebp - 0x2b8]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x210]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x499287
xor eax, eax
jmp 0x4995e7
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2b0]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x4992d2
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4995e7
mov dword [ebp - 0x2a8], 0
jmp 0x4992ed
mov eax, dword [ebp - 0x2a8]
add eax, 1
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
cmp ecx, dword [ebp - 0x2b0]
jae 0x4994a5
mov dword [ebp - 0x21c], 0x80
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x29c]
push ecx
mov edx, dword [ebp - 0x2a8]
push edx
mov eax, dword [ebp - 0x2b8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x499358
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4995e7
mov edi, str.EnumUSBROOT_HUB20_
lea edx, [ebp - 0x10208]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
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, [ebp - 0x29c]
push ecx
lea edx, [ebp - 0x10208]
push edx
call fcn.004a9f40
add esp, 8
lea eax, [ebp - 0x2a0]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x10208]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x4993d9
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4995e7
mov dword [ebp - 0x2a4], 0xff
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push str.SymbolicName
mov edx, dword [ebp - 0x2a0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x499437
mov eax, dword [ebp - 0x2a0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4995e7
mov edi, 0x525594
mov edx, dword [ebp - 0x214]
imul edx, edx, 0xff
lea eax, [ebp + edx - 0x10108]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
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, [ebp - 0xfc]
push ecx
mov edx, dword [ebp - 0x214]
imul edx, edx, 0xff
lea eax, [ebp + edx - 0x10108]
push eax
call fcn.004a9f40
add esp, 8
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
jmp 0x4992de
mov edx, dword [ebp - 0x2a0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2b8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2a8], 0
jmp 0x4994da
mov ecx, dword [ebp - 0x2a8]
add ecx, 1
mov dword [ebp - 0x2a8], ecx
mov edx, dword [ebp - 0x2a8]
cmp edx, dword [ebp - 0x214]
jae 0x4995e1
push 0
push 0
push 3
push 0x52b008
push 2
push 0x40000000
mov eax, dword [ebp - 0x2a8]
imul eax, eax, 0xff
lea ecx, [ebp + eax - 0x10108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
jne 0x499529
jmp 0x4994cb
mov edx, dword [ebp - 0x2a8]
imul edx, edx, 0xff
lea eax, [ebp + edx - 0x10108]
mov edi, eax
mov edx, 0x52adf8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
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]
push 0
lea ecx, [ebp - 0x2ac]
push ecx
push 0x4c
lea edx, [ebp - 0x304]
push edx
push 0x4c
lea eax, [ebp - 0x304]
push eax
push 0x220408
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x4995a0
xor eax, eax
jmp 0x4995e7
push 0
mov dl, byte [ebp - 0x2fe]
push edx
mov eax, dword [ebp - 0x10c]
push eax
call fcn.00497f32
add esp, 0xc
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x110], 0
je 0x4995dc
mov eax, dword [ebp - 0x110]
jmp 0x4995e7
jmp 0x4994cb
mov eax, dword [ebp - 0x110]
pop edi
pop esi
mov esp, ebp
pop ebp
ret