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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10308
call fcn.004ae230
push esi
push edi
mov eax, dword [0x52a24c]
mov dword [ebp - 0x10308], eax
mov cl, byte [0x52a250]
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 0x49cee1
xor eax, eax
jmp 0x49d4d7
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 0x49cf2c
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x49d4d7
mov dword [ebp - 0x2a8], 0
jmp 0x49cf47
mov eax, dword [ebp - 0x2a8]
add eax, 1
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
cmp ecx, dword [ebp - 0x2b0]
jae 0x49d0ff
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 0x49cfb2
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x49d4d7
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.004ade40
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 0x49d033
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x49d4d7
mov dword [ebp - 0x2a4], 0xff
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push 0x52a27c
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 0x49d091
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 0x49d4d7
mov edi, 0x52a28c
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.004ade40
add esp, 8
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
jmp 0x49cf38
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 0x49d177
xor eax, eax
jmp 0x49d4d7
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 0x49d1c2
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x49d4d7
mov dword [ebp - 0x2a8], 0
jmp 0x49d1dd
mov eax, dword [ebp - 0x2a8]
add eax, 1
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
cmp ecx, dword [ebp - 0x2b0]
jae 0x49d395
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 0x49d248
mov ecx, dword [ebp - 0x2b8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x49d4d7
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.004ade40
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 0x49d2c9
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x49d4d7
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 0x49d327
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 0x49d4d7
mov edi, 0x52a2d0
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.004ade40
add esp, 8
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
jmp 0x49d1ce
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 0x49d3ca
mov ecx, dword [ebp - 0x2a8]
add ecx, 1
mov dword [ebp - 0x2a8], ecx
mov edx, dword [ebp - 0x2a8]
cmp edx, dword [ebp - 0x214]
jae 0x49d4d1
push 0
push 0
push 3
push 0x52fd58
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 0x49d419
jmp 0x49d3bb
mov edx, dword [ebp - 0x2a8]
imul edx, edx, 0xff
lea eax, [ebp + edx - 0x10108]
mov edi, eax
mov edx, 0x52fb48
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 0x49d490
xor eax, eax
jmp 0x49d4d7
push 0
mov dl, byte [ebp - 0x2fe]
push edx
mov eax, dword [ebp - 0x10c]
push eax
call fcn.0049be22
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 0x49d4cc
mov eax, dword [ebp - 0x110]
jmp 0x49d4d7
jmp 0x49d3bb
mov eax, dword [ebp - 0x110]
pop edi
pop esi
mov esp, ebp
pop ebp
ret