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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030c
call fcn.0054c740
push esi
push edi
mov eax, dword [0x5ccf5c]
mov dword [ebp - 0x1030c], eax
mov cl, byte [0x5ccf60]
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 0x53d8df
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 0x53d92d
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 0x53d948
mov eax, dword [ebp - 0x2ac]
add eax, 1
mov dword [ebp - 0x2ac], eax
cmp dword [ebp - 0x214], 0
jne 0x53db21
mov ecx, dword [ebp - 0x2ac]
cmp ecx, dword [ebp - 0x2b4]
jge 0x53db21
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 0x53d9c0
mov ecx, dword [ebp - 0x2bc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x53df25
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.0054bea0
add esp, 8
push 0x5ccfbc
lea eax, [ebp - 0x1020c]
push eax
call fcn.0054bea0
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 0x53da55
mov eax, dword [ebp - 0x2bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x53df25
mov dword [ebp - 0x2a8], 0xff
lea ecx, [ebp - 0x2a8]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0
push 0
push 0x5ccfd0
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 0x53dab3
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 0x53df25
mov edi, 0x5ccfe0
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.0054bea0
add esp, 8
mov ecx, dword [ebp - 0x218]
add ecx, 1
mov dword [ebp - 0x218], ecx
jmp 0x53d939
cmp dword [ebp - 0x214], 0
jne 0x53db44
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 0x53dba5
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 0x53dbf3
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 0x53dc0e
mov eax, dword [ebp - 0x2ac]
add eax, 1
mov dword [ebp - 0x2ac], eax
cmp dword [ebp - 0x214], 0
jne 0x53dde7
mov ecx, dword [ebp - 0x2ac]
cmp ecx, dword [ebp - 0x2b4]
jge 0x53dde7
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 0x53dc86
mov ecx, dword [ebp - 0x2bc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x53df25
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.0054bea0
add esp, 8
push str.Device_Parameters
lea eax, [ebp - 0x1020c]
push eax
call fcn.0054bea0
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 0x53dd1b
mov eax, dword [ebp - 0x2bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x53df25
mov dword [ebp - 0x2a8], 0xff
lea ecx, [ebp - 0x2a8]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0
push 0
push 0x5cd05c
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 0x53dd79
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 0x53df25
mov edi, 0x5cd06c
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.0054bea0
add esp, 8
mov ecx, dword [ebp - 0x218]
add ecx, 1
mov dword [ebp - 0x218], ecx
jmp 0x53dbff
cmp dword [ebp - 0x214], 0
jne 0x53de0a
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 0x53de25
mov ecx, dword [ebp - 0x2ac]
add ecx, 1
mov dword [ebp - 0x2ac], ecx
mov edx, dword [ebp - 0x2ac]
cmp edx, dword [ebp - 0x218]
jge 0x53df20
push 0
push 0
push 3
push 0x686e68
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 0x53de74
jmp 0x53de16
mov edx, dword [ebp - 0x2ac]
imul edx, edx, 0xff
lea eax, [ebp + edx - 0x1010c]
mov edi, eax
mov edx, 0x686d64
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 0x53deeb
xor eax, eax
jmp 0x53df25
push 0x6858a0
push 0
mov dl, byte [ebp - 0x302]
push edx
mov eax, dword [ebp - 0x10c]
push eax
call fcn.0053cde3
add esp, 0x10
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x53de16
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret