joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402017
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
mov edi, ecx
mov bx, dx
push edi
call fcn.00420240
mov esi, eax
pop ecx
lea eax, [esi*2 + 2]
call fcn.00430f00
mov ecx, esp
lea eax, [esi + 1]
push eax
push ecx
push 0xffffffffffffffff
push edi
push 0
push 0x4e4
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx ecx, bx
call fcn.00417605
test eax, eax
je 0x4020db
mov edi, 0x43c0ec
mov esi, 0x44a538
push edi
push dword [eax]
mov ecx, esi
call fcn.0040fb17
mov edx, eax
lea ecx, [ebp - 0x210]
call fcn.0040caad
pop ecx
pop ecx
push edi
push dword [ebp - 4]
mov ecx, esi
call fcn.0040fb17
mov edx, eax
lea ecx, [ebp - 0x41c]
call fcn.0040caad
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
pop ecx
call edi
mov esi, eax
jmp 0x4020c6
call edi
mov ecx, eax
sub ecx, esi
cmp ecx, 0x1388
ja 0x4020db
cmp eax, esi
jb 0x4020db
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x41c]
call fcn.00401fe3
test eax, eax
je 0x4020ac
lea esp, [ebp - 0x428]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4020e6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x431313
call fcn.00431274
sub esp, 0x14
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0040eb4d
and dword [ebp - 4], 0
mov eax, dword [0x44a544]
push dword [eax + 0x642]
call fcn.0040eb96
push str.INFOEXE
push 0x7d
push dword [0x44a540]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [0x44a540]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [0x44a544]
mov edi, dword [ebp - 0x1c]
push dword [ecx + 0x642]
push eax
push edi
call fcn.0041acc0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x4021d6
push 0xe
push str.WLL_list
push edi
call fcn.00420cc0
add esp, 0xc
test eax, eax
jne 0x4021d6
lea esi, [edi + 0xe]
mov ecx, 0x101
movzx eax, word [esi]
mov dword [ebp - 0x10], eax
add eax, 0xffffa800
cmp ax, cx
ja 0x4021d6
push ebx
jmp 0x4021cb
push esi
call fcn.00420240
pop ecx
lea edi, [eax + 1]
add edi, esi
mov dword [ebp - 0x14], edi
movzx edx, word [edi]
add edi, 4
test bl, 4
je 0x4021ae
mov ecx, esi
call fcn.00402017
mov eax, dword [ebp - 0x10]
mov ecx, 0x5800
cmp ax, cx
mov ecx, 0x5900
cmovbe edi, dword [ebp - 0x14]
cmp ax, cx
lea esi, [edi + 4]
cmovbe esi, edi
mov bl, byte [esi + 4]
add esi, 5
test bl, bl
jns 0x40218d
pop ebx
lea ecx, [ebp - 0x20]
call fcn.0040eb5e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4021ec
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xd8
push ebx
push esi
mov eax, ecx
mov ebx, edx
push edi
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x64], eax
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x4022d6
call fcn.00430f00
mov esi, esp
test esi, esi
je 0x4022d6
push edi
push 0
push esi
call fcn.0041b240
add esp, 0xc
push esi
push edi
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4022d6
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x70]
push eax
push 0x448ad8
push esi
call edi
test eax, eax
je 0x4022d6
mov ecx, dword [ebp + 0x70]
push str.VersionVI
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x64]
push 0x448a9c
push eax
call fcn.00402de0
add esp, 0x14
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
call edi
test eax, eax
jne 0x4022bf
push str.VersionVI
lea eax, [ebp - 0x64]
push 0x448a60
push eax
call fcn.00402de0
add esp, 0xc
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
call edi
test eax, eax
je 0x4022d6
push 0x14
push dword [ebp + 0x70]
push ebx
call fcn.00420af1
xor eax, eax
add esp, 0xc
mov word [ebx + 0x26], ax
inc eax
jmp 0x4022d8
xor eax, eax
lea esp, [ebp - 0x70]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x4022e3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push str.FRAMEWORK
push 0x84
push dword [0x44a540]
mov dword [ebp - 4], ecx
call edi
push eax
push dword [0x44a540]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
mov ecx, 0x44a52c
call fcn.0040fb5d
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x44a52c]
xor ecx, ecx
test eax, eax
je 0x402342
cmp word [eax], cx
jne 0x402351
mov edx, str.Recherche_et_installation_du_framework_WINDEV._r_nRemarque_:_Vous_devez_avoir_un_acc
mov ecx, 0x44a52c
call fcn.0040fb5d
mov ecx, 0x44a538
call fcn.0040fb17
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004206a4
lea ecx, [ebp - 0x210]
call fcn.0040c938
push dword [ebp - 4]
lea eax, [ebp - 0x210]
push eax
call fcn.004206c6
add esp, 0x10
lea ecx, [ebp - 0x210]
call fcn.0040c6d1
push str.FRAMEWORK
test eax, eax
je 0x4023a0
push 0x85
jmp 0x4023a5
push 0x86
push dword [0x44a540]
call edi
push eax
push dword [0x44a540]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, 0x44a530
mov edx, eax
mov ecx, edi
call fcn.0040fb5d
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x44a530]
test eax, eax
je 0x4023e8
xor ecx, ecx
cmp word [eax], cx
jne 0x402408
lea ecx, [ebp - 0x210]
call fcn.0040c6d1
mov ecx, edi
mov edx, str.Ce_programme_a
test eax, eax
jne 0x402403
mov edx, str.Premier_lancement_de_lapplication._r_nLes
call fcn.0040fb5d
pop edi
pop esi
leave
ret
Function at 0x4028cd
Capabilities:
Query or enumerate registry value

