joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401531
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
lea eax, [ebp - 0x134]
push esi
push edi
push str.SYSTEMCurrentControlSetServicesEventLogApplication_
push eax
mov edi, edx
mov esi, ecx
call fcn.00420b01
lea eax, [ebp - 0x134]
push esi
push eax
call fcn.00420b23
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x134]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x40157f
xor eax, eax
jmp 0x4015df
push edi
call fcn.00420c76
pop ecx
xor esi, esi
lea eax, [eax*2 + 2]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 2
push esi
push str.EventMessageFile
push dword [ebp - 4]
call edi
test eax, eax
je 0x4015b3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40157b
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 7
push eax
push 4
push esi
push str.TypesSupported
push dword [ebp - 4]
call edi
test eax, eax
jne 0x4015d4
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x40162e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40165e
xor eax, eax
jmp 0x401697
push edi
push dword [ebp + 0xc]
call fcn.00420c76
pop ecx
xor edi, edi
inc edi
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0xc]
push edi
push esi
push str.Splash_screen
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
test eax, eax
cmove esi, edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x40169a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.00431cd0
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push edx
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4016cb
xor eax, eax
jmp 0x401710
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x2000
push eax
lea eax, [ebp - 0x200c]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push str.Splash_screen
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401705
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x200c]
xor esi, esi
inc esi
call fcn.0040f5cc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x401719
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
mov ecx, edx
push edi
call fcn.00401a99
mov edi, eax
test edi, edi
jne 0x401831
cmp dword [0x44a428], eax
je 0x401774
mov edi, 0x43c5f0
mov ecx, edi
call fcn.00401961
test eax, eax
je 0x401774
mov edx, edi
lea ecx, [ebp - 8]
call fcn.0040287d
mov ecx, eax
call fcn.0040f58a
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 8]
mov esi, eax
call fcn.0040f501
mov eax, esi
jmp 0x401843
mov ecx, esi
call fcn.00401847
test eax, eax
jne 0x4017b8
mov ecx, dword [0x44a438]
cmp dword [ecx + 0x63a], eax
jne 0x4017b8
cmp dword [ecx + 0x878], eax
je 0x4017a0
mov ecx, esi
call fcn.004018e5
test eax, eax
jne 0x4017b8
mov ecx, esi
call fcn.00401961
test eax, eax
jne 0x4017b8
mov ecx, esi
call fcn.00401a3b
neg eax
sbb eax, eax
neg eax
xor edi, edi
inc edi
cmp dword [0x44a4ac], edi
je 0x4017e2
mov ecx, esi
test eax, eax
je 0x4017d2
call fcn.00402655
mov edi, eax
jmp 0x4017d7
call fcn.004025fe
test edi, edi
je 0x4017e2
mov ecx, esi
call fcn.00401ffe
mov edx, esi
lea ecx, [ebp - 4]
call fcn.0040287d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
jmp 0x401814
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, esi
cmp ecx, 0x1388
ja 0x401829
cmp eax, esi
jb 0x401829
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 4]
call fcn.0040f58a
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4017f6
lea ecx, [ebp - 4]
call fcn.0040f501
call fcn.00418021
test eax, eax
lea ecx, [edi + 0x800000]
cmove ecx, edi
mov eax, ecx
pop edi
pop esi
leave
ret

