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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
call fcn.0040c011
call fcn.0040b456
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x40c0a8
lea eax, [ebp - 8]
push eax
push str.IDMan.exe
call fcn.0040bbb0
pop ecx
test eax, eax
pop ecx
je 0x40c0a8
push dword [ebp - 8]
push 0
push 1
call esi
test eax, eax
mov dword [ebp - 4], eax
je 0x40c0a8
push 0
push eax
call edi
push dword [ebp - 4]
call ebx
lea eax, [ebp - 8]
push eax
push str.IDMIntegrator64.exe
call fcn.0040bbb0
pop ecx
test eax, eax
pop ecx
je 0x40c0d6
push dword [ebp - 8]
push 0
push 1
call esi
test eax, eax
mov dword [ebp - 4], eax
je 0x40c0d6
push 0
push eax
call edi
push dword [ebp - 4]
call ebx
lea eax, [ebp - 8]
push eax
push str.idmBroker.exe
call fcn.0040bbb0
pop ecx
test eax, eax
pop ecx
je 0x40c104
push dword [ebp - 8]
push 0
push 1
call esi
test eax, eax
mov dword [ebp - 4], eax
je 0x40c104
push 0
push eax
call edi
push dword [ebp - 4]
call ebx
lea eax, [ebp - 8]
push eax
push str.IDMGrHlp.exe
call fcn.0040bbb0
pop ecx
test eax, eax
pop ecx
je 0x40c132
push dword [ebp - 8]
push 0
push 1
call esi
test eax, eax
mov dword [ebp - 4], eax
je 0x40c132
push 0
push eax
call edi
push dword [ebp - 4]
call ebx
lea eax, [ebp - 8]
push eax
push str.IEMonitor.exe
call fcn.0040bbb0
pop ecx
test eax, eax
pop ecx
je 0x40c15d
push dword [ebp - 8]
push 0
push 1
call esi
mov esi, eax
test esi, esi
je 0x40c15d
push 0
push esi
call edi
push esi
call ebx
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push str.SoftwareDownloadManager
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c202
lea eax, [ebp - 4]
xor esi, esi
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push esi
push str.ExePath
push dword [ebp - 0xc]
mov dword [ebp - 4], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c1f9
lea eax, [ebp - 0x214]
push 0x5c
push eax
call sub.MSVCRT.dll_wcsrchr
mov edi, eax
pop ecx
cmp edi, esi
pop ecx
je 0x40c1f9
lea eax, [edi + 2]
push str.IDMan.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40c1f9
lea eax, [ebp - 0x214]
mov word [edi], si
push eax
lea eax, [ebp - 0x41c]
push str._sIDMan.exe.Local_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x41c]
push eax
call fcn.00410983
add esp, 0x10
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c353
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push 0
push 0
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp + 0x10]
call sub.MSVCRT.dll__wsplitpath
add esp, 0x14
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40c3ab
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c3ab
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
call eax
test eax, eax
je 0x40c3e6
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
jmp 0x40c3d6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x40c3e6
mov eax, dword [ebp + 0x10]
imul eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
xor ecx, ecx
cmp ecx, dword [ebp + 0xc]
jl 0x40c3e2
jg 0x40c3e6
cmp eax, dword [ebp + 8]
ja 0x40c3e6
xor eax, eax
leave
ret
push 1
pop eax
leave
ret