Disassembly:
xor edx, edx
push esi
inc edx
mov esi, ecx
call 0x4028eb
test eax, eax
je 0x4028e1
xor eax, eax
inc eax
pop esi
ret
mov ecx, esi
xor edx, edx
pop esi
jmp 0x4028eb
mov eax, 0x4312e1
call fcn.00431274
sub esp, 0x218
push esi
push edi
lea eax, [ebp - 0x14]
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push 0x80000001
mov edi, edx
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
js 0x4029ef
push 0x20a
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.0041b240
add esp, 0xc
mov dword [ebp - 0x18], 0x208
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push str.Program
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
js 0x4029e6
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
test edi, edi
je 0x402983
push ecx
push str.FrameworkWin32x86
mov edx, 0x105
lea ecx, [ebp - 0x224]
call fcn.0040ed2a
pop ecx
pop ecx
cmp word [ebp - 0x224], 0
je 0x4029de
lea ecx, [ebp - 0x224]
call fcn.0040cb78
test eax, eax
je 0x4029de
push 0x43ba48
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x10]
push 0x43bb28
push eax
call fcn.00410380
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040fb17
mov ecx, eax
call fcn.0040cb50
mov esi, eax
test esi, esi
je 0x4029de
lea edx, [ebp - 0x224]
mov ecx, 0x44a538
call fcn.0040fb5d
lea ecx, [ebp - 0x10]
call fcn.0040fa89
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4028eb
Capabilities:
Query or enumerate registry value

