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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
push ebx
push esi
lea eax, [ebp - 0x28]
push edi
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftShared_ToolsAddin_Designer
mov dword [ebp - 0x48], ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x24d93cfc
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x24d93cfc
cmp dword [ebp - 0x3c], ebx
mov dword [ebp - 0x10], ebx
jle 0x24d93cf0
push ebx
push ebx
push ebx
lea eax, [ebp - 0x54]
push ebx
push eax
lea eax, [ebp - 0xd4]
mov dword [ebp - 0x54], pe_nt_image_headers32
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [ebp - 8]
push eax
push 0x20019
lea eax, [ebp - 0xd4]
push ebx
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x24d93ce1
lea eax, [ebp - 0xd4]
push 1
push eax
call fcn.24d994d9
pop ecx
mov esi, eax
pop ecx
push 0x14
call fcn.24d99498
mov edi, eax
xor eax, eax
mov dword [ebp - 0x30], edi
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
call fcn.24d9368c
pop ecx
mov edi, eax
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x54]
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0xd4]
push eax
push esi
push edi
call fcn.24d935e1
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x24d93ce1
lea eax, [ebp - 0xd4]
push eax
mov eax, dword [ebp - 0x48]
push dword [ebp - 0x10]
push 0x14a
push dword [eax + 0xf4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x24d93ce1
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x24d93ce1
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
jle 0x24d93cd8
jmp 0x24d93a49
mov esi, dword [ebp - 0x30]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x40]
push ebx
push eax
lea eax, [ebp - 0x1d4]
mov dword [ebp - 0x40], pe_nt_image_headers32
push eax
mov dword [ebp - 0x50], 0x100
push dword [ebp - 0x20]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [ebp - 0x18]
push eax
push 0x20019
lea eax, [ebp - 0x1d4]
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x24d93cc9
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2d4]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x24d93cc9
cmp dword [esi], ebx
je 0x24d93ae1
push 0x14
call fcn.24d99498
mov esi, eax
xor eax, eax
mov edi, esi
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], esi
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x10], ecx
mov dword [eax + 0x10], esi
jmp 0x24d93ae4
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x40]
inc eax
push eax
push 8
push dword [0x24d9fcc0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
cmp edx, ebx
mov dword [esi], edx
je 0x24d93b25
lea edi, [ebp - 0x1d4]
or ecx, 0xffffffff
xor eax, eax
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 - 0x14]
mov eax, dword [ebp - 0x50]
inc eax
push eax
push 8
push dword [0x24d9fcc0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
cmp edx, ebx
mov dword [esi + 4], edx
je 0x24d93b67
lea edi, [ebp - 0x2d4]
or ecx, 0xffffffff
xor eax, eax
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 - 0x14]
push 0xc
call fcn.24d99498
mov edi, eax
xor eax, eax
mov dword [esi + 8], edi
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20019
push ebx
push str.Options
push dword [ebp - 0x18]
call edi
cmp eax, ebx
jne 0x24d93bc1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [esi + 0xc]
push eax
push ebx
push ebx
push str.CommandLine
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x24d93bc4
mov dword [esi + 0xc], ebx
lea eax, [ebp - 0x24]
push eax
push 0x20019
push ebx
push str.LoadBehaviors
push dword [ebp - 0x18]
call edi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x24d93cc9
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 4
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [ebp - 0x154]
push eax
mov dword [ebp - 0x1c], pe_nt_image_headers32
mov dword [ebp - 0xc], 1
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x24d93cc0
mov eax, dword [esi + 8]
cmp dword [eax], ebx
je 0x24d93c48
push 0xc
call fcn.24d99498
pop ecx
mov ecx, eax
xor eax, eax
mov edi, ecx
mov dword [ebp - 0x38], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov dword [esi + 8], ecx
jmp 0x24d93c4b
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push 8
push dword [0x24d9fcc0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov eax, dword [ebp - 0x38]
cmp edx, ebx
mov dword [eax], edx
je 0x24d93c8f
lea edi, [ebp - 0x154]
or ecx, 0xffffffff
xor eax, eax
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 - 0x14]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x44]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x44]
inc dword [ebp - 0xc]
push ecx
push ebx
lea ecx, [ebp - 0x1c]
push ebx
push ecx
lea ecx, [ebp - 0x154]
push ecx
mov dword [ebp - 0x1c], pe_nt_image_headers32
push eax
jmp 0x24d93c0e
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x2c]
jl 0x24d93a46
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x3c]
jl 0x24d9394d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], ebx
je 0x24d93d0a
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret