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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
xor ebx, ebx
cmp dword [0x421918], ebx
push esi
push edi
jne 0x4020c1
lea ecx, [ebp - 0x18]
call fcn.00402111
push 0x20019
push str.Typeliba681f238_74bb_4807_b940_a80197ecbbe61.00win32
push SysReAllocStringLen
lea ecx, [ebp - 4]
mov dword [ebp - 0x18], 0x41b3dc
mov dword [ebp - 4], ebx
call fcn.004020d3
mov eax, 0x104
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
call fcn.004016d7
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], ebx
push ecx
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x421914
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.004016b0
cmp esi, ebx
jne 0x402022
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x18]
push eax
call fcn.004022ea
push eax
lea ecx, [ebp - 0x18]
call fcn.00402125
lea ecx, [ebp - 0x38]
call fcn.00401672
push str._ispmres.dll
jmp 0x40205a
lea eax, [ebp - 0x13c]
push str.InstallShieldUpdateService_ispmres.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.0040215d
add esp, 0x10
lea ecx, [ebp - 0x18]
push eax
call fcn.00402125
lea ecx, [ebp - 0x2c]
call fcn.00401672
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402a7d
mov eax, dword [ebp - 0xc]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x402070
xor esi, esi
jmp 0x40209c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00415ed0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [ebp - 4], ebx
mov dword [0x421918], eax
je 0x4020b9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x18]
call fcn.00401672
mov eax, dword [0x421918]
lea esp, [ebp - 0x148]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40215d
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 0x4021d5
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0xc], 0x104
mov eax, str.CommonFilesDir
je 0x4021b5
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 0x402205
lea ecx, [ebp - 0x2c]
call fcn.0040224e
push 1
lea ecx, [ebp - 0x2c]
pop ebx
mov dword [ebp - 0x2c], 0x41b3dc
push 0x41e118
call fcn.00402825
jmp 0x40221a
lea ecx, [ebp - 0x1c]
call fcn.0040224e
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.004022b4
test bl, 2
mov dword [edi], 0x41b3dc
je 0x40223b
lea ecx, [ebp - 0x1c]
and ebx, 0xfffffffd
call fcn.00401672
test bl, 1
je 0x402248
lea ecx, [ebp - 0x2c]
call fcn.00401672
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x403421
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.0040335c
lea ecx, [ebp - 0x10]
call fcn.0040185e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40344b
mov bl, 1
jmp 0x40344d
xor bl, bl
lea ecx, [ebp - 0x10]
call fcn.00401672
mov al, bl
pop ebx
leave
ret
Function at 0x40580e
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.00401b09
mov eax, dword [0x421950]
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 [0x421950]
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.004016ed
push dword [0x421930]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x41b3cc
push 0x62
call fcn.00401d20
lea ecx, [ebp - 0x1c]
call fcn.0040185e
push dword [ebp - 0x18]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [esi]
call ebx
mov eax, dword [ebp - 8]
push dword [0x421930]
cmp byte [eax + 0x50], 0
je 0x405913
push 0x46
lea ecx, [ebp - 0x1c]
call fcn.00401d20
lea ecx, [ebp - 0x1c]
call fcn.0040185e
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 0x405951
push 0x3c
lea ecx, [ebp - 0x1c]
call fcn.00401d20
lea ecx, [ebp - 0x1c]
call fcn.0040185e
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 [0x421930]
lea ecx, [ebp - 0x1c]
push 0x52
call fcn.00401d20
lea ecx, [ebp - 0x1c]
call fcn.0040185e
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 [0x421930]
lea ecx, [ebp - 0x1c]
push 0x55
call fcn.00401d20
lea ecx, [ebp - 0x1c]
call fcn.0040185e
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.00401701
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405dcd
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 0x405df4
push 3
pop edi
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov dword [esi + 0x50], edi
jmp 0x405e31
push dword [esi + 0xac]
call edi
cmp dword [esp + 0x10], eax
jne 0x405e31
lea edi, [esi + 0xf8]
push ebx
mov ecx, edi
call fcn.0040185e
mov ebx, dword [edi + 4]
mov ecx, edi
call fcn.0040185e
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 0x406235
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 0x406549
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 0x4065c0
lea ecx, [ebp - 0x20]
call fcn.00401d0c
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.004016d7
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x10]
call fcn.004016b0
lea ecx, [ebp - 0x20]
call fcn.0040185e
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.00401672
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x4075b1
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.004022b4
xor ebx, ebx
mov ecx, str.__set
cmp word [str.__set], bx
mov dword [ebp - 0x18], 0x41b3dc
mov eax, ecx
je 0x4075e2
inc eax
inc eax
cmp word [eax], bx
jne 0x4075db
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.004029f5
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.004056e5
cmp word [0x41e618], bx
mov ecx, 0x41e618
mov eax, ecx
je 0x407612
inc eax
inc eax
cmp word [eax], bx
jne 0x40760b
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.004029f5
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, ecx
cmp word [ecx], bx
je 0x407634
inc eax
inc eax
cmp word [eax], bx
jne 0x40762d
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.004029f5
cmp word [0x41e614], bx
mov ecx, 0x41e614
mov eax, ecx
je 0x407659
inc eax
inc eax
cmp word [eax], bx
jne 0x407652
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.004029f5
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.00402b03
push 0x44
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00415e70
push 0x10
lea eax, [ebp - 0x28]
push ebx
push eax
mov dword [ebp - 0x6c], 0x44
call fcn.00415e70
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.0040185e
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.00401672
pop edi
pop ebx
leave
ret 0xc

Function at 0x4076e2
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.004022b4
xor esi, esi
mov eax, str.__del
cmp word [str.__del], si
mov dword [ebp - 0x10], 0x41b3dc
mov ecx, eax
je 0x407712
inc ecx
inc ecx
cmp word [ecx], si
jne 0x40770b
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004029f5
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004056e5
push 0x44
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.00415e70
push 0x10
lea eax, [ebp - 0x20]
push esi
push eax
mov dword [ebp - 0x64], 0x44
call fcn.00415e70
add esp, 0x18
lea ecx, [ebp - 0x10]
call fcn.0040185e
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.00401672
pop esi
leave
ret 4
Function at 0x4077db
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, 0x4219e8
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.004016d7
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], eax
call fcn.004016b0
cmp dword [ebp - 4], ebx
je 0x407897
push dword [ebp - 4]
call fcn.00415eff
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.004016d7
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.004016b0
cmp esi, ebx
je 0x40788e
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 0x40788e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
shr eax, 0x10
cmp ax, 3
jb 0x40788e
push dword [ebp - 8]
call fcn.00415e59
pop ecx
xor eax, eax
jmp 0x40789a
push dword [ebp - 8]
call fcn.00415e59
pop ecx
or eax, 0xffffffff
pop esi
pop ebx
leave
ret

