joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e66c
Capabilities:
Get common file path

Disassembly:
push 0x220
mov eax, 0x554e94
call fcn.00527c18
xor edi, edi
mov dword [ebp - 4], edi
mov esi, ecx
push 0x585d54
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], edi
call fcn.0040829d
xor eax, eax
inc eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, edi
jl 0x40e6f3
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x40e6f3
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40e6d9
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x21c]
call fcn.00409cec
mov eax, dword [ebp - 0x224]
call fcn.00527c74
ret 4

Function at 0x40e7f0
Capabilities:
Delete registry value

Disassembly:
push 4
mov eax, 0x553410
call fcn.00527b79
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x10], ecx
jae 0x40e812
lea eax, [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push 0xf003f
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e852
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x40e838
lea eax, [ebp + 0x24]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x40e849
xor ebx, ebx
inc ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
xor edi, edi
lea esi, [ebp + 8]
call fcn.00409659
or dword [ebp - 4], 0xffffffff
push 1
lea esi, [ebp + 0x24]
call fcn.00409659
mov eax, ebx
call fcn.00527c51
ret 0x38

Function at 0x40e95d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x214
mov eax, 0x553f75
call fcn.00527be2
xor edi, edi
mov dword [ebp - 4], edi
mov esi, ecx
mov dword [ebp - 0x21c], edi
push 0x585d54
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x214], edi
call fcn.0040829d
lea eax, [ebp - 0x214]
push eax
push 0x20019
push edi
push str.SOFTWAREMagicPlus
mov dword [ebp - 4], edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x21c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ea37
push 0x1fe
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.00527ca0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push edi
push str.InstallDir
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ea2b
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40ea11
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x210]
call fcn.00409cec
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.00527c65
ret
Function at 0x40eb8d
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0x60
mov eax, 0x554e28
call fcn.00527be2
lea eax, [ebp + 8]
push eax
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], 2
call fcn.00408277
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ebd4
lea ecx, [eax - 1]
mov eax, esi
call fcn.0041a1ec
cmp word [eax], 0x5c
je 0x40ebd4
push 0x585004
mov eax, esi
push eax
call fcn.004082e5
push 0
lea eax, [ebp + 0x24]
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.00409c4f
mov esi, 0x5850ec
lea eax, [ebp - 0x48]
push esi
push eax
lea edi, [ebp - 0x2c]
call fcn.0040ae78
push esi
push eax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.0040adbd
add esp, 0x10
mov ebx, eax
mov eax, edi
mov byte [ebp - 4], 5
call fcn.00409383
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.00409659
push ebx
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00409659
lea eax, [ebp - 0x68]
push eax
push 0xf003f
xor esi, esi
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ec95
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x40ec66
lea ecx, [ebp - 0x2c]
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x40ec72
lea eax, [ebp + 0x40]
mov edx, dword [ebp - 0x1c]
add edx, edx
push edx
push ecx
push ebx
push esi
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40ec8c
mov dword [ebp - 0x6c], ebx
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
xor edi, edi
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00409659
push ebx
lea esi, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00409659
push ebx
lea esi, [ebp + 0x24]
mov byte [ebp - 4], 0
call fcn.00409659
or dword [ebp - 4], 0xffffffff
push ebx
lea esi, [ebp + 0x40]
call fcn.00409659
mov eax, dword [ebp - 0x6c]
call fcn.00527c65
ret 0x54

Function at 0x40ecd5
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ed25
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x40ed0b
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x40ed1c
xor ebx, ebx
inc ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
xor edi, edi
lea esi, [ebp + 8]
call fcn.00409659
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x1c
Function at 0x40ed3a
Capabilities:
Set registry value

