Function at 0x403f20
Capabilities:
Create directory
Create process on windows
Delete file
Delete registry key
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x409420
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x77c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov byte [esp + 0x1a], 0x34
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x7c]
add eax, 0x74
push str.update_
lea ecx, [esp + 0x38]
push eax
push ecx
call sub.MFC42.DLL_operator
mov edx, dword [esp + 0x34]
xor ebx, ebx
push ebx
push edx
mov dword [esp + 0x79c], ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x794], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x794], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x794], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
mov byte [esp + 0x794], 4
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0xbb
xor eax, eax
lea edi, [esp + 0x19c]
mov byte [esp + 0x794], 5
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x7c]
lea eax, [esp + 0x10]
push eax
call fcn.00407c80
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x798], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x794], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0x7c]
call fcn.00407bb0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x798], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x794], 5
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 0x7c]
lea edx, [esp + 0x10]
push edx
call fcn.00407c40
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x798], 8
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x794], 5
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 0x7c]
lea eax, [esp + 0x10]
push eax
call fcn.00407c60
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x798], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x794], 5
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 8], ebx
jne 0x4040ef
mov edx, dword [0x40fb58]
mov esi, 1
push edx
mov dword [0x40fb50], esi
mov dword [0x40fb4c], esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4046c6
push esi
mov ecx, ebp
call sub.MFC42.DLL_CDialog::EndDialog
jmp 0x4046c6
mov ecx, dword [esp + 0x28]
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str.HTTP
push ecx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 8
test eax, eax
jne 0x404142
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x19c]
push edx
push eax
mov dword [esp + 0x34c], ebx
call esi
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x29c]
push ecx
push edx
call esi
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2bc]
push eax
push ecx
jmp 0x40418b
mov edx, dword [esp + 0x28]
push 0x40f47c
push edx
call edi
add esp, 8
test eax, eax
jne 0x40418d
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x348]
push eax
push ecx
mov dword [esp + 0x34c], 1
call esi
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x448]
push edx
push eax
call esi
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x468]
push ecx
push edx
call esi
cmp word [ebp + 0x194], 2
jne 0x4041cd
mov eax, dword [ebp + 0x7c]
push 0x40f088
add eax, 0x74
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x798], 0xa
call sub.MFC42.DLL_CString::operator
mov byte [esp + 0x794], 5
lea ecx, [esp + 0x10]
jmp 0x40420a
mov edx, dword [ebp + 0x7c]
push 0x40f088
add edx, 0x74
lea eax, [esp + 0x14]
push edx
push eax
mov word [ebp + 0x194], 1
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x798], 0xb
call sub.MFC42.DLL_CString::operator
mov byte [esp + 0x794], 5
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push str.SoftwareAhnlabAutoupTemporarySettings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 0x14]
call fcn.00402a60
lea ecx, [esp + 0x1a]
push 2
push ecx
push str.UpdateProduct
push str.SoftwareAhnlabAutoupTemporarySettings
push 0x80000001
lea ecx, [esp + 0x28]
mov byte [esp + 0x7a8], 0xc
call fcn.00402d20
push 6
push str.UpdateFileType
push str.SoftwareAhnlabAutoupTemporarySettings
push 0x80000001
lea ecx, [esp + 0x24]
call fcn.00402bb0
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push edx
push str.Execute
push str.SoftwareAhnlabAutoupTemporarySettings
push 0x80000001
call fcn.00402c00
mov eax, dword [ebp + 0x70]
lea ecx, [esp + 0x2e0]
mov dword [esp + 0x2dc], eax
mov eax, dword [ebp + 0x78]
push eax
push ecx
call esi
mov eax, dword [ebp + 0x74]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov dword [esp + 0x300], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea edx, [esp + 0x98]
push 0x103
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x98]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
lea ecx, [esp + 0x488]
mov byte [eax], 0
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edx, [esp + 0x98]
push edx
call ebx
mov edi, str._ahnupgs.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push str.AhnUp_DoIt
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x40fb4c], 0
je 0x40439b
lea ecx, [esp + 0x19c]
lea edx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x38]
push ebp
push 0x404750
push edx
mov edx, dword [esp + 0x48]
push 2
push ecx
push 0
push edx
push 0
lea ecx, [esp + 0x3e]
push 6
push ecx
push 0
call eax
mov edi, eax
add esp, 0x30
mov dword [esp + 0x10], edi
jmp 0x40439f
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [esp + 0x488]
push edx
call ebx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp + 0x7c]
push str.update_
add eax, 0x74
lea ecx, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0x7a0], 0xd
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x798], 0xe
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x794], 0xd
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 0x80]
test ecx, ecx
je 0x40440b
push 2
call sub.MFC42.DLL_CDialog::EndDialog
cmp edi, 0xffffffff
je 0x404621
test edi, edi
je 0x404543
cmp edi, 3
je 0x40450e
push 2
push 0x40f45c
push str.SOFTWAREAHNLABIOUMFGS
push 0x80000001
lea ecx, [esp + 0x24]
call fcn.00402bb0
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea edx, [esp + 0x98]
push 0x103
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x98]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
lea ecx, [esp + 0x488]
mov byte [eax], 0
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0x98]
push edx
call ebx
mov edi, str._ahnupgs.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x98]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push str.AhnUp_GetErrorMessage
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4044f8
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x58c]
push 0x200
push ecx
push edx
push 0
call eax
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x488]
push eax
call ebx
jmp 0x40466a
push 3
push 0x40f45c
push str.SOFTWAREAHNLABIOUMFGS
push 0x80000001
lea ecx, [esp + 0x24]
call fcn.00402bb0
mov edx, dword [0x40fb58]
mov eax, 1
mov dword [0x40fb50], eax
mov dword [0x40fb4c], eax
push edx
jmp 0x404680
mov eax, dword [ebp + 0x6c]
test eax, eax
je 0x40460e
push 1
push 0x40f45c
push str.SOFTWAREAHNLABIOUMFGS
push 0x80000001
lea ecx, [esp + 0x24]
call fcn.00402bb0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x58]
mov dword [esp + 0x54], 0x44
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
push ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x50], eax
push str._sautoup.exe__ascr
push edx
mov byte [esp + 0x7a0], 0xf
mov dword [esp + 0x8c], 1
mov word [esp + 0x90], 7
mov dword [esp + 0x5c], eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x10]
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x44]
lea edx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push ecx
push 0
push 0
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x794], 0xd
call sub.MFC42.DLL_CString::CString
mov edx, dword [0x40fb58]
mov dword [0x40fb50], 1
push edx
jmp 0x404680
push 2
push 0x40f45c
push str.SOFTWAREAHNLABIOUMFGS
push 0x80000001
lea ecx, [esp + 0x24]
call fcn.00402bb0
mov ecx, dword [ebp + 0x64]
lea eax, [ebp + 0x64]
mov edx, dword [ecx - 8]
test edx, edx
je 0x40466a
push eax
lea edx, [esp + 0x34]
lea eax, [esp + 0x40]
push edx
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x40fb58]
mov eax, 1
mov dword [0x40fb50], eax
mov dword [0x40fb4c], eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp + 0x20]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4046a4
test byte [ebp + 0x28], 0x18
je 0x4046a4
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax + 0x7c]
lea ecx, [esp + 0x30]
mov byte [esp + 0x794], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x794], 5
call fcn.00402a90
lea ecx, [esp + 0x20]
mov byte [esp + 0x794], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x794], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x794], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x794], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x794], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov dword [esp + 0x794], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x78c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x788
ret