Function at 0x40789e
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.004020d3
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], 0x41b3d8
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
call fcn.004016d7
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.004065c7
cmp dword [ebp - 0x10], ebx
je 0x407923
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x40793e
lea ecx, [ebp - 0x1c]
call fcn.00401701
cmp dword [ebp - 4], ebx
je 0x407939
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
pop eax
jmp 0x407961
mov eax, dword [ebp - 0x10]
push esi
lea ecx, [ebp - 0x1c]
movzx esi, word [eax]
sub esi, 0x30
call fcn.00401701
cmp dword [ebp - 4], ebx
je 0x40795e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x407964
Capabilities:
Check mutex on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
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 - 8], eax
je 0x4079bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4079bd
push str.Update_Manager
push ebx
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x4079ad
push ebx
push ebx
push 0x90df
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x407adb
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, 0x421948
push dword [ebp + 8]
mov ecx, edi
push ebx
call fcn.00408adf
call fcn.00409912
mov esi, 0x104
lea ecx, [ebp - 0x1c]
push esi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x18], bl
mov dword [ebp - 0x14], 0x4219d8
mov dword [ebp - 0x10], ebx
call fcn.004016d7
push eax
push dword [0x42194c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x1c]
call fcn.004016b0
push 0x20019
push str.Typeliba681f238_74bb_4807_b940_a80197ecbbe61.00win32
push SysReAllocStringLen
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.004020d3
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x18], bl
mov dword [ebp - 0x14], 0x4219e8
mov dword [ebp - 0x10], ebx
call fcn.004016d7
lea ecx, [ebp - 0xc]
mov dword [ebp + 8], ebx
push ecx
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x421914
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x1c]
call fcn.004016b0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], ebx
call fcn.00401cd5
push dword [0x421930]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x41b3cc
call fcn.00401f73
push dword [ebp + 0x14]
mov dword [0x4219f8], eax
push dword [ebp + 0x10]
call fcn.00406854
pop ecx
mov esi, eax
pop ecx
mov ecx, edi
call fcn.00408bf1
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x30]
call fcn.00401701
cmp dword [ebp - 4], ebx
je 0x407ad7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4083d1
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4060
call fcn.00415ed0
push ebx
push esi
push edi
lea eax, [ebp - 0x30]
mov edi, 0x104
xor ebx, ebx
mov esi, 0x4219d8
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.004016d7
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], eax
call fcn.004016b0
cmp dword [ebp - 4], ebx
je 0x408516
push dword [ebp - 4]
call fcn.00415eff
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.004016d7
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004016b0
cmp esi, ebx
je 0x40850d
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 0x40850d
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.00403e4f
push 0x41e68c
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], 0x41b3d8
call fcn.004090b3
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4060]
call fcn.004044aa
lea ecx, [ebp - 0x2c]
call fcn.00401701
lea ecx, [ebp - 0x40]
call fcn.00401701
lea ecx, [ebp - 0x4044]
call fcn.004091cf
lea ecx, [ebp - 0x4058]
call fcn.00401672
push dword [ebp - 0x18]
call fcn.00415e59
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40851b
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 0x408601
push 0x4219d8
lea ecx, [ebp - 0x10]
call fcn.004022b4
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 0x41b3dc
call fcn.0040d2ee
push eax
lea ecx, [ebp - 0x10]
call fcn.00402125
lea ecx, [ebp - 0x38]
call fcn.00401672
cmp word [str.__startup], bx
mov eax, str.__startup
mov ecx, eax
je 0x408598
inc ecx
inc ecx
cmp word [ecx], bx
jne 0x408591
sub ecx, eax
push esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004029f5
cmp dword [ebp - 4], ebx
jne 0x4085b0
xor esi, esi
jmp 0x4085bb
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.0040185e
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 0x4085f3
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
call fcn.00401672
jmp 0x408687
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
call fcn.00401672
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], 0x41b3d8
mov dword [ebp - 0x10], 0x64
mov byte [ebp - 0xc], bl
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
call fcn.004016d7
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.004065c7
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0xe8]
push eax
call fcn.004063a2
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00409625
lea ecx, [ebp - 0x88]
call fcn.00411c23
lea ecx, [ebp - 0x98]
call fcn.00401701
lea ecx, [ebp - 0x24]
call fcn.00401701
pop ebx
leave
ret
Function at 0x40868a
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, 0x421938
mov dword [ebp - 0x10], 0x41b3d8
mov ecx, esi
call fcn.0040185e
push dword [0x42193c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4086ee
push 1
mov ecx, esi
call fcn.004087c7
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x41e6f8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00408745
jmp 0x4086f9
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00408775
cmp dword [ebp - 4], 0
pop esi
je 0x40873b
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x40873b
lea ecx, [ebp - 0x40]
call fcn.004074a2
lea ecx, [ebp - 0x40]
call fcn.004087fc
test al, al
jne 0x408733
lea eax, [ebp - 0x10]
push 1
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x40]
call fcn.004075b1
lea ecx, [ebp - 0x40]
call fcn.0040777b
lea ecx, [ebp - 0x10]
call fcn.00401701
leave
ret