Function at 0x1001ec10
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100840e8
push eax
mov dword fs:[0], esp
sub esp, 0x638
mov edx, 0x100
xor eax, eax
push edi
mov ecx, edx
lea edi, [esp + 0x13c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x64c]
test edi, edi
je 0x1001ef49
or ecx, 0xffffffff
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea ebx, [esp + 0x144]
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
mov dword [esp + 0x2c], edx
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 0x23]
mov dword [esp + 0x30], edx
mov byte [esp + 0x10], cl
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edx, [esp + 0x20]
mov dword [esp + 0x64c], 0
push edx
push 0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1001eee0
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
push 0xf003f
push 0
push str.htmlfile_shellopencommand
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001eed2
lea edx, [esp + 0x2c]
push ebp
lea eax, [esp + 0x48]
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x38]
push 0
lea eax, [esp + 0x558]
push edx
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1001ed47
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x48]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov byte [eax + ebp], 0
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edi, 0x1009c28c
xor eax, eax
mov edx, dword [ecx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x1009c28c
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_last_of_char_const___unsigned_int__unsigned_int_const]
test eax, eax
jl 0x1001edd1
inc eax
lea edx, [esp + 0x38]
push eax
push 0
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x650], 1
mov edx, dword [ecx]
lea ecx, [esp + 0x10]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x650], 0
test eax, eax
je 0x1001edd1
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1001edc8
cmp al, 0xff
je 0x1001edc8
dec al
mov byte [ecx], al
jmp 0x1001edd1
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, 0x10099618
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ebx, dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, esi
ja 0x1001edfb
call ebx
test esi, esi
jbe 0x1001ee43
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebp, [edx + esi]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1001ee43
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, esi
mov esi, 0x10099618
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov byte [ecx + ebp], 0
lea edi, [esp + 0x148]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
repne scasb al, byte es:[edi]
mov eax, dword [edx]
mov edx, dword [esp + 0x18]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x1001ee6a
call ebx
test esi, esi
jbe 0x1001eeb4
mov ecx, dword [esp + 0x18]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x14]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1001eeb4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
lea esi, [esp + 0x148]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov byte [eax + ebp], 0
push 1
push 0
lea ecx, [esp + 0x150]
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebp
jmp 0x1001eefb
push 5
lea edx, [esp + 0x148]
push 0
push edx
jmp 0x1001eeec
push 5
lea eax, [esp + 0x148]
push 0
push eax
push str.iexplore.exe
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
mov ecx, dword [esp + 0x10]
pop esi
test ecx, ecx
pop ebx
je 0x1001ef49
mov al, byte [ecx - 1]
test al, al
je 0x1001ef3f
cmp al, 0xff
je 0x1001ef3f
dec al
pop edi
mov byte [ecx - 1], al
mov ecx, dword [esp + 0x638]
mov dword fs:[0], ecx
add esp, 0x644
ret
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x63c]
pop edi
mov dword fs:[0], ecx
add esp, 0x644
ret