joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fb4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x12f]
mov byte [ebp - 0x130], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
mov dword [ebp - 4], ebx
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40202c
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0xc], 0x104
mov eax, str.CommonFilesDir
je 0x40200c
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x130]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x130], bl
lea eax, [ebp - 0x130]
push eax
je 0x40205c
lea ecx, [ebp - 0x2c]
call fcn.004020a5
push 1
lea ecx, [ebp - 0x2c]
pop ebx
mov dword [ebp - 0x2c], 0x41b3dc
push 0x41e11c
call fcn.0040267c
jmp 0x402071
lea ecx, [ebp - 0x1c]
call fcn.004020a5
push 2
mov dword [ebp - 0x1c], 0x41b3dc
pop ebx
lea eax, [ebp - 0x1c]
mov edi, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.0040210b
test bl, 2
mov dword [edi], 0x41b3dc
je 0x402092
lea ecx, [ebp - 0x1c]
and ebx, 0xfffffffd
call fcn.00401646
test bl, 1
je 0x40209f
lea ecx, [ebp - 0x2c]
call fcn.00401646
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x40325c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00403197
lea ecx, [ebp - 0x10]
call fcn.0040181c
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403286
mov bl, 1
jmp 0x403288
xor bl, bl
lea ecx, [ebp - 0x10]
call fcn.00401646
mov al, bl
pop ebx
leave
ret
Function at 0x405618
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
lea esi, [ecx + 4]
push edi
mov dword [ebp - 8], ecx
push dword [esi]
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, esi
call fcn.004019d4
mov eax, dword [0x421970]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0xc
mov dword [ebp - 4], eax
call edi
push eax
push 0xb
call edi
push eax
mov ebx, 0x80
push 1
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
push 1
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x421970]
push 0
push 0x32
mov dword [ebp - 4], eax
call edi
push eax
push 0x31
call edi
push eax
push 1
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
push 0
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x1c]
call fcn.004016ab
push dword [0x421950]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x41b3d0
push 0x62
call fcn.00401b77
lea ecx, [ebp - 0x1c]
call fcn.0040181c
push dword [ebp - 0x18]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [esi]
call ebx
mov eax, dword [ebp - 8]
push dword [0x421950]
cmp byte [eax + 0x50], 0
je 0x40571d
push 0x46
lea ecx, [ebp - 0x1c]
call fcn.00401b77
lea ecx, [ebp - 0x1c]
call fcn.0040181c
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f2
mov dword [ebp - 8], eax
push dword [esi]
call edi
push dword [ebp - 8]
push eax
call ebx
push 2
push dword [esi]
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
jmp 0x40575b
push 0x3c
lea ecx, [ebp - 0x1c]
call fcn.00401b77
lea ecx, [ebp - 0x1c]
call fcn.0040181c
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f2
mov dword [ebp - 8], eax
push dword [esi]
call edi
push dword [ebp - 8]
push eax
call ebx
push 1
push dword [esi]
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 2
push dword [esi]
call edi
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x421950]
lea ecx, [ebp - 0x1c]
push 0x52
call fcn.00401b77
lea ecx, [ebp - 0x1c]
call fcn.0040181c
mov eax, dword [ebp - 0x18]
push 2
push dword [esi]
mov dword [ebp - 8], eax
call edi
push dword [ebp - 8]
push eax
call ebx
push dword [0x421950]
lea ecx, [ebp - 0x1c]
push 0x55
call fcn.00401b77
lea ecx, [ebp - 0x1c]
call fcn.0040181c
mov eax, dword [ebp - 0x18]
push 1
push dword [esi]
mov dword [ebp - 8], eax
call edi
push dword [ebp - 8]
push eax
call ebx
lea ecx, [ebp - 0x1c]
call fcn.004016bf
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405bd7
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 0x5c]
call edi
cmp dword [esp + 0x10], eax
jne 0x405bfe
push 3
pop edi
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov dword [esi + 0x50], edi
jmp 0x405c3b
push dword [esi + 0xac]
call edi
cmp dword [esp + 0x10], eax
jne 0x405c3b
lea edi, [esi + 0xf8]
push ebx
mov ecx, edi
call fcn.0040181c
mov ebx, dword [edi + 4]
mov ecx, edi
call fcn.0040181c
push 1
push ebx
push 0
push dword [edi + 4]
push str.open
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebx
pop edi
xor eax, eax
pop esi
ret 0x10