Function at 0x40d5d3
Capabilities:
Check os version
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
xor esi, esi
cmp dword [0x41de50], esi
push 1
pop edi
mov ebx, 0x114
je 0x40d616
mov eax, dword [0x41ce38]
cmp eax, esi
mov ecx, eax
jne 0x40d601
mov ecx, 0x41ce3c
mov eax, dword [0x41cef8]
cmp eax, esi
jne 0x40d60f
mov eax, 0x41cefc
push 0x50031
jmp 0x40d672
cmp dword [0x41cd38], esi
je 0x40d685
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d64f
cmp dword [ebp - 0x118], 2
jne 0x40d64f
cmp dword [ebp - 0x124], 6
jb 0x40d64f
mov dword [0x41e098], edi
jmp 0x40d685
mov eax, dword [0x41cec8]
cmp eax, esi
mov ecx, eax
jne 0x40d65f
mov ecx, 0x41cecc
mov eax, dword [0x41ce58]
cmp eax, esi
jne 0x40d66d
mov eax, 0x41ce5c
push 0x50001
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, edi
jne 0x40d685
mov dword [0x41e094], edi
cmp dword [0x41e094], esi
je 0x40d70b
push ebx
lea eax, [ebp - 0x128]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d702
push 2
pop ebx
cmp dword [ebp - 0x118], ebx
jne 0x40d702
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40d702
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40d702
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d767
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
lea eax, [ebp - 4]
push edi
push eax
xor edi, edi
push 0xf003f
push edi
push str.SoftwareClassesLocal_SettingsSoftwareMicrosoftWindowsCurrentVersionAppContainerStoragemicrosoft.microsoftedge_8wekyb3d8bbweMicrosoftEdgeExtensionsStoredatastoreConfig
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d7f2
push ebx
push esi
mov ebx, str.IDMIntegrationModule_
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x40d7cf
push ebx
call sub.MSVCRT.dll_wcslen
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.MSVCRT.dll__wcsnicmp
add esp, 0x10
test eax, eax
je 0x40d7d6
inc edi
test esi, esi
je 0x40d798
jmp 0x40d7e7
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call fcn.0040d732
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop edi
leave
ret

Function at 0x40d7f5
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4114dc
call fcn.00410d60
sub esp, 0x108
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push 0x44
pop esi
lea eax, [ebp - 0x68]
push esi
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x68], esi
mov esi, str.PowerShell_Get_AppxPackage__Name__TonecInc.IDMIntegrationModule___Remove_AppxPackage
lea edi, [ebp - 0x114]
push 1
mov word [ebp - 0x38], bx
pop eax
push 0x2b
mov dword [ebp - 0x3c], eax
pop ecx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push ebx
push ebx
push 0x30
push eax
push ebx
lea eax, [ebp - 0x114]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
jne 0x40d865
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x2710
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push ebx
push str.SoftwareClassesLocal_SettingsSoftwareMicrosoftWindowsCurrentVersionAppContainerStoragemicrosoft.microsoftedge_8wekyb3d8bbweMicrosoftEdgeExtensionsStoredatastoreConfig
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d8b9
push str.EdgeExtension_TonecIncIDMIntegrationModule_e7b5mm5d3r6v2
push dword [ebp - 0x14]
call fcn.0040d732
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x40d8d3
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x4114e8
call fcn.00410d60
sub esp, 0x628
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x10], esp
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call edi
push dword [ebp + 0x14]
lea eax, [ebp - 0x634]
push eax
call fcn.0040da08
pop ecx
cmp eax, esi
pop ecx
je 0x40d9f9
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
lea eax, [ebp + 0x14]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40d9f9
cmp dword [ebp + 0x14], esi
je 0x40d9f9
mov dword [ebp + 0xc], esi
xor ebx, ebx
cmp ebx, esi
jne 0x40d9f9
lea eax, [ebp - 0x224]
push 0x104
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
cmp ebx, esi
jne 0x40d9eb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x10]
push eax
push esi
push 0xf003f
push esi
push 0x41c4f4
lea eax, [ebp - 0x224]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d9eb
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x208
push eax
lea eax, [ebp - 0x42c]
push eax
push esi
push esi
push esi
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d9e2
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x634]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40d9e2
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 8]
call edi
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp + 0xc]
jmp 0x40d94d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40de1b
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftwareNetscapeNetscape_NavigatorAutomation_Protocols_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40de64
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.http
push dword [ebp - 4]
call esi
push 0x41aaf4
push dword [ebp - 4]
call esi
push str.https
push dword [ebp - 4]
call esi
pop esi
leave
ret