Disassembly:
push 0x90
mov eax, 0x553ed1
call fcn.00527be2
push 0x585d54
lea esi, [ebp - 0x7c]
call fcn.0040829d
xor esi, esi
push 0x3f
lea eax, [ebp - 0x4f]
push esi
mov dword [ebp - 4], esi
push eax
mov byte [ebp - 0x50], 0
call fcn.00527ca0
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x40ee01
movzx eax, byte [ebp - 0x51]
push eax
movzx eax, byte [ebp - 0x52]
push eax
movzx eax, byte [ebp - 0x53]
push eax
movzx eax, byte [ebp - 0x54]
push eax
movzx eax, byte [ebp - 0x55]
push eax
movzx eax, byte [ebp - 0x56]
push eax
movzx eax, byte [ebp - 0x57]
push eax
movzx eax, byte [ebp - 0x58]
push eax
movzx eax, word [ebp - 0x5a]
push eax
movzx eax, word [ebp - 0x5c]
push eax
push dword [ebp - 0x60]
lea eax, [ebp - 0x50]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push 0x40
push eax
call fcn.00526719
push esi
call fcn.00401edb
add esp, 0x3c
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00402287
mov ebx, eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00409383
push 1
xor edi, edi
lea esi, [ebp - 0x98]
mov byte [ebp - 4], 0
call fcn.00409659
xor esi, esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x9c]
push eax
push 0x20019
push esi
mov dword [ebp - 0x9c], esi
mov esi, str.SoftwarePCGUID
push esi
mov edi, SysReAllocString
push edi
call ebx
test eax, eax
je 0x40ee73
lea eax, [ebp - 0x9c]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40ee67
cmp dword [ebp - 0x68], 8
mov eax, dword [ebp - 0x7c]
jae 0x40ee4b
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.pcguid
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x9c]
push eax
push 0x20019
push 0
push esi
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call ebx
test eax, eax
je 0x40eed5
lea eax, [ebp - 0x9c]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40eec9
cmp dword [ebp - 0x68], 8
mov eax, dword [ebp - 0x7c]
jae 0x40eead
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.pcguid
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
push 1
xor edi, edi
lea esi, [ebp - 0x7c]
call fcn.00409659
call fcn.00527c65
ret
Function at 0x40eeeb
Capabilities:
Set registry value

Disassembly:
push 0x28
mov eax, 0x5537e9
call fcn.00527be2
lea eax, [ebp + 8]
push eax
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], 2
mov byte [ebp - 0x2d], 0
call fcn.00408277
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
xor edi, edi
cmp eax, edi
jbe 0x40ef38
lea ecx, [eax - 1]
mov eax, esi
call fcn.0041a1ec
cmp word [eax], 0x5c
je 0x40ef38
push 0x585004
mov eax, esi
push eax
call fcn.004082e5
push edi
lea eax, [ebp + 0x24]
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.00409c4f
lea eax, [ebp - 0x34]
push eax
push 0xf003f
push edi
push str.Local_SettingsSoftwareMicrosoftWindowsShellMuiCache
push SysReAllocString
mov dword [ebp - 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40efa6
cmp dword [ebp + 0x54], 8
mov ecx, dword [ebp + 0x40]
jae 0x40ef75
lea ecx, [ebp + 0x40]
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40ef81
lea eax, [ebp - 0x2c]
mov edx, dword [ebp + 0x50]
add edx, edx
push edx
push ecx
push 1
push edi
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40ef9d
mov byte [ebp - 0x2d], 1
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00409659
push 1
lea esi, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00409659
push 1
lea esi, [ebp + 0x24]
mov byte [ebp - 4], 0
call fcn.00409659
or dword [ebp - 4], 0xffffffff
push 1
lea esi, [ebp + 0x40]
call fcn.00409659
mov al, byte [ebp - 0x2d]
call fcn.00527c65
ret 0x54
Function at 0x40f092
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x553e99
call fcn.00527be2
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x34]
push eax
push 0x586290
push SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40f217
xor edi, edi
push 0x1a
inc edi
pop eax
mov ecx, 0x586298
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x30], edi
call fcn.00409cec
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40f0f6
mov eax, esi
mov ecx, dword [ebp - 0x1c]
add ecx, ecx
push ecx
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
push 0x585d54
push dword [ebp - 0x34]
call edi
test eax, eax
je 0x40f116
mov dword [ebp - 0x30], ebx
push 4
lea eax, [ebp - 0x38]
push eax
push 4
push ebx
push str.EditFlags
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 2
call edi
test eax, eax
je 0x40f137
mov dword [ebp - 0x30], ebx
push 0x26
pop eax
mov ecx, str.63da6ec0_2e98_11cf_8d82_444553540000
lea esi, [ebp - 0x2c]
call fcn.00409cec
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40f152
mov eax, esi
mov ecx, dword [ebp - 0x1c]
add ecx, ecx
push ecx
push eax
push 1
push ebx
push str.ShellFolder
push dword [ebp - 0x34]
call edi
test eax, eax
je 0x40f16d
mov dword [ebp - 0x30], ebx
push 0x26
pop eax
mov ecx, str.E436EBB6_524F_11CE_9F53_0020AF0BA770
lea esi, [ebp - 0x2c]
call fcn.00409cec
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40f188
mov eax, esi
mov ecx, dword [ebp - 0x1c]
add ecx, ecx
push ecx
push eax
push 1
push ebx
push str.Source_Filter
push dword [ebp - 0x34]
call edi
test eax, eax
je 0x40f1a3
mov dword [ebp - 0x30], ebx
push 0x11
pop eax
mov ecx, str._ieframe.dll__905
lea esi, [ebp - 0x2c]
call fcn.00409cec
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40f1be
mov eax, esi
mov ecx, dword [ebp - 0x1c]
add ecx, ecx
push ecx
push eax
push 1
push ebx
push str.FriendlyTypeName
push dword [ebp - 0x34]
call edi
test eax, eax
je 0x40f1d9
mov dword [ebp - 0x30], ebx
xor eax, eax
mov ecx, 0x585d54
lea esi, [ebp - 0x2c]
call fcn.00409cec
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40f1f3
mov eax, esi
mov ecx, dword [ebp - 0x1c]
add ecx, ecx
push ecx
push eax
push 1
push ebx
push str.URL_Protocol
push dword [ebp - 0x34]
call edi
test eax, eax
je 0x40f20e
mov dword [ebp - 0x30], ebx
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00409659
mov eax, dword [ebp - 0x30]
call fcn.00527c65
ret
Function at 0x40f230
Capabilities:
Query environment variable

