joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401063
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], eax
xor eax, eax
push edi
mov edi, dword [ebp + 0x18]
mov dword [esi + 8], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
lea eax, [ebp + 8]
push eax
push 0x40
push dword [ebp + 0x1c]
mov dword [esi + 0xc], edx
mov edx, dword [ebp + 0x14]
push edi
mov dword [esi + 4], ecx
mov dword [esi + 0x10], edx
call dword [ecx + 0x54]
test eax, eax
jne 0x4010bb
mov dword [esi + 8], 9
jmp 0x401194
push ebx
mov ebx, dword [esi + 0x10]
cmp ebx, 0x40
jae 0x4010d0
mov dword [esi + 8], 1
jmp 0x401193
mov eax, dword [esi + 0xc]
mov ecx, 0x5a4d
mov dword [esi + 0x14], eax
cmp word [eax], cx
je 0x4010ec
mov dword [esi + 8], 2
jmp 0x401193
mov ecx, dword [eax + 0x3c]
lea edx, [ecx + 0xf8]
cmp ebx, edx
jae 0x401105
mov dword [esi + 8], 3
jmp 0x401193
add ecx, eax
mov dword [esi + 0x18], ecx
cmp dword [ecx], 0x4550
je 0x40111b
mov dword [esi + 8], 4
jmp 0x401193
mov edx, dword [esi + 0x18]
mov ecx, edi
and ecx, 0xfff
sub edi, ecx
lea ecx, [edi + 0x1000]
mov dword [esi + 0x20], ecx
mov edx, dword [edx + 0x54]
add edx, dword [eax + 0x3c]
cmp ebx, edx
jae 0x401144
mov dword [esi + 8], 7
jmp 0x401193
push edx
push eax
push ecx
call fcn.0040103e
mov eax, dword [esi + 0x18]
movzx ecx, word [eax + 0x14]
xor edx, edx
add esp, 0xc
xor ebx, ebx
lea ecx, [ecx + eax + 0x18]
cmp dx, word [eax + 6]
jae 0x401193
lea edi, [ecx + 0x10]
mov eax, dword [edi]
test eax, eax
je 0x401184
push eax
mov eax, dword [edi + 4]
add eax, dword [esi + 0xc]
push eax
mov eax, dword [edi - 4]
add eax, dword [esi + 0x20]
push eax
call fcn.0040103e
add esp, 0xc
mov eax, dword [esi + 0x18]
movzx eax, word [eax + 6]
inc ebx
add edi, 0x28
cmp ebx, eax
jl 0x401167
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x4011bf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
lea ecx, [ecx + eax + 0x78]
cmp dword [ecx + 4], 0
push ebx
push edi
jne 0x4011da
xor eax, eax
jmp 0x40124a
push esi
mov esi, dword [ecx]
add esi, eax
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x401247
cmp dword [esi + 0x14], 0
je 0x401247
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x24]
or dword [ebp - 8], 0xffffffff
add edi, eax
add ebx, eax
test ecx, ecx
je 0x401247
mov dword [ebp - 4], ecx
jmp 0x401206
mov eax, dword [ebp + 8]
mov ecx, dword [edi]
add ecx, eax
push ecx
push dword [ebp + 0xc]
call section..text
pop ecx
pop ecx
test eax, eax
jne 0x40121f
movzx eax, word [ebx]
mov dword [ebp - 8], eax
add edi, 4
add ebx, 2
dec dword [ebp - 4]
jne 0x401203
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x401247
cmp eax, dword [esi + 0x14]
jg 0x401247
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + ecx]
add eax, ecx
jmp 0x401249
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x4018de
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
and dword [esi + 0x30], 0
push edi
call fcn.004017e4
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0xc]
add edi, 0xc
mov ebx, dword [edi]
jmp 0x401924
push 0xa
push 0xa
push 0x9722d8
push 0x3114b604
call fcn.0040207e
add esp, 0xc
push eax
push dword [ebx + 0x30]
call fcn.00401852
add esp, 0xc
test eax, eax
je 0x40192d
mov ebx, dword [ebx]
cmp ebx, edi
jne 0x4018fc
jmp 0x4019bf
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x4019bf
mov eax, dword [ebx + 0x3c]
mov edi, dword [eax + ebx + 0x78]
and dword [esp + 0xc], 0
add edi, ebx
mov eax, dword [edi + 0x1c]
add eax, ebx
push ebp
mov ebp, dword [edi + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x24]
add eax, ebx
add ebp, ebx
cmp dword [edi + 0x18], 0
mov dword [esp + 0x18], eax
jbe 0x4019bb
mov eax, dword [esp + 0x10]
mov eax, dword [ebp + eax*4]
push 0x16
add eax, ebx
push 0x9722c0
push 0x40704011
mov dword [esp + 0x20], eax
call fcn.00402030
push eax
push dword [esp + 0x24]
call section..text
add esp, 0x14
test eax, eax
je 0x4019a3
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [edi + 0x18]
jb 0x401964
jmp 0x4019bb
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + eax*4]
add eax, ebx
mov dword [esi + 4], eax
mov dword [esi + 0x30], ebx
pop ebp
cmp dword [esi + 0x30], 0
je 0x401b26
push 0xa
push 0x9722b4
push 0x29a1a909
call fcn.00402030
add esp, 0xc
push eax
push esi
mov ecx, esi
call fcn.004018b6
push 0xc
push 0x9722a4
push 0x13cbcee9
call fcn.00402030
add esp, 0xc
push eax
lea eax, [esi + 8]
push eax
mov ecx, esi
call fcn.004018b6
push 0x18
push 0x972288
push 0x17ce53be
call fcn.00402030
add esp, 0xc
push eax
lea eax, [esi + 0xc]
push eax
mov ecx, esi
call fcn.004018b6
push 0xf
push 0x972278
push 0x26b30b69
call fcn.00402030
add esp, 0xc
push eax
lea eax, [esi + 0x10]
push eax
mov ecx, esi
call fcn.004018b6
push 0x12
push 0x972264
push 0x3d924530
call fcn.00402030
add esp, 0xc
push eax
lea eax, [esi + 0x14]
push eax
mov ecx, esi
call fcn.004018b6
push 7
push 0x97225c
push 0x2236409a
call fcn.00402030
add esp, 0xc
push eax
lea eax, [esi + 0x18]
push eax
mov ecx, esi
call fcn.004018b6
push 0x14
push 0x972244
push 0x149ccd04
call fcn.00402030
add esp, 0xc
push eax
lea eax, [esi + 0x1c]
push eax
mov ecx, esi
call fcn.004018b6
push 0x11
push 0x972230
push 0x673ebfe9
call fcn.00402030
add esp, 0xc
push eax
lea eax, [esi + 0x20]
push eax
mov ecx, esi
call fcn.004018b6
push 0x11
push 0x97221c
push 0x68d29b96
call fcn.00402030
add esp, 0xc
push eax
lea eax, [esi + 0x24]
push eax
mov ecx, esi
call fcn.004018b6
push 0x16
push 0x972204
push 0x7db65c79
call fcn.00402030
add esp, 0xc
push eax
lea eax, [esi + 0x28]
push eax
mov ecx, esi
call fcn.004018b6
push 0x13
push 0x9721f0
push 0x65fa79df
call fcn.00402030
add esp, 0xc
push eax
lea eax, [esi + 0x2c]
push eax
mov ecx, esi
call fcn.004018b6
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x401bce
Capabilities:
Encode data using xor

Disassembly:
push esi
mov eax, section..data
mov ecx, 0x3b9a
mov esi, 0x1acea7
imul ecx, ecx, 0x19660d
add ecx, 0x3c6ef35f
mov edx, ecx
shr edx, 0xc
xor byte [eax], dl
inc eax
dec esi
jne 0x401bde
pop esi
ret

Function at 0x401d3a
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
push ebx
mov ebx, eax
push esi
mov esi, dword [ebx + 0x3c]
add esi, ebx
movzx eax, word [esi + 0x14]
push edi
lea edi, [eax + esi + 0x18]
xor eax, eax
cmp ax, word [esi + 6]
jae 0x401d81
push 7
push str..custom
push edi
call fcn.00401852
add esp, 0xc
test eax, eax
je 0x401d88
movzx eax, word [esi + 6]
inc dword [ebp - 4]
add edi, 0x28
cmp dword [ebp - 4], eax
jl 0x401d5e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [edi + 0xc]
mov esi, dword [eax + ebx]
lea edi, [eax + ebx + 8]
mov ebx, dword [eax + ebx + 4]
push esi
call fcn.004020dc
and dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 8]
push ecx
push 1
push 5
push edi
lea ecx, [ebp - 0xc]
push ecx
add edi, 5
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], 0x401bf7
mov dword [ebp - 0x14], 0x401c02
call fcn.00403a23
add esp, 0x28
test eax, eax
je 0x401de8
push dword [ebp - 4]
call fcn.004020f3
pop ecx
jmp 0x401d81
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp - 4]
jmp 0x401d83

Function at 0x402030
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push esi
xor esi, esi
test ebx, ebx
je 0x40206f
push edi
mov edi, dword [esp + 0x14]
sub edi, 0xb1feb8
imul edx, edx, 0x19660d
add edx, 0x3c6ef35f
mov eax, edx
shr eax, 0xc
xor al, byte [edi + esi + 0xb1feb8]
inc esi
mov byte [esi + 0xb1feb7], al
cmp esi, ebx
jb 0x40204b
pop edi
pop esi
mov byte [ebx + 0xb1feb8], 0
mov eax, 0xb1feb8
pop ebx
ret

Function at 0x40207e
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
je 0x4020bc
mov eax, dword [esp + 0x10]
sub eax, 0xb1feb8
push ebx
imul edx, edx, 0x19660d
add edx, 0x3c6ef35f
mov ebx, edx
shr ebx, 0xc
xor bl, byte [eax + esi + 0xb1feb8]
inc esi
mov byte [esi + 0xb1feb7], bl
cmp esi, edi
jb 0x402098
pop ebx
mov byte [edi + 0xb1feb8], 0
mov byte [edi + 0xb1feb9], 0
pop edi
mov eax, 0xb1feb8
pop esi
ret
Function at 0x402173
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x40218c
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 4], ecx
lea edi, [eax + esi]
jmp 0x4021af
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x4021b4
inc edi
cmp edi, dword [ebp - 4]
jb 0x4021a6
mov eax, edi
sub eax, esi
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 4]
jae 0x4022ac
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x40220b
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp + 0xc], eax
test cl, cl
je 0x4021df
cmp cl, 0xff
jne 0x402236
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
cmp dword [ebp + 0x18], 0
je 0x402244
lea ebx, [esi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x40224b
dec ecx
shl edx, cl
and edx, 7
je 0x4021d0
movzx ecx, byte [edx + 0x972378]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x972370], 0
mov cl, byte [ebx + 4]
je 0x402233
test cl, cl
je 0x402233
cmp cl, 0xff
jne 0x4021d0
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4021a1
sub esi, eax
sub esi, dword [ebp + 0x10]
mov ebx, esi
test edx, edx
je 0x40227f
movzx esi, byte [edx + 0x972378]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
mov eax, ebx
shr eax, cl
test al, al
je 0x40226a
cmp al, 0xff
jne 0x40227c
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, ebx
jmp 0x4021fd
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x4021a1
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
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.0041f9a6
lea eax, [ebp - 0x134]
push esi
push eax
call fcn.0041f9c8
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.0041f9f9
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.0041f9f9
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.00430120
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.0040efc0
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 [0x4472c4], 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.0040ef7e
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 8]
mov esi, eax
call fcn.0040eef5
mov eax, esi
jmp 0x401853
mov ecx, esi
call fcn.00401857
test eax, eax
jne 0x4017c8
mov ecx, dword [0x4472d4]
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 [0x4473a0], 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.0040ef7e
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x401806
lea ecx, [ebp - 4]
call fcn.0040eef5
call fcn.0041719f
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_SOFTFramework25.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.0040ef7e
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.0040eef5
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.0041f530
mov esi, eax
pop ecx
lea eax, [esi*2 + 2]
call fcn.0042fd00
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.0041614c
test eax, eax
je 0x401cd4
mov edi, 0x43ace4
mov esi, 0x4472c8
push edi
push dword [eax]
mov ecx, esi
call fcn.0040ef7e
mov edx, eax
lea ecx, [ebp - 0x210]
call fcn.0040bebe
pop ecx
pop ecx
push edi
push dword [ebp - 4]
mov ecx, esi
call fcn.0040ef7e
mov edx, eax
lea ecx, [ebp - 0x41c]
call fcn.0040bebe
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, 0x4301d4
call fcn.00430150
sub esp, 0x14
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0040df66
and dword [ebp - 4], 0
mov eax, dword [0x4472d4]
push dword [eax + 0x642]
call fcn.0040dfaa
push str.INFOEXE
push 0x7d
push dword [0x4472d0]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [0x4472d0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [0x4472d4]
mov edi, dword [ebp - 0x1c]
push dword [ecx + 0x642]
push eax
push edi
call fcn.00419790
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.0041fbd0
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.0041f530
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.0040df77
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.0042fd00
mov esi, esp
test esi, esi
je 0x401ecf
push edi
push 0
push esi
call fcn.00419d10
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.0041fa14
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 [0x4472d0]
mov dword [ebp - 4], ecx
call edi
push eax
push dword [0x4472d0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
mov ecx, 0x4472bc
call fcn.0040efc0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x4472bc]
xor ecx, ecx
test eax, eax
je 0x401f3b
cmp word [eax], cx
jne 0x401f4a
mov edx, 0x43a788
mov ecx, 0x4472bc
call fcn.0040efc0
mov ecx, 0x4472c8
call fcn.0040ef7e
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0041f9a6
lea ecx, [ebp - 0x210]
call fcn.0040bda4
push dword [ebp - 4]
lea eax, [ebp - 0x210]
push eax
call fcn.0041f9c8
add esp, 0x10
lea ecx, [ebp - 0x210]
call fcn.0040bbe5
push str.FRAMEWORK
test eax, eax
je 0x401f99
push 0x85
jmp 0x401f9e
push 0x86
push dword [0x4472d0]
call edi
push eax
push dword [0x4472d0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, 0x4472c0
mov edx, eax
mov ecx, edi
call fcn.0040efc0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x4472c0]
test eax, eax
je 0x401fe1
xor ecx, ecx
cmp word [eax], cx
jne 0x402001
lea ecx, [ebp - 0x210]
call fcn.0040bbe5
mov ecx, edi
mov edx, 0x43a918
test eax, eax
jne 0x401ffc
mov edx, str.Premier_lancement_de_lapplication._r_nLes
call fcn.0040efc0
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, 0x4301b0
call fcn.00430150
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.00419d10
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.0040e11e
pop ecx
pop ecx
cmp word [ebp - 0x224], 0
je 0x4025e4
lea ecx, [ebp - 0x224]
call fcn.0040bf89
test eax, eax
je 0x4025e4
push 0x43a650
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x10]
push 0x43a730
push eax
call fcn.0040f56f
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040ef7e
mov ecx, eax
call fcn.0040bf61
mov esi, eax
test esi, esi
je 0x4025e4
lea edx, [ebp - 0x224]
mov ecx, 0x4472c8
call fcn.0040efc0
lea ecx, [ebp - 0x10]
call fcn.0040eef5
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