joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491f50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x10], 0
jne 0x491f68
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x25], 0
je 0x491f88
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, 1
call fcn.00491e28
pop ecx
jmp 0x49200f
mov eax, dword [ebp + 8]
cmp byte [eax + 0xc], 0
je 0x491fd1
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x10]
call fcn.00404d58
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
call fcn.00404d58
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00404d58
push eax
push 0x492024
mov eax, dword [0x499558]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call fcn.0041222c
jmp 0x49200f
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x10]
call fcn.00404d58
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
call fcn.00404d58
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00404d58
push eax
push 0x492024
mov eax, dword [0x499558]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call fcn.0041222c
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
je 0x492022
mov eax, dword [ebp + 8]
push eax
call fcn.00491cf8
pop ecx
pop ebp
ret
Function at 0x492298
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd80
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x27c], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404d48
lea esi, [ebp - 0x10]
lea edi, [ebp - 0x271]
xor eax, eax
push ebp
push 0x49242a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404888
mov dword [ebp - 0x60], 0xc
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0xffffffff
push 0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00406ff8
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
je 0x492322
mov eax, 0x492440
call fcn.004712e4
jmp 0x492404
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.00403430
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], pe_nt_image_headers32
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 8
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d58
push eax
push 0
call fcn.00407000
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
je 0x4923b0
call fcn.004070c0
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x27c]
call fcn.0040b938
mov ecx, dword [ebp - 0x27c]
lea eax, [ebp - 0x278]
mov edx, 0x49245c
call fcn.00404ba4
mov eax, dword [ebp - 0x278]
call fcn.004712e4
jmp 0x492404
mov eax, dword [ebp - 8]
push eax
call fcn.00406fa0
jmp 0x4923e0
mov eax, dword [esi]
mov byte [edi + eax], 0
lea eax, [ebp - 0x280]
mov edx, edi
mov ecx, 0x201
call fcn.00404b08
mov edx, dword [ebp - 0x280]
mov eax, ebx
call fcn.00404b60
push 0
push esi
push 0x200
push edi
mov eax, dword [ebp - 0xc]
push eax
call fcn.004071c8
test eax, eax
je 0x4923fb
cmp dword [esi], 0
ja 0x4923bb
mov eax, dword [ebp - 0xc]
push eax
call fcn.00406fa0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492431
lea eax, [ebp - 0x280]
mov edx, 3
call fcn.004048ac
lea eax, [ebp - 4]
call fcn.00404888
ret
Function at 0x49319c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d48
lea edi, [ebp - 0x130]
xor eax, eax
push ebp
push 0x49332f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 4]
call fcn.0040b240
mov edx, dword [ebp - 0x134]
lea eax, [ebp - 4]
call fcn.00404920
mov dword [edi], 0x128
xor edx, edx
mov eax, 2
call fcn.00471c2c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4932d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.00471c4c
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4932b8
lea eax, [ebp - 0x13c]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404b08
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
call fcn.0040b240
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 4]
call fcn.00404e9c
test eax, eax
jle 0x4932a8
mov eax, dword [edi + 8]
push eax
push 0xffffffffffffffff
push 0x1f0fff
call fcn.004071c0
mov esi, eax
test esi, esi
je 0x493293
push 0
push esi
call fcn.00407220
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4932a8
push 0
mov cx, word [0x493340]
xor edx, edx
mov eax, 0x493348
call fcn.00477c04
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.00471c6c
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x493235
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4932de
mov eax, dword [ebp - 8]
push eax
call fcn.00406fa0
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x114ceb4
call fcn.0040121c
mov edi, 0x94
mov eax, edi
call fcn.004011dc
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x114ceb4], ecx
mov eax, dword [esi + 4]
mov dword [0x114ceb8], eax
mov edx, dword [esi + 8]
mov dword [0x114cebc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x114cec0], esi
cmp ecx, 2
je 0x401060
or esi, 0x8000
mov dword [0x114cec4], esi
shl eax, 8
add eax, edx
mov dword [0x114ceb4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40109b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40109b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4010b3
cmp eax, 0x20b
je 0x4010a0
mov dword [ebp - 0x1c], esi
jmp 0x4010c7
cmp dword [ecx + 0x84], 0xe
jbe 0x40109b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4010c1
cmp dword [ecx + 0x74], 0xe
jbe 0x40109b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00401224
pop ecx
test eax, eax
jne 0x4010f3
cmp dword [0x114ceb4], 1
jne 0x4010e0
call fcn.00401224
push 0x1c
call fcn.00401224
push 0xff
call fcn.00401224
pop ecx
pop ecx
call fcn.00401224
mov dword [ebp - 4], esi
call fcn.00401224
test eax, eax
jge 0x40110c
push 0x1b
call fcn.00401224
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x114ceb4], eax
call fcn.00401224
mov dword [0x114ceb8], eax
call fcn.00401224
test eax, eax
jge 0x401132
push 8
call fcn.00401224
pop ecx
call fcn.00401224
test eax, eax
jge 0x401143
push 9
call fcn.00401224
pop ecx
push 1
call fcn.00401224
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401159
push eax
call fcn.00401224
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401224
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40117a
movzx eax, word [ebp - 0x40]
jmp 0x40117d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401228
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40119b
push edi
call fcn.00401220
call fcn.00401224
jmp 0x4011cd
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401224
ret

Function at 0x401228
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push esi
push edi
push ebx
lea eax, [ebp - 4]
push eax
push 0x40
push 0x182000
push section..rdata
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401252
push 0xfcb37c
jmp 0x40125e
pop ebx
pop edi
pop esi
leave
ret 0x14
ret
Function at 0x430002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x401943
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.004206c4
lea eax, [ebp - 0x134]
push esi
push eax
call fcn.004206e6
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 0x401991
xor eax, eax
jmp 0x4019f1
push edi
call fcn.00420839
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 0x4019c5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40198d
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 0x4019e6
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 0x401a40
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 0x401a70
xor eax, eax
jmp 0x401aa9
push edi
push dword [ebp + 0xc]
call fcn.00420839
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 0x401aac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.004311f0
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 0x401add
xor eax, eax
jmp 0x401b22
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 0x401b17
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x200c]
xor esi, esi
inc esi
call fcn.0040fb65
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x401b2b
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.00401ea7
mov edi, eax
test edi, edi
jne 0x401c3f
cmp dword [0x44a534], eax
je 0x401b86
mov edi, 0x43ba38
mov ecx, edi
call fcn.00401d6f
test eax, eax
je 0x401b86
mov edx, edi
lea ecx, [ebp - 8]
call fcn.00402c7c
mov ecx, eax
call fcn.0040fb1f
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 8]
mov esi, eax
call fcn.0040fa91
mov eax, esi
jmp 0x401c51
mov ecx, esi
call fcn.00401c55
test eax, eax
jne 0x401bca
mov ecx, dword [0x44a544]
cmp dword [ecx + 0x63a], eax
jne 0x401bca
cmp dword [ecx + 0x878], eax
je 0x401bb2
mov ecx, esi
call fcn.00401cf3
test eax, eax
jne 0x401bca
mov ecx, esi
call fcn.00401d6f
test eax, eax
jne 0x401bca
mov ecx, esi
call fcn.00401e49
neg eax
sbb eax, eax
neg eax
cmp dword [0x44aa94], 1
je 0x401bf0
mov ecx, esi
test eax, eax
je 0x401be4
call fcn.00402a56
test eax, eax
je 0x401bf0
jmp 0x401be9
call fcn.004029ff
mov ecx, esi
call fcn.0040240c
mov edx, esi
lea ecx, [ebp - 4]
call fcn.00402c7c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
jmp 0x401c22
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, esi
cmp ecx, 0x1388
ja 0x401c37
cmp eax, esi
jb 0x401c37
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 4]
call fcn.0040fb1f
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x401c04
lea ecx, [ebp - 4]
call fcn.0040fa91
call fcn.004185fe
test eax, eax
lea ecx, [edi + 0x800000]
cmove ecx, edi
mov eax, ecx
pop edi
pop esi
leave
ret

Function at 0x401f4a
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_SOFTFramework29.0
push 0x43bb18
push eax
mov edi, ecx
xor esi, esi
call fcn.00402dfa
add esp, 0x10
mov dword [ebp - 8], esi
lea ecx, [ebp - 0xc]
call fcn.0040fb1f
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 0x401fd0
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 0x401fc2
inc esi
jmp 0x401fc7
xor eax, eax
mov word [edi], ax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xc]
call fcn.0040fa91
pop edi
mov eax, esi
pop esi
leave
ret
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.00420260
mov esi, eax
pop ecx
lea eax, [esi*2 + 2]
call fcn.00430f20
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.00417627
test eax, eax
je 0x4020db
mov edi, 0x43c0dc
mov esi, 0x44a538
push edi
push dword [eax]
mov ecx, esi
call fcn.0040fb1f
mov edx, eax
lea ecx, [ebp - 0x210]
call fcn.0040cab4
pop ecx
pop ecx
push edi
push dword [ebp - 4]
mov ecx, esi
call fcn.0040fb1f
mov edx, eax
lea ecx, [ebp - 0x41c]
call fcn.0040cab4
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, 0x431333
call fcn.00431294
sub esp, 0x14
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0040eb55
and dword [ebp - 4], 0
mov eax, dword [0x44a544]
push dword [eax + 0x642]
call fcn.0040eb9e
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.0041ace0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x4021d6
push 0xe
push 0x43bb34
push edi
call fcn.00420ce0
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.00420260
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.0040eb66
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.00430f20
mov esi, esp
test esi, esi
je 0x4022d6
push edi
push 0
push esi
call fcn.0041b260
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.00420b11
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.0040fb65
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, 0x43bb70
mov ecx, 0x44a52c
call fcn.0040fb65
mov ecx, 0x44a538
call fcn.0040fb1f
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004206c4
lea ecx, [ebp - 0x210]
call fcn.0040c93f
push dword [ebp - 4]
lea eax, [ebp - 0x210]
push eax
call fcn.004206e6
add esp, 0x10
lea ecx, [ebp - 0x210]
call fcn.0040c6d8
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.0040fb65
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.0040c6d8
mov ecx, edi
mov edx, 0x43bd00
test eax, eax
jne 0x402403
mov edx, str.Premier_lancement_de_lapplication._r_nLes
call fcn.0040fb65
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, 0x431301
call fcn.00431294
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.0041b260
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.0040ed32
pop ecx
pop ecx
cmp word [ebp - 0x224], 0
je 0x4029de
lea ecx, [ebp - 0x224]
call fcn.0040cb7f
test eax, eax
je 0x4029de
push 0x43ba38
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x10]
push 0x43bb18
push eax
call fcn.00410388
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040fb1f
mov ecx, eax
call fcn.0040cb57
mov esi, eax
test esi, esi
je 0x4029de
lea edx, [ebp - 0x224]
mov ecx, 0x44a538
call fcn.0040fb65
lea ecx, [ebp - 0x10]
call fcn.0040fa91
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, 0x431301
call fcn.00431294
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.0041b260
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.0040ed32
pop ecx
pop ecx
cmp word [ebp - 0x224], 0
je 0x4029de
lea ecx, [ebp - 0x224]
call fcn.0040cb7f
test eax, eax
je 0x4029de
push 0x43ba38
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x10]
push 0x43bb18
push eax
call fcn.00410388
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040fb1f
mov ecx, eax
call fcn.0040cb57
mov esi, eax
test esi, esi
je 0x4029de
lea edx, [ebp - 0x224]
mov ecx, 0x44a538
call fcn.0040fb65
lea ecx, [ebp - 0x10]
call fcn.0040fa91
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