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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [0x43e2c4]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0x280
push 0
push 0x440aa8
call fcn.00401f10
add esp, 0xc
push 0x280
push 0
push 0x440828
call fcn.00401f10
add esp, 0xc
mov dword [ebp - 4], 0x20119
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
push str.SOFTWAREClientsStartMenuInternet
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x413ac9
mov dword [ebp - 0xc], 0xffffffff
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x413da6
mov dword [ebp - 0x49c], 0
jmp 0x413ae4
mov eax, dword [ebp - 0x49c]
add eax, 1
mov dword [ebp - 0x49c], eax
mov dword [ebp - 0x2c], 0x118
push 0x230
push 0
lea ecx, [ebp - 0x260]
push ecx
call fcn.00401f10
add esp, 0xc
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp - 0x49c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x413b4f
cmp dword [ebp - 0x49c], 0
jne 0x413b4a
mov dword [ebp - 0xc], 0xfffffffe
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x413d95
push str.shellopencommand
lea edx, [ebp - 0x260]
push edx
push 0x4335f8
lea eax, [ebp - 0x498]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x264], 0
jmp 0x413b8b
mov ecx, dword [ebp - 0x264]
add ecx, 1
mov dword [ebp - 0x264], ecx
mov edx, dword [ebp - 0x264]
movzx eax, word [ebp + edx*2 - 0x260]
test eax, eax
je 0x413bd7
mov ecx, dword [ebp - 0x264]
movzx edx, word [ebp + ecx*2 - 0x260]
cmp edx, 0x2e
je 0x413bc3
mov eax, dword [ebp - 0x264]
movzx ecx, word [ebp + eax*2 - 0x260]
cmp ecx, 0x2d
jne 0x413bd5
xor edx, edx
mov eax, dword [ebp - 0x264]
mov word [ebp + eax*2 - 0x260], dx
jmp 0x413bd7
jmp 0x413b7c
mov dword [ebp - 0x24], 0x118
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp - 0x49c]
shl edx, 7
add edx, 0x440aa8
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
lea edx, [ebp - 0x498]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x413c35
mov dword [ebp - 0xc], 0xfffffffd
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x413d95
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0x433604
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x413c7e
mov dword [ebp - 0xc], 0xfffffffc
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x413d95
lea edx, [ebp - 0x260]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x264], 0
jmp 0x413ca2
mov eax, dword [ebp - 0x264]
add eax, 1
mov dword [ebp - 0x264], eax
mov ecx, dword [ebp - 0x264]
movzx edx, word [ebp + ecx*2 - 0x260]
test edx, edx
je 0x413cd9
mov eax, dword [ebp - 0x264]
movzx ecx, word [ebp + eax*2 - 0x260]
cmp ecx, 0x5c
jne 0x413cd7
mov edx, dword [ebp - 0x264]
lea eax, [ebp + edx*2 - 0x25e]
mov dword [ebp - 0x1c], eax
jmp 0x413c93
mov dword [ebp - 0x264], 0
jmp 0x413cf4
mov ecx, dword [ebp - 0x264]
add ecx, 1
mov dword [ebp - 0x264], ecx
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + edx*2]
test ecx, ecx
je 0x413d6c
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x41
jl 0x413d46
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x5a
jg 0x413d46
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + edx*2]
add ecx, 0x20
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x1c]
mov word [eax + edx*2], cx
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + ecx*2]
cmp eax, 0x22
jne 0x413d67
xor ecx, ecx
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x1c]
mov word [eax + edx*2], cx
jmp 0x413ce5
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x49c]
shl edx, 7
add edx, 0x440828
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x413ad5
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x413da6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.00401ef4
mov esp, ebp
pop ebp
ret