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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x214]
push esi
push edi
push eax
push 0x20019
xor esi, esi
mov dword [ebp - 0x214], 0
push esi
push str.SoftwareClientsStartMenuInternet
push 0x80000001
mov dword [ebp - 0x218], 0
call ebx
mov edi, eax
lea eax, [ebp - 0x218]
push eax
push 0x20019
push esi
push str.SoftwareClientsStartMenuInternet
push 0x80000002
mov dword [ebp - 0x22c], edi
call ebx
mov dword [ebp - 0x230], eax
test eax, eax
je 0x405d2e
test edi, edi
jne 0x405fb9
xor ebx, ebx
mov dword [ebp - 0x210], 0x104
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x405e6e
nop word [eax + eax]
lea eax, [ebp - 0x20c]
push 0x419e90
push eax
call fcn.00408709
add esp, 8
test eax, eax
jne 0x405da4
lea eax, [ebp - 0x20c]
push str.Supemium
push eax
call fcn.00408709
add esp, 8
test eax, eax
je 0x405e30
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405dcd
xor esi, esi
jmp 0x405e30
push 0x208
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x224], 0x208
lea eax, [ebp - 0x224]
push eax
push esi
push str.shellopencommand
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [ebp - 0x21c]
test eax, eax
je 0x405e26
call edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
jmp 0x405e30
call edi
test esi, esi
jne 0x405f93
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x104
push eax
lea eax, [ebp - 0x20c]
inc ebx
push eax
push ebx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x405d70
test esi, esi
jne 0x405f93
xor ebx, ebx
mov dword [ebp - 0x210], 0x104
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x405f93
lea eax, [ebp - 0x20c]
push 0x419e90
push eax
call fcn.00408709
add esp, 8
test eax, eax
jne 0x405ed5
lea eax, [ebp - 0x20c]
push str.Supemium
push eax
call fcn.00408709
add esp, 8
test eax, eax
je 0x405f5d
lea eax, [ebp - 0x220]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405efe
xor esi, esi
jmp 0x405f5d
push 0x208
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x228], 0x208
lea eax, [ebp - 0x228]
push eax
push esi
push str.shellopencommand
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [ebp - 0x220]
test eax, eax
je 0x405f57
call edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
jmp 0x405f5d
call edi
test esi, esi
jne 0x405f93
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x104
push eax
lea eax, [ebp - 0x20c]
inc ebx
push eax
push ebx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x405ea1
cmp dword [ebp - 0x22c], 0
jne 0x405fa4
push dword [ebp - 0x214]
call edi
cmp dword [ebp - 0x230], 0
jne 0x405fb5
push dword [ebp - 0x218]
call edi
test esi, esi
jne 0x405fcc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004074ad
mov esp, ebp
pop ebp
ret
movzx eax, word [esi]
xor ecx, ecx
xor edx, edx
mov edi, eax
test ax, ax
je 0x405ff6
nop word [eax + eax]
cmp di, 0x5c
mov eax, ecx
movzx edi, word [esi + ecx*2 + 2]
cmovne eax, edx
inc ecx
mov edx, eax
test di, di
jne 0x405fe0
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [esi + edx*2], ax
xor ecx, ebp
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.004074ad
mov esp, ebp
pop ebp
ret