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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10308
call fcn.004e8aa0
push esi
push edi
mov eax, dword [0x565ed4]
mov dword [ebp - 0x10308], eax
mov cl, byte [0x565ed8]
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 0x4bc481
xor eax, eax
jmp 0x4bca77
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 0x4bc4cc
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4bca77
mov dword [ebp - 0x2a8], 0
jmp 0x4bc4e7
mov eax, dword [ebp - 0x2a8]
add eax, 1
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
cmp ecx, dword [ebp - 0x2b0]
jae 0x4bc69f
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 0x4bc552
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4bca77
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.004e86b0
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 0x4bc5d3
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4bca77
mov dword [ebp - 0x2a4], 0xff
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push 0x565f04
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 0x4bc631
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 0x4bca77
mov edi, 0x565f14
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.004e86b0
add esp, 8
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
jmp 0x4bc4d8
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 0x4bc717
xor eax, eax
jmp 0x4bca77
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 0x4bc762
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4bca77
mov dword [ebp - 0x2a8], 0
jmp 0x4bc77d
mov eax, dword [ebp - 0x2a8]
add eax, 1
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
cmp ecx, dword [ebp - 0x2b0]
jae 0x4bc935
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 0x4bc7e8
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4bca77
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.004e86b0
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 0x4bc869
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4bca77
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 0x4bc8c7
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 0x4bca77
mov edi, 0x565f58
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.004e86b0
add esp, 8
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
jmp 0x4bc76e
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 0x4bc96a
mov ecx, dword [ebp - 0x2a8]
add ecx, 1
mov dword [ebp - 0x2a8], ecx
mov edx, dword [ebp - 0x2a8]
cmp edx, dword [ebp - 0x214]
jae 0x4bca71
push 0
push 0
push 3
push 0x674638
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 0x4bc9b9
jmp 0x4bc95b
mov edx, dword [ebp - 0x2a8]
imul edx, edx, 0xff
lea eax, [ebp + edx - 0x10108]
mov edi, eax
mov edx, 0x674428
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 0x4bca30
xor eax, eax
jmp 0x4bca77
push 0
mov dl, byte [ebp - 0x2fe]
push edx
mov eax, dword [ebp - 0x10c]
push eax
call fcn.004bb3c2
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 0x4bca6c
mov eax, dword [ebp - 0x110]
jmp 0x4bca77
jmp 0x4bc95b
mov eax, dword [ebp - 0x110]
pop edi
pop esi
mov esp, ebp
pop ebp
ret