Disassembly:
push 0x248
mov eax, 0x553e69
call fcn.00527be2
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
push 0x585d54
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x254], ebx
call fcn.0040829d
xor eax, eax
mov dword [ebp - 4], ebx
push 0x1fe
mov word [ebp - 0x210], ax
xor edi, edi
lea eax, [ebp - 0x20e]
push ebx
inc edi
push eax
mov dword [ebp - 0x254], edi
call fcn.00527ca0
add esp, 0xc
push 0x100
lea eax, [ebp - 0x210]
push eax
push str.windir
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x210]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40f2a6
sub eax, ecx
sar eax, 1
lea ecx, [ebp - 0x210]
call fcn.00409cec
push 3
push ebx
push esi
lea esi, [ebp - 0x248]
call fcn.00408310
mov dword [ebp - 4], edi
mov ebx, eax
mov eax, dword [ebp - 0x24c]
call fcn.00409383
push edi
xor ebx, ebx
xor edi, edi
mov byte [ebp - 4], bl
call fcn.00409659
mov eax, dword [0x5b968c]
cmp eax, ebx
jne 0x40f323
push 0x90
call fcn.00423341
pop ecx
mov dword [ebp - 0x250], eax
mov dword [ebp - 4], 2
cmp eax, ebx
je 0x40f319
push eax
call fcn.004032d4
jmp 0x40f31b
xor eax, eax
mov byte [ebp - 4], bl
mov dword [0x5b968c], eax
lea ecx, [ebp - 0x22c]
call fcn.0040e8c9
push ebx
mov dword [ebp - 4], 3
call fcn.00401edb
mov dword [esp], str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x250], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x40f370
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push str.Preload_For_Ideapad
lea ecx, [ebp - 0x22c]
call fcn.0040aee0
pop ecx
cmp dword [ebp - 0x250], ebx
jne 0x40f3b0
test al, al
jne 0x40f3a9
push str.Preload_For_IdeaCenter
lea ecx, [ebp - 0x22c]
call fcn.0040aee0
pop ecx
test al, al
jne 0x40f3a9
push str.Program_FilesMagicPlus
jmp 0x40f3d5
push str.Program_FilesLenovoMagicPlus
jmp 0x40f3d5
test al, al
jne 0x40f3d0
push str.Preload_For_IdeaCenter
lea ecx, [ebp - 0x22c]
call fcn.0040aee0
pop ecx
test al, al
jne 0x40f3d0
push str.Program_Files__x86_MagicPlus
jmp 0x40f3d5
push str.Program_Files__x86_LenovoMagicPlus
push dword [ebp - 0x24c]
call fcn.004082e5
push 1
xor edi, edi
lea esi, [ebp - 0x22c]
mov byte [ebp - 4], bl
call fcn.00409659
mov eax, dword [ebp - 0x24c]
call fcn.00527c65
ret
Function at 0x40f765
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push 0x828
mov eax, 0x55591e
call fcn.00527be2
lea eax, [ebp - 0x830]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMagicPlus
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
mov dword [ebp - 0x830], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f979
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push ebx
push eax
call fcn.00527ca0
add esp, 0xc
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push str.InstallDir
push dword [ebp - 0x830]
mov dword [ebp - 0x834], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f966
lea eax, [ebp - 0x810]
push eax
lea esi, [ebp - 0x82c]
call fcn.0040829d
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x81c]
cmp eax, ebx
jbe 0x40f945
lea ecx, [eax - 1]
mov eax, esi
call fcn.0041a1ec
movzx eax, word [eax]
cmp eax, 0x5c
je 0x40f833
cmp eax, 0x2f
je 0x40f833
push str.prompt.dll
jmp 0x40f838
push 0x5866e0
lea eax, [ebp - 0x82c]
push eax
call fcn.004082e5
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 6
pop ebx
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x40f862
lea eax, [ebp - 0x82c]
push eax
call esi
cmp eax, 0xffffffff
jne 0x40f87a
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
dec ebx
test ebx, ebx
jg 0x40f84d
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x40f88f
lea eax, [ebp - 0x82c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40f945
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x40f8b0
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 4], eax
test eax, eax
jne 0x40f8d3
push 0x586710
push eax
call fcn.004024ac
pop ecx
mov ecx, eax
call fcn.0040c651
jmp 0x40f945
push str.load_dll
push 0
call fcn.004024ac
pop ecx
mov ecx, eax
call fcn.0040c651
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f8fe
push str.createSystemProcess
push eax
call esi
jmp 0x40f900
xor eax, eax
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x40f914
push str.addAutoRunTask
push eax
call esi
jmp 0x40f916
xor eax, eax
mov dword [edi + 0xc], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x40f92a
push str.deleteAutoRunTask
push eax
call esi
jmp 0x40f92c
xor eax, eax
mov dword [edi + 0x10], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x40f940
push str.isWinVistaLater
push eax
call esi
jmp 0x40f942
xor eax, eax
mov dword [edi + 0x14], eax
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
push 1
xor edi, edi
lea esi, [ebp - 0x82c]
call fcn.00409659
jmp 0x40f979
push str.DelTaskProc_RegOpenKeyEx_error____
push ebx
call fcn.004024ac
pop ecx
mov ecx, eax
call fcn.0040252f
call fcn.00527c65
ret
Function at 0x40f99e
Capabilities:
Delete file

