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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030c
call fcn.004e9ae0
push esi
push edi
mov eax, dword [0x56724c]
mov dword [ebp - 0x1030c], eax
mov cl, byte [0x567250]
mov byte [ebp - 0x10308], cl
mov ecx, 0x3e
xor eax, eax
lea edi, [ebp - 0x10307]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov edi, str.SYSTEMCurrentControlSetEnumUSBROOT_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 - 0x2bc]
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 - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x4bcdbe
mov dword [ebp - 0x214], 1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2b4]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x2bc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x4bce0c
mov edx, dword [ebp - 0x2bc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x2ac], 0
jmp 0x4bce27
mov eax, dword [ebp - 0x2ac]
add eax, 1
mov dword [ebp - 0x2ac], eax
cmp dword [ebp - 0x214], 0
jne 0x4bd000
mov ecx, dword [ebp - 0x2ac]
cmp ecx, dword [ebp - 0x2b4]
jae 0x4bd000
mov dword [ebp - 0x220], 0x80
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x2a0]
push ecx
mov edx, dword [ebp - 0x2ac]
push edx
mov eax, dword [ebp - 0x2bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x4bce9f
mov ecx, dword [ebp - 0x2bc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4bd411
mov edi, str.SYSTEMCurrentControlSetEnumUSBROOT_HUB_
lea edx, [ebp - 0x1020c]
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 - 0x2a0]
push ecx
lea edx, [ebp - 0x1020c]
push edx
call fcn.004e96f0
add esp, 8
push 0x5672ac
lea eax, [ebp - 0x1020c]
push eax
call fcn.004e96f0
add esp, 8
lea ecx, [ebp - 0x2a4]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x1020c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x4bcf34
mov eax, dword [ebp - 0x2bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4bd411
mov dword [ebp - 0x2a8], 0xff
lea ecx, [ebp - 0x2a8]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0
push 0
push 0x5672c0
mov eax, dword [ebp - 0x2a4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x4bcf92
mov ecx, dword [ebp - 0x2a4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x2bc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4bd411
mov edi, 0x5672d0
mov eax, dword [ebp - 0x218]
imul eax, eax, 0xff
lea ecx, [ebp + eax - 0x1010c]
mov edx, ecx
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 - 0x104]
push ecx
mov edx, dword [ebp - 0x218]
imul edx, edx, 0xff
lea eax, [ebp + edx - 0x1010c]
push eax
call fcn.004e96f0
add esp, 8
mov ecx, dword [ebp - 0x218]
add ecx, 1
mov dword [ebp - 0x218], ecx
jmp 0x4bce18
cmp dword [ebp - 0x214], 0
jne 0x4bd023
mov edx, dword [ebp - 0x2a4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, str.SYSTEMCurrentControlSetEnumUSBROOT_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 - 0x2bc]
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 - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x4bd084
mov dword [ebp - 0x214], 1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2b4]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x2bc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x4bd0d2
mov edx, dword [ebp - 0x2bc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x2ac], 0
jmp 0x4bd0ed
mov eax, dword [ebp - 0x2ac]
add eax, 1
mov dword [ebp - 0x2ac], eax
cmp dword [ebp - 0x214], 0
jne 0x4bd2c6
mov ecx, dword [ebp - 0x2ac]
cmp ecx, dword [ebp - 0x2b4]
jae 0x4bd2c6
mov dword [ebp - 0x220], 0x80
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x2a0]
push ecx
mov edx, dword [ebp - 0x2ac]
push edx
mov eax, dword [ebp - 0x2bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x4bd165
mov ecx, dword [ebp - 0x2bc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4bd411
mov edi, str.SYSTEMCurrentControlSetEnumUSBROOT_HUB20_
lea edx, [ebp - 0x1020c]
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 - 0x2a0]
push ecx
lea edx, [ebp - 0x1020c]
push edx
call fcn.004e96f0
add esp, 8
push str.Device_Parameters
lea eax, [ebp - 0x1020c]
push eax
call fcn.004e96f0
add esp, 8
lea ecx, [ebp - 0x2a4]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x1020c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x4bd1fa
mov eax, dword [ebp - 0x2bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4bd411
mov dword [ebp - 0x2a8], 0xff
lea ecx, [ebp - 0x2a8]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0
push 0
push 0x56734c
mov eax, dword [ebp - 0x2a4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
je 0x4bd258
mov ecx, dword [ebp - 0x2a4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x2bc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4bd411
mov edi, 0x56735c
mov eax, dword [ebp - 0x218]
imul eax, eax, 0xff
lea ecx, [ebp + eax - 0x1010c]
mov edx, ecx
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 - 0x104]
push ecx
mov edx, dword [ebp - 0x218]
imul edx, edx, 0xff
lea eax, [ebp + edx - 0x1010c]
push eax
call fcn.004e96f0
add esp, 8
mov ecx, dword [ebp - 0x218]
add ecx, 1
mov dword [ebp - 0x218], ecx
jmp 0x4bd0de
cmp dword [ebp - 0x214], 0
jne 0x4bd2e9
mov edx, dword [ebp - 0x2a4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2ac], 0
jmp 0x4bd304
mov ecx, dword [ebp - 0x2ac]
add ecx, 1
mov dword [ebp - 0x2ac], ecx
mov edx, dword [ebp - 0x2ac]
cmp edx, dword [ebp - 0x218]
jae 0x4bd40b
push 0
push 0
push 3
push 0x675ac8
push 2
push 0x40000000
mov eax, dword [ebp - 0x2ac]
imul eax, eax, 0xff
lea ecx, [ebp + eax - 0x1010c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
jne 0x4bd353
jmp 0x4bd2f5
mov edx, dword [ebp - 0x2ac]
imul edx, edx, 0xff
lea eax, [ebp + edx - 0x1010c]
mov edi, eax
mov edx, 0x6758b8
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 - 0x2b0]
push ecx
push 0x4c
lea edx, [ebp - 0x308]
push edx
push 0x4c
lea eax, [ebp - 0x308]
push eax
push 0x220408
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x4bd3ca
xor eax, eax
jmp 0x4bd411
push 0
mov dl, byte [ebp - 0x302]
push edx
mov eax, dword [ebp - 0x10c]
push eax
call fcn.004bc402
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 0x4bd406
mov eax, dword [ebp - 0x110]
jmp 0x4bd411
jmp 0x4bd2f5
mov eax, dword [ebp - 0x110]
pop edi
pop esi
mov esp, ebp
pop ebp
ret