Function at 0x405c40
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 0x405cbe
test edi, edi
jne 0x405f49
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 0x405dfe
nop word [eax + eax]
lea eax, [ebp - 0x20c]
push 0x419e80
push eax
call fcn.0040854a
add esp, 8
test eax, eax
jne 0x405d34
lea eax, [ebp - 0x20c]
push str.Supemium
push eax
call fcn.0040854a
add esp, 8
test eax, eax
je 0x405dc0
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 0x405d5d
xor esi, esi
jmp 0x405dc0
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 0x405db6
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 0x405dc0
call edi
test esi, esi
jne 0x405f23
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 0x405d00
test esi, esi
jne 0x405f23
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 0x405f23
lea eax, [ebp - 0x20c]
push 0x419e80
push eax
call fcn.0040854a
add esp, 8
test eax, eax
jne 0x405e65
lea eax, [ebp - 0x20c]
push str.Supemium
push eax
call fcn.0040854a
add esp, 8
test eax, eax
je 0x405eed
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 0x405e8e
xor esi, esi
jmp 0x405eed
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 0x405ee7
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 0x405eed
call edi
test esi, esi
jne 0x405f23
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 0x405e31
cmp dword [ebp - 0x22c], 0
jne 0x405f34
push dword [ebp - 0x214]
call edi
cmp dword [ebp - 0x230], 0
jne 0x405f45
push dword [ebp - 0x218]
call edi
test esi, esi
jne 0x405f5c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004072ed
mov esp, ebp
pop ebp
ret
movzx eax, word [esi]
xor ecx, ecx
xor edx, edx
mov edi, eax
test ax, ax
je 0x405f86
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 0x405f70
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.004072ed
mov esp, ebp
pop ebp
ret