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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10308
call fcn.0054cd40
push esi
push edi
mov eax, dword [0x5b8e44]
mov dword [ebp - 0x10308], eax
mov cl, byte [0x5b8e48]
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 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x53b92f
xor eax, eax
jmp 0x53bf27
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 0x53b97a
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x53bf27
mov dword [ebp - 0x2a8], 0
jmp 0x53b995
mov eax, dword [ebp - 0x2a8]
add eax, 1
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
cmp ecx, dword [ebp - 0x2b0]
jge 0x53bb4d
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 0x53ba00
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x53bf27
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.0054bed0
add esp, 8
lea eax, [ebp - 0x2a0]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x10208]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x53ba81
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x53bf27
mov dword [ebp - 0x2a4], 0xff
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push 0x5b8e74
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 0x53badf
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 0x53bf27
mov edi, 0x5b8e84
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.0054bed0
add esp, 8
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
jmp 0x53b986
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 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x53bbc5
xor eax, eax
jmp 0x53bf27
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 0x53bc10
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x53bf27
mov dword [ebp - 0x2a8], 0
jmp 0x53bc2b
mov eax, dword [ebp - 0x2a8]
add eax, 1
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
cmp ecx, dword [ebp - 0x2b0]
jge 0x53bde3
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 0x53bc96
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x53bf27
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.0054bed0
add esp, 8
lea eax, [ebp - 0x2a0]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x10208]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
je 0x53bd17
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x53bf27
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 0x53bd75
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 0x53bf27
mov edi, 0x5b8ec8
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.0054bed0
add esp, 8
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
jmp 0x53bc1c
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 0x53be18
mov ecx, dword [ebp - 0x2a8]
add ecx, 1
mov dword [ebp - 0x2a8], ecx
mov edx, dword [ebp - 0x2a8]
cmp edx, dword [ebp - 0x214]
jge 0x53bf21
push 0
push 0
push 3
push 0x5dd438
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 0x53be67
jmp 0x53be09
mov edx, dword [ebp - 0x2a8]
imul edx, edx, 0xff
lea eax, [ebp + edx - 0x10108]
mov edi, eax
mov edx, 0x5dd330
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 0x53bede
xor eax, eax
jmp 0x53bf27
push 0
push 0
mov dl, byte [ebp - 0x2fe]
push edx
mov eax, dword [ebp - 0x10c]
push eax
call fcn.0053a7f9
add esp, 0x10
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 0x53bf1c
mov eax, dword [ebp - 0x110]
jmp 0x53bf27
jmp 0x53be09
mov eax, dword [ebp - 0x110]
pop edi
pop esi
mov esp, ebp
pop ebp
ret