joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4089c0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x3c
push ebp
push edi
push 0x1c
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
mov edi, ecx
xorps xmm0, xmm0
push eax
push edi
mov ebp, edx
movq qword [esp + 0x28], xmm0
movups xmmword [esp + 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp dword [esp + 0x20], 0x40
je 0x408a11
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0x40
push dword [esp + 0x20]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0xc]
lea edx, [ebp - 1]
add eax, dword [esp + 0x18]
add edx, edi
pop edi
pop ebp
cmp eax, edx
jae 0x408a63
push 0x1c
lea eax, [esp + 0x24]
mov dword [esp + 0x3c], 0
xorps xmm0, xmm0
push eax
push edx
movups xmmword [esp + 0x2c], xmm0
movq qword [esp + 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x40
push dword [esp + 0x34]
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 0x3c
ret

Function at 0x408a70
Capabilities:
Allocate thread local storage

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
call fcn.00408ac0
push 0x28
call fcn.004185d0
add esp, 4
mov dword [esp + 8], eax
mov ecx, eax
call fcn.00408920
mov edi, eax
push 0
push ecx
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x24]
mov edx, eax
mov ecx, esi
call fcn.00408e90
mov edx, dword [edi]
add esp, 8
mov ecx, edi
mov esi, eax
call dword [edx + 0x10]
pop edi
mov eax, esi
pop esi
pop ecx
ret
Function at 0x408bc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x14], 0x80000000
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push ecx
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call dword [eax + 0x28]
mov edi, dword [esp + 0x50]
lea ecx, [esi + 0xc]
mov ebx, dword [esp + 0x54]
mov edx, 0xa
sub edi, dword [esp + 0x48]
sub ebx, dword [esp + 0x4c]
call fcn.004089c0
push dword [0x440828]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [esp + 0x20]
mov ecx, esi
mov ebp, eax
call fcn.00408fd0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esi]
mov ecx, esi
mov dword [esi + 0x24], 1
call dword [edx + 0x48]
test eax, eax
mov eax, dword [esi]
je 0x408cb3
push ecx
mov ecx, esi
mov dword [esp + 0x14], 0
call dword [eax + 0x24]
mov edx, eax
lea ecx, [esp + 0x14]
call fcn.0040a681
push ecx
mov edx, 0x4368b0
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x18]
call fcn.0040a681
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
push eax
push dword [esp + 0x48]
push 0
push 0
push ebx
push edi
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x48]
call dword [sym.imp.USER32.dll_CreateWindowExA]
push dword [esp + 0x10]
call fcn.0041c21f
push dword [esp + 0x18]
call fcn.0041c21f
add esp, 8
jmp 0x408ce6
mov ecx, esi
call dword [eax + 0x2c]
push eax
push dword [esp + 0x48]
mov eax, dword [esi]
mov ecx, esi
push 0
push 0
push ebx
push edi
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0x38]
push 0x4368b0
call dword [eax + 0x24]
push eax
push dword [esp + 0x48]
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x24], 0
mov esi, eax
je 0x408d05
lea ecx, [esp + 0x20]
call fcn.00409010
push ebp
push dword [0x440828]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x24

Function at 0x409e51
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
cmp word [ecx], 0
je 0x409e75
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x409e77
xor eax, eax
pop ebp
ret 0x14

Function at 0x409f7e
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x42f1cb
call fcn.0042ef64
push ecx
push ecx
push esi
push dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 8]
mov dword [esi], vtable.CPatchRes.0
call fcn.0040b2d2
xor edx, edx
lea ecx, [esi + 0xc]
mov dword [ebp - 4], edx
call fcn.0040a3ee
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], edx
call fcn.0040e7e8
mov byte [ebp - 4], 2
push ecx
mov ecx, esi
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], edx
call fcn.0040a050
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x18], eax
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40a0c3
Capabilities:
Parse pe header

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0
je 0x40a14a
mov eax, dword [esi + 0x10]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a14a
mov ecx, dword [eax + 0x3c]
mov edx, 0x4550
cmp word [ecx + eax], dx
jne 0x40a14a
add eax, 4
xor ebx, ebx
add ecx, eax
xor ebp, ebp
mov dword [esp + 0x10], ecx
movzx eax, word [ecx + 0x10]
lea edi, [ecx + 0x14]
add edi, eax
xor eax, eax
cmp ax, word [ecx + 2]
jae 0x40a14a
test ebx, ebx
jne 0x40a135
push str..rsrc
push edi
call fcn.004202e4
pop ecx
pop ecx
test eax, eax
jne 0x40a121
inc ebx
jmp 0x40a124
add edi, 0x28
mov eax, dword [esp + 0x10]
inc ebp
movzx eax, word [eax + 2]
cmp ebp, eax
jl 0x40a109
test ebx, ebx
je 0x40a14a
mov ecx, dword [edi + 0x14]
xor eax, eax
and dword [esi + 0x2c], 0
inc eax
mov dword [esi + 0x28], ecx
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x30], ecx
jmp 0x40a14c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40fe0a
Capabilities:
Hide graphical window
Resume thread
Terminate thread

Disassembly:
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov edi, dword [esp + 0x14]
cmp edi, dword [esi + 0x50]
jne 0x40fe60
push ebp
push dword [esi + 0x50]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebp
inc ebp
push ebp
push 0x402
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xa
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push dword [esi + 0xc]
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea ecx, [esi + 0x28]
mov dword [esi + 0x1c], ebp
call fcn.0040b37e
mov dword [esi + 0x2c], eax
xor ebp, ebp
cmp edi, dword [esi + 0x54]
jne 0x40fe91
cmp dword [esi + 0x1c], ebp
je 0x40fe84
push dword [esi + 0x18]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0x80010001
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
push ebp
push 0x10
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
ret 8
Function at 0x40fec0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
mov edi, ecx
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [edi + 8]
xor esi, esi
movaps xmm0, xmmword [0x43bca0]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x40f9e5
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], str.CLASS_FENATTENTETELECHARGEMENTFW
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x40ff1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80000000
jmp 0x41002e
push ebx
lea ecx, [edi + 0x24]
call fcn.0040b37e
mov ebx, 0x10000000
mov dword [edi + 0x2c], eax
cmp dword [edi], esi
je 0x40ff40
push esi
push dword [edi]
mov ebx, 0x10c00000
call dword [sym.imp.USER32.dll_EnableWindow]
lea ecx, [edi + 0x20]
call fcn.0040b37e
push esi
push dword [edi + 8]
mov ecx, 0x80000000
push esi
push dword [edi]
push 0xe6
push 0x1e0
push ecx
push ecx
push ebx
push eax
push str.CLASS_FENATTENTETELECHARGEMENTFW
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x41001d
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
push ebx
call dword [sym.imp.USER32.dll_BringWindowToTop]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
push 0xa
push 1
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [edi + 0x18], eax
lea eax, [ebp - 4]
push eax
push 4
push edi
push 0x40f8c7
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x40ffcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80000000
jmp 0x41002d
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x40ffe9
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
call ebx
test eax, eax
jne 0x40ffd5
cmp dword [edi], esi
je 0x410004
push 1
push dword [edi]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 8]
push str.CLASS_FENATTENTETELECHARGEMENTFW
call dword [sym.imp.USER32.dll_UnregisterClassW]
jmp 0x41002b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
or esi, 0x80000000
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411726
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 0x411756
xor eax, eax
jmp 0x41179b
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41175c
push edi
sub ecx, edx
xor edi, edi
sar ecx, 1
inc edi
lea eax, [ecx*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
mov esp, ebp
pop ebp
ret

Function at 0x4117a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0042d240
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 0x4117d1
xor eax, eax
jmp 0x411816
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 0x41180b
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x200c]
xor esi, esi
inc esi
call fcn.0040b3c0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411821
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, edx
push edi
call fcn.00411bed
mov edi, eax
test edi, edi
jne 0x41193c
cmp dword [0x442390], eax
je 0x41187b
mov edi, 0x4369d0
mov ecx, edi
call fcn.00411ab1
test eax, eax
je 0x41187b
mov edx, edi
lea ecx, [ebp - 4]
call fcn.00412b2d
mov ecx, eax
call fcn.0040b37e
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 4]
mov esi, eax
call fcn.0040b313
mov eax, esi
jmp 0x41194d
mov ecx, esi
call fcn.00411953
test eax, eax
jne 0x4118bf
mov ecx, dword [0x4423a0]
cmp dword [ecx + 0x63a], eax
jne 0x4118bf
cmp dword [ecx + 0x878], eax
je 0x4118a7
mov ecx, esi
call fcn.00411a07
test eax, eax
jne 0x4118bf
mov ecx, esi
call fcn.00411ab1
test eax, eax
jne 0x4118bf
mov ecx, esi
call fcn.00411b8d
neg eax
sbb eax, eax
neg eax
xor edi, edi
inc edi
cmp dword [0x4422a8], edi
je 0x4118e9
mov ecx, esi
test eax, eax
je 0x4118d9
call fcn.004128ab
mov edi, eax
jmp 0x4118de
call fcn.0041284d
test edi, edi
je 0x4118e9
mov ecx, esi
call fcn.0041214e
push ebx
mov edx, esi
lea ecx, [ebp - 4]
call fcn.00412b2d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 4]
mov esi, eax
call fcn.0040b37e
mov ebx, eax
jmp 0x411926
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, esi
cmp ecx, 0x1388
ja 0x411933
cmp eax, esi
jb 0x411933
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x411908
lea ecx, [ebp - 4]
call fcn.0040b313
pop ebx
call fcn.00403d6a
test eax, eax
je 0x41194b
add edi, 0x800000
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x411c92
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_SOFTFramework23.0
push str._s_s
push eax
mov edi, ecx
xor esi, esi
call fcn.00402d4f
add esp, 0x10
mov dword [ebp - 8], esi
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
push eax
push 1
push esi
call fcn.0040b37e
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411d18
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 0x411d0a
inc esi
jmp 0x411d0f
xor eax, eax
mov word [edi], ax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xc]
call fcn.0040b313
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411d28
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
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x411d3e
sub esi, ecx
lea eax, [esi*2 + 2]
call fcn.0042cfb0
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.00412c67
test eax, eax
je 0x411df3
mov edi, 0x4368b0
mov esi, 0x442394
push edi
push dword [eax]
mov ecx, esi
call fcn.0040b37e
mov edx, eax
lea ecx, [ebp - 0x210]
call fcn.0040772a
pop ecx
pop ecx
push edi
push dword [ebp - 4]
mov ecx, esi
call fcn.0040b37e
mov edx, eax
lea ecx, [ebp - 0x41c]
call fcn.0040772a
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
pop ecx
call edi
mov esi, eax
jmp 0x411ddc
call edi
mov ecx, eax
sub ecx, esi
cmp ecx, 0x1388
ja 0x411df3
cmp eax, esi
jb 0x411df3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x41c]
call fcn.0040735f
pop ecx
test eax, eax
je 0x411dc2
lea esp, [ebp - 0x428]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411e00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42f388
call fcn.0042ef64
sub esp, 0x10
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040a3ee
and dword [ebp - 4], 0
mov eax, dword [0x4423a0]
push dword [eax + 0x642]
call fcn.0040a415
push str.INFOEXE
push 0x7d
push dword [0x44239c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [0x44239c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [0x4423a0]
mov edi, dword [ebp - 0x18]
push dword [ecx + 0x642]
push eax
push edi
call fcn.0042d270
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x411ef4
push 0xe
push str.WLL_list
push edi
call fcn.0041c420
add esp, 0xc
test eax, eax
jne 0x411ef4
lea ecx, [edi + 0xe]
mov edx, 0x101
movzx edi, word [ecx]
lea eax, [edi - 0x5800]
cmp ax, dx
ja 0x411ef4
push ebx
jmp 0x411ee9
mov edx, ecx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x411eaa
sub edx, esi
lea esi, [ecx + edx]
movzx edx, word [esi + 1]
lea eax, [esi + 1]
add esi, 5
mov dword [ebp - 0x10], eax
test bl, 4
je 0x411ed0
call fcn.00411d28
mov eax, dword [ebp - 0x10]
mov ecx, 0x5800
cmp di, cx
cmovbe esi, eax
mov eax, 0x5900
cmp di, ax
lea ecx, [esi + 4]
cmovbe ecx, esi
mov bl, byte [ecx + 4]
add ecx, 5
test bl, bl
jns 0x411ea5
pop ebx
lea ecx, [ebp - 0x1c]
call fcn.0040a3ff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x411f0c
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
jne 0x411f39
xor eax, eax
jmp 0x411ff3
call fcn.0042cfb0
mov esi, esp
test esi, esi
je 0x411f32
push edi
push 0
push esi
call fcn.0041b200
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 0x411f32
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x70]
push eax
push 0x440ae8
push esi
call edi
test eax, eax
je 0x411f32
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 0x440aac
push eax
call fcn.00405699
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 0x411fde
push str.VersionVI
lea eax, [ebp - 0x64]
push 0x440a70
push eax
call fcn.00405699
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 0x411f32
push 0x14
push dword [ebp + 0x70]
push ebx
call fcn.0041bec7
xor eax, eax
add esp, 0xc
mov word [ebx + 0x26], ax
inc eax
lea esp, [ebp - 0x70]
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x74]
pop ebp
ret
Function at 0x411ffe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x20c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, ecx
push esi
push edi
push str.FRAMEWORK
push 0x84
push dword [0x44239c]
call ebp
push eax
push dword [0x44239c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
mov ecx, 0x44236c
call fcn.0040b3c0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x44236c]
xor edi, edi
test eax, eax
je 0x41205b
cmp word [eax], di
jne 0x41206a
mov edx, str.Recherche_et_installation_du_framework_WINDEV._r_nRemarque_:_Vous_devez_avoir_un_acc
mov ecx, 0x44236c
call fcn.0040b3c0
mov ecx, 0x442394
call fcn.0040b37e
lea edx, [esp + 0x10]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x41207a
lea ecx, [esp + 0x10]
call fcn.0040755f
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
cmp ax, di
jne 0x412094
lea edi, [esp + 0x10]
sub ebx, esi
sub edi, 2
xor ecx, ecx
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x4120aa
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00407388
push str.FRAMEWORK
test eax, eax
je 0x4120dd
push 0x85
jmp 0x4120e2
push 0x86
push dword [0x44239c]
call ebp
push eax
push dword [0x44239c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, 0x44238c
mov edx, eax
mov ecx, edi
call fcn.0040b3c0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x44238c]
test eax, eax
je 0x412125
xor ecx, ecx
cmp word [eax], cx
jne 0x412143
lea ecx, [esp + 0x10]
call fcn.00407388
mov ecx, edi
mov edx, str.Ce_programme_a
test eax, eax
jne 0x41213e
mov edx, str.Cette_application_a_besoin_du_framework_WINDEV_pour_fonctionner._r_nIl_nest_pas_install
call fcn.0040b3c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
Function at 0x412719
Capabilities:
Query or enumerate registry value

Disassembly:
xor edx, edx
push esi
inc edx
mov esi, ecx
call 0x412737
test eax, eax
je 0x41272d
xor eax, eax
inc eax
pop esi
ret
mov ecx, esi
xor edx, edx
pop esi
jmp 0x412737
mov eax, 0x42f066
call fcn.0042ef64
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 0x41283b
push 0x20a
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.0041b200
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 0x412832
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
test edi, edi
je 0x4127cf
push ecx
push 0x438e70
mov edx, 0x105
lea ecx, [ebp - 0x224]
call fcn.0040a570
pop ecx
pop ecx
cmp word [ebp - 0x224], 0
je 0x41282a
lea ecx, [ebp - 0x224]
call fcn.00407769
test eax, eax
je 0x41282a
push 0x4369d0
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x10]
push str._s_s
push eax
call fcn.0040b982
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040b37e
mov ecx, eax
call fcn.0040773f
mov esi, eax
test esi, esi
je 0x41282a
lea edx, [ebp - 0x224]
mov ecx, 0x442394
call fcn.0040b3c0
lea ecx, [ebp - 0x10]
call fcn.0040b313
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
mov esp, ebp
pop ebp
ret
Function at 0x412737
Capabilities:
Query or enumerate registry value

Disassembly:
xor edx, edx
push esi
inc edx
mov esi, ecx
call 0x412737
test eax, eax
je 0x41272d
xor eax, eax
inc eax
pop esi
ret
mov ecx, esi
xor edx, edx
pop esi
jmp 0x412737
mov eax, 0x42f066
call fcn.0042ef64
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 0x41283b
push 0x20a
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.0041b200
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 0x412832
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
test edi, edi
je 0x4127cf
push ecx
push 0x438e70
mov edx, 0x105
lea ecx, [ebp - 0x224]
call fcn.0040a570
pop ecx
pop ecx
cmp word [ebp - 0x224], 0
je 0x41282a
lea ecx, [ebp - 0x224]
call fcn.00407769
test eax, eax
je 0x41282a
push 0x4369d0
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x10]
push str._s_s
push eax
call fcn.0040b982
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040b37e
mov ecx, eax
call fcn.0040773f
mov esi, eax
test esi, esi
je 0x41282a
lea edx, [ebp - 0x224]
mov ecx, 0x442394
call fcn.0040b3c0
lea ecx, [ebp - 0x10]
call fcn.0040b313
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
mov esp, ebp
pop ebp
ret