joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401541
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.0041f716
lea eax, [ebp - 0x134]
push esi
push eax
call fcn.0041f738
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 0x40158f
xor eax, eax
jmp 0x4015ef
push edi
call fcn.0041f769
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 0x4015c3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40158b
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 0x4015e4
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 0x40163e
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 0x40166e
xor eax, eax
jmp 0x4016a7
push edi
push dword [ebp + 0xc]
call fcn.0041f769
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 0x4016aa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0042fd70
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 0x4016db
xor eax, eax
jmp 0x401720
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 0x401715
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x200c]
xor esi, esi
inc esi
call fcn.0040ef80
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x401729
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.00401aa9
mov edi, eax
test edi, edi
jne 0x401841
cmp dword [0x4472c0], eax
je 0x401784
mov edi, 0x43a650
mov ecx, edi
call fcn.00401971
test eax, eax
je 0x401784
mov edx, edi
lea ecx, [ebp - 8]
call fcn.00402884
mov ecx, eax
call fcn.0040ef3e
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 8]
mov esi, eax
call fcn.0040eeb5
mov eax, esi
jmp 0x401853
mov ecx, esi
call fcn.00401857
test eax, eax
jne 0x4017c8
mov ecx, dword [0x4472d0]
cmp dword [ecx + 0x63a], eax
jne 0x4017c8
cmp dword [ecx + 0x878], eax
je 0x4017b0
mov ecx, esi
call fcn.004018f5
test eax, eax
jne 0x4017c8
mov ecx, esi
call fcn.00401971
test eax, eax
jne 0x4017c8
mov ecx, esi
call fcn.00401a4b
neg eax
sbb eax, eax
neg eax
xor edi, edi
inc edi
cmp dword [0x4473bc], edi
je 0x4017f2
mov ecx, esi
test eax, eax
je 0x4017e2
call fcn.0040265c
mov edi, eax
jmp 0x4017e7
call fcn.00402605
test edi, edi
je 0x4017f2
mov ecx, esi
call fcn.00402005
mov edx, esi
lea ecx, [ebp - 4]
call fcn.00402884
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
jmp 0x401824
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, esi
cmp ecx, 0x1388
ja 0x401839
cmp eax, esi
jb 0x401839
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 4]
call fcn.0040ef3e
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x401806
lea ecx, [ebp - 4]
call fcn.0040eeb5
call fcn.00416f13
test eax, eax
lea ecx, [edi + 0x800000]
cmove ecx, edi
mov eax, ecx
pop edi
pop esi
leave
ret

