Function at 0x40334e
Capabilities:
Move file
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x42100f
call fcn.00420700
sub esp, 0x54
test byte [0x42d0b0], 1
mov eax, dword [ebp + 8]
jne 0x403373
or byte [0x42d0b0], 1
mov dword [0x42d1a0], eax
push ebx
lea ecx, [ebp + 8]
push esi
push ecx
push 1
xor ebx, ebx
pop esi
mov dword [ebp - 0x14], ebx
push esi
push ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40359d
push ebx
lea eax, [ebp + 0xc]
push ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], ebx
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
mov dword [ebp + 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40359d
inc dword [ebp - 0x10]
mov eax, dword [ebp + 8]
inc dword [ebp + 0xc]
push edi
push dword [ebp - 0x10]
mov dword [0x42d1a0], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
pop ecx
push dword [ebp + 0xc]
push ebx
push edi
call sub.MSVCRT.dll_memset
push dword [ebp - 0x10]
push ebx
push dword [ebp - 0x18]
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x10]
add esp, 0x18
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push edi
push eax
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x403583
push dword [ebp + 0xc]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push edi
call sub.MSVCRT.dll_strlen
push str..exe
push edi
mov dword [ebp - 0x30], eax
call fcn.004032e5
add esp, 0x10
mov esi, eax
mov al, byte [ebp + 0xb]
lea ecx, [ebp - 0x50]
push ebx
mov byte [ebp - 0x50], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push edi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
lea ecx, [ebp - 0x50]
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_char_const___unsigned_int_]
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 ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push dword [eax]
lea eax, [ebp - 0x50]
push ebx
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_]
push esi
push 1
push edi
call fcn.0040319e
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov al, byte [ebp + 0xb]
lea ecx, [ebp - 0x40]
push ebx
mov byte [ebp - 0x40], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea ecx, [ebp - 0x40]
push dword [ebp - 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__::assign_char_const___unsigned_int_]
lea eax, [ebp - 0x40]
push str.1.exe
push eax
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 1
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
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 [ebp - 4], 2
push dword [ecx]
lea ecx, [ebp - 0x40]
push ebx
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 ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push dword [ecx]
mov ecx, dword [ebp + 0x14]
push ebx
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_]
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
add esi, 4
cmp dword [ebp - 0x30], esi
je 0x403548
inc dword [ebp - 0x14]
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x4033e9
mov ecx, dword [ebp - 0x3c]
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp ecx, ebx
jne 0x403556
mov ecx, eax
cmp dword [ebp - 0x4c], ebx
je 0x40355e
mov eax, dword [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret