joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4085c9
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x41082c
call fcn.00410160
sub esp, 0x268
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push 2
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [esi + 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 8], ebx
mov eax, dword [esi + 0xc]
mov dword [ebp - 4], ebx
je 0x408612
cmp eax, ebx
jne 0x40860a
lea eax, [esi + 0x10]
push eax
push str._sLanguagesinst_.lng
jmp 0x40861f
cmp eax, ebx
jne 0x408619
lea eax, [esi + 0x10]
push eax
push str._sIDM.
lea ecx, [ebp - 0x18]
call fcn.004086fa
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x408631
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x274]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4086dd
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
add esp, 0xc
cmp dword [ebp + 8], ebx
mov eax, dword [esi + 0xc]
mov byte [ebp - 4], 1
je 0x408681
cmp eax, ebx
jne 0x408672
lea eax, [esi + 0x10]
lea ecx, [ebp - 0x248]
push ecx
push eax
push str._sLanguages_s
jmp 0x408695
cmp eax, ebx
jne 0x408688
lea eax, [esi + 0x10]
lea ecx, [ebp - 0x248]
push ecx
push eax
push str._s_s
lea ecx, [ebp - 0x24]
call fcn.004087f9
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x4086a7
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.00408398
lea eax, [ebp - 0x274]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x24]
je 0x4086d1
call fcn.0040114a
jmp 0x40864a
call fcn.0040114a
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040114a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x408a88
Capabilities:
Check os version
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x410884
call fcn.00410160
sub esp, 0xb60
push ebx
push esi
xor ebx, ebx
push edi
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
jne 0x408aaf
mov al, 1
jmp 0x408c8b
lea eax, [ebp - 0x144]
mov byte [ebp - 0x11], bl
push eax
mov dword [ebp - 0x144], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x408b94
cmp dword [ebp - 0x134], 2
jne 0x408b94
cmp dword [ebp - 0x140], 6
jb 0x408b94
push str.shell32
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x408b94
push str.SHGetKnownFolderPath
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x408b88
push ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], 0xb4bfcc3a
mov word [ebp - 0x24], 0xdb2c
mov word [ebp - 0x22], 0x424c
mov byte [ebp - 0x20], 0xb0
mov byte [ebp - 0x1f], 0x29
mov byte [ebp - 0x1e], 0x7f
mov byte [ebp - 0x1d], 0xe9
mov byte [ebp - 0x1c], 0x9a
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0xc6
mov byte [ebp - 0x19], 0x41
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x28]
push ebx
push eax
call esi
cmp eax, ebx
jne 0x408b82
cmp dword [ebp - 0x18], ebx
je 0x408b82
push dword [ebp - 0x18]
lea eax, [ebp - 0x75c]
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
mov byte [ebp - 0x11], 1
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp - 0x11], bl
jne 0x408c07
lea eax, [ebp - 0x2c]
push eax
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408aa8
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x208
push eax
lea eax, [ebp - 0xb6c]
push eax
push ebx
push ebx
push str.Desktop
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408bf5
lea eax, [ebp - 0xb6c]
push eax
lea eax, [ebp - 0x75c]
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
mov byte [ebp - 0x11], 1
pop ecx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x11], bl
je 0x408aa8
push dword [ebp + 8]
lea eax, [ebp - 0x34c]
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [ebp - 0x34c]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0xc
cmp word [ebp + eax*2 - 0x34e], 0x5c
jne 0x408c45
lea eax, [ebp - 0x34c]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
mov word [ebp + eax*2 - 0x34e], bx
lea eax, [ebp - 0x75c]
push eax
call sub.MSVCRT.dll_wcslen
cmp word [ebp + eax*2 - 0x75e], 0x5c
pop ecx
jne 0x408c72
lea eax, [ebp - 0x75c]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
mov word [ebp + eax*2 - 0x75e], bx
lea eax, [ebp - 0x75c]
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
setne al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x408ca5
Capabilities:
Delete file
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push edi
push eax
xor edi, edi
push 0xf003f
push edi
push str.SoftwareDownloadManager
push 0x80000001
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408d5e
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x208
push eax
push dword [ebp + 8]
push edi
push edi
push str.ExePath
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x408d5e
push dword [ebp + 8]
lea eax, [ebp - 0x41c]
push eax
call sub.MSVCRT.dll_wcscpy
push 0x5c
push dword [ebp + 8]
call sub.MSVCRT.dll_wcsrchr
add esp, 0x10
cmp eax, edi
je 0x408d1e
mov word [eax], di
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x7e
push dword [ebp + 8]
call sub.MSVCRT.dll_wcschr
pop ecx
test eax, eax
pop ecx
je 0x408d40
push dword [ebp + 8]
call fcn.00408915
pop ecx
push dword [ebp + 8]
call fcn.00408a88
test al, al
pop ecx
jne 0x408e53
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 4]
mov dword [ebp - 8], edi
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call esi
test eax, eax
jne 0x408e19
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x208
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push edi
push str.ProgramFilesDir
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x408da8
mov dword [ebp - 8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], edi
je 0x408e19
lea eax, [ebp - 0x214]
push 0x7e
push eax
call sub.MSVCRT.dll_wcschr
pop ecx
test eax, eax
pop ecx
je 0x408dd7
lea eax, [ebp - 0x214]
push eax
call fcn.00408915
pop ecx
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_wcslen
cmp word [ebp + eax*2 - 0x216], 0x5c
pop ecx
mov eax, 0x4140b8
jne 0x408df9
mov eax, 0x41afe4
push 0x417d30
push eax
lea eax, [ebp - 0x214]
push eax
push str._s_s_s
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x408e53
lea eax, [ebp - 0x214]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x408e57
lea eax, [ebp - 0x214]
push 0x417d30
push eax
push str._sProgram_Files_s
push dword [ebp + 8]
mov word [ebp - 0x20e], di
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
xor eax, eax
jmp 0x408e5a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40aaf1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
je 0x40ab0c
cmp dword [ebp - 0x398], 0
je 0x40acd6
cmp dword [ebp + 0xc], 1
je 0x40acd6
cmp dword [ebp + 0xc], 8
jne 0x40ac9e
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
invalid
test dword [eax - 7], edx
invalid
invalid

Function at 0x40cbea
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 [0x41c940], esi
push 1
pop edi
mov ebx, 0x114
je 0x40cc2d
mov eax, dword [0x41b928]
cmp eax, esi
mov ecx, eax
jne 0x40cc18
mov ecx, 0x41b92c
mov eax, dword [0x41b9e8]
cmp eax, esi
jne 0x40cc26
mov eax, 0x41b9ec
push 0x50031
jmp 0x40cc89
cmp dword [0x41b828], esi
je 0x40cc9c
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40cc66
cmp dword [ebp - 0x118], 2
jne 0x40cc66
cmp dword [ebp - 0x124], 6
jb 0x40cc66
mov dword [0x41cb88], edi
jmp 0x40cc9c
mov eax, dword [0x41b9b8]
cmp eax, esi
mov ecx, eax
jne 0x40cc76
mov ecx, 0x41b9bc
mov eax, dword [0x41b948]
cmp eax, esi
jne 0x40cc84
mov eax, 0x41b94c
push 0x50001
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, edi
jne 0x40cc9c
mov dword [0x41cb84], edi
cmp dword [0x41cb84], esi
je 0x40cd22
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 0x40cd19
push 2
pop ebx
cmp dword [ebp - 0x118], ebx
jne 0x40cd19
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 0x40cd19
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40cd19
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 0x40cd7e
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 0x40ce09
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 0x40cde6
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 0x40cded
inc edi
test esi, esi
je 0x40cdaf
jmp 0x40cdfe
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call fcn.0040cd49
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 0x40ce0c
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4108c8
call fcn.00410160
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 0x40ce7c
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 0x40ced0
push str.EdgeExtension_TonecIncIDMIntegrationModule_e7b5mm5d3r6v2
push dword [ebp - 0x14]
call fcn.0040cd49
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 0x40ceea
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x4108d4
call fcn.00410160
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.0040d01f
pop ecx
cmp eax, esi
pop ecx
je 0x40d010
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 0x40d010
cmp dword [ebp + 0x14], esi
je 0x40d010
mov dword [ebp + 0xc], esi
xor ebx, ebx
cmp ebx, esi
jne 0x40d010
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 0x40d002
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x10]
push eax
push esi
push 0xf003f
push esi
push 0x41afe4
lea eax, [ebp - 0x224]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d002
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 0x40cff9
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x634]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40cff9
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 0x40cf64
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40d432
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 0x40d47b
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.http
push dword [ebp - 4]
call esi
push 0x4197a0
push dword [ebp - 4]
call esi
push str.https
push dword [ebp - 4]
call esi
pop esi
leave
ret

Function at 0x40d47d
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 0x40d4dd
push ebx
push str.SHGetFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, esi
je 0x40d4d0
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 0x40d4ca
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 0x40d528
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 0x40d528
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 0x40d51f
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 0x40d52f
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 0x40d579
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.0040d47d
test eax, eax
pop ecx
je 0x40d640
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, 0x41afe4
je 0x40d5b8
mov eax, 0x4140b8
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 0x40d5fa
lea eax, [ebp - 0x208]
push eax
call fcn.0040fd87
pop ecx
cmp word [esi], 0x5c
mov eax, 0x41afe4
je 0x40d60a
mov eax, 0x4140b8
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 0x40d640
lea eax, [ebp - 0x208]
push eax
call fcn.0040fd87
pop ecx
pop esi
leave
ret
Function at 0x40d643
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 0x40d686
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.00403037
test eax, eax
je 0x40d6c0
lea eax, [esp + 0x10]
push eax
push 0xf013f
push 0
push ebp
push ebx
call esi
test eax, eax
jne 0x40d6c0
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 0x40d6c6
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 0x40d6f4
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 0x40d71d
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 0x40d746
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 0x40d74c
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.0040d432
call fcn.0040d086
xor edi, edi
lea eax, [esp + 0x10]
push edi
push eax
push edi
mov ebx, 0x80000001
push dword [esp + 0x24]
push edi
push edi
push edi
push str.SoftwareMozillaFirefoxExtensions
push ebx
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 0x40d7b3
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 edi
push eax
push edi
push dword [esp + 0x24]
push edi
push edi
push edi
push str.SoftwareMozillaSeaMonkeyExtensions
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d7f8
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 edi
push eax
push edi
push dword [esp + 0x24]
push edi
push edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d832
push str.IDMan
push dword [esp + 0x14]
call esi
push 0x414b1c
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 edi
push str.SOFTWAREGoogleChromeExtensions
push 0x80000002
call esi
test eax, eax
jne 0x40d867
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 edi
push str.SOFTWAREMicrosoftEdgeExtensions
push ebx
call esi
test eax, eax
jne 0x40d892
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 edi
push str.SOFTWARECocCocBrowserExtensions
push ebx
call esi
test eax, eax
jne 0x40d8bd
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.0040d52f
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40d8cd
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 0x40d92d
push ebx
push str.SHGetFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, esi
je 0x40d920
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 0x40d91a
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 0x40d978
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 0x40d978
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 0x40d96f
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