joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419760
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x455e30
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x46ec3c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
push 0x45b0e8
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], ebx
call fcn.00403e30
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x14]
push edx
mov edx, dword [eax + 0x58]
push ecx
mov ecx, esi
mov byte [esp + 0x30], 1
call edx
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4197e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 3
je 0x419818
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.004117b0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
push eax
call fcn.0043b07d
add esp, 4
cmp dword [esp + 0x14], 1
mov dword [esp + 0x30], eax
jg 0x419841
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
push eax
call fcn.0043b07d
add esp, 4
cmp dword [esp + 0x14], 2
mov dword [esp + 0x2c], eax
jg 0x41986b
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
push eax
call fcn.0043b07d
movzx edx, byte [esp + 0x34]
xor ecx, ecx
mov ch, al
add esp, 4
mov dword [esp + 0x24], 0xffffffff
mov cl, byte [esp + 0x2c]
shl ecx, 8
or ecx, edx
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.004117b0
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret 8
Function at 0x419c20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x455f10
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x46ec3c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
push 0x458b51
lea ecx, [esp + 0x10]
call fcn.00403e30
push str.CurrentProfiles
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
call fcn.00403e30
mov eax, dword [esi]
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
lea ecx, [esi + 4]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
mov byte [esp + 0x30], 1
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x20], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419caf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x20], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419cd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x45b0e8
lea ecx, [esp + 0x14]
call fcn.00403e30
mov ecx, dword [esp + 0x28]
mov edx, dword [esi]
mov edx, dword [edx + 0x2c]
lea eax, [esp + 0x10]
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov byte [esp + 0x2c], 5
call edx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x20], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419d24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419d4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 4

Function at 0x41e2dd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x41e323
call fcn.00425c83
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41e323
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41e366
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x41e34f
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41e34f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41e363
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x422412
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42244b
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00402610
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004020f0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x423ea4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x423ee7
call fcn.00425c83
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x423ee7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x423f02
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00423a5b
test ebx, ebx
mov esi, eax
je 0x423f00
test edi, edi
je 0x423f00
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x42461b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x456136
call fcn.0043c52e
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x424640
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42468c
call fcn.00425e9e
push eax
lea ecx, [ebp - 0x10]
call fcn.00402140
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00423f09
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401000
mov eax, esi
call fcn.0043c606
ret 8
Function at 0x438d51
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46ec3c]
jne 0x438d5b
repz ret
jmp fcn.004407ac

Function at 0x44b933
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004401f8
xor ebx, ebx
cmp dword [0x472da8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x44ba08
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x44b973
xor eax, eax
jmp 0x44bacc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x460720
push edi
call esi
cmp eax, ebx
je 0x44b96c
push eax
call fcn.00440195
mov dword [esp], 0x460710
push edi
mov dword [0x472da8], eax
call esi
push eax
call fcn.00440195
mov dword [esp], 0x4606fc
push edi
mov dword [0x472dac], eax
call esi
push eax
call fcn.00440195
mov dword [0x472db0], eax
lea eax, [ebp - 8]
push eax
call fcn.0043c6e1
test eax, eax
pop ecx
pop ecx
je 0x44b9d6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00439154
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x44ba08
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00440195
cmp eax, ebx
pop ecx
mov dword [0x472db8], eax
je 0x44ba08
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00440195
pop ecx
mov dword [0x472db4], eax
mov eax, dword [0x472db4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x44ba81
cmp dword [0x472db8], esi
je 0x44ba81
push eax
call fcn.00440201
pop ecx
call eax
cmp eax, ebx
je 0x44ba4e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x472db8]
call fcn.00440201
pop ecx
call eax
test eax, eax
je 0x44ba4e
test byte [ebp - 0x18], 1
jne 0x44ba81
lea eax, [ebp - 0xc]
push eax
call fcn.0043c718
test eax, eax
pop ecx
je 0x44ba69
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00439154
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x44ba78
or dword [ebp + 0x10], 0x200000
jmp 0x44bab2
or dword [ebp + 0x10], 0x40000
jmp 0x44bab2
mov eax, dword [0x472dac]
cmp eax, esi
je 0x44bab2
push eax
call fcn.00440201
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44bab2
mov eax, dword [0x472db0]
cmp eax, esi
je 0x44bab2
push dword [ebp - 4]
push eax
call fcn.00440201
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x472da8]
call fcn.00440201
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4039d1
Capabilities:
Check os version

Disassembly:
mov eax, 0x4112c0
call fcn.00410db0
sub esp, 0x320
push ebx
push esi
push edi
lea eax, [ebp - 0x124]
mov dword [ebp - 0x10], esp
xor edi, edi
push eax
mov dword [ebp - 4], edi
xor esi, esi
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403a74
cmp dword [ebp - 0x114], 2
jne 0x403a74
cmp dword [ebp - 0x120], 6
jb 0x403a1e
push 1
pop esi
cmp dword [ebp + 8], edi
jne 0x403a2c
push edi
push edi
call fcn.0040314e
pop ecx
pop ecx
lea eax, [ebp - 0x32c]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x403a74
push esi
lea eax, [ebp - 0x32c]
push dword [ebp + 8]
push eax
call fcn.004036a0
add esp, 0xc
cmp eax, edi
je 0x403a74
cmp dword [ebp + 8], edi
je 0x403a69
push edi
push 1
call fcn.0040314e
pop ecx
pop ecx
push 1
pop eax
jmp 0x403a76
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x403ae1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x11c]
xor esi, esi
push eax
mov dword [edi], esi
xor ebx, ebx
mov dword [ebp - 0x11c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403be1
cmp dword [ebp - 0x10c], 2
jne 0x403be1
cmp dword [ebp - 0x118], 6
jb 0x403b41
push 1
pop ebx
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push str..IDMWFP
jmp 0x403b52
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push str..IDMTDI
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x403b6b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
mov dword [edi], eax
jmp 0x403be3
call fcn.00403110
neg eax
sbb eax, eax
lea ecx, [ebp + 8]
and eax, 0x100
push ecx
add eax, 0x20019
cmp ebx, esi
push eax
mov dword [edi], esi
push esi
je 0x403b91
push str.SYSTEMCurrentControlSetServicesIDMWFP
jmp 0x403b96
push str.SYSTEMCurrentControlSetServicesIDMTDI
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x403be1
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push str.Start
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403bd8
push 1
pop eax
cmp dword [ebp - 4], eax
je 0x403bd8
cmp dword [ebp - 4], 2
je 0x403bd8
mov dword [edi], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c38d
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 0x40c3e5
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c3e5
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 0x40c420
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
jmp 0x40c410
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 0x40c420
mov eax, dword [ebp + 0x10]
imul eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
xor ecx, ecx
cmp ecx, dword [ebp + 0xc]
jl 0x40c41c
jg 0x40c420
cmp eax, dword [ebp + 8]
ja 0x40c420
xor eax, eax
leave
ret
push 1
pop eax
leave
ret

Function at 0x40d62b
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 0x40d66e
mov eax, dword [0x41ce38]
cmp eax, esi
mov ecx, eax
jne 0x40d659
mov ecx, 0x41ce3c
mov eax, dword [0x41cef8]
cmp eax, esi
jne 0x40d667
mov eax, 0x41cefc
push 0x50031
jmp 0x40d6ca
cmp dword [0x41cd38], esi
je 0x40d6dd
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d6a7
cmp dword [ebp - 0x118], 2
jne 0x40d6a7
cmp dword [ebp - 0x124], 6
jb 0x40d6a7
mov dword [0x41e098], edi
jmp 0x40d6dd
mov eax, dword [0x41cec8]
cmp eax, esi
mov ecx, eax
jne 0x40d6b7
mov ecx, 0x41cecc
mov eax, dword [0x41ce58]
cmp eax, esi
jne 0x40d6c5
mov eax, 0x41ce5c
push 0x50001
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, edi
jne 0x40d6dd
mov dword [0x41e094], edi
cmp dword [0x41e094], esi
je 0x40d763
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 0x40d75a
push 2
pop ebx
cmp dword [ebp - 0x118], ebx
jne 0x40d75a
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 0x40d75a
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40d75a
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 0x40d7bf
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 0x40d84a
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 0x40d827
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 0x40d82e
inc edi
test esi, esi
je 0x40d7f0
jmp 0x40d83f
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call fcn.0040d78a
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 0x40d84d
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x41152c
call fcn.00410db0
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 0x40d8bd
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 0x40d911
push str.EdgeExtension_TonecIncIDMIntegrationModule_e7b5mm5d3r6v2
push dword [ebp - 0x14]
call fcn.0040d78a
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 0x40d92b
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x411538
call fcn.00410db0
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.0040da60
pop ecx
cmp eax, esi
pop ecx
je 0x40da51
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 0x40da51
cmp dword [ebp + 0x14], esi
je 0x40da51
mov dword [ebp + 0xc], esi
xor ebx, ebx
cmp ebx, esi
jne 0x40da51
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 0x40da43
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 0x40da43
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 0x40da3a
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x634]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40da3a
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 0x40d9a5
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40de73
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 0x40debc
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 0x40debe
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 0x40df1e
push ebx
push str.SHGetFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, esi
je 0x40df11
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 0x40df0b
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 0x40df69
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 0x40df69
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 0x40df60
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 0x40df70
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 0x40dfba
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.0040debe
test eax, eax
pop ecx
je 0x40e081
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 0x40dff9
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 0x40e03b
lea eax, [ebp - 0x208]
push eax
call fcn.004109db
pop ecx
cmp word [esi], 0x5c
mov eax, 0x41c4f4
je 0x40e04b
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 0x40e081
lea eax, [ebp - 0x208]
push eax
call fcn.004109db
pop ecx
pop esi
leave
ret