joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b0f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, ecx
push esi
push edi
push dword [ebx + 4]
lea edi, [ebx + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, edi
call fcn.00401b21
push dword [edi]
call fcn.0041c62c
pop ecx
lea ecx, [ebp - 0x28]
call fcn.004016e9
mov esi, 0x422414
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], esi
call fcn.004016e9
cmp byte [ebx + 0x50], 0
push dword [0x428be0]
mov dword [ebp - 0x3c], esi
je 0x405bb3
push 0x46
lea ecx, [ebp - 0x28]
call fcn.00401d27
lea ecx, [ebp - 0x28]
call fcn.00401876
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [ebp - 0x24]
push 0x3f2
push dword [edi]
call esi
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextA]
push eax
call ebx
push 2
push dword [edi]
call esi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [edi]
call esi
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x428be0]
push 0x75
jmp 0x405c07
push 0x3c
lea ecx, [ebp - 0x28]
call fcn.00401d27
lea ecx, [ebp - 0x28]
call fcn.00401876
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [ebp - 0x24]
push 0x3f2
push dword [edi]
call esi
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextA]
push eax
call ebx
push 1
push dword [edi]
call esi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 2
push dword [edi]
call esi
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x428be0]
push 0x79
lea ecx, [ebp - 0x3c]
call fcn.00401d27
push dword [0x428be0]
lea ecx, [ebp - 0x28]
push 0x62
call fcn.00401d27
push 0x425358
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], eax
call fcn.004058fe
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], 0x422420
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
lea ecx, [ebp - 0x30]
push dword [ebp - 4]
call fcn.00405cf3
lea ecx, [ebp - 0x14]
call fcn.004016fd
mov eax, dword [ebp - 0x1c]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
lea ecx, [ebp - 0x30]
push dword [ebp - 4]
call fcn.00405cf3
lea ecx, [ebp - 0x3c]
call fcn.00401876
push dword [ebp - 0x38]
push dword [edi]
call ebx
push dword [0x428be0]
lea ecx, [ebp - 0x28]
push 0x52
call fcn.00401d27
lea ecx, [ebp - 0x28]
call fcn.00401876
mov eax, dword [ebp - 0x24]
push 2
push dword [edi]
mov dword [ebp - 4], eax
call esi
push dword [ebp - 4]
push eax
call ebx
push dword [0x428be0]
lea ecx, [ebp - 0x28]
push 0x55
call fcn.00401d27
lea ecx, [ebp - 0x28]
call fcn.00401876
mov eax, dword [ebp - 0x24]
push 1
push dword [edi]
mov dword [ebp - 4], eax
call esi
push dword [ebp - 4]
push eax
call ebx
lea ecx, [ebp - 0x3c]
call fcn.004016fd
lea ecx, [ebp - 0x28]
call fcn.004016fd
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405efb
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 4]
lea edi, [esi + 4]
call fcn.0041c62c
pop ecx
lea ecx, [ebp - 0x38]
call fcn.004016e9
push dword [0x428be0]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0x422414
push 0x62
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
push dword [ebp - 0x34]
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp byte [esi + 0x54], 0
push dword [0x428be0]
je 0x405f54
push 0x47
jmp 0x405f56
push 0x48
lea ecx, [ebp - 0x38]
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
mov eax, dword [ebp - 0x34]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f2
mov dword [ebp - 4], eax
push dword [edi]
call ebx
push dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp byte [esi + 0x54], 0
je 0x406033
push 0x3fb
push dword [edi]
call ebx
push eax
lea ecx, [esi + 0x58]
call fcn.00418023
push dword [0x428be0]
lea ecx, [ebp - 0x38]
push 0x45
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
push dword [ebp - 0x34]
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 5
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x403
push dword [edi]
call ebx
push eax
lea ecx, [esi + 0xa8]
call fcn.00418023
push dword [0x428be0]
lea ecx, [ebp - 0x38]
push 0x5b
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
push dword [ebp - 0x34]
add esi, 0xac
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 5
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x406091
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
push eax
push dword [edi]
call esi
push 0x403
push dword [edi]
call ebx
lea ecx, [ebp - 0x24]
push ecx
push eax
call esi
mov eax, dword [ebp - 0x20]
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push dword [edi]
call esi
test eax, eax
je 0x406071
lea eax, [ebp - 0xc]
push eax
push dword [edi]
call esi
mov eax, dword [ebp - 8]
push 0x206
sub eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [edi]
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, edi
call fcn.00401b21
push dword [0x428be0]
lea ecx, [ebp - 0x38]
push 0x55
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
mov esi, dword [ebp - 0x34]
push 1
push dword [edi]
call ebx
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea ecx, [ebp - 0x38]
call fcn.004016fd
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x406112
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 0x406139
push 3
pop edi
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov dword [esi + 0x50], edi
jmp 0x406176
push dword [esi + 0xac]
call edi
cmp dword [esp + 0x10], eax
jne 0x406176
lea edi, [esi + 0xf8]
push ebx
mov ecx, edi
call fcn.00401876
mov ebx, dword [edi + 4]
mov ecx, edi
call fcn.00401876
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 0x40662a
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 0x406a49
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 0x406ac0
lea ecx, [ebp - 0x20]
call fcn.00401d13
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.004016d3
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x10]
call fcn.004016ac
lea ecx, [ebp - 0x20]
call fcn.00401876
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.0040166e
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x408745
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
neg esi
lea eax, [ecx - 0x58]
sbb esi, esi
and esi, eax
cmp byte [ecx + 0x1c], 0
je 0x408788
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 0xc], 2
jne 0x408779
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40878e
cmp dword [ebp + 0xc], 0
jne 0x408788
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0xc], 1
je 0x4087a5
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 0x58]
shr eax, 0x10
movsx eax, ax
push eax
movsx eax, word [ebp + 0x10]
push eax
call fcn.004087c9
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x40a1b3
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.0040235b
xor esi, esi
mov eax, str.__del
cmp word [str.__del], si
mov dword [ebp - 0x10], 0x422424
mov ecx, eax
je 0x40a1e3
inc ecx
inc ecx
cmp word [ecx], si
jne 0x40a1dc
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00402a9c
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004059e6
push 0x44
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0041cd10
push 0x10
lea eax, [ebp - 0x20]
push esi
push eax
mov dword [ebp - 0x64], 0x44
call fcn.0041cd10
add esp, 0x18
lea ecx, [ebp - 0x10]
call fcn.00401876
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.0040166e
pop esi
leave
ret 4
Function at 0x40a54d
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, 0x428cc8
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.004016d3
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], eax
call fcn.004016ac
cmp dword [ebp - 4], ebx
je 0x40a609
push dword [ebp - 4]
call fcn.0041cd9f
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.004016d3
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.004016ac
cmp esi, ebx
je 0x40a600
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4257cc
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40a600
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
shr eax, 0x10
cmp ax, 3
jb 0x40a600
push dword [ebp - 8]
call fcn.0041ccfb
pop ecx
xor eax, eax
jmp 0x40a60c
push dword [ebp - 8]
call fcn.0041ccfb
pop ecx
or eax, 0xffffffff
pop esi
pop ebx
leave
ret