Disassembly:
xor edx, edx
push esi
inc edx
mov esi, ecx
call 0x4028eb
test eax, eax
je 0x4028e1
xor eax, eax
inc eax
pop esi
ret
mov ecx, esi
xor edx, edx
pop esi
jmp 0x4028eb
mov eax, 0x4312e1
call fcn.00431274
sub esp, 0x218
push esi
push edi
lea eax, [ebp - 0x14]
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push 0x80000001
mov edi, edx
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
js 0x4029ef
push 0x20a
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.0041b240
add esp, 0xc
mov dword [ebp - 0x18], 0x208
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push str.Program
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
js 0x4029e6
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
test edi, edi
je 0x402983
push ecx
push str.FrameworkWin32x86
mov edx, 0x105
lea ecx, [ebp - 0x224]
call fcn.0040ed2a
pop ecx
pop ecx
cmp word [ebp - 0x224], 0
je 0x4029de
lea ecx, [ebp - 0x224]
call fcn.0040cb78
test eax, eax
je 0x4029de
push 0x43ba48
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x10]
push 0x43bb28
push eax
call fcn.00410380
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040fb17
mov ecx, eax
call fcn.0040cb50
mov esi, eax
test esi, esi
je 0x4029de
lea edx, [ebp - 0x224]
mov ecx, 0x44a538
call fcn.0040fb5d
lea ecx, [ebp - 0x10]
call fcn.0040fa89
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x402a56
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x6c
mov eax, 0x431355
call fcn.00431274
sub esp, 0x650
mov eax, dword [0x44a544]
push ebx
push esi
add eax, 0x87c
mov esi, ecx
push edi
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.004206a4
pop ecx
pop ecx
lea ecx, [ebp + 0x2c]
call fcn.0040ec76
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x64]
call fcn.0040fa2d
push ecx
xor edi, edi
lea ecx, [ebp + 0x64]
push 0x43c0ec
mov edx, 0x43c02c
mov dword [ebp - 4], edi
call fcn.00410246
lea ecx, [ebp + 0x64]
call fcn.0040fb17
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.004206a4
xor ebx, ebx
lea eax, [ebp + 0x2c]
inc ebx
push ebx
push str.xxxxxxxxxx
push eax
call fcn.00420d87
add esp, 0x14
test eax, eax
je 0x402c5e
mov ecx, 0x44a538
call fcn.0040fb17
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.004206a4
lea ecx, [ebp - 0x244]
call fcn.0040c938
lea eax, [ebp - 0x244]
push esi
push eax
call fcn.004206c6
add esp, 0xc
lea edx, [ebp]
lea ecx, [ebp - 0x244]
call fcn.004021ec
pop ecx
test eax, eax
je 0x402c5e
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x68]
call fcn.0040fa2d
push ecx
push 0x43c0ec
mov edx, 0x43c02c
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x68]
call fcn.00410246
lea ecx, [ebp + 0x68]
call fcn.0040fb17
push eax
lea eax, [ebp]
push eax
call fcn.004206a4
push ebx
lea eax, [ebp]
push str.xxxxxxxxxx
push eax
call fcn.00420d87
add esp, 0x14
test eax, eax
je 0x402c52
push 6
lea eax, [ebp + 0x32]
push eax
lea eax, [ebp + 6]
push eax
call fcn.00420d87
add esp, 0xc
test eax, eax
jns 0x402c52
push 0x104
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x65c]
xor edx, edx
push edi
push eax
lea ecx, [ebp - 0x450]
call fcn.0040313a
lea eax, [ebp - 0x65c]
push eax
push str.SOFTWAREPC_SOFTWINDEV29.0APPLI
lea eax, [ebp + 0x60]
push 0x43bb28
push eax
call fcn.00402dfa
add esp, 0x18
mov dword [ebp + 0x6c], edi
lea ecx, [ebp + 0x60]
call fcn.0040fb17
lea ecx, [ebp + 0x6c]
push ecx
push ebx
push edi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402c48
push 0x2a
pop eax
push eax
mov dword [ebp + 0x5c], eax
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.0041b240
add esp, 0xc
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x58]
push eax
push edi
push str.LAST_FRAMEWORK
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402c3f
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x32]
push eax
call fcn.00420bb0
neg eax
pop ecx
sbb ebx, ebx
pop ecx
neg ebx
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x60]
call fcn.0040fa89
jmp 0x402c54
mov ebx, edi
lea ecx, [ebp + 0x68]
call fcn.0040fa89
jmp 0x402c60
mov ebx, edi
lea ecx, [ebp + 0x64]
call fcn.0040fa89
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x70
leave
ret
Function at 0x402cd5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x43c030
mov edi, ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x402d22
push str.SHGetSpecialFolderPathW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402d0c
push 1
push 0x2b
push edi
push ebx
call eax
mov ebx, eax
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x402d92
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
js 0x402d6a
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x208
push eax
push edi
push ebx
push ebx
push str.CommonFilesDir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jns 0x402d92
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0xc
jne 0x402d85
push str.C:Program_FilesFichiers_communs
jmp 0x402d8a
push str.C:Program_FilesCommon_Files
push edi
call fcn.004206a4
pop ecx
pop ecx
mov ecx, edi
call fcn.0040c938
push ecx
push str.PC_SOFT29.0Framework
mov edx, 0x104
mov ecx, edi
call fcn.0040ed2a
pop ecx
pop ecx
mov ecx, edi
call fcn.0040c938
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403782
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x43141d
call fcn.00431274
sub esp, 0x214
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0xc]
push eax
lea ebx, [esi + 0x420]
push ebx
call fcn.004206a4
push str.WDUPDATE.NET
push ebx
call fcn.004206c6
add esp, 0x10
lea eax, [esi + 0x834]
xor edi, edi
push ebx
push edi
push str.RESEAU
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x10], eax
cmp dword [esi + 0xc48], edi
je 0x40380d
push eax
push ebx
lea eax, [esi + 0x834]
push eax
lea eax, [ebp - 0x14]
push str.100___Lecture_de_la_cl
push eax
call fcn.00402dfa
add esp, 0x14
mov ecx, eax
mov dword [ebp - 4], edi
call fcn.0040fb17
push eax
mov ecx, esi
call fcn.004036a4
lea ecx, [ebp - 0x14]
call fcn.0040fa89
mov eax, dword [ebp - 0x10]
cmp eax, 8
je 0x403874
push ebx
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0x43c0ec
push str.PROTOCOLE
lea eax, [esi + 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x220]
push str.LOCAL
push eax
call fcn.00420bb0
pop ecx
pop ecx
test eax, eax
je 0x403867
lea eax, [ebp - 0x220]
push str.HTTP
push eax
call fcn.00420bb0
pop ecx
pop ecx
test eax, eax
jne 0x403872
xor edi, edi
inc edi
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x11b0], edi
jmp 0x403874
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x404b2d
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4314a0
call fcn.00431274
mov eax, 0x2154
call fcn.004311d0
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004206a4
lea eax, [ebp - 0x21c]
push str.WDUPDATE.NET
push eax
call fcn.004206c6
add esp, 0x10
lea eax, [ebp - 0x21c]
lea ebx, [esi + 0x834]
push eax
push 0
push str.INSTALLENCOURS
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [esi + 0xc48], 0
mov edi, eax
je 0x404bc1
push edi
lea eax, [ebp - 0x10]
push str.125___Lecture_du_flag_dinstall_en_cours_:__i
push eax
call fcn.00402dfa
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0040fb17
push eax
mov ecx, esi
call fcn.004036a4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040fa89
cmp edi, 1
jne 0x404c1c
lea eax, [ebp - 0x21c]
push eax
push 0xfa0
lea eax, [ebp - 0x2160]
push eax
push 0
push str.MSG_INSTALLENCOURS
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x404bfe
lea eax, [ebp - 0x2160]
push str.La_pr
push eax
call fcn.004206a4
pop ecx
pop ecx
push 0x24
push ebx
lea eax, [ebp - 0x2160]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x404c1c
mov ecx, esi
call fcn.004048ab
mov ecx, dword [ebp - 0xc]
xor eax, eax
test edi, edi
mov dword fs:[0], ecx
pop edi
pop esi
setne al
pop ebx
leave
ret