Function at 0x401b4c
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_SOFTFramework24.0
push 0x43a730
push eax
mov edi, ecx
xor esi, esi
call fcn.00402a02
add esp, 0x10
mov dword [ebp - 8], esi
lea ecx, [ebp - 0xc]
call fcn.0040ef3e
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 0x401bd2
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 0x401bc4
inc esi
jmp 0x401bc9
xor eax, eax
mov word [edi], ax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xc]
call fcn.0040eeb5
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x401c10
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.0041f2a0
mov esi, eax
pop ecx
lea eax, [esi*2 + 2]
call fcn.0042f950
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.00415ed9
test eax, eax
je 0x401cd4
mov edi, 0x43ad64
mov esi, 0x4472c4
push edi
push dword [eax]
mov ecx, esi
call fcn.0040ef3e
mov edx, eax
lea ecx, [ebp - 0x210]
call fcn.0040bf25
pop ecx
pop ecx
push edi
push dword [ebp - 4]
mov ecx, esi
call fcn.0040ef3e
mov edx, eax
lea ecx, [ebp - 0x41c]
call fcn.0040bf25
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
pop ecx
call edi
mov esi, eax
jmp 0x401cbf
call edi
mov ecx, eax
sub ecx, esi
cmp ecx, 0x1388
ja 0x401cd4
cmp eax, esi
jb 0x401cd4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x41c]
call fcn.00401be5
test eax, eax
je 0x401ca5
lea esp, [ebp - 0x428]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401cdf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42fe26
call fcn.0042fda0
sub esp, 0x14
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0040df0a
and dword [ebp - 4], 0
mov eax, dword [0x4472d0]
push dword [eax + 0x642]
call fcn.0040df54
push str.INFOEXE
push 0x7d
push dword [0x4472cc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [0x4472cc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [0x4472d0]
mov edi, dword [ebp - 0x1c]
push dword [ecx + 0x642]
push eax
push edi
call fcn.00419500
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x401dcf
push 0xe
push str.WLL_list
push edi
call fcn.0041f940
add esp, 0xc
test eax, eax
jne 0x401dcf
lea esi, [edi + 0xe]
mov ecx, 0x101
movzx eax, word [esi]
mov dword [ebp - 0x10], eax
add eax, 0xffffa800
cmp ax, cx
ja 0x401dcf
push ebx
jmp 0x401dc4
push esi
call fcn.0041f2a0
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 0x401da7
mov ecx, esi
call fcn.00401c10
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 0x401d86
pop ebx
lea ecx, [ebp - 0x20]
call fcn.0040df1b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x401de5
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 0x401ecf
call fcn.0042f950
mov esi, esp
test esi, esi
je 0x401ecf
push edi
push 0
push esi
call fcn.00419a80
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 0x401ecf
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x70]
push eax
push 0x4458c8
push esi
call edi
test eax, eax
je 0x401ecf
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 0x44588c
push eax
call fcn.004029e8
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 0x401eb8
push str.VersionVI
lea eax, [ebp - 0x64]
push 0x445850
push eax
call fcn.004029e8
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 0x401ecf
push 0x14
push dword [ebp + 0x70]
push ebx
call fcn.0041f784
xor eax, eax
add esp, 0xc
mov word [ebx + 0x26], ax
inc eax
jmp 0x401ed1
xor eax, eax
lea esp, [ebp - 0x70]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret

Function at 0x401edc
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 [0x4472cc]
mov dword [ebp - 4], ecx
call edi
push eax
push dword [0x4472cc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
mov ecx, 0x4472b8
call fcn.0040ef80
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x4472b8]
xor ecx, ecx
test eax, eax
je 0x401f3b
cmp word [eax], cx
jne 0x401f4a
mov edx, 0x43a788
mov ecx, 0x4472b8
call fcn.0040ef80
mov ecx, 0x4472c4
call fcn.0040ef3e
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0041f716
lea ecx, [ebp - 0x210]
call fcn.0040be0b
push dword [ebp - 4]
lea eax, [ebp - 0x210]
push eax
call fcn.0041f738
add esp, 0x10
lea ecx, [ebp - 0x210]
call fcn.0040bc4c
push str.FRAMEWORK
test eax, eax
je 0x401f99
push 0x85
jmp 0x401f9e
push 0x86
push dword [0x4472cc]
call edi
push eax
push dword [0x4472cc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, 0x4472bc
mov edx, eax
mov ecx, edi
call fcn.0040ef80
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x4472bc]
test eax, eax
je 0x401fe1
xor ecx, ecx
cmp word [eax], cx
jne 0x402001
lea ecx, [ebp - 0x210]
call fcn.0040bc4c
mov ecx, edi
mov edx, 0x43a918
test eax, eax
jne 0x401ffc
mov edx, 0x43aab0
call fcn.0040ef80
pop edi
pop esi
leave
ret
Function at 0x4024d3
Capabilities:
Query or enumerate registry value

Disassembly:
xor edx, edx
push esi
inc edx
mov esi, ecx
call 0x4024f1
test eax, eax
je 0x4024e7
xor eax, eax
inc eax
pop esi
ret
mov ecx, esi
xor edx, edx
pop esi
jmp 0x4024f1
mov eax, 0x42fe02
call fcn.0042fda0
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 0x4025f5
push 0x20a
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.00419a80
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 0x4025ec
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
test edi, edi
je 0x402589
push ecx
push str.FrameworkWin32x86
mov edx, 0x105
lea ecx, [ebp - 0x224]
call fcn.0040e0ce
pop ecx
pop ecx
cmp word [ebp - 0x224], 0
je 0x4025e4
lea ecx, [ebp - 0x224]
call fcn.0040bf62
test eax, eax
je 0x4025e4
push 0x43a650
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x10]
push 0x43a730
push eax
call fcn.0040f518
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040ef3e
mov ecx, eax
call fcn.0040bf3a
mov esi, eax
test esi, esi
je 0x4025e4
lea edx, [ebp - 0x224]
mov ecx, 0x4472c4
call fcn.0040ef80
lea ecx, [ebp - 0x10]
call fcn.0040eeb5
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 0x4024f1
Capabilities:
Query or enumerate registry value