Function at 0x406304
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [esp + 8]
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop esi
ret 4

Function at 0x406604
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp dword [ebp + 0xc], eax
jne 0x40667b
lea ecx, [ebp - 0x20]
call fcn.00401b47
and byte [ebp - 0xc], 0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
mov eax, 0x104
mov dword [ebp - 8], ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.004066a9
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x10]
call fcn.00401684
lea ecx, [ebp - 0x20]
call fcn.0040181c
push 1
push dword [ebp - 0x1c]
push 0
push str.http:__consumer.installshield.com
push str.open
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x20]
call fcn.00401646
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x40760e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push edi
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040210b
xor ebx, ebx
mov ecx, str.__set
cmp word [str.__set], bx
mov dword [ebp - 0x18], 0x41b3dc
mov eax, ecx
je 0x40763f
inc eax
inc eax
cmp word [eax], bx
jne 0x407638
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040284c
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.004054ef
cmp word [0x41e618], bx
mov ecx, 0x41e618
mov eax, ecx
je 0x40766f
inc eax
inc eax
cmp word [eax], bx
jne 0x407668
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040284c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, ecx
cmp word [ecx], bx
je 0x407691
inc eax
inc eax
cmp word [eax], bx
jne 0x40768a
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040284c
cmp word [0x41e614], bx
mov ecx, 0x41e614
mov eax, ecx
je 0x4076b6
inc eax
inc eax
cmp word [eax], bx
jne 0x4076af
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040284c
push dword [ebp + 0x10]
xor eax, eax
lea edi, [ebp - 7]
mov byte [ebp - 8], bl
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push 0x41e610
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040295a
push 0x44
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00416130
push 0x10
lea eax, [ebp - 0x28]
push ebx
push eax
mov dword [ebp - 0x6c], 0x44
call fcn.00416130
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.0040181c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea ecx, [ebp - 0x18]
call fcn.00401646
pop edi
pop ebx
leave
ret 0xc

Function at 0x40773f
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040210b
xor esi, esi
mov eax, str.__del
cmp word [str.__del], si
mov dword [ebp - 0x10], 0x41b3dc
mov ecx, eax
je 0x40776f
inc ecx
inc ecx
cmp word [ecx], si
jne 0x407768
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0040284c
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004054ef
push 0x44
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.00416130
push 0x10
lea eax, [ebp - 0x20]
push esi
push eax
mov dword [ebp - 0x64], 0x44
call fcn.00416130
add esp, 0x18
lea ecx, [ebp - 0x10]
call fcn.0040181c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea ecx, [ebp - 0x10]
call fcn.00401646
pop esi
leave
ret 4
Function at 0x407838
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
xor ebx, ebx
mov esi, 0x421a08
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x104
mov byte [ebp - 0x1c], bl
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
call fcn.004066a9
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], eax
call fcn.00401684
cmp dword [ebp - 4], ebx
je 0x4078f4
push dword [ebp - 4]
call fcn.004161bf
pop ecx
mov dword [ebp - 8], eax
push eax
lea ecx, [ebp - 0x20]
push dword [ebp - 4]
mov dword [ebp - 0x20], 0x104
mov byte [ebp - 0x1c], bl
mov dword [ebp - 0x18], esi
push ebx
mov dword [ebp - 0x14], ebx
call fcn.004066a9
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00401684
cmp esi, ebx
je 0x4078eb
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x41e640
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4078eb
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
shr eax, 0x10
cmp ax, 3
jb 0x4078eb
push dword [ebp - 8]
call fcn.00416125
pop ecx
xor eax, eax
jmp 0x4078f7
push dword [ebp - 8]
call fcn.00416125
pop ecx
or eax, 0xffffffff
pop esi
pop ebx
leave
ret