Function at 0x40a610
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.0040217a
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], 0x422420
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
call fcn.004016d3
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.0040665c
cmp dword [ebp - 0x10], ebx
je 0x40a695
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x40a6b0
lea ecx, [ebp - 0x1c]
call fcn.004016fd
cmp dword [ebp - 4], ebx
je 0x40a6ab
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
pop eax
jmp 0x40a6d3
mov eax, dword [ebp - 0x10]
push esi
lea ecx, [ebp - 0x1c]
movzx esi, word [eax]
sub esi, 0x30
call fcn.004016fd
cmp dword [ebp - 4], ebx
je 0x40a6d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40a6d6
Capabilities:
Check mutex on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
xor ebx, ebx
push dword [0x4254c8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40a72f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40a72f
push str.Update_Manager
push ebx
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x40a71f
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 0x40a8b9
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 ecx, 0x428c18
push dword [ebp + 8]
push ebx
call fcn.0040bfbf
call fcn.0040ce1a
mov edi, 0x104
mov esi, 0x428cb8
push edi
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040cd38
push edi
lea ecx, [ebp - 0x1c]
call fcn.004016d3
push eax
push dword [0x428c1c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x1c]
call fcn.004016ac
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
call fcn.0040590f
mov dword [ebp + 8], eax
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.004107be
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00410622
mov ecx, eax
call fcn.00405951
push eax
lea ecx, [ebp - 0x1c]
call fcn.00410622
lea ecx, [ebp - 0x2c]
call fcn.0040166e
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.004021cc
lea ecx, [ebp - 0x1c]
call fcn.0040166e
lea ecx, [ebp - 0x3c]
call fcn.0040166e
lea ecx, [ebp - 0x6c]
call fcn.0040166e
push 0x428cb8
mov ecx, 0x428c08
call fcn.004021cc
push 0x20019
push str.Typeliba681f238_74bb_4807_b940_a80197ecbbe61.00win32
push SysReAllocStringLen
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.0040217a
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x18], bl
mov dword [ebp - 0x14], 0x428cc8
mov dword [ebp - 0x10], ebx
call fcn.004016d3
lea ecx, [ebp - 0xc]
mov dword [ebp + 8], ebx
push ecx
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x428bc4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x1c]
call fcn.004016ac
lea ecx, [ebp - 0x50]
call fcn.004016e9
push dword [0x428be0]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0x422414
call fcn.0040201a
push dword [ebp + 0x14]
mov dword [0x428cd8], eax
push dword [ebp + 0x10]
call fcn.00408ec7
pop ecx
mov esi, eax
pop ecx
mov ecx, 0x428c18
call fcn.0040c0d1
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x50]
call fcn.004016fd
cmp dword [ebp - 4], ebx
je 0x40a8b5
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 0x40b1ba
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov esi, ecx
call fcn.00401876
mov esi, dword [esi + 4]
xor edi, edi
push edi
push 0x80
push 4
push edi
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40b328
push ebx
mov ebx, dword [ebp + 8]
push ebx
lea ecx, [ebp - 0x18]
call fcn.0040491e
cmp word [0x42549c], di
mov esi, 0x42549c
mov eax, esi
je 0x40b215
inc eax
inc eax
cmp word [eax], di
jne 0x40b20e
sub eax, esi
lea ecx, [ebp - 0x18]
sar eax, 1
push eax
push esi
call fcn.0040195c
lea eax, [ebx + 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040c700
cmp word [0x42549c], di
mov eax, esi
je 0x40b241
inc eax
inc eax
cmp word [eax], di
jne 0x40b23a
sub eax, esi
lea ecx, [ebp - 0x18]
sar eax, 1
push eax
push esi
call fcn.0040195c
lea eax, [ebx + 0x20]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040c700
cmp word [0x42549c], di
mov eax, esi
je 0x40b26d
inc eax
inc eax
cmp word [eax], di
jne 0x40b266
sub eax, esi
lea ecx, [ebp - 0x18]
sar eax, 1
push eax
push esi
call fcn.0040195c
lea eax, [ebx + 0x30]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040c700
cmp word [0x42549c], di
mov eax, esi
je 0x40b299
inc eax
inc eax
cmp word [eax], di
jne 0x40b292
sub eax, esi
lea ecx, [ebp - 0x18]
sar eax, 1
push eax
push esi
call fcn.0040195c
add ebx, 0x50
lea ecx, [ebp - 0x18]
push ebx
call fcn.0040c700
cmp word [0x4254a4], di
mov eax, 0x4254a4
mov ecx, eax
pop ebx
je 0x40b2cb
inc ecx
inc ecx
cmp word [ecx], di
jne 0x40b2c4
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0040195c
push 2
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
jne 0x40b2f2
xor esi, esi
jmp 0x40b2fd
push dword [ebp - 0xc]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x18]
call fcn.00401876
lea eax, [ebp - 8]
push edi
push eax
push esi
push dword [ebp - 0x14]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.004016fd
pop edi
pop esi
leave
ret 4
Function at 0x40b39a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4070
call fcn.0041cd70
push ebx
push esi
push edi
lea eax, [ebp - 0x30]
mov edi, 0x104
xor ebx, ebx
mov esi, 0x428cb8
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.004016d3
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], eax
call fcn.004016ac
cmp dword [ebp - 4], ebx
je 0x40b4d4
push dword [ebp - 4]
call fcn.0041cd9f
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.004016d3
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004016ac
cmp esi, ebx
je 0x40b4cb
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x4257cc
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40b4cb
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 - 0x4070]
call fcn.00403f70
push str.4D2778E5_AD01_4e75_A6DA_1D5831514609
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], 0x422420
call fcn.00408259
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4070]
call fcn.00404764
lea ecx, [ebp - 0x2c]
call fcn.004016fd
lea ecx, [ebp - 0x40]
call fcn.004016fd
lea ecx, [ebp - 0x4070]
call fcn.0040a530
push dword [ebp - 0x18]
call fcn.0041ccfb
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b4d9
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
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 0x40b5af
push 0x428cb8
lea ecx, [ebp - 0x10]
call fcn.0040235b
push 1
push 0x22
push ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x422424
call fcn.004029e1
cmp word [str.___startup], bx
mov eax, str.___startup
mov ecx, eax
je 0x40b546
inc ecx
inc ecx
cmp word [ecx], bx
jne 0x40b53f
sub ecx, eax
push esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00402a9c
cmp dword [ebp - 4], ebx
jne 0x40b55e
xor esi, esi
jmp 0x40b569
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.00401876
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 0x40b5a1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
call fcn.0040166e
jmp 0x40b632
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
call fcn.0040166e
lea eax, [ebp - 0x24]
push 0xfffffffffffffffb
push 0x425760
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], 0x422420
mov dword [ebp - 0x10], 0x64
mov byte [ebp - 0xc], bl
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
call fcn.004016d3
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.0040665c
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0xd8]
push eax
call fcn.00406838
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0040cbb4
lea ecx, [ebp - 0x78]
call fcn.00417ff9
lea ecx, [ebp - 0x88]
call fcn.004016fd
lea ecx, [ebp - 0x24]
call fcn.004016fd
pop ebx
leave
ret
Function at 0x40b635
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
push esi
mov esi, 0x428ca8
mov dword [ebp - 0x10], 0x422420
mov ecx, esi
call fcn.00401876
push dword [0x428cac]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40b699
push 1
mov ecx, esi
call fcn.0040b720
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push str.wk000
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0040b6f0
jmp 0x40b6a4
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.0040a4ba
cmp dword [ebp - 4], 0
pop esi
je 0x40b6e6
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x40b6e6
lea ecx, [ebp - 0x50]
call fcn.00409d71
lea ecx, [ebp - 0x50]
call fcn.0040b755
test al, al
jne 0x40b6de
lea eax, [ebp - 0x10]
push 1
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.00409ef8
lea ecx, [ebp - 0x50]
call fcn.0040a50c
lea ecx, [ebp - 0x10]
call fcn.004016fd
leave
ret