Disassembly:
xor edx, edx
push esi
inc edx
mov esi, ecx
call 0x4024f1
test eax, eax
je 0x4024e7
xor eax, eax
inc eax
pop esi
ret
mov ecx, esi
xor edx, edx
pop esi
jmp 0x4024f1
mov eax, 0x42fe02
call fcn.0042fda0
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 0x4025f5
push 0x20a
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.00419a80
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 0x4025ec
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
test edi, edi
je 0x402589
push ecx
push str.FrameworkWin32x86
mov edx, 0x105
lea ecx, [ebp - 0x224]
call fcn.0040e0ce
pop ecx
pop ecx
cmp word [ebp - 0x224], 0
je 0x4025e4
lea ecx, [ebp - 0x224]
call fcn.0040bf62
test eax, eax
je 0x4025e4
push 0x43a650
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x10]
push 0x43a730
push eax
call fcn.0040f518
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040ef3e
mov ecx, eax
call fcn.0040bf3a
mov esi, eax
test esi, esi
je 0x4025e4
lea edx, [ebp - 0x224]
mov ecx, 0x4472c4
call fcn.0040ef80
lea ecx, [ebp - 0x10]
call fcn.0040eeb5
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 0x40265c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x6c
mov eax, 0x42fe5a
call fcn.0042fda0
sub esp, 0x650
mov eax, dword [0x4472d0]
push ebx
push esi
add eax, 0x87c
mov esi, ecx
push edi
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.0041f716
pop ecx
pop ecx
lea ecx, [ebp + 0x2c]
call fcn.0040e01a
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x64]
call fcn.0040ee74
push ecx
xor edi, edi
lea ecx, [ebp + 0x64]
push 0x43ad64
mov edx, 0x43aca0
mov dword [ebp - 4], edi
call fcn.0040f4d4
lea ecx, [ebp + 0x64]
call fcn.0040ef3e
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.0041f716
xor ebx, ebx
lea eax, [ebp + 0x2c]
inc ebx
push ebx
push str.xxxxxxxxxx
push eax
call fcn.0041f9b8
add esp, 0x14
test eax, eax
je 0x402866
mov ecx, 0x4472c4
call fcn.0040ef3e
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.0041f716
lea ecx, [ebp - 0x244]
call fcn.0040be0b
lea eax, [ebp - 0x244]
push esi
push eax
call fcn.0041f738
add esp, 0xc
lea edx, [ebp]
lea ecx, [ebp - 0x244]
call fcn.00401de5
pop ecx
test eax, eax
je 0x402866
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x68]
call fcn.0040ee74
push ecx
push 0x43ad64
mov edx, 0x43aca0
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x68]
call fcn.0040f4d4
lea ecx, [ebp + 0x68]
call fcn.0040ef3e
push eax
lea eax, [ebp]
push eax
call fcn.0041f716
push ebx
lea eax, [ebp]
push str.xxxxxxxxxx
push eax
call fcn.0041f9b8
add esp, 0x14
test eax, eax
je 0x40285a
push 6
lea eax, [ebp + 0x32]
push eax
lea eax, [ebp + 6]
push eax
call fcn.0041f9b8
add esp, 0xc
test eax, eax
jns 0x40285a
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.00402d4d
lea eax, [ebp - 0x65c]
push eax
push str.SOFTWAREPC_SOFTWINDEV24.0APPLI
lea eax, [ebp + 0x60]
push 0x43a730
push eax
call fcn.00402a02
add esp, 0x18
mov dword [ebp + 0x6c], edi
lea ecx, [ebp + 0x60]
call fcn.0040ef3e
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 0x402850
push 0x2a
pop eax
push eax
mov dword [ebp + 0x5c], eax
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.00419a80
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 0x402847
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x32]
push eax
call fcn.0041f7c7
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.0040eeb5
jmp 0x40285c
mov ebx, edi
lea ecx, [ebp + 0x68]
call fcn.0040eeb5
jmp 0x402868
mov ebx, edi
lea ecx, [ebp + 0x64]
call fcn.0040eeb5
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 0x4028dd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x43aca4
mov edi, ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40292a
push str.SHGetSpecialFolderPathW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402914
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 0x40299a
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 0x402972
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 0x40299a
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0xc
jne 0x40298d
push str.C:Program_FilesFichiers_communs
jmp 0x402992
push str.C:Program_FilesCommon_Files
push edi
call fcn.0041f716
pop ecx
pop ecx
mov ecx, edi
call fcn.0040be0b
push ecx
push str.PC_SOFT24.0Framework
mov edx, 0x104
mov ecx, edi
call fcn.0040e0ce
pop ecx
pop ecx
mov ecx, edi
call fcn.0040be0b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4033b1
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x42fefd
call fcn.0042fda0
sub esp, 0x214
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0xc]
push eax
lea edi, [esi + 0x420]
push edi
call fcn.0041f716
push str.WDUPDATE.NET
push edi
call fcn.0041f738
add esp, 0x10
lea ebx, [esi + 0x834]
push edi
push 0
push str.RESEAU
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [esi + 0xc48], 0
mov dword [ebp - 0x14], eax
je 0x403434
push eax
push edi
push ebx
lea eax, [ebp - 0x10]
push str.100___Lecture_de_la_cl
push eax
call fcn.00402a02
add esp, 0x14
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0040ef3e
push eax
mov ecx, esi
call fcn.004032d3
lea ecx, [ebp - 0x10]
call fcn.0040eeb5
push edi
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0x43ad64
push str.PROTOCOLE
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x220]
push str.LOCAL
push eax
call fcn.0041f7c7
pop ecx
pop ecx
test eax, eax
jne 0x403471
and dword [esi + 0x11b0], eax
jmp 0x403492
lea eax, [ebp - 0x220]
push str.HTTP
push eax
call fcn.0041f7c7
pop ecx
pop ecx
test eax, eax
jne 0x403497
mov dword [esi + 0x11b0], 1
mov eax, dword [ebp - 0x14]
jmp 0x403499
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40473d
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x42fefd
call fcn.0042fda0
mov eax, 0x2154
call fcn.0042fd70
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0041f716
lea eax, [ebp - 0x21c]
push str.WDUPDATE.NET
push eax
call fcn.0041f738
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 0x4047d1
push edi
lea eax, [ebp - 0x10]
push str.125___Lecture_du_flag_dinstall_en_cours_:__i
push eax
call fcn.00402a02
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0040ef3e
push eax
mov ecx, esi
call fcn.004032d3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040eeb5
cmp edi, 1
jne 0x40482c
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 0x40480e
lea eax, [ebp - 0x2160]
push str.La_pr
push eax
call fcn.0041f716
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 0x40482c
mov ecx, esi
call fcn.004044bb
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 0x404842
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x11ac]
test ecx, ecx
je 0x40487f
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi + 0x11ac]
test ecx, ecx
je 0x404864
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [esi + 0xfa0]
call fcn.0040bc4c
test eax, eax
je 0x40487f
lea ecx, [esi + 0xfa0]
pop esi
jmp fcn.0040ba13
pop esi
ret

Function at 0x404881
Capabilities:
Create mailslot

Disassembly:
mov eax, 0x42fefd
call fcn.0042fda0
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.00419a80
lea eax, [esi + 0x834]
push eax
lea eax, [ebp - 0x21c]
push str..mailslot_s
push eax
call fcn.004029e8
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 0x404928
or ecx, eax
cmp dword [esi + 0xc48], ebx
je 0x404928
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.Echec_de_la_cr
push eax
call fcn.00402a02
add esp, 0xc
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0040ef3e
push eax
mov ecx, esi
call fcn.004032d3
lea ecx, [ebp - 0x10]
call fcn.0040eeb5
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