Function at 0x401b3c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0x104
push str.SoftwarePC_SOFTFramework27.0
push 0x43c6d0
push eax
mov edi, ecx
xor esi, esi
call fcn.004029fb
add esp, 0x10
mov dword [ebp - 8], esi
lea ecx, [ebp - 0xc]
call fcn.0040f58a
lea ecx, [ebp - 8]
push ecx
push 1
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401bc2
mov eax, dword [ebp - 4]
add eax, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push esi
push str.CHEMIN
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401bb4
inc esi
jmp 0x401bb9
xor eax, eax
mov word [edi], ax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xc]
call fcn.0040f501
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x401c09
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.004206a0
mov esi, eax
pop ecx
lea eax, [esi*2 + 2]
call fcn.00431910
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.00416f25
test eax, eax
je 0x401ccd
mov edi, 0x43cc84
mov esi, 0x44a42c
push edi
push dword [eax]
mov ecx, esi
call fcn.0040f58a
mov edx, eax
lea ecx, [ebp - 0x210]
call fcn.0040c5be
pop ecx
pop ecx
push edi
push dword [ebp - 4]
mov ecx, esi
call fcn.0040f58a
mov edx, eax
lea ecx, [ebp - 0x41c]
call fcn.0040c5be
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
pop ecx
call edi
mov esi, eax
jmp 0x401cb8
call edi
mov ecx, eax
sub ecx, esi
cmp ecx, 0x1388
ja 0x401ccd
cmp eax, esi
jb 0x401ccd
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x41c]
call fcn.00401bd5
test eax, eax
je 0x401c9e
lea esp, [ebp - 0x428]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401cd8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x431d84
call fcn.00431d00
sub esp, 0x14
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0040e58f
and dword [ebp - 4], 0
mov eax, dword [0x44a438]
push dword [eax + 0x642]
call fcn.0040e5d3
push str.INFOEXE
push 0x7d
push dword [0x44a434]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [0x44a434]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [0x44a438]
mov edi, dword [ebp - 0x1c]
push dword [ecx + 0x642]
push eax
push edi
call fcn.0041a610
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x401dc8
push 0xe
push str.WLL_list
push edi
call fcn.00421100
add esp, 0xc
test eax, eax
jne 0x401dc8
lea esi, [edi + 0xe]
mov ecx, 0x101
movzx eax, word [esi]
mov dword [ebp - 0x10], eax
add eax, 0xffffa800
cmp ax, cx
ja 0x401dc8
push ebx
jmp 0x401dbd
push esi
call fcn.004206a0
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 0x401da0
mov ecx, esi
call fcn.00401c09
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 0x401d7f
pop ebx
lea ecx, [ebp - 0x20]
call fcn.0040e5a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x401dde
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 0x401ec8
call fcn.00431910
mov esi, esp
test esi, esi
je 0x401ec8
push edi
push 0
push esi
call fcn.0041ab90
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 0x401ec8
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x70]
push eax
push 0x4489d8
push esi
call edi
test eax, eax
je 0x401ec8
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 0x44899c
push eax
call fcn.004029e1
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 0x401eb1
push str.VersionVI
lea eax, [ebp - 0x64]
push 0x448960
push eax
call fcn.004029e1
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 0x401ec8
push 0x14
push dword [ebp + 0x70]
push ebx
call fcn.00420f4e
xor eax, eax
add esp, 0xc
mov word [ebx + 0x26], ax
inc eax
jmp 0x401eca
xor eax, eax
lea esp, [ebp - 0x70]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret

Function at 0x401ed5
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 [0x44a434]
mov dword [ebp - 4], ecx
call edi
push eax
push dword [0x44a434]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
mov ecx, 0x44a420
call fcn.0040f5cc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x44a420]
xor ecx, ecx
test eax, eax
je 0x401f34
cmp word [eax], cx
jne 0x401f43
mov edx, 0x43c728
mov ecx, 0x44a420
call fcn.0040f5cc
mov ecx, 0x44a42c
call fcn.0040f58a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00420b01
lea ecx, [ebp - 0x210]
call fcn.0040c44f
push dword [ebp - 4]
lea eax, [ebp - 0x210]
push eax
call fcn.00420b23
add esp, 0x10
lea ecx, [ebp - 0x210]
call fcn.0040c1e9
push str.FRAMEWORK
test eax, eax
je 0x401f92
push 0x85
jmp 0x401f97
push 0x86
push dword [0x44a434]
call edi
push eax
push dword [0x44a434]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, 0x44a424
mov edx, eax
mov ecx, edi
call fcn.0040f5cc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x44a424]
test eax, eax
je 0x401fda
xor ecx, ecx
cmp word [eax], cx
jne 0x401ffa
lea ecx, [ebp - 0x210]
call fcn.0040c1e9
mov ecx, edi
mov edx, 0x43c8b8
test eax, eax
jne 0x401ff5
mov edx, str.Premier_lancement_de_lapplication._r_nLes
call fcn.0040f5cc
pop edi
pop esi
leave
ret
Function at 0x4024cc
Capabilities:
Query or enumerate registry value