Function at 0x40de66
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor esi, esi
push str.shell32
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
je 0x40dec6
push ebx
push str.SHGetFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, esi
je 0x40deb9
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push dword [ebp + 8]
push esi
push esi
push 0x1c
push esi
call ebx
test eax, eax
jne 0x40deb3
mov dword [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 4], esi
pop ebx
jne 0x40df11
lea eax, [ebp - 8]
push eax
push 1
pop edi
push edi
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40df11
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
push dword [ebp + 8]
push esi
push esi
push str.Local_AppData
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40df08
mov dword [ebp - 4], edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x40df18
Capabilities:
Check if file exists
Delete registry key
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp + 8]
push esi
push eax
push dword [ebp + 8]
push 0
push str.SOFTWAREGoogleChromeExtensions
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40df62
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.jmolcgpienlcieaajfkkdamlngancncm
push dword [ebp + 8]
call esi
push str.jeaohhlajejodfjadcponpnjgkiikocn
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x410]
push eax
call fcn.0040de66
test eax, eax
pop ecx
je 0x40e029
lea eax, [ebp - 0x410]
push eax
call sub.MSVCRT.dll_wcslen
dec eax
cmp word [ebp + eax*2 - 0x410], 0x5c
pop ecx
lea esi, [ebp + eax*2 - 0x410]
mov eax, 0x41c4f4
je 0x40dfa1
mov eax, 0x4150b8
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push str._s_sGoogleChromeUser_DataDefaultExtensionsjmolcgpienlcieaajfkkdamlngancncm
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call ebx
cmp eax, 0xffffffff
je 0x40dfe3
lea eax, [ebp - 0x208]
push eax
call fcn.00410983
pop ecx
cmp word [esi], 0x5c
mov eax, 0x41c4f4
je 0x40dff3
mov eax, 0x4150b8
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push str._s_sGoogleChromeUser_DataDefaultExtensionsjeaohhlajejodfjadcponpnjgkiikocn
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call ebx
pop edi
cmp eax, 0xffffffff
pop ebx
je 0x40e029
lea eax, [ebp - 0x208]
push eax
call fcn.00410983
pop ecx
pop esi
leave
ret
Function at 0x40e02c
Capabilities:
Delete registry key

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [esp + 0x10]
mov edi, 0xf003f
push eax
push edi
mov ebp, str.SOFTWAREGoogleChromeNativeMessagingHosts
push 0
mov ebx, 0x80000002
push ebp
push ebx
call esi
test eax, eax
jne 0x40e06f
push str.com.tonec.idm
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00403110
test eax, eax
je 0x40e0a9
lea eax, [esp + 0x10]
push eax
push 0xf013f
push 0
push ebp
push ebx
call esi
test eax, eax
jne 0x40e0a9
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.com.tonec.idm
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e0af
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [esp + 0x10]
mov ebx, 0x80000001
push eax
push edi
push 0
push str.SOFTWAREMozillaNativeMessagingHosts
push ebx
call esi
test eax, eax
jne 0x40e0dd
push str.com.tonec.idm
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push edi
push 0
push str.SOFTWAREMicrosoftEdgeNativeMessagingHosts
push ebx
call esi
test eax, eax
jne 0x40e106
push str.com.tonec.idm
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push edi
push 0
push str.SOFTWARECocCocBrowserNativeMessagingHosts
push ebx
call esi
test eax, eax
jne 0x40e12f
push str.com.tonec.idm
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40e135
Capabilities:
Delete registry key
Delete registry value
Persist via run registry key

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call fcn.0040de1b
call fcn.0040da6f
xor ebx, ebx
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
mov edi, 0x80000001
push dword [esp + 0x24]
push ebx
push ebx
push ebx
push str.SoftwareMozillaFirefoxExtensions
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40e19c
push str.mozilla_cc_internetdownloadmanager.com
push dword [esp + 0x14]
call esi
push str.mozilla_cc2_internetdownloadmanager.com
push dword [esp + 0x14]
call esi
push str.mozilla_cc3_internetdownloadmanager.com
push dword [esp + 0x14]
call esi
push dword [esp + 0x10]
call ebp
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push dword [esp + 0x24]
push ebx
push ebx
push ebx
push str.SoftwareMozillaSeaMonkeyExtensions
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40e1e1
push str.mozilla_cc_internetdownloadmanager.com
push dword [esp + 0x14]
call esi
push str.mozilla_cc2_internetdownloadmanager.com
push dword [esp + 0x14]
call esi
push str.mozilla_cc3_internetdownloadmanager.com
push dword [esp + 0x14]
call esi
push dword [esp + 0x10]
call ebp
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push dword [esp + 0x24]
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40e21b
push str.IDMan
push dword [esp + 0x14]
call esi
push 0x415bdc
push dword [esp + 0x14]
call esi
push dword [esp + 0x10]
call ebp
lea eax, [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push dword [esp + 0x1c]
push ebx
push str.SOFTWAREGoogleChromeExtensions
push 0x80000002
call esi
test eax, eax
jne 0x40e250
push str.ngpampappnmepgilojfohadhhmbhlaek
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [esp + 0x10]
call ebp
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x1c]
push ebx
push str.SOFTWAREGoogleChromeExtensions
push edi
call esi
test eax, eax
jne 0x40e27b
push str.ngpampappnmepgilojfohadhhmbhlaek
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [esp + 0x10]
call ebp
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x1c]
push ebx
push str.SOFTWAREMicrosoftEdgeExtensions
push edi
call esi
test eax, eax
jne 0x40e2b5
push str.ngpampappnmepgilojfohadhhmbhlaek
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.llbjbkhnmlidjebalopleeepgdfgcpec
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [esp + 0x10]
call ebp
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x1c]
push ebx
push str.SOFTWARECocCocBrowserExtensions
push edi
call esi
test eax, eax
jne 0x40e2e0
push str.ngpampappnmepgilojfohadhhmbhlaek
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [esp + 0x10]
call ebp
push dword [esp + 0x18]
call fcn.0040df18
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40e2f0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor esi, esi
push str.shell32.dll
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
je 0x40e350
push ebx
push str.SHGetFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, esi
je 0x40e343
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push dword [ebp + 8]
push esi
push esi
push 0x1a
push esi
call ebx
test eax, eax
jne 0x40e33d
mov dword [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 4], esi
pop ebx
jne 0x40e39b
lea eax, [ebp - 8]
push eax
push 1
pop edi
push edi
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e39b
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
push dword [ebp + 8]
push esi
push esi
push str.AppData
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e392
mov dword [ebp - 4], edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x40e3a2
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x411508
call fcn.00410d60
sub esp, 0x474
lea eax, [ebp - 0x480]
push eax
call fcn.0040e2f0
test eax, eax
pop ecx
je 0x40e3ca
xor eax, eax
jmp 0x40e517
push ebx
lea eax, [ebp - 0x480]
push esi
xor ebx, ebx
push eax
mov byte [ebp - 0xd], bl
call sub.MSVCRT.dll_wcslen
mov esi, eax
push 2
lea eax, [ebp - 0x24]
push ebx
push eax
dec esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
call sub.MSVCRT.dll_memset
add esp, 0x10
cmp word [ebp + esi*2 - 0x480], 0x5c
lea esi, [ebp + esi*2 - 0x480]
mov dword [ebp - 4], ebx
mov eax, 0x41c4f4
je 0x40e414
mov eax, 0x4150b8
push eax
lea eax, [ebp - 0x480]
push eax
push str._s_sMozillaFirefoxProfiles
lea ecx, [ebp - 0x28]
call fcn.00408f4b
mov eax, dword [ebp - 0x28]
cmp eax, ebx
jne 0x40e433
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x278]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x14], eax
xor eax, eax
cmp dword [ebp - 0x14], 0xffffffff
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
stosd dword es:[edi], eax
pop edi
je 0x40e507
lea eax, [ebp - 0x24c]
push 0x416ce4
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
test eax, eax
pop ecx
je 0x40e4de
lea eax, [ebp - 0x24c]
push 0x41b1f8
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
test eax, eax
pop ecx
je 0x40e4de
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x40e4de
cmp word [esi], 0x5c
mov eax, 0x41c4f4
je 0x40e4ac
mov eax, 0x4150b8
lea ecx, [ebp - 0x24c]
push ecx
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x480]
push eax
push str._s_sMozillaFirefoxProfiles_s_
call fcn.0040e523
mov eax, dword [ebp - 0x26c]
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e459
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp - 0xd], bl
je 0x40e507
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040114f
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x40e687
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x411550
call fcn.00410d60
sub esp, 0x18
push ebx
xor ebx, ebx
push 2
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x24]
mov dword [ebp - 4], ebx
push eax
call fcn.0040e3a2
add esp, 0x10
test eax, eax
je 0x40e732
push 2
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x40e6df
lea eax, [ebp - 0x20]
push eax
push str._sextensionsmozilla_cc3_internetdownloadmanager.com.xpi
lea ecx, [ebp - 0x18]
call fcn.00408e4c
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x40e6f7
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40e70e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40e727
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x40e718
lea eax, [ebp - 0x14]
push ebx
push dword [ebp + 8]
push 0x41cd38
push eax
call fcn.00405ef6
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0040114f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040114f
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret