Function at 0x40aea0
Capabilities:
Delete file
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x4a329d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
mov eax, dword [0x4cbba0]
xor eax, esp
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor edi, edi
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x20]
mov dword [esp + 0x170], eax
mov dword [esp + 0x1c], edi
xor esi, esi
call fcn.00447f10
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x4ad3b0
mov dword [esp + 0x180], edi
call dword [0x4ab700]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.AutoRun
mov byte [esp + 0x184], 1
call dword [0x4ab700]
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push 0x4ac6b4
mov byte [esp + 0x188], 2
call dword [0x4ab700]
lea eax, [esp + 0x30]
push eax
lea ecx, [ebp + 0x158]
mov byte [esp + 0x188], 0
call fcn.0042c6b0
lea ecx, [esp + 0x24]
mov byte [esp + 0x178], 3
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
test al, al
jne 0x40af7f
push 0x4add00
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x40af7f
mov dword [ebp + 0x508], 1
jmp 0x40af85
mov dword [ebp + 0x508], edi
mov edx, dword [str.PIPIStartSvr]
lea ecx, [esp + 0x28]
push ecx
push edx
call fcn.0043ac30
add esp, 8
test eax, eax
jne 0x40afd8
cmp dword [esp + 0x28], 2
mov dword [esp + 0x10], 1
je 0x40b03a
mov eax, dword [str.PIPIStartSvr]
push 2
push eax
mov esi, 1
call fcn.0043aad0
add esp, 8
test eax, eax
je 0x40b03a
push str.nt_service_change_start_type_error_n
call fcn.0049aab0
add esp, 4
jmp 0x40b03a
push str.PIPIStartSvr.exe
lea ecx, [esp + 0x14]
push 0x4cbdc0
push ecx
call fcn.004010a0
add esp, 0xc
mov ecx, eax
mov byte [esp + 0x178], 4
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov edx, dword [str.PIPIStartSvr]
push eax
push edx
call fcn.0043a9b0
add esp, 8
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [esp + 0x10]
inc bl
mov byte [esp + 0x178], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test bl, bl
mov esi, 1
mov dword [esp + 0x10], esi
jne 0x40b03a
mov dword [esp + 0x10], edi
mov eax, dword [ebp + 0x508]
cmp eax, edi
je 0x40b2a4
cmp esi, edi
je 0x40b2a0
lea eax, [esp + 0x2c]
push 0x4adcbc
push eax
call fcn.0049bf30
add esp, 8
lea ecx, [esp + 0x68]
push ecx
mov ebx, 1
mov ecx, eax
mov byte [esp + 0x17c], 5
mov dword [esp + 0x1c], ebx
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call fcn.0049bba0
add esp, 8
test eax, eax
jne 0x40b0d2
lea edx, [esp + 0x4c]
push 0x4adcbc
push edx
call fcn.0049bdf0
add esp, 8
lea ecx, [esp + 0x68]
push ecx
mov ebx, 3
mov ecx, eax
mov dword [esp + 0x17c], 6
mov dword [esp + 0x1c], ebx
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call fcn.0049bba0
add esp, 8
test eax, eax
mov byte [esp + 0x17], 1
je 0x40b0d7
mov byte [esp + 0x17], 0
test bl, 2
mov dword [esp + 0x178], 5
je 0x40b0f8
and ebx, 0xfffffffd
lea ecx, [esp + 0x4c]
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, 1
mov dword [esp + 0x178], 3
je 0x40b112
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [esp + 0x17]
test al, al
jne 0x40b148
mov ecx, 0x4cbdc0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, 0x4cbdc0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.MSVCR71.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x40b264
lea eax, [esp + 0x2c]
push 0x4adcbc
push eax
call fcn.0049bf30
mov esi, eax
push str.jfCacheMgr.exe
lea ecx, [esp + 0x24]
push 0x4cbdc0
push ecx
mov byte [esp + 0x18c], 7
call fcn.004010a0
add esp, 0x14
mov edi, eax
mov ecx, esi
mov byte [esp + 0x178], 8
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 0
push 0
mov ecx, 0x4cbdc0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str._autorun
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call fcn.0049bcd0
add esp, 0x18
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [esp + 0x18]
inc bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x178], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, bl
je 0x40b262
lea edx, [esp + 0x2c]
push 0x4adcbc
push edx
call fcn.0049bdf0
mov esi, eax
push str.jfCacheMgr.exe
lea eax, [esp + 0x24]
push 0x4cbdc0
push eax
mov byte [esp + 0x18c], 9
call fcn.004010a0
add esp, 0x14
mov edi, eax
mov ecx, esi
mov byte [esp + 0x178], 0xa
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 0
push 0
mov ecx, 0x4cbdc0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str._autorun
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call fcn.0049bcd0
add esp, 0x18
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x178], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor edi, edi
cmp dword [esp + 0x10], edi
je 0x40b31d
push 0xf003f
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea ecx, [esp + 0x24]
call fcn.00447d60
cmp eax, edi
je 0x40b44c
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov byte [esp + 0x178], 0xd
jmp 0x40b415
cmp eax, edi
jne 0x40b264
lea ecx, [esp + 0x2c]
push 0x4adcbc
push ecx
call fcn.0049bf30
add esp, 8
mov ecx, eax
mov byte [esp + 0x178], 0xb
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x178], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea edx, [esp + 0x2c]
push 0x4adcbc
push edx
call fcn.0049bdf0
add esp, 8
mov ecx, eax
mov byte [esp + 0x178], 0xc
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x178], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x40b264
cmp dword [0x4cca70], edi
je 0x40b455
cmp dword [ebp + 0x508], edi
je 0x40b3ec
push 0x104
lea ecx, [esp + 0x6c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xf003f
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea ecx, [esp + 0x24]
call fcn.00447d60
cmp eax, edi
je 0x40b455
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea edx, [esp + 0x10]
push edx
push str.jfproc
lea ecx, [esp + 0x24]
mov byte [esp + 0x180], 0xe
call fcn.00447e70
cmp eax, edi
je 0x40b39e
push edi
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find]
test eax, eax
jge 0x40b3e0
lea edi, [esp + 0x68]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b3a3
mov ecx, dword [str.__background]
mov edx, dword [0x4adc5c]
mov eax, dword [0x4adc60]
mov dword [edi], ecx
mov cl, byte [0x4adc64]
mov dword [edi + 4], edx
lea edx, [esp + 0x68]
mov dword [edi + 8], eax
push edx
mov byte [edi + 0xc], cl
push str.jfproc
lea ecx, [esp + 0x24]
call fcn.00447de0
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x40b455
push 0xf003f
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea ecx, [esp + 0x24]
call fcn.00447d60
cmp eax, edi
je 0x40b44c
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov byte [esp + 0x178], 0xf
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push str.jfproc
call fcn.00447e70
cmp eax, edi
je 0x40b43a
lea ecx, [esp + 0x1c]
push str.jfproc
call fcn.00447dc0
lea ecx, [esp + 0x10]
mov byte [esp + 0x178], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x1c]
call fcn.00447da0
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x178], 0xffffffff
call fcn.00447f30
mov ecx, dword [esp + 0x170]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x164]
pop ebp
pop ebx
xor ecx, esp
call fcn.004a17d1
add esp, 0x16c
ret