Disassembly:
xor edx, edx
push esi
inc edx
mov esi, ecx
call 0x4024ea
test eax, eax
je 0x4024e0
xor eax, eax
inc eax
pop esi
ret
mov ecx, esi
xor edx, edx
pop esi
jmp 0x4024ea
mov eax, 0x431d60
call fcn.00431d00
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 0x4025ee
push 0x20a
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.0041ab90
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 0x4025e5
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
test edi, edi
je 0x402582
push ecx
push str.FrameworkWin32x86
mov edx, 0x105
lea ecx, [ebp - 0x224]
call fcn.0040e766
pop ecx
pop ecx
cmp word [ebp - 0x224], 0
je 0x4025dd
lea ecx, [ebp - 0x224]
call fcn.0040c689
test eax, eax
je 0x4025dd
push 0x43c5f0
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x10]
push 0x43c6d0
push eax
call fcn.0040fd1e
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040f58a
mov ecx, eax
call fcn.0040c661
mov esi, eax
test esi, esi
je 0x4025dd
lea edx, [ebp - 0x224]
mov ecx, 0x44a42c
call fcn.0040f5cc
lea ecx, [ebp - 0x10]
call fcn.0040f501
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 0x4024ea
Capabilities:
Query or enumerate registry value

Disassembly:
xor edx, edx
push esi
inc edx
mov esi, ecx
call 0x4024ea
test eax, eax
je 0x4024e0
xor eax, eax
inc eax
pop esi
ret
mov ecx, esi
xor edx, edx
pop esi
jmp 0x4024ea
mov eax, 0x431d60
call fcn.00431d00
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 0x4025ee
push 0x20a
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.0041ab90
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 0x4025e5
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
test edi, edi
je 0x402582
push ecx
push str.FrameworkWin32x86
mov edx, 0x105
lea ecx, [ebp - 0x224]
call fcn.0040e766
pop ecx
pop ecx
cmp word [ebp - 0x224], 0
je 0x4025dd
lea ecx, [ebp - 0x224]
call fcn.0040c689
test eax, eax
je 0x4025dd
push 0x43c5f0
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x10]
push 0x43c6d0
push eax
call fcn.0040fd1e
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040f58a
mov ecx, eax
call fcn.0040c661
mov esi, eax
test esi, esi
je 0x4025dd
lea edx, [ebp - 0x224]
mov ecx, 0x44a42c
call fcn.0040f5cc
lea ecx, [ebp - 0x10]
call fcn.0040f501
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 0x402655
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x6c
mov eax, 0x431db8
call fcn.00431d00
sub esp, 0x650
mov eax, dword [0x44a438]
push ebx
push esi
add eax, 0x87c
mov esi, ecx
push edi
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.00420b01
pop ecx
pop ecx
lea ecx, [ebp + 0x2c]
call fcn.0040e6b2
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x64]
call fcn.0040f4c0
push ecx
xor edi, edi
lea ecx, [ebp + 0x64]
push 0x43cc84
mov edx, 0x43cbc4
mov dword [ebp - 4], edi
call fcn.0040fbec
lea ecx, [ebp + 0x64]
call fcn.0040f58a
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.00420b01
xor ebx, ebx
lea eax, [ebp + 0x2c]
inc ebx
push ebx
push str.xxxxxxxxxx
push eax
call fcn.00421178
add esp, 0x14
test eax, eax
je 0x40285f
mov ecx, 0x44a42c
call fcn.0040f58a
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.00420b01
lea ecx, [ebp - 0x244]
call fcn.0040c44f
lea eax, [ebp - 0x244]
push esi
push eax
call fcn.00420b23
add esp, 0xc
lea edx, [ebp]
lea ecx, [ebp - 0x244]
call fcn.00401dde
pop ecx
test eax, eax
je 0x40285f
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x68]
call fcn.0040f4c0
push ecx
push 0x43cc84
mov edx, 0x43cbc4
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x68]
call fcn.0040fbec
lea ecx, [ebp + 0x68]
call fcn.0040f58a
push eax
lea eax, [ebp]
push eax
call fcn.00420b01
push ebx
lea eax, [ebp]
push str.xxxxxxxxxx
push eax
call fcn.00421178
add esp, 0x14
test eax, eax
je 0x402853
push 6
lea eax, [ebp + 0x32]
push eax
lea eax, [ebp + 6]
push eax
call fcn.00421178
add esp, 0xc
test eax, eax
jns 0x402853
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.00402d46
lea eax, [ebp - 0x65c]
push eax
push str.SOFTWAREPC_SOFTWINDEV27.0APPLI
lea eax, [ebp + 0x60]
push 0x43c6d0
push eax
call fcn.004029fb
add esp, 0x18
mov dword [ebp + 0x6c], edi
lea ecx, [ebp + 0x60]
call fcn.0040f58a
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 0x402849
push 0x2a
pop eax
push eax
mov dword [ebp + 0x5c], eax
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.0041ab90
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 0x402840
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x32]
push eax
call fcn.00420f91
mov ebx, eax
neg ebx
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.0040f501
jmp 0x402855
mov ebx, edi
lea ecx, [ebp + 0x68]
call fcn.0040f501
jmp 0x402861
mov ebx, edi
lea ecx, [ebp + 0x64]
call fcn.0040f501
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 0x4028d6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x43cbc8
mov edi, ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x402923
push str.SHGetSpecialFolderPathW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40290d
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 0x402993
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 0x40296b
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 0x402993
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0xc
jne 0x402986
push str.C:Program_FilesFichiers_communs
jmp 0x40298b
push str.C:Program_FilesCommon_Files
push edi
call fcn.00420b01
pop ecx
pop ecx
mov ecx, edi
call fcn.0040c44f
push ecx
push str.PC_SOFT27.0Framework
mov edx, 0x104
mov ecx, edi
call fcn.0040e766
pop ecx
pop ecx
mov ecx, edi
call fcn.0040c44f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403384
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x431e5b
call fcn.00431d00
sub esp, 0x210
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0xc]
push eax
lea edi, [esi + 0x420]
push edi
call fcn.00420b01
push str.WDUPDATE.NET
push edi
call fcn.00420b23
add esp, 0x10
lea eax, [esi + 0x834]
push edi
push 0
push str.RESEAU
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [esi + 0xc48], 0
mov ebx, eax
je 0x40340c
push ebx
push edi
lea eax, [esi + 0x834]
push eax
lea eax, [ebp - 0x10]
push str.100___Lecture_de_la_cl
push eax
call fcn.004029fb
add esp, 0x14
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0040f58a
push eax
mov ecx, esi
call fcn.004032a6
lea ecx, [ebp - 0x10]
call fcn.0040f501
push 8
pop eax
cmp ebx, eax
je 0x40347d
push edi
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x43cc84
push str.PROTOCOLE
lea eax, [esi + 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x21c]
push str.LOCAL
push eax
call fcn.00420f91
pop ecx
pop ecx
test eax, eax
jne 0x403456
and dword [esi + 0x11b0], eax
jmp 0x403477
lea eax, [ebp - 0x21c]
push str.HTTP
push eax
call fcn.00420f91
pop ecx
pop ecx
test eax, eax
jne 0x40347b
mov dword [esi + 0x11b0], 1
mov eax, ebx
jmp 0x40347d
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x404738
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x431e5b
call fcn.00431d00
mov eax, 0x2154
call fcn.00431cd0
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00420b01
lea eax, [ebp - 0x21c]
push str.WDUPDATE.NET
push eax
call fcn.00420b23
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 0x4047cc
push edi
lea eax, [ebp - 0x10]
push str.125___Lecture_du_flag_dinstall_en_cours_:__i
push eax
call fcn.004029fb
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0040f58a
push eax
mov ecx, esi
call fcn.004032a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040f501
cmp edi, 1
jne 0x404827
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 0x404809
lea eax, [ebp - 0x2160]
push str.La_pr
push eax
call fcn.00420b01
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 0x404827
mov ecx, esi
call fcn.004044b6
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 0x40483d
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x11ac]
test ecx, ecx
je 0x40487a
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi + 0x11ac]
test ecx, ecx
je 0x40485f
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [esi + 0xfa0]
call fcn.0040c1e9
test eax, eax
je 0x40487a
lea ecx, [esi + 0xfa0]
pop esi
jmp fcn.0040be3d
pop esi
ret

Function at 0x40487c
Capabilities:
Create mailslot

Disassembly:
mov eax, 0x431e5b
call fcn.00431d00
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.0041ab90
lea eax, [esi + 0x834]
push eax
lea eax, [ebp - 0x21c]
push str..mailslot_s
push eax
call fcn.004029e1
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 0x404923
or ecx, eax
cmp dword [esi + 0xc48], ebx
je 0x404923
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.Echec_de_la_cr
push eax
call fcn.004029fb
add esp, 0xc
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0040f58a
push eax
mov ecx, esi
call fcn.004032a6
lea ecx, [ebp - 0x10]
call fcn.0040f501
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