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

Disassembly:
push 0xffffffffffffffff
push 0x42bf71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 8]
xor ebx, ebx
push eax
push 0xf003f
push ebx
push str.HTTPSHELL
mov dword [esp + 0x23c], ebx
push 0x80000000
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a05d
lea ecx, [esp + 4]
mov dword [esp + 0x22c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
pop ebx
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
add esp, 0x22c
ret
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], bl
lea edx, [esp + 0x12c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x103
push ecx
push edx
stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x12c]
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0x238], 1
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
mov edx, dword [esp + 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
stosb byte es:[edi], al
cmp dword [edx - 8], ebx
jne 0x40a13d
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push 0x103
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, ebx
jne 0x40a1cb
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push 0xf003f
push ebx
push ebx
lea eax, [esp + 0x40]
push ebx
push eax
push ecx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40a1cb
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00409e60
mov ecx, dword [esp + 0x20]
add esp, 8
jmp 0x40a1c8
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edx, [esp + 0x28]
push 0x103
push edx
push ebx
push eax
xor esi, esi
call edi
cmp eax, ebx
jne 0x40a1cb
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x40a18b
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
inc esi
push 0x103
push eax
push esi
push ecx
call edi
cmp eax, ebx
je 0x40a15b
jmp 0x40a1cb
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push 0xf003f
push ebx
push ebx
lea eax, [esp + 0x40]
push ebx
push eax
push ecx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40a1cb
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00409e60
mov ecx, dword [esp + 0x20]
add esp, 8
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
call ebp
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ebx
pop edi
pop esi
mov ecx, dword [eax - 8]
pop ebp
cmp ecx, ebx
jne 0x40a220
lea ecx, [esp + 0x14]
mov byte [esp + 0x22c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x22c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
pop ebx
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
add esp, 0x22c
ret
push 0x5c
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, ebx
jge 0x40a23e
push 0x2f
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, ebx
jl 0x40a27a
mov ecx, dword [esp + 4]
lea edx, [esp + 0xc]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x230], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x22c], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 4]
push str.IEXPLORE.EXE
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete byte [esp + 0x13]
mov byte [esp + 0x22c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x22c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x224]
mov al, byte [esp + 0x13]
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret