joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020f0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x22c
push 0
call dword [sym.imp.MSVCR71.dll__time64]
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 0xc], edx
call dword [sym.imp.MSVCR71.dll__localtime64]
add esp, 8
test eax, eax
je 0x402129
push esi
push edi
mov ecx, 9
mov esi, eax
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov ecx, dword [esp + 0x230]
push ecx
lea edx, [esp + 0x30]
push str.SoftwareTTKN_sAutoUpdate
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 2
push 0x24
lea eax, [esp + 0x10]
push eax
push 3
push str.LastDate
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueA]
add esp, 0x22c
ret

Function at 0x402e80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40ced9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [0x40e258]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x405a50
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d138
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x470
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
call sub.MFC71.DLL_CFile::CFile
mov eax, dword [ebp + 0xc]
push ebx
push 0x20
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC71.DLL_CFile::Open
cmp eax, ebx
jne 0x405ab6
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.004094c2
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x78], 0x67452301
mov dword [ebp - 0x74], 0xefcdab89
mov dword [ebp - 0x70], 0x98badcfe
mov dword [ebp - 0x6c], 0x10325476
jmp 0x405ae0
push 0x400
lea ecx, [ebp - 0x47c]
push ecx
lea ecx, [ebp - 0x20]
call sub.MFC71.DLL_CFile::Read
mov esi, eax
cmp esi, ebx
jbe 0x405b0e
push esi
lea edx, [ebp - 0x47c]
push edx
lea eax, [ebp - 0x78]
push eax
call fcn.004058a0
add esp, 0xc
cmp esi, 0x400
jae 0x405ae0
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x78]
push ecx
push edx
call fcn.00405960
add esp, 8
lea ecx, [ebp - 0x20]
call sub.MFC71.DLL_CFile::Close
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.004094c2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405d00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebp, ebp
cmp eax, ebp
push edi
mov dword [esp + 0xc], ebp
je 0x405d25
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
call sub.MFC71.DLL_AfxGetModuleState
mov edx, dword [esp + 0x18]
movzx ecx, word [esp + 0x14]
mov eax, dword [eax + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebp
jne 0x405d4e
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8
push ebx
call sub.MFC71.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, ebp
je 0x405df0
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x405df0
call sub.MFC71.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push ebx
mov ecx, esi
call fcn.00405b80
test eax, eax
je 0x405d9b
mov dword [esp + 0x10], 1
mov eax, dword [esi + 4]
cmp eax, ebp
mov dword [esi + 0xc], edi
je 0x405dea
mov edx, dword [eax]
lea edi, [esi + 8]
push edi
push eax
call dword [edx + 0x1c]
mov eax, dword [esi + 4]
mov ecx, dword [eax]
add esi, 0x10
push esi
push eax
call dword [ecx + 0x18]
mov edx, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x9ec
push 0x60
push edx
call ebx
push 0x9ec
mov dword [edi], eax
mov eax, dword [esi]
push 0x60
push eax
call ebx
pop ebx
pop edi
mov dword [esi], eax
mov eax, dword [esp + 8]
pop esi
pop ebp
pop ecx
ret 8
mov dword [esi + 8], ebp
mov dword [esi + 0x10], ebp
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8
Function at 0x407050
Capabilities:
Get common file path
Get program files directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push str._WindowsPath
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CompareNoCase]
test eax, eax
mov ecx, esi
jne 0x40708d
push 0x104
push 0x104
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer]
pop esi
ret 4
push str._SystemPath
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CompareNoCase]
test eax, eax
mov ecx, esi
jne 0x4070c3
push 0x104
push 0x104
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xffffffffffffffff
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer]
pop esi
ret 4
push str._PersonalPath
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CompareNoCase]
test eax, eax
mov ecx, esi
jne 0x4070f9
push eax
push 5
push 0x104
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0xffffffffffffffff
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer]
pop esi
ret 4
push str._ProgramPath
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CompareNoCase]
test eax, eax
mov ecx, esi
jne 0x40712f
push eax
push 0x26
push 0x104
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0xffffffffffffffff
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer]
pop esi
ret 4
push 0x413350
call dword [0x40e230]
push 0xffffffffffffffff
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer]
pop esi
ret 4
Function at 0x407150
Capabilities:
Delete file
Get common file path
Get file size
Move file

Disassembly:
sub esp, 0x520
push ebx
push ebp
push esi
mov esi, dword [esp + 0x534]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
push 0
push esi
call edi
mov ebx, dword [esp + 0x534]
push 4
push esi
push ebx
call edi
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x407325
test esi, esi
jne 0x407192
mov esi, str.NULL
push ebx
push esi
lea eax, [esp + 0x138]
push str._hs_hs_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x40f228]
mov ecx, dword [str._Rename__r_n]
add esp, 0x10
mov edi, eax
mov ax, word [0x40f22c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov cl, byte [0x40f22e]
push 0x104
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x30], edi
mov word [esp + 0x24], ax
mov byte [esp + 0x26], cl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.WinInit.Ini
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x8000080
push 4
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x24], esi
jne 0x407230
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x520
ret 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov ebx, eax
lea edx, [ebx + edi + 0xa]
push edx
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esp + 0x20], eax
je 0x40730b
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
je 0x4072fc
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.MSVCR71.dll_strstr]
add esp, 8
test eax, eax
jne 0x4072a4
lea ecx, [esp + 0x14]
push ecx
lea edx, [ebx + ebp]
push 0x40f210
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add ebx, eax
mov eax, ebx
jmp 0x4072c9
push 0xa
push eax
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
inc esi
mov eax, ebp
sub eax, esi
add eax, ebx
push eax
lea ecx, [esi + edi]
push esi
push ecx
call dword [sym.imp.MSVCR71.dll_memmove]
add esp, 0x14
sub esi, ebp
mov eax, esi
mov ecx, edi
mov edx, ecx
shr ecx, 2
lea edi, [eax + ebp]
lea esi, [esp + 0x130]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
add ebx, eax
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x10]
push 0
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x520
ret 8
Function at 0x407340
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x11c]
push ecx
mov word [esp + 0x14], 0x5c
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40737d
lea edx, [esp + 0x118]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov ebx, dword [sym.imp.MSVCR71.dll__mbstok]
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x11c]
push ecx
call ebx
add esp, 8
test eax, eax
je 0x40743d
lea ebx, [ebx]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4073b2
lea edi, [esp + 0x10]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4073c0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4073e0
mov dx, word [0x40f244]
lea eax, [esp + 0x10]
mov word [edi], dx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407400
sub eax, edx
cmp eax, 3
jbe 0x407429
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x407429
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0xc]
push edx
push 0
call ebx
add esp, 8
test eax, eax
jne 0x4073b0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407520
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x104
push str.Regsvr
push eax
call dword [sym.imp.MSVCR71.dll__mbsicmp]
mov ecx, dword [esp + 0x114]
add esp, 8
test eax, eax
lea edx, [esp]
jne 0x407559
push ecx
push str.REGSVR32.EXE__s___s_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x407571
mov eax, dword [esp + 0x114]
push eax
push ecx
push str.__s___s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [esp + 0x118]
test eax, eax
jne 0x407597
push 0
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, 1
add esp, 0x104
ret 0x14
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0x10c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Append]
mov eax, 1
add esp, 0x104
ret 0x14
Function at 0x4076a0
Capabilities:
Check http status code
Send data
Send http request

Disassembly:
sub esp, 0x28
mov eax, dword [0x4120d0]
mov edx, dword [esp + 0x2c]
push esi
push edi
xor edi, edi
push edi
push eax
mov esi, ecx
mov eax, dword [esi + 0x28]
lea ecx, [esp + 0x10]
push ecx
push edi
push edi
push edx
push edi
push eax
mov dword [esp + 0x28], 0x40f270
mov dword [esp + 0x2c], edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, edi
mov dword [esi + 0x2c], eax
je 0x407726
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x407726
mov eax, dword [esi + 0x2c]
push edi
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x13
push eax
mov dword [esp + 0x48], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x407726
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.MSVCR71.dll_atol]
add esp, 4
cmp eax, 0xc8
mov eax, 1
je 0x407728
mov eax, edi
pop edi
pop esi
add esp, 0x28
ret 4

Function at 0x4077f0
Capabilities:
Persist via run registry key
Set registry value
Write file on windows

