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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fabe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x42c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
push 0x100
mov dword [ebp - 4], edi
call fcn.004f266a
add esp, 4
mov esi, eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], esi
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push closesocket
mov dword [ebp - 0x20], edi
mov byte [ebp - 0x238], 0
mov byte [ebp - 0x438], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x431b0c
mov dword [ebp - 0x24], edi
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
push 0
push 0
push 0
lea ecx, [ebp - 0x38]
push 0
push ecx
push esi
mov ebx, 0x80
push edx
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
mov dword [ebp - 0x34], eax
je 0x431af8
push esi
push str.CLSID
lea ecx, [ebp - 0x338]
push str._s_sInprocServer32
push ecx
call fcn.004f175f
mov ebx, edi
push esi
shl ebx, 4
sub ebx, edi
shl ebx, 4
sub ebx, edi
shl ebx, 2
call fcn.004fa6c0
push eax
lea edx, [ebx + 0xd0a174]
push str.HKCRCLSID_s
push edx
call fcn.004f175f
push esi
call fcn.004fa6c0
push eax
lea eax, [ebx + 0xd0a0d0]
push 0x50d39c
push eax
call fcn.004f175f
add esp, 0x30
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x338]
push ecx
push 0x20019
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x1c]
push ecx
push edx
push 0
push 0
push eax
call edi
test eax, eax
je 0x43198b
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x138]
push ecx
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push 0
push ecx
call edi
test eax, eax
jne 0x4319bd
lea edi, [ebp - 0x138]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x238]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
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]
mov esi, dword [ebp - 0x2c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
lea ecx, [ebp - 0x338]
push eax
push 0x50d39c
push ecx
call fcn.004f175f
add esp, 0xc
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x338]
push edx
push 0x20019
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x138]
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push esi
push ecx
call edi
test eax, eax
je 0x431a2c
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x138]
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push esi
push ecx
call edi
test eax, eax
jne 0x431a58
lea edi, [ebp - 0x138]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x438]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
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]
mov esi, dword [ebp - 0x2c]
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push esi
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebx + 0xd0a218]
push eax
push str.HKLM
push str._s_s_s
push ecx
call fcn.004f175f
lea edx, [ebp - 0x438]
lea eax, [ebp - 0x238]
push edx
push eax
lea ecx, [ebx + 0xd0a360]
push str._s___s_
push ecx
call fcn.004f175f
lea edx, [ebp - 0x238]
lea eax, [ebx + 0xd0a2bc]
push edx
push 0x50d39c
push eax
call fcn.004f175f
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x30
push ecx
call edi
mov edx, dword [ebp - 0x28]
push edx
call edi
mov eax, dword [ebp - 0x20]
inc eax
cmp eax, 0x100
mov dword [ebp - 0x20], eax
jle 0x431aed
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
mov ebx, 0x80
mov edx, dword [ebp - 0x24]
inc edx
cmp eax, 0x103
mov dword [ebp - 0x24], edx
jne 0x4318a1
jmp 0x431b11
mov ebx, 0x80
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x30]
mov eax, str.SOFTWAREMicrosoftInternet_ExplorerExtensions
push ecx
push 0x20019
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x431e88
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
push 0
push 0
push 0
lea edx, [ebp - 0x38]
push 0
push edx
push esi
push eax
push ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
mov dword [ebp - 0x34], eax
je 0x431e76
mov eax, str.SOFTWAREMicrosoftInternet_ExplorerExtensions
push esi
push eax
lea edx, [ebp - 0x338]
push str._s_s
push edx
call fcn.004f175f
add esp, 0x10
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x338]
push eax
push 0x20019
push 0
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x138]
push edx
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0
push str.clsid
push edx
call esi
test eax, eax
je 0x431c17
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
push ecx
push edx
push 0
push str.clsid
push eax
call esi
lea edi, [ebp - 0x138]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x238]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
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]
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x238]
lea eax, [ebp - 0x338]
push edx
push str.CLSID
push str._s_sInprocServer32
push eax
mov byte [ebp - 0x338], 0
call fcn.004f175f
mov eax, dword [ebp - 0x20]
mov ebx, edi
shl ebx, 4
sub ebx, eax
lea ecx, [ebp - 0x238]
shl ebx, 4
sub ebx, eax
push ecx
shl ebx, 2
call fcn.004fa6c0
push eax
lea edx, [ebx + 0xd0a174]
push str.HKCRCLSID_s
push edx
call fcn.004f175f
lea eax, [ebp - 0x238]
push eax
call fcn.004fa6c0
push eax
lea ecx, [ebx + 0xd0a0d0]
push 0x50d39c
push ecx
call fcn.004f175f
add esp, 0x30
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x338]
push edx
push 0x20019
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x138]
push ecx
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push 0
push ecx
mov byte [ebp - 0x238], 0
call esi
test eax, eax
je 0x431cfa
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x138]
push ecx
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push 0
push ecx
call esi
test eax, eax
jne 0x431d29
lea edi, [ebp - 0x138]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x238]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
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]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x2c]
mov eax, str.SOFTWAREMicrosoftInternet_ExplorerExtensions
push ecx
push eax
lea edx, [ebp - 0x338]
push str._s_s
push edx
call fcn.004f175f
add esp, 0x10
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x338]
push eax
push 0x20019
push 0
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x138]
push edx
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0
push 0
push edx
call esi
test eax, eax
je 0x431d9e
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x138]
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push 0
push ecx
call esi
test eax, eax
jne 0x431dc7
lea edi, [ebp - 0x138]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x438]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
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]
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004fa6c0
add esp, 4
push eax
mov eax, str.SOFTWAREMicrosoftInternet_ExplorerExtensions
push eax
call fcn.004fa6c0
add esp, 4
lea edx, [ebx + 0xd0a218]
push eax
push str.HKLM
push str._s_s_s
push edx
call fcn.004f175f
lea eax, [ebp - 0x438]
lea ecx, [ebp - 0x238]
push eax
push ecx
lea edx, [ebx + 0xd0a360]
push str._s___s_
push edx
call fcn.004f175f
lea eax, [ebp - 0x238]
lea ecx, [ebx + 0xd0a2bc]
push eax
push 0x50d39c
push ecx
call fcn.004f175f
mov edx, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x30
push edx
call esi
mov eax, dword [ebp - 0x28]
push eax
call esi
mov eax, dword [ebp - 0x20]
inc eax
cmp eax, 0xff
mov dword [ebp - 0x20], eax
jle 0x431e68
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x20]
mov ebx, 0x80
mov edx, dword [ebp - 0x24]
inc edx
cmp eax, 0x103
mov dword [ebp - 0x24], edx
jne 0x431b42
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0xe56dfc], edi
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret