Function at 0x405c20
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 0x405c9e
test edi, edi
jne 0x405f29
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 0x405dde
nop word [eax + eax]
lea eax, [ebp - 0x20c]
push 0x418e80
push eax
call fcn.004083fd
add esp, 8
test eax, eax
jne 0x405d14
lea eax, [ebp - 0x20c]
push str.Supemium
push eax
call fcn.004083fd
add esp, 8
test eax, eax
je 0x405da0
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 0x405d3d
xor esi, esi
jmp 0x405da0
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 0x405d96
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 0x405da0
call edi
test esi, esi
jne 0x405f03
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 0x405ce0
test esi, esi
jne 0x405f03
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 0x405f03
lea eax, [ebp - 0x20c]
push 0x418e80
push eax
call fcn.004083fd
add esp, 8
test eax, eax
jne 0x405e45
lea eax, [ebp - 0x20c]
push str.Supemium
push eax
call fcn.004083fd
add esp, 8
test eax, eax
je 0x405ecd
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 0x405e6e
xor esi, esi
jmp 0x405ecd
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 0x405ec7
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 0x405ecd
call edi
test esi, esi
jne 0x405f03
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 0x405e11
cmp dword [ebp - 0x22c], 0
jne 0x405f14
push dword [ebp - 0x214]
call edi
cmp dword [ebp - 0x230], 0
jne 0x405f25
push dword [ebp - 0x218]
call edi
test esi, esi
jne 0x405f3c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004072f8
mov esp, ebp
pop ebp
ret
movzx eax, word [esi]
xor ecx, ecx
xor edx, edx
mov edi, eax
test ax, ax
je 0x405f66
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 0x405f50
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.004072f8
mov esp, ebp
pop ebp
ret