Function at 0x404c32
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x11ac]
test ecx, ecx
je 0x404c6f
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi + 0x11ac]
test ecx, ecx
je 0x404c54
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [esi + 0xfa0]
call fcn.0040c6d1
test eax, eax
je 0x404c6f
lea ecx, [esi + 0xfa0]
pop esi
jmp fcn.0040c307
pop esi
ret

Function at 0x404c71
Capabilities:
Create mailslot

Disassembly:
mov eax, 0x4314a0
call fcn.00431274
sub esp, 0x210
lea eax, [ebp - 0x21c]
push ebx
push esi
push 0x20a
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.0041b240
lea eax, [esi + 0x834]
push eax
lea eax, [ebp - 0x21c]
push str..mailslot_s
push eax
call fcn.00402de0
add esp, 0x18
lea eax, [ebp - 0x21c]
push ebx
push 0xffffffffffffffff
push 0x2000
push eax
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
mov ecx, eax
mov dword [esi + 0xf9c], ecx
cmp ecx, 0xffffffff
jne 0x404d18
or ecx, eax
cmp dword [esi + 0xc48], ebx
je 0x404d18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.Echec_de_la_cr
push eax
call fcn.00402dfa
add esp, 0xc
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0040fb17
push eax
mov ecx, esi
call fcn.004036a4
lea ecx, [ebp - 0x10]
call fcn.0040fa89
mov ecx, dword [esi + 0xf9c]
xor eax, eax
cmp ecx, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop esi
setne al
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x404d2e
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x43141d
call fcn.00431274
sub esp, 0x658
lea eax, [ebp - 0x24c]
push ebx
push esi
push edi
mov esi, ecx
push str.INST.WXF
lea edi, [esi + 0x216]
push edi
push str._s_s
push eax
call fcn.00402de0
add esp, 0x10
lea eax, [ebp - 0x24c]
push eax
push 0x14
lea eax, [ebp - 0x40]
push eax
push 0x43c0ec
push 0x43dacc
push 0x43dad4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x40]
push str.WXF7
push eax
call fcn.00420bb0
pop ecx
pop ecx
test eax, eax
jne 0x404e59
xor ebx, ebx
cmp dword [esi + 0xc48], ebx
je 0x404db3
push str.132___Retour
mov ecx, esi
call fcn.004036a4
mov ecx, edi
call fcn.0040c938
push edi
lea eax, [ebp - 0x664]
push str.__sWDSETUP7.EXE_
push eax
call fcn.00402de0
push edi
lea eax, [ebp - 0x458]
push str._REP_s
push eax
call fcn.00402de0
add esp, 0x14
lea edx, [ebp - 0x458]
lea ecx, [ebp - 0x664]
push edi
call fcn.00413777
pop ecx
pop ecx
test eax, eax
jne 0x404e6a
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp dword [esi + 0xc48], ebx
je 0x404e50
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push str.Impossible_de_lancer_lapplication_de_contr
push eax
call fcn.00402dfa
add esp, 0x10
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0040fb17
push eax
mov ecx, esi
call fcn.004036a4
lea ecx, [ebp - 0x14]
call fcn.0040fa89
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x404e5b
Function at 0x4050a8
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x2dc
lea eax, [ebp - 0x270]
cmp dword [ebp + 0x7c], 0
push ebx
push esi
push edi
jne 0x4050d2
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x4050dd
push dword [ebp + 0x7c]
push eax
call fcn.004206a4
pop ecx
pop ecx
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x4051bf
call fcn.00430f00
mov esi, esp
test esi, esi
je 0x4051bf
push edi
push 0
push esi
call fcn.0041b240
add esp, 0xc
lea eax, [ebp - 0x270]
push esi
push edi
push dword [ebp + 0x64]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4051bf
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x7c]
push eax
push str.VarFileInfoTranslation
push esi
call edi
test eax, eax
je 0x4051bf
mov ecx, dword [ebp + 0x7c]
mov ebx, str.FileVersion
push ebx
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x64]
push str.StringFileInfo_04X_04X_s
push eax
call fcn.00402de0
add esp, 0x14
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
call edi
test eax, eax
jne 0x4051a2
push ebx
lea eax, [ebp - 0x64]
push str.StringFileInfo040904E4_s
push eax
call fcn.00402de0
add esp, 0xc
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
call edi
test eax, eax
je 0x4051bf
mov edi, dword [ebp + 0x78]
mov esi, dword [ebp + 0x74]
push edi
push dword [ebp + 0x7c]
push esi
call fcn.00420af1
xor eax, eax
add esp, 0xc
mov word [esi + edi*2 - 2], ax
inc eax
jmp 0x4051c1
xor eax, eax
lea esp, [ebp - 0x27c]
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc

Function at 0x4051d1
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
mov edi, ecx
xor edx, edx
mov eax, dword [edi + 0x11b0]
sub eax, edx
je 0x405259
sub eax, 1
je 0x4051ed
xor eax, eax
jmp 0x405276
lea ecx, [edi + 0x1424]
mov eax, dword [ecx]
test eax, eax
je 0x405205
cmp word [eax], dx
je 0x405205
call fcn.0040fb17
jmp 0x40525f
mov esi, dword [esp + 0xc]
lea eax, [edi + 0x420]
push eax
push 0x104
push esi
push 0x43c0ec
push str.INSTLOCAL
lea eax, [edi + 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
call fcn.00420819
pop ecx
test eax, eax
jne 0x40526c
lea eax, [edi + 0xc]
push eax
push esi
call fcn.004206a4
mov ecx, esi
call fcn.0040c938
push str.INSTALL
push esi
call fcn.004206c6
add esp, 0x10
jmp 0x40526c
lea eax, [edi + 0x216]
mov esi, dword [esp + 0xc]
push eax
push esi
call fcn.004206a4
pop ecx
pop ecx
mov ecx, esi
call fcn.0040c938
xor eax, eax
inc eax
pop edi
pop esi
ret 4