joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408e55
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 0x408f0e
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 0x408f0e
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 0x408ece
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 0x408ef0
push dword [ebp + 8]
call fcn.00408ac5
pop ecx
push dword [ebp + 8]
call fcn.00408c38
test al, al
pop ecx
jne 0x409003
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 0x408fc9
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 0x408f58
mov dword [ebp - 8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], edi
je 0x408fc9
lea eax, [ebp - 0x214]
push 0x7e
push eax
call sub.MSVCRT.dll_wcschr
pop ecx
test eax, eax
pop ecx
je 0x408f87
lea eax, [ebp - 0x214]
push eax
call fcn.00408ac5
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 0x408fa9
mov eax, 0x41b124
push 0x417e08
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 0x409003
lea eax, [ebp - 0x214]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x409007
lea eax, [ebp - 0x214]
push 0x417e08
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 0x40900a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a24c
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x564
mov eax, dword [0x41caa0]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
je 0x40a27a
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [0x41caa0]
jmp 0x40a29a
mov eax, dword [0x41caa4]
cmp eax, ebx
je 0x40a459
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [0x41caa4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 4], 0xfffffc18
ja 0x40a459
cmp dword [0x41ca80], ebx
jne 0x40a459
cmp word [0x41b558], bx
je 0x40a459
cmp dword [0x41ccc4], ebx
jne 0x40a459
call fcn.004096b4
push 0xf003f
call fcn.0040d7b6
pop ecx
call fcn.00403037
test eax, eax
je 0x40a2f6
push 0xf013f
call fcn.0040d7b6
pop ecx
lea eax, [ebp - 8]
push eax
push str.IDMan.exe
call fcn.0040b44e
pop ecx
test eax, eax
pop ecx
je 0x40a32b
push dword [ebp - 8]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x40a32b
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0x44
pop esi
xor eax, eax
push 0x10
lea edi, [ebp - 0x58]
pop ecx
mov dword [ebp - 0x5c], esi
rep stosd dword es:[edi], eax
push 0x10
lea eax, [ebp - 0x18]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp byte [0x41b9cc], bl
mov dword [ebp - 0x5c], esi
mov esi, 0x41b124
je 0x40a3cc
mov eax, dword [0x41b9c0]
mov edi, 0x41b9c4
cmp eax, ebx
jne 0x40a36b
mov eax, edi
push eax
call sub.MSVCRT.dll_wcslen
test eax, eax
pop ecx
je 0x40a3a1
mov eax, dword [0x41b9c0]
cmp eax, ebx
jne 0x40a381
mov eax, edi
push eax
movzx eax, word [0x41b9b0]
push eax
lea eax, [ebp - 0x15c]
push str.__setlngid__d__fulllngfile__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x40a3be
movzx eax, word [0x41b9b0]
push eax
lea eax, [ebp - 0x15c]
push str.__setlngid__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp byte [0x41b9cc], bl
lea edi, [ebp - 0x15c]
jne 0x40a3ce
mov edi, esi
cmp dword [0x41ca7c], ebx
mov edx, str.__onsilentsetup
jne 0x40a3dd
mov edx, esi
cmp dword [0x41ca88], ebx
mov ecx, str.__forcerbt
jne 0x40a3ec
mov ecx, esi
cmp dword [0x41ca9c], ebx
mov eax, str.__isupdt
jne 0x40a3fb
mov eax, esi
cmp dword [0x41ccc8], ebx
je 0x40a408
mov esi, str.__rbmsg
push edi
push edx
push ecx
push eax
push esi
push 0x41b558
lea eax, [ebp - 0x564]
push str.__s___rtr_s_s_s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
lea eax, [ebp - 0x564]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
je 0x40a459
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
pop esi
pop ebx
leave
ret
Function at 0x40a4a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, word [ebp + 0xc]
push ebx
push esi
push edi
push 0x418b14
push eax
mov dword [ebp - 8], ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40a568
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov dword [ebp + 0xc], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40a568
push dword [ebp + 0xc]
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40a561
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40a55a
test ebx, ebx
je 0x40a55a
push dword [ebp + 0xc]
push eax
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40a54f
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0040a571
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x40a56a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40b057
Capabilities:
Create thread
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
call fcn.0040b8ec
mov eax, dword [0x41ba08]
test eax, eax
jne 0x40b073
mov eax, 0x41ba0c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x40c9e3
push 0x6b
push eax
push ebx
call fcn.0040b378
add esp, 0x10
lea eax, [ebp - 0x45c]
push 0x41c054
push 0x416100
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
lea eax, [ebp - 0x254]
push eax
push edi
call esi
and dword [0x41ca90], 0
lea eax, [ebp - 0x254]
push eax
push edi
call esi
test eax, eax
je 0x40b0ed
mov eax, dword [ebp - 0x234]
add dword [0x41ca90], eax
jmp 0x40b0d1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebx]
push 0x4040b8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x41caa0], eax
jne 0x40b131
push 0x4140b0
push 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_call_CreateThread_in_ShowInstalling
call fcn.00405e29
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x40b21c
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x41bc08]
test eax, eax
jne 0x40b22a
mov eax, 0x41bc0c
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push 0x40c9e3
push 0x72
push eax
push esi
call fcn.0040b378
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0x10
push 0x3f0
push dword [esi]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
push 0x3f1
push dword [esi]
call edi
push 5
push eax
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x40b270
Capabilities:
Create thread
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 0xf003f
push eax
xor esi, esi
push ebx
push esi
push str.SoftwareDownloadManagerConfigTime
push 0x80000001
call edi
test eax, eax
jne 0x40b2c0
lea eax, [ebp - 0xc]
or dword [ebp - 0xc], 0xffffffff
push 4
push eax
push 4
push esi
push 0x41b124
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push ebx
push esi
push str.SoftwareInternet_Download_Manager
push 0x80000002
call edi
push 1
test eax, eax
pop ebx
jne 0x40b2fc
lea eax, [ebp - 0xc]
push 4
push eax
push 4
push esi
push str.InstallStatus
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040b8ec
mov eax, dword [0x41bc08]
cmp eax, esi
jne 0x40b30f
mov eax, 0x41bc0c
mov edi, dword [ebp + 8]
push 0x40c9e3
push 0x73
push eax
push edi
call fcn.0040b378
add esp, 0x10
push 0x3ef
push dword [edi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
lea eax, [ebp - 0x10]
push eax
push esi
push dword [edi]
push 0x40cfae
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x41caa4], eax
jne 0x40b371
push 0x4140b0
push ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_call_CreateThread_in_uninstaller
call fcn.00405e29
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x40b8ec
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.0040b8af
call fcn.0040acf4
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 0x40b946
lea eax, [ebp - 8]
push eax
push str.IDMan.exe
call fcn.0040b44e
pop ecx
test eax, eax
pop ecx
je 0x40b946
push dword [ebp - 8]
push 0
push 1
call esi
test eax, eax
mov dword [ebp - 4], eax
je 0x40b946
push 0
push eax
call edi
push dword [ebp - 4]
call ebx
lea eax, [ebp - 8]
push eax
push str.IDMIntegrator64.exe
call fcn.0040b44e
pop ecx
test eax, eax
pop ecx
je 0x40b974
push dword [ebp - 8]
push 0
push 1
call esi
test eax, eax
mov dword [ebp - 4], eax
je 0x40b974
push 0
push eax
call edi
push dword [ebp - 4]
call ebx
lea eax, [ebp - 8]
push eax
push str.idmBroker.exe
call fcn.0040b44e
pop ecx
test eax, eax
pop ecx
je 0x40b9a2
push dword [ebp - 8]
push 0
push 1
call esi
test eax, eax
mov dword [ebp - 4], eax
je 0x40b9a2
push 0
push eax
call edi
push dword [ebp - 4]
call ebx
lea eax, [ebp - 8]
push eax
push str.IDMGrHlp.exe
call fcn.0040b44e
pop ecx
test eax, eax
pop ecx
je 0x40b9d0
push dword [ebp - 8]
push 0
push 1
call esi
test eax, eax
mov dword [ebp - 4], eax
je 0x40b9d0
push 0
push eax
call edi
push dword [ebp - 4]
call ebx
lea eax, [ebp - 8]
push eax
push str.IEMonitor.exe
call fcn.0040b44e
pop ecx
test eax, eax
pop ecx
je 0x40b9fb
push dword [ebp - 8]
push 0
push 1
call esi
mov esi, eax
test esi, esi
je 0x40b9fb
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 0x40baa0
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 0x40ba97
lea eax, [ebp - 0x214]
push 0x5c
push eax
call sub.MSVCRT.dll_wcsrchr
mov edi, eax
pop ecx
cmp edi, esi
pop ecx
je 0x40ba97
lea eax, [edi + 2]
push str.IDMan.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40ba97
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.0041009e
add esp, 0x10
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bbf1
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 0x40bc49
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bc49
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 0x40bc84
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
jmp 0x40bc74
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 0x40bc84
mov eax, dword [ebp + 0x10]
imul eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
xor ecx, ecx
cmp ecx, dword [ebp + 0xc]
jl 0x40bc80
jg 0x40bc84
cmp eax, dword [ebp + 8]
ja 0x40bc84
xor eax, eax
leave
ret
push 1
pop eax
leave
ret

Function at 0x40ce71
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 [0x41ca80], esi
push 1
pop edi
mov ebx, 0x114
je 0x40ceb4
mov eax, dword [0x41ba68]
cmp eax, esi
mov ecx, eax
jne 0x40ce9f
mov ecx, 0x41ba6c
mov eax, dword [0x41bb28]
cmp eax, esi
jne 0x40cead
mov eax, 0x41bb2c
push 0x50031
jmp 0x40cf10
cmp dword [0x41b968], esi
je 0x40cf23
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40ceed
cmp dword [ebp - 0x118], 2
jne 0x40ceed
cmp dword [ebp - 0x124], 6
jb 0x40ceed
mov dword [0x41ccc8], edi
jmp 0x40cf23
mov eax, dword [0x41baf8]
cmp eax, esi
mov ecx, eax
jne 0x40cefd
mov ecx, 0x41bafc
mov eax, dword [0x41ba88]
cmp eax, esi
jne 0x40cf0b
mov eax, 0x41ba8c
push 0x50001
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, edi
jne 0x40cf23
mov dword [0x41ccc4], edi
cmp dword [0x41ccc4], esi
je 0x40cfa9
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 0x40cfa0
push 2
pop ebx
cmp dword [ebp - 0x118], ebx
jne 0x40cfa0
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 0x40cfa0
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40cfa0
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 0x40d005
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 0x40d090
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 0x40d06d
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 0x40d074
inc edi
test esi, esi
je 0x40d036
jmp 0x40d085
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call fcn.0040cfd0
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 0x40d093
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x410bf0
call fcn.00410480
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 0x40d103
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 0x40d157
push str.EdgeExtension_TonecIncIDMIntegrationModule_e7b5mm5d3r6v2
push dword [ebp - 0x14]
call fcn.0040cfd0
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 0x40d171
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x410bfc
call fcn.00410480
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.0040d2a6
pop ecx
cmp eax, esi
pop ecx
je 0x40d297
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 0x40d297
cmp dword [ebp + 0x14], esi
je 0x40d297
mov dword [ebp + 0xc], esi
xor ebx, ebx
cmp ebx, esi
jne 0x40d297
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 0x40d289
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x10]
push eax
push esi
push 0xf003f
push esi
push 0x41b124
lea eax, [ebp - 0x224]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d289
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 0x40d280
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x634]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40d280
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 0x40d1eb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40d6b9
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 0x40d702
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.http
push dword [ebp - 4]
call esi
push 0x41985c
push dword [ebp - 4]
call esi
push str.https
push dword [ebp - 4]
call esi
pop esi
leave
ret

Function at 0x40d704
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 0x40d764
push ebx
push str.SHGetFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, esi
je 0x40d757
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 0x40d751
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 0x40d7af
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 0x40d7af
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 0x40d7a6
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