Disassembly:
sub esp, 0x20c
push esi
mov ecx, 0x413350
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.reg.cmd
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4078c0
push edi
mov edi, dword [esp + 0x218]
push 0
lea eax, [esp + 0xc]
push eax
mov ecx, edi
mov dword [esp + 0x10], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x114]
push 0x40f2ac
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 2
push eax
lea ecx, [esp + 0x118]
push ecx
push 1
push 0x40f2a8
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
call dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueA]
pop edi
pop esi
add esp, 0x20c
ret 4
Function at 0x407be0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x40d2dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0xffffffffffffffff
lea edi, [esi + 0x6c]
push ebx
mov ecx, edi
mov dword [esp + 0x134], ebx
call sub.MFC71.DLL_CPtrArray::SetSize
mov eax, dword [esi + 0x5c]
neg eax
sbb eax, eax
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x407dbe
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea esp, [esp]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esi + 0x50]
call sub.MFC71.DLL_CMapStringToPtr::GetNextAssoc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x407d37
lea ecx, [eax + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x28]
push eax
call ebx
mov ecx, dword [esp + 0x10]
add ecx, 4
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x28]
push ecx
call ebp
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x407d1e
mov ecx, dword [esp + 0x10]
add ecx, 8
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov ecx, dword [esp + 0x10]
push eax
add ecx, 0x14
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00406ed0
test eax, eax
jne 0x407d37
mov ecx, dword [esp + 0x10]
push str.autoupgrade.exe
add ecx, 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CompareNoCase]
test eax, eax
jne 0x407cf9
cmp dword [esi], 0
jne 0x407d37
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
jmp 0x407d37
mov ecx, dword [esp + 0x10]
push str.autoupgrade.ini
add ecx, 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CompareNoCase]
test eax, eax
jne 0x407d1e
cmp dword [esi], 0
jne 0x407d37
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], edx
jmp 0x407d37
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x1c]
add dword [esi + 0x80], ecx
mov edx, dword [edi + 8]
push eax
mov ecx, edi
push edx
call sub.MFC71.DLL_CPtrArray::SetAtGrow
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x407c50
mov eax, dword [esp + 0x14]
test eax, eax
pop ebp
je 0x407da4
mov dword [esp + 0xc], eax
mov dword [esi + 0x84], 1
test eax, eax
je 0x407d82
mov eax, dword [eax + 0x1c]
push 0xffffffffffffffff
push 0
mov ecx, edi
mov dword [esi + 0x80], eax
call sub.MFC71.DLL_CPtrArray::SetSize
mov ecx, dword [esp + 0xc]
mov edx, dword [edi + 8]
push ecx
push edx
mov ecx, edi
call sub.MFC71.DLL_CPtrArray::SetAtGrow
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x407dbc
mov dword [esi + 0x88], 1
mov dword [esp + 0xc], eax
jmp 0x407d5a
xor ebx, ebx
mov dword [esp + 0xc], ebx
jmp 0x407d82
Function at 0x408f60
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 4
mov esi, ecx
push esi
push 0x408c00
push 0
push 0
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [esi + 0x20], eax
pop esi
jne 0x408f88
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop ecx
ret

Function at 0x408fa0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push edi
lea eax, [esp + 0xc]
push eax
push ebx
mov ebp, ecx
mov dword [esp + 0x14], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x408fce
pop edi
pop ebp
pop ebx
add esp, 8
ret 0x14
push esi
push edi
call sub.MFC71.DLL_operator_new
mov esi, eax
add esp, 4
test esi, esi
je 0x408ff8
mov ecx, dword [esp + 0x10]
push esi
push edi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x409004
push esi
call sub.MFC71.DLL_operator_delete
add esp, 4
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x14
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
push 0x40f244
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
push esi
je 0x408ff0
mov eax, dword [esp + 0x20]
movzx ecx, word [eax + 0xa]
mov edx, dword [esp + 0x28]
mov dword [edx], ecx
movzx ecx, word [eax + 8]
mov edx, dword [esp + 0x2c]
mov dword [edx], ecx
movzx ecx, word [eax + 0xe]
mov edx, dword [esp + 0x30]
mov dword [edx], ecx
movzx eax, word [eax + 0xc]
mov dword [ebp + 0x1c], eax
call sub.MFC71.DLL_operator_delete
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0x14
Function at 0x40986c
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x40f440
call fcn.00409a6c
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4098ac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4098ac
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4098c4
cmp eax, 0x20b
je 0x4098b1
mov dword [ebp - 0x1c], ebx
jmp 0x4098d8
cmp dword [ecx + 0x84], 0xe
jbe 0x4098ac
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x4098d2
cmp dword [ecx + 0x74], 0xe
jbe 0x4098ac
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4133d0], 0xffffffff
or dword [0x4133d4], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x413388]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x413384]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4133cc], eax
call fcn.00409b38
call fcn.00409bd8
cmp dword [0x4120e4], ebx
jne 0x409938
push fcn.00409bd8
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00409bc6
push 0x41202c
push 0x412028
call sub.MSVCR71.dll__initterm
push 0x409b7c
call fcn.00409636
mov eax, dword [0x413380]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x41337c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x40998c
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x412024
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x409a0a
cmp al, bl
je 0x4099b6
cmp dword [ebp - 0x20], ebx
jne 0x409a0a
mov al, byte [esi]
cmp al, bl
je 0x4099c6
cmp al, 0x20
ja 0x4099c6
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4099b6
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x4099e2
movzx eax, word [ebp - 0x54]
jmp 0x4099e5
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.0040cb38
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x409a02
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x409a5f
cmp al, 0x22
jne 0x409a19
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x409a2c
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x4099a4
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00409aa7
ret