Function at 0x404c78
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Persist via run registry key
Query or enumerate registry value
Set registry value
Terminate process

Disassembly:
mov eax, 0x4112fc
call fcn.00410db0
push ecx
mov eax, 0x1d30
call fcn.00410ef0
push ebx
push esi
xor ebx, ebx
push edi
cmp dword [0x41cd40], ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ebx
jne 0x404cf6
lea eax, [ebp - 0x1d40]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x404cf6
lea eax, [ebp - 0x1d40]
push str.idmmbc.dll
push eax
lea eax, [ebp - 0x1520]
push 0x41698c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x1520]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404cf6
mov dword [0x41de54], 1
push str.IDM0.tmp
push 0x41d424
lea eax, [ebp - 0x1b38]
push 0x4156e4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 1
push ebx
push ebx
push 3
lea eax, [ebp - 0x2c]
push 0x80000000
push eax
lea eax, [ebp - 0x1b38]
push eax
call fcn.00405959
add esp, 0x2c
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x404d80
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push dword [ebp - 0x2c]
push eax
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
je 0x404d80
lea eax, [edi + edi + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 0x14], eax
je 0x404d80
push edi
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
push ebx
push ebx
call esi
test eax, eax
jne 0x404d7b
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x14], ebx
jne 0x404db6
mov eax, dword [0x41cf28]
cmp eax, ebx
jne 0x404d8e
mov eax, 0x41cf2c
push 1
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040c425
add esp, 0xc
cmp dword [ebp - 0x1c], ebx
je 0x404dae
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
or eax, 0xffffffff
jmp 0x405683
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
inc dword [ebp - 0x24]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x4170d0
lea eax, [ebp - 0x50]
push dword [ebp - 0x24]
push 0x4170c8
push str._s_i_s
push eax
call esi
lea eax, [ebp - 0x50]
push 0x4170b0
push eax
lea eax, [ebp - 0x4e0]
push ebx
push eax
push dword [ebp - 0x14]
call fcn.0040c241
add esp, 0x28
cmp eax, ebx
jne 0x4055c8
push dword [ebp - 0x24]
lea eax, [ebp - 0xaf8]
push 0x415bdc
push 0x41d424
push str._s_s_i.tmp
push eax
call esi
mov edi, str.DESKTOPDIR
push edi
call sub.MSVCRT.dll_wcslen
push eax
lea eax, [ebp - 0x4e0]
push edi
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0x24
test eax, eax
jne 0x404eb5
lea eax, [ebp - 0x30]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404dbc
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x208
push eax
lea eax, [ebp - 0x1728]
push eax
push ebx
push ebx
push str.Desktop
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x30]
test eax, eax
je 0x404e92
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404dbc
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call sub.MSVCRT.dll_wcslen
pop ecx
lea eax, [ebp + eax*2 - 0x4e0]
push eax
lea eax, [ebp - 0x1728]
push eax
push 0x4156e4
jmp 0x404ec6
lea eax, [ebp - 0x4e0]
push eax
push 0x41d218
push 0x41698c
lea eax, [ebp - 0x258]
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x1930]
push dword [ebp - 0x24]
push str._LNK_i
push eax
call esi
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x1930]
push eax
lea eax, [ebp - 0x1110]
push ebx
push eax
push dword [ebp - 0x14]
call fcn.0040c241
add esp, 0x20
lea eax, [ebp - 0x1110]
push str.NULL
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x404feb
lea eax, [ebp - 0x258]
push eax
push ebx
push 0x180
push 0x400
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov edi, eax
lea eax, [ebp - 0x1110]
push str.PROG
push eax
xor esi, esi
call fcn.0040c298
pop ecx
cmp eax, ebx
pop ecx
je 0x404f56
push 0x17
pop esi
jmp 0x404f6f
lea eax, [ebp - 0x1110]
push str.DESK
push eax
call fcn.0040c298
pop ecx
cmp eax, ebx
pop ecx
je 0x404f6f
xor esi, esi
push esi
push edi
push 0x19a
push 0x400
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
lea eax, [ebp - 0x1110]
push 0x417030
push eax
call fcn.0040c298
pop ecx
cmp eax, ebx
pop ecx
jne 0x404faf
lea eax, [ebp - 0xd00]
push 0x416ce8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x404fd0
push 0x41702c
push str._N_
lea eax, [ebp - 0xd00]
push ebx
push eax
lea eax, [ebp - 0x1110]
push eax
call fcn.0040c241
add esp, 0x14
lea eax, [ebp - 0xd00]
push eax
push ebx
push 0x180
push 0x401
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
lea eax, [ebp - 0x50]
push str._SETUP_
push eax
lea eax, [ebp - 0x4e0]
push ebx
push eax
push dword [ebp - 0x14]
call fcn.0040c241
add esp, 0x14
cmp eax, ebx
jne 0x405054
lea eax, [ebp - 0x4e0]
push str._LNK
push eax
call fcn.0040c298
pop ecx
cmp eax, ebx
pop ecx
jne 0x405054
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x258]
mov edi, 0x41c720
push eax
push edi
call esi
lea eax, [ebp - 0x258]
push eax
push 0x41cb30
call esi
push 0x5c
push edi
call sub.MSVCRT.dll_wcsrchr
pop ecx
mov word [eax], bx
pop ecx
jmp 0x40505a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x50]
push str._RUN_
push eax
lea eax, [ebp - 0x4e0]
push ebx
push eax
push dword [ebp - 0x14]
call fcn.0040c241
add esp, 0x14
cmp eax, ebx
jne 0x4050aa
lea eax, [ebp - 0x4e0]
push str._LNK
push eax
call fcn.0040c298
pop ecx
cmp eax, ebx
pop ecx
jne 0x4050aa
lea eax, [ebp - 0x258]
push eax
push 0x41c928
call esi
test eax, eax
jne 0x4050aa
mov word [0x41c928], bx
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1318]
push eax
call esi
lea eax, [ebp - 0x1318]
push 0x5c
push eax
call sub.MSVCRT.dll_wcsrchr
pop ecx
cmp eax, ebx
pop ecx
je 0x405146
mov word [eax + 2], bx
lea eax, [ebp - 0x1318]
push eax
call fcn.00405d3b
cmp eax, ebx
pop ecx
je 0x405146
cmp dword [0x41cd3c], ebx
jne 0x405501
mov eax, dword [0x41cf38]
cmp eax, ebx
mov ecx, eax
jne 0x405103
mov ecx, 0x41cf3c
mov eax, dword [0x41cee8]
cmp eax, ebx
jne 0x405111
mov eax, 0x41ceec
push 0x34
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x405137
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [0x41cd3c], 1
jmp 0x405501
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x8f0]
push eax
call esi
lea eax, [ebp - 0x258]
push 0x5c
push eax
call sub.MSVCRT.dll_wcsrchr
pop ecx
cmp eax, ebx
pop ecx
je 0x40516f
add eax, 2
jmp 0x405175
lea eax, [ebp - 0x258]
push eax
push 0x401
push dword [0x41de68]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
lea eax, [ebp - 0x258]
push 0x5c
push eax
mov dword [ebp - 0x38], ebx
call sub.MSVCRT.dll_wcsrchr
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x4051ba
lea eax, [edi + 2]
push str.IDMan.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4051ba
mov dword [ebp - 0x38], 1
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x6e8]
push 0x416fec
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x6e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4051f7
lea eax, [ebp - 0x6e8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x6e8]
push str._s.old
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x6e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40522e
lea eax, [ebp - 0x6e8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp edi, ebx
lea esi, [ebp - 0x258]
je 0x40523b
lea esi, [edi + 2]
cmp dword [0x41de60], ebx
je 0x40528c
push str.64.dll
push esi
call sub.MSVCRT.dll_wcsstr
pop ecx
test eax, eax
pop ecx
jne 0x405264
push str.IDMIntegrator64.exe
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4052a4
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405501
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x405501
push str.AA.dll
push esi
call sub.MSVCRT.dll_wcsstr
pop ecx
test eax, eax
pop ecx
jne 0x405264
push str.IDMIntegratorAA.exe
jmp 0x405259
push 1
lea eax, [ebp - 0x258]
pop edi
push eax
mov esi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40530e
lea eax, [ebp - 0x298]
push 0x40
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.00404b29
add esp, 0xc
cmp eax, ebx
je 0x40530e
lea eax, [ebp - 0x2d8]
push 0x40
push eax
lea eax, [ebp - 0xaf8]
push eax
call fcn.00404b29
add esp, 0xc
cmp eax, ebx
je 0x40530e
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x298]
push eax
call sub.MSVCRT.dll__stricmp
pop ecx
test eax, eax
pop ecx
jne 0x40530e
xor esi, esi
push edi
push ebx
push edi
push 3
lea eax, [ebp - 0x28]
push 0x80000000
push eax
lea eax, [ebp - 0xaf8]
push eax
mov dword [ebp - 0x28], ebx
call fcn.00405959
add esp, 0x1c
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x4053ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x38], ebx
je 0x40536b
mov ecx, dword [0x41cdc8]
cmp ecx, ebx
jne 0x40534f
mov ecx, 0x41cdcc
push edi
push ecx
push eax
call fcn.0040c425
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x41cd3c], ebx
jne 0x405501
mov eax, dword [0x41cf38]
cmp eax, ebx
mov ecx, eax
jne 0x405387
mov ecx, 0x41cf3c
mov eax, dword [0x41cee8]
cmp eax, ebx
jne 0x405395
mov eax, 0x41ceec
push 0x34
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x4054fb
jmp 0x405121
push esi
push edi
push ebx
push 2
lea eax, [ebp - 0x28]
push 0xc0000000
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.00405959
add esp, 0x1c
cmp eax, ebx
mov dword [ebp - 0x34], eax
jne 0x405509
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp esi, ebx
je 0x405501
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x38], ebx
je 0x4054b0
cmp eax, 5
jne 0x405426
mov eax, dword [0x41cf38]
cmp eax, ebx
mov ecx, eax
jne 0x40540b
mov ecx, 0x41cf3c
mov eax, dword [0x41cde8]
cmp eax, ebx
jne 0x405419
mov eax, 0x41cdec
push 0x10
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x405440
mov ecx, dword [0x41cdc8]
cmp ecx, ebx
jne 0x405435
mov ecx, 0x41cdcc
push edi
push ecx
push eax
call fcn.0040c425
add esp, 0xc
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, 0x3f7
push ebx
push esi
push 0x111
push dword [ebp + 8]
call edi
push ebx
push esi
push 0x111
push dword [ebp + 8]
call edi
push ebx
push esi
push 0x111
push dword [ebp + 8]
call edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push esi
push dword [ebp + 8]
call edi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
push 1
push 0x3f0
push dword [ebp + 8]
call edi
push eax
call esi
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call esi
push dword [ebp - 0x14]
call esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitThread]
cmp dword [0x41cd3c], ebx
jne 0x405501
mov eax, dword [0x41cf38]
cmp eax, ebx
mov ecx, eax
jne 0x4054c8
mov ecx, 0x41cf3c
mov eax, dword [0x41cee8]
cmp eax, ebx
jne 0x4054d6
mov eax, 0x41ceec
push 0x34
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x4054fb
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call esi
push dword [ebp - 0x14]
call esi
jmp 0x40512a
mov dword [0x41cd3c], edi
mov byte [ebp - 4], bl
jmp 0x404dbc
mov edi, dword [ebp - 0x20]
push edi
push dword [ebp - 0x28]
push dword [ebp - 0x18]
push eax
call fcn.004056bf
add esp, 0x10
mov esi, 0x4150b0
lea eax, [ebp - 0x258]
push esi
push eax
call fcn.00406275
pop ecx
lea eax, [ebp - 0x8f0]
pop ecx
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x405557
lea eax, [ebp - 0x8f0]
push esi
push eax
call fcn.00406275
pop ecx
pop ecx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call esi
push dword [ebp - 0x34]
call esi
add edi, dword [ebp - 0x28]
xor edx, edx
push ebx
mov eax, edi
mov dword [ebp - 0x20], edi
div dword [0x41c700]
push eax
push 0x402
push 0x3ee
push dword [0x41de68]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x4055c0
mov dword [ebp - 4], ebx
jmp 0x404dbc
lea eax, [ebp - 0x20]
push eax
push 0xf003f
push ebx
push str.SoftwareInternet_Download_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40560d
lea eax, [ebp - 0x34]
push 4
push eax
push 4
push ebx
push str.InstallStatus
push dword [ebp - 0x20]
mov dword [ebp - 0x34], 3
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, str._REGISTRY_
push 0x4150b0
push esi
call fcn.00406275
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
add eax, eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, str.__REGISTRY_
push edi
push esi
push ebx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 8], eax
call fcn.0040c241
add esp, 0x14
mov esi, 0x4150b0
push esi
push dword [ebp + 8]
call fcn.00406275
pop ecx
pop ecx
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push esi
push edi
call fcn.00406275
pop ecx
pop ecx
push ebx
push dword [ebp - 0x14]
call fcn.0040addc
pop ecx
pop ecx
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret