joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7f2fe899
Capabilities:
Read clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
push edi
push ebx
call esi
xor edi, edi
cmp dword [0x7f30bacc], edi
mov dword [ebp - 8], eax
jne 0x7f2fea02
cmp eax, edi
jne 0x7f2fe9ff
push ebx
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x7f2fe9ff
push ebx
call sym.unicows.dll_IsClipboardFormatAvailable
test eax, eax
je 0x7f2fe9ff
xor eax, eax
cmp ebx, 0xd
setne al
mov dword [ebp + 8], eax
neg eax
sbb eax, eax
and eax, 0xc
inc eax
push eax
call esi
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x7f2fe9ff
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x7f2fe9ff
push 0x10
call esi
cmp dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
je 0x7f2fe943
cmp ebx, 7
jne 0x7f2fe943
cmp eax, edi
je 0x7f2fe93b
lea eax, [ebp - 0xc]
push eax
call fcn.7f2d4328
mov ebx, eax
jmp 0x7f2fe958
mov ebx, dword [0x7f30b084]
jmp 0x7f2fe958
cmp eax, edi
je 0x7f2fe952
lea eax, [ebp - 0xc]
push eax
call fcn.7f2d42d2
jmp 0x7f2fe937
mov ebx, dword [0x7f30bac8]
push ebx
call fcn.7f2d40c6
cmp dword [ebp + 8], edi
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
je 0x7f2fe978
call fcn.7f2daf04
mov esi, eax
inc esi
imul esi, dword [ebp - 0x10]
pop ecx
jmp 0x7f2fe982
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + eax + 2]
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x7f2fe9f6
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
jne 0x7f2fe9a8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x7f2fe9f6
cmp dword [ebp + 8], edi
je 0x7f2fe9c0
push edi
push edi
push esi
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x7f2fe9d1
shr esi, 1
push esi
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, dword [ebp - 0x10]
mov esi, eax
neg esi
sbb esi, esi
push ebx
neg esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp esi, edi
je 0x7f2fe9ec
mov dword [ebp - 8], ebx
jmp 0x7f2fe9f6
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 8], edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401207
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x4182d8]
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [0x4182dc]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], eax
mov esi, dword [edi]
mov edx, dword [edi + 4]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], edx
call fcn.00401200
mov ebx, dword [ebp - 0x18]
add ebx, 0x23f
cmp dword [0xae01a4], 0x14
jne 0x401265
push 0
lea eax, [ebp - 0x830]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov edx, dword [ebp - 0xc]
mov ecx, dword [0x4182e0]
mov eax, dword [0x4182e4]
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
pop edi
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov eax, esi
mov dword [ebp - 0xc], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0xae01a4], 0xfa9
mov dword [ebp - 8], eax
mov eax, dword [0xae01a0]
cmove eax, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
cmp dword [0xae01a4], 0x3eb
mov dword [0xae01a0], eax
mov eax, dword [0xae00f8]
cmove eax, dword [ebp - 0xc]
mov dword [0xae00f8], eax
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
shr eax, 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
and dword [ebp - 0x10], 0
mov dword [0xae019c], 0xf4ea3dee
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 4]
sub edx, eax
mov dword [ebp - 0x14], eax
mov eax, edx
mov dword [ebp - 0xc], edx
shl eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebx + edx]
and dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor dword [ebp - 0x10], eax
cmp dword [0xae01a4], 0xb03
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jne 0x401363
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
add ebx, 0x61c88647
mov ecx, dword [ebp - 0x24]
sub esi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
dec edi
jne 0x401279
mov edi, dword [ebp - 0x2c]
mov dword [edi], esi
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c062
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417f10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407f6c
mov dword [ebp - 0x14], eax
cmp dword [0x43b994], esi
jne 0x40c155
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c0e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c235
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c235
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c235
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43b994], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43b998], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43b99c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43b9a4], eax
test eax, eax
je 0x40c152
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43b9a0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c17a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c16d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c18f
push 4
pop eax
jmp 0x40c237
cmp dword [ebp - 0x14], esi
je 0x40c18f
push dword [0x43b994]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c174
mov eax, dword [0x43b9a0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c1ed
cmp dword [0x43b9a4], edi
je 0x40c1ed
push eax
call ebx
push dword [0x43b9a4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c1ed
test eax, eax
je 0x40c1ed
call ecx
test eax, eax
je 0x40c1e2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c1e2
test byte [ebp - 8], 1
jne 0x40c1ed
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c21d
mov eax, dword [0x43b998]
cmp eax, edi
je 0x40c21a
push eax
call ebx
test eax, eax
je 0x40c21a
call eax
mov esi, eax
test esi, esi
je 0x40c21a
mov eax, dword [0x43b99c]
cmp eax, edi
je 0x40c21a
push eax
call ebx
test eax, eax
je 0x40c21a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43b994]
call ebx
test eax, eax
je 0x40c235
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c237
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040a8
mov esp, ebp
pop ebp
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.0041fa56
lea eax, [ebp - 0x134]
push esi
push eax
call fcn.0041fa78
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.0041faa9
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.0041faa9
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.004301c0
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.0040f03e
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 [0x4482c4], 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.0040effc
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 8]
mov esi, eax
call fcn.0040ef71
mov eax, esi
jmp 0x401853
mov ecx, esi
call fcn.00401857
test eax, eax
jne 0x4017c8
mov ecx, dword [0x4482d4]
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 [0x4483c0], 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.0040effc
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x401806
lea ecx, [ebp - 4]
call fcn.0040ef71
call fcn.0041724e
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.0040effc
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.0040ef71
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.0041f5e0
mov esi, eax
pop ecx
lea eax, [esi*2 + 2]
call fcn.0042fda0
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.004161fc
test eax, eax
je 0x401cd4
mov edi, 0x43ad64
mov esi, 0x4482c8
push edi
push dword [eax]
mov ecx, esi
call fcn.0040effc
mov edx, eax
lea ecx, [ebp - 0x210]
call fcn.0040bfb5
pop ecx
pop ecx
push edi
push dword [ebp - 4]
mov ecx, esi
call fcn.0040effc
mov edx, eax
lea ecx, [ebp - 0x41c]
call fcn.0040bfb5
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, 0x430276
call fcn.004301f0
sub esp, 0x14
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0040dfc6
and dword [ebp - 4], 0
mov eax, dword [0x4482d4]
push dword [eax + 0x642]
call fcn.0040e010
push str.INFOEXE
push 0x7d
push dword [0x4482d0]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [0x4482d0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [0x4482d4]
mov edi, dword [ebp - 0x1c]
push dword [ecx + 0x642]
push eax
push edi
call fcn.00419840
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.0041fc80
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.0041f5e0
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.0040dfd7
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.0042fda0
mov esi, esp
test esi, esi
je 0x401ecf
push edi
push 0
push esi
call fcn.00419dc0
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 0x4468c8
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 0x44688c
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 0x446850
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.0041fac4
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 [0x4482d0]
mov dword [ebp - 4], ecx
call edi
push eax
push dword [0x4482d0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
mov ecx, 0x4482bc
call fcn.0040f03e
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x4482bc]
xor ecx, ecx
test eax, eax
je 0x401f3b
cmp word [eax], cx
jne 0x401f4a
mov edx, 0x43a788
mov ecx, 0x4482bc
call fcn.0040f03e
mov ecx, 0x4482c8
call fcn.0040effc
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0041fa56
lea ecx, [ebp - 0x210]
call fcn.0040be9b
push dword [ebp - 4]
lea eax, [ebp - 0x210]
push eax
call fcn.0041fa78
add esp, 0x10
lea ecx, [ebp - 0x210]
call fcn.0040bcdc
push str.FRAMEWORK
test eax, eax
je 0x401f99
push 0x85
jmp 0x401f9e
push 0x86
push dword [0x4482d0]
call edi
push eax
push dword [0x4482d0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, 0x4482c0
mov edx, eax
mov ecx, edi
call fcn.0040f03e
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x4482c0]
test eax, eax
je 0x401fe1
xor ecx, ecx
cmp word [eax], cx
jne 0x402001
lea ecx, [ebp - 0x210]
call fcn.0040bcdc
mov ecx, edi
mov edx, 0x43a918
test eax, eax
jne 0x401ffc
mov edx, 0x43aab0
call fcn.0040f03e
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, 0x430252
call fcn.004301f0
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.00419dc0
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.0040e18a
pop ecx
pop ecx
cmp word [ebp - 0x224], 0
je 0x4025e4
lea ecx, [ebp - 0x224]
call fcn.0040bff2
test eax, eax
je 0x4025e4
push 0x43a650
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x10]
push 0x43a730
push eax
call fcn.0040f5ed
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040effc
mov ecx, eax
call fcn.0040bfca
mov esi, eax
test esi, esi
je 0x4025e4
lea edx, [ebp - 0x224]
mov ecx, 0x4482c8
call fcn.0040f03e
lea ecx, [ebp - 0x10]
call fcn.0040ef71
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, 0x430252
call fcn.004301f0
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.00419dc0
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.0040e18a
pop ecx
pop ecx
cmp word [ebp - 0x224], 0
je 0x4025e4
lea ecx, [ebp - 0x224]
call fcn.0040bff2
test eax, eax
je 0x4025e4
push 0x43a650
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x10]
push 0x43a730
push eax
call fcn.0040f5ed
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040effc
mov ecx, eax
call fcn.0040bfca
mov esi, eax
test esi, esi
je 0x4025e4
lea edx, [ebp - 0x224]
mov ecx, 0x4482c8
call fcn.0040f03e
lea ecx, [ebp - 0x10]
call fcn.0040ef71
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