Function at 0x4078fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push 0x20019
xor ebx, ebx
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.00401f2a
push 0x14
lea ecx, [ebp - 0x2c]
pop eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 0x41b3cc
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
call fcn.004066a9
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], ebx
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.Version
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x2c]
call fcn.00406682
cmp dword [ebp - 0x10], ebx
je 0x407980
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x40799b
lea ecx, [ebp - 0x1c]
call fcn.004016bf
cmp dword [ebp - 4], ebx
je 0x407996
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
pop eax
jmp 0x4079be
mov eax, dword [ebp - 0x10]
push esi
lea ecx, [ebp - 0x1c]
movzx esi, word [eax]
sub esi, 0x30
call fcn.004016bf
cmp dword [ebp - 4], ebx
je 0x4079bb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4079c1
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
xor ebx, ebx
push dword [0x41e310]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x407a1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407a1a
push str.Update_Manager
push ebx
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x407a0a
push ebx
push ebx
push 0x90df
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x407af5
push esi
push edi
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebx
mov edi, 0x421968
push dword [ebp + 8]
mov ecx, edi
push ebx
call fcn.00408af9
call fcn.0040992c
mov eax, 0x104
mov esi, 0x4219f8
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], bl
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
call fcn.004066a9
push eax
push dword [0x42196c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x14]
call fcn.00401684
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.00402141
mov esi, 0x421a08
push eax
mov ecx, esi
call fcn.00401f7c
lea ecx, [ebp - 0x20]
call fcn.00401646
push str.agent.exe
mov ecx, esi
call fcn.0040267c
lea ecx, [ebp - 0x34]
call fcn.00406755
push dword [0x421950]
lea ecx, [ebp - 0x34]
call fcn.00401dca
push dword [ebp + 0x14]
mov dword [0x421a18], eax
push dword [ebp + 0x10]
call fcn.00406925
pop ecx
mov esi, eax
pop ecx
mov ecx, edi
call fcn.00408c0b
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x34]
call fcn.004016bf
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4083eb
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4060
call fcn.00416190
push ebx
push esi
push edi
lea eax, [ebp - 0x30]
mov edi, 0x104
xor ebx, ebx
mov esi, 0x4219f8
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x10], bl
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
call fcn.004066a9
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], eax
call fcn.00401684
cmp dword [ebp - 4], ebx
je 0x408530
push dword [ebp - 4]
call fcn.004161bf
pop ecx
mov dword [ebp - 0x18], eax
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x10], bl
mov dword [ebp - 0xc], esi
push ebx
mov dword [ebp - 8], ebx
call fcn.004066a9
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.00401684
cmp esi, ebx
je 0x408527
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x41e640
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x408527
xor eax, eax
lea edi, [ebp - 0xf]
mov byte [ebp - 0x10], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 8]
mov eax, dword [eax + 8]
push ecx
shr eax, 0x10
push eax
lea eax, [ebp - 0x10]
push str._ld._ld
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x4060]
call fcn.00403c8a
push 0x41e6a0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], 0x41b3cc
call fcn.004090cd
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4060]
call fcn.004042e5
lea ecx, [ebp - 0x2c]
call fcn.004016bf
lea ecx, [ebp - 0x40]
call fcn.004016bf
lea ecx, [ebp - 0x4044]
call fcn.004091e9
lea ecx, [ebp - 0x4058]
call fcn.00401646
push dword [ebp - 0x18]
call fcn.00416125
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408535
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
lea eax, [ebp - 0x28]
push ebx
push eax
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40861b
push 0x4219f8
lea ecx, [ebp - 0x10]
call fcn.0040210b
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 0x41b3dc
call fcn.0040d2d0
push eax
lea ecx, [ebp - 0x10]
call fcn.00401f7c
lea ecx, [ebp - 0x38]
call fcn.00401646
cmp word [str.__startup], bx
mov eax, str.__startup
mov ecx, eax
je 0x4085b2
inc ecx
inc ecx
cmp word [ecx], bx
jne 0x4085ab
sub ecx, eax
push esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0040284c
cmp dword [ebp - 4], ebx
jne 0x4085ca
xor esi, esi
jmp 0x4085d5
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.0040181c
push esi
push dword [ebp - 0xc]
push 1
push ebx
push str.ISUSPM_Startup
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
push dword [ebp - 0x14]
test eax, eax
jne 0x40860d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
call fcn.00401646
jmp 0x4086a1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
call fcn.00401646
lea eax, [ebp - 0x24]
push 0xfffffffffffffffb
push 0x41e610
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], 0x41b3cc
mov dword [ebp - 0x10], 0x64
mov byte [ebp - 0xc], bl
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
call fcn.004066a9
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00406682
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0xe8]
push eax
call fcn.00406471
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0xe8]
call fcn.0040963f
lea ecx, [ebp - 0x88]
call fcn.00411ce4
lea ecx, [ebp - 0x98]
call fcn.004016bf
lea ecx, [ebp - 0x24]
call fcn.004016bf
pop ebx
leave
ret
Function at 0x4086a4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
push esi
mov esi, 0x421958
mov dword [ebp - 0x10], 0x41b3cc
mov ecx, esi
call fcn.0040181c
push dword [0x42195c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408708
push 1
mov ecx, esi
call fcn.004087e1
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x41e70c
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0040875f
jmp 0x408713
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.0040878f
cmp dword [ebp - 4], 0
pop esi
je 0x408755
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x408755
lea ecx, [ebp - 0x40]
call fcn.004074ff
lea ecx, [ebp - 0x40]
call fcn.00408816
test al, al
jne 0x40874d
lea eax, [ebp - 0x10]
push 1
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040760e
lea ecx, [ebp - 0x40]
call fcn.004077d8
lea ecx, [ebp - 0x10]
call fcn.004016bf
leave
ret
Function at 0x408816
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4130
call fcn.00416190
lea eax, [ebp - 0x2c]
push ebx
push eax
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push str.SOFTWAREInstallShieldUpdate_ServiceScheduler
mov dword [ebp - 0x14], ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40899b
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x408992
cmp dword [ebp - 0xc], ebx
je 0x408992
push esi
push edi
mov ecx, 0xfff
lea edi, [ebp - 0x412f]
mov byte [ebp - 0x4130], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x12f]
mov byte [ebp - 0x130], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
cmp dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
jbe 0x408982
mov esi, 0x41e5f8
cmp byte [ebp - 1], bl
jne 0x408982
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0x3fff
push eax
lea eax, [ebp - 0x130]
push eax
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x4130]
push eax
push edi
push dword [ebp - 8]
mov dword [ebp - 0x18], 0x104
mov byte [ebp - 0x4130], bl
mov byte [ebp - 0x130], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [ebp - 0x130]
lea ecx, [ebp - 0x28]
push eax
call fcn.004020a5
cmp word [0x41e5f8], bx
mov dword [ebp - 0x28], 0x41b3dc
mov eax, esi
je 0x408927
inc eax
inc eax
cmp word [eax], bx
jne 0x408920
sub eax, esi
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push esi
push ebx
call fcn.00409742
cmp word [0x41e5f8], bx
mov eax, esi
je 0x408948
inc eax
inc eax
cmp word [eax], bx
jne 0x408941
sub eax, esi
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push esi
call fcn.0040284c
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x10
push eax
call fcn.0040d36c
pop ecx
test al, al
pop ecx
je 0x408970
mov byte [ebp - 1], 1
lea ecx, [ebp - 0x28]
call fcn.00401646
inc edi
cmp edi, dword [ebp - 0xc]
jb 0x4088ba
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
jmp 0x40899d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop ebx
leave
ret

Function at 0x40ccea
Capabilities:
Check os version
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jae 0x40cd65
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp ax, 0x804
jne 0x40cd26
push 0x41e09c
jmp 0x40cd50
cmp ax, 0x404
jne 0x40cd33
push 0x41e094
jmp 0x40cd50
and eax, 0xff
cmp ax, 0x11
jne 0x40cd45
push str.MS_UI_Gothic
jmp 0x40cd50
cmp ax, 0x12
jne 0x40cd65
push 0x41e07c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0xc]
mov word [eax], 9
mov al, 1
leave
ret
xor al, al
leave
ret