Disassembly:
push 0x9c
mov eax, 0x554d3d
call fcn.00527be2
push 0
call fcn.00401edb
pop ecx
lea ecx, [ebp - 0x64]
call fcn.004020c9
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push str.BHOinCPP.dll
push eax
lea ebx, [ebp - 0x64]
call fcn.0040ae0a
pop ecx
pop ecx
and dword [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40f9f5
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.00522f0f
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x40fafd
lea eax, [ebp - 0x80]
push str._u__s__
push eax
lea edi, [ebp - 0x2c]
call fcn.0040ae78
push 0x5850ec
push eax
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 3
call fcn.0040adbd
add esp, 0x10
mov ebx, eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00409383
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
lea esi, [ebp - 0x9c]
mov byte [ebp - 4], 3
call fcn.00409659
push ebx
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.00409659
push edi
push ebx
sub esp, 0x1c
lea eax, [ebp - 0x48]
mov esi, esp
mov dword [ebp - 0xa8], esp
push eax
call fcn.00408277
sub esp, 0x1c
mov byte [ebp - 4], 5
mov esi, esp
mov dword [ebp - 0xa0], esp
push str.regsvr32.exe
call fcn.0040829d
sub esp, 0x1c
mov byte [ebp - 4], 6
lea eax, [ebp - 0x64]
mov esi, esp
mov dword [ebp - 0xa4], esp
push eax
call fcn.00408277
mov byte [ebp - 4], 7
cmp dword [0x5b967c], edi
jne 0x40fad4
push ebx
call fcn.00423341
pop ecx
mov ecx, eax
cmp ecx, edi
je 0x40face
xor eax, eax
mov edi, ecx
stosb byte es:[edi], al
mov dword [0x5b967c], ecx
jmp 0x40fad4
mov dword [0x5b967c], edi
mov byte [ebp - 4], 2
call fcn.0040cb9a
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40faf4
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40fb00
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
lea esi, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00409659
push ebx
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00409659
or dword [ebp - 4], 0xffffffff
push ebx
lea esi, [ebp - 0x64]
call fcn.00409659
mov al, bl
call fcn.00527c65
ret
Function at 0x40fb30
Capabilities:
Set registry value

Disassembly:
push 0x44
mov eax, 0x553dff
call fcn.00527be2
xor ebx, ebx
inc ebx
mov dword [ebp - 4], 2
cmp dword [ebp + 0x18], ebx
jb 0x40fd05
cmp dword [ebp + 0x34], ebx
jb 0x40fd05
cmp dword [ebp + 0x50], ebx
jb 0x40fd05
mov eax, dword [0x5b968c]
xor edi, edi
mov esi, 0x90
cmp eax, edi
jne 0x40fb96
push esi
call fcn.00423341
pop ecx
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 3
cmp eax, edi
je 0x40fb8b
push eax
call fcn.004032d4
jmp 0x40fb8d
xor eax, eax
mov byte [ebp - 4], 2
mov dword [0x5b968c], eax
lea ecx, [ebp - 0x2c]
call fcn.0040e8c9
mov byte [ebp - 4], 4
mov eax, dword [0x5b968c]
cmp eax, edi
jne 0x40fbd0
push esi
call fcn.00423341
pop ecx
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 5
cmp eax, edi
je 0x40fbc5
push eax
call fcn.004032d4
jmp 0x40fbc7
xor eax, eax
mov byte [ebp - 4], 4
mov dword [0x5b968c], eax
lea ecx, [ebp - 0x48]
call fcn.0040e8b0
lea eax, [ebp - 0x50]
push eax
push str.SOFTWAREMagicPlus
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 6
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40fce9
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], ebx
jae 0x40fc07
lea eax, [ebp + 8]
mov ecx, dword [ebp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add ecx, ecx
push ecx
push eax
push ebx
push edi
push str.Channel
push dword [ebp - 0x50]
call esi
test eax, eax
je 0x40fc27
mov dword [ebp - 0x4c], edi
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x40fc33
lea eax, [ebp + 0x24]
mov ecx, dword [ebp + 0x34]
add ecx, ecx
push ecx
push eax
push ebx
push edi
push str.Version
push dword [ebp - 0x50]
call esi
test eax, eax
je 0x40fc4d
mov dword [ebp - 0x4c], edi
mov eax, dword [ebp + 0x50]
cmp eax, edi
jbe 0x40fc73
lea ecx, [eax - 1]
lea eax, [ebp + 0x40]
call fcn.0041a1ec
cmp word [eax], 0x5c
je 0x40fc73
push 0x585004
lea eax, [ebp + 0x40]
push eax
call fcn.004082e5
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x40fc7f
lea eax, [ebp + 0x40]
mov ecx, dword [ebp + 0x50]
add ecx, ecx
push ecx
push eax
push ebx
push edi
push str.InstallDir
push dword [ebp - 0x50]
call esi
test eax, eax
je 0x40fc99
mov dword [ebp - 0x4c], edi
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
xor edi, edi
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00409659
push ebx
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00409659
push ebx
lea esi, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00409659
push ebx
lea esi, [ebp + 0x24]
mov byte [ebp - 4], 0
call fcn.00409659
or dword [ebp - 4], 0xffffffff
push ebx
lea esi, [ebp + 0x40]
call fcn.00409659
mov eax, dword [ebp - 0x4c]
jmp 0x40fd2f
push ebx
xor edi, edi
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00409659
push ebx
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00409659
push ebx
xor edi, edi
lea esi, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00409659
push ebx
lea esi, [ebp + 0x24]
mov byte [ebp - 4], 0
call fcn.00409659
or dword [ebp - 4], 0xffffffff
push ebx
lea esi, [ebp + 0x40]
call fcn.00409659
xor eax, eax
call fcn.00527c65
ret 0x54