joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407960
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59834b
push eax
mov dword fs:[0], esp
sub esp, 0x118
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x407a78
mov eax, dword [esi + 8]
mov dword [esp + 8], edi
cmp eax, edi
mov dword [esp + 0xc], edi
jle 0x407a78
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ebx, ebx
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
mov eax, dword [eax + ebx + 4]
push edx
push edi
push 0xf003f
push edi
push 0x660ff8
push edi
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x407a0a
lea ecx, [esp + 0x20]
call fcn.00477f00
push 1
push str.Cannot_open__create__registry_subkey_during_CBrowsersIntegration::Save__._r_n
lea ecx, [esp + 0x28]
mov dword [esp + 0x138], edi
call fcn.00478010
lea ecx, [esp + 0x20]
mov dword [esp + 0x130], 0xffffffff
call fcn.00478000
jmp 0x407a50
mov ecx, dword [esi + 4]
xor eax, eax
mov edx, dword [ecx + ebx]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x18]
push 1
push eax
push 0x6375c8
push edx
call ebp
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push 4
push edx
mov ecx, dword [eax + ebx + 8]
mov eax, dword [esp + 0x18]
push 4
push 0
push 0x6375c4
push eax
mov dword [esp + 0x30], ecx
call ebp
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4079a7
mov eax, dword [esp + 0x10]
pop ebp
cmp eax, edi
pop ebx
je 0x407a78
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x124
ret
Function at 0x409cb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp]
push esi
xor esi, esi
push eax
mov eax, dword [ecx + 0x14]
push 1
push esi
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409d05
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.found
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409d05
mov esi, dword [esp + 8]
mov eax, dword [esp + 4]
test eax, eax
je 0x409d14
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4
Function at 0x40af80
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59855b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x26c
mov eax, dword [0x6614bc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str.idmmzcc.xpi
push eax
lea ecx, [ebp - 0x170]
xor ebx, ebx
push 0x637020
push ecx
mov dword [ebp - 4], ebx
call fcn.0056b4da
add esp, 0x10
lea edx, [ebp - 0x170]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b0cd
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
mov eax, dword [0x65ca8c]
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x40], 3
mov word [ebp - 0x3c], 5
mov dword [ebp - 0x54], 0x12c
mov dword [ebp - 0x50], 0xc8
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x170]
push ecx
push edx
lea eax, [ebp - 0x14]
push str.__s____s_
push eax
mov byte [ebp - 4], 1
call fcn.0057f8fb
add esp, 0x10
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x6c]
push ecx
push edx
push ebx
push ebx
push 0x30
push 1
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
jne 0x40b0e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x65ca8c]
mov dword [ebp + 8], ecx
push ebx
lea edx, [ebp - 0x18]
push ebx
push edx
push 0x400
push eax
push ebx
push 0x1100
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp + 8]
push eax
push str.Cannot_start_browser._r_n_s
push ecx
call fcn.0057f8fb
mov edx, dword [ebp - 0x18]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 8]
push 0x50030
push 0x6370c0
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00586b33
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00586b33
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x28]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x28]
push eax
call esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00586b33
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b160
Capabilities:
Shutdown system
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59859c
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x12c
test eax, eax
je 0x40b1f2
push 0
lea ecx, [esp + 0x18]
call fcn.004c74b0
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0
call fcn.00582ac6
lea ecx, [esp + 0xe8]
mov dword [esp + 0x134], 3
call fcn.0058e7cb
lea ecx, [esp + 0xac]
mov byte [esp + 0x134], 2
call fcn.0058126d
lea ecx, [esp + 0x70]
mov byte [esp + 0x134], 1
call fcn.0058e803
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.00582707
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40b244
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40bf60
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10c
add ecx, 4
push ebx
push ebp
push esi
push edi
push str.IEXPLORE
call fcn.00409c50
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_Explorer
push reloc.WSOCK32.dll_accept
call ebp
test eax, eax
jne 0x40c033
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.DownloadUI
push eax
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c001
test ebx, ebx
je 0x40c028
mov esi, str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40bff8
test cl, cl
je 0x40bff4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40bff8
add eax, 2
add esi, 2
test cl, cl
jne 0x40bfd4
xor eax, eax
jmp 0x40bffd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40c028
mov edi, str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
push 1
push eax
mov eax, dword [esp + 0x20]
push str.DownloadUI
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_Explorer
push reloc.WSOCK32.dll_bind
call ebp
test eax, eax
jne 0x40c0ed
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push str.DownloadUI
push edx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c0bb
test ebx, ebx
je 0x40c0e2
mov esi, str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40c0b2
test cl, cl
je 0x40c0ae
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40c0b2
add eax, 2
add esi, 2
test cl, cl
jne 0x40c08a
xor eax, eax
jmp 0x40c0b7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40c0e2
mov edi, str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
push 1
push eax
mov eax, dword [esp + 0x20]
push str.DownloadUI
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x40c230
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59864b
push eax
mov dword fs:[0], esp
sub esp, 0x40c
call fcn.0042f230
neg eax
mov edx, dword [esp + 0x41c]
lea ecx, [esp + 4]
sbb eax, eax
push ecx
and eax, 0x100
add eax, 0xf003f
push eax
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c41c
mov edx, dword [0x6614c0]
push ebx
lea eax, [esp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x28], 0x400
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x40c311
lea ecx, [esp + 0x14]
push ecx
call fcn.0056d814
lea edx, [esp + 0x18]
push 0x637f64
push edx
call fcn.0056ab30
add esp, 0xc
test eax, eax
jne 0x40c303
lea eax, [esp + 0x14]
push str.RUNAS
push eax
call fcn.0056ab30
add esp, 8
test eax, eax
jne 0x40c303
lea ecx, [esp + 0x14]
push str.VISTA
push ecx
call fcn.0056ab30
add esp, 8
test eax, eax
je 0x40c311
mov edx, dword [0x6614c0]
mov eax, dword [esp + 0xc]
push edx
push eax
call ebx
mov ecx, dword [0x65ca8c]
mov dword [esp + 8], ecx
mov edx, dword [0x6614bc]
lea eax, [esp + 8]
push edx
push str._sUninstall.exe
push eax
mov dword [esp + 0x428], 0
call fcn.0057f8fb
mov eax, dword [esp + 0x14]
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push 0
push eax
push ecx
mov dword [esp + 0x28], 0x400
call esi
test eax, eax
jne 0x40c391
lea edx, [esp + 0x14]
push edx
call fcn.0056d814
lea eax, [esp + 0x18]
push 0x637f64
push eax
call fcn.0056ab30
add esp, 0xc
test eax, eax
je 0x40c391
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push ecx
push edx
call ebx
mov eax, dword [0x6614bc]
lea ecx, [esp + 8]
push eax
push str._sIDMGrHlp.exe
push ecx
call fcn.0057f8fb
mov ecx, dword [esp + 0x14]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push eax
push 0
push 0
push ecx
push edx
mov dword [esp + 0x28], 0x400
call esi
test eax, eax
jne 0x40c3fb
lea eax, [esp + 0x14]
push eax
call fcn.0056d814
lea ecx, [esp + 0x18]
push 0x637f64
push ecx
call fcn.0056ab30
add esp, 0xc
test eax, eax
je 0x40c3fb
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push edx
push eax
call ebx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov dword [esp + 0x41c], 0xffffffff
call fcn.00586b33
pop esi
pop ebx
mov ecx, dword [esp + 0x40c]
mov dword fs:[0], ecx
add esp, 0x418
ret
Function at 0x40d4f0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 8
push esi
push edi
call fcn.0042f230
neg eax
sbb eax, eax
lea ecx, [esp + 8]
and eax, 0x100
push ecx
add eax, 0xf003f
push eax
push 0
push str.SYSTEMCurrentControlSetServicesIDMTDI
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40d556
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 4
push edx
push 4
push 0
push 0x6380fc
push eax
mov dword [esp + 0x24], 1
call esi
mov ecx, dword [esp + 8]
push ecx
call edi
lea edx, [esp + 8]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x660ff8
push 0
push 0x636e60
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40d5a7
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push str.AdvIntDriverEnabled2
push ecx
mov dword [esp + 0x24], 1
call esi
mov edx, dword [esp + 8]
push edx
call edi
pop edi
pop esi
add esp, 8
ret
Function at 0x40d5b0
Capabilities:
Check if file exists
Check os version
Create process on windows
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5987ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push esi
lea eax, [esp + 0x88]
push edi
mov ebx, ecx
push eax
mov dword [esp + 0x90], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40d76e
cmp dword [esp + 0x9c], 2
jne 0x40d76e
cmp dword [esp + 0x90], 6
jb 0x40d6f4
mov ecx, dword [0x65ca8c]
mov dword [esp + 0xc], ecx
mov edx, dword [0x6614bc]
push str.Uninstall.exe
push edx
lea eax, [esp + 0x14]
xor esi, esi
push 0x637020
push eax
mov dword [esp + 0x138], esi
call fcn.0057f8fb
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x24]
add esp, 0x10
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], 0x3c
push eax
mov dword [esp + 0x1c], 0x40
mov dword [esp + 0x24], 0x636f3c
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40d6de
mov ecx, dword [esp + 0xc]
push esi
push ecx
mov ecx, ebx
call fcn.0040c100
test al, al
je 0x40d6de
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], eax
push edx
mov dword [esp + 0x2c], str._startdriv
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40d6d8
mov eax, dword [esp + 0x4c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x40d6de
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
mov dword [esp + 0x128], 0xffffffff
call fcn.00586b33
jmp 0x40d76e
mov ecx, ebx
call fcn.0040d4f0
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x50]
xor esi, esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x50], 0x3c
mov dword [esp + 0x54], 0x40
mov dword [esp + 0x5c], 0x636f3c
mov dword [esp + 0x60], str.net.exe
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], 6
mov dword [esp + 0x70], esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x68], str.start_idmtdi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40d76e
mov ecx, dword [esp + 0x88]
push 0x2710
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x40d790
Capabilities:
Check if file exists
Check os version
Create process on windows
Get file attributes
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5987cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push esi
lea eax, [esp + 0x4c]
push edi
mov esi, ecx
push eax
mov dword [esp + 0x54], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40d995
cmp dword [esp + 0x60], 2
jne 0x40d995
cmp dword [esp + 0x54], 6
jb 0x40d8e7
mov ecx, dword [0x65ca8c]
mov dword [esp + 8], ecx
mov edx, dword [0x6614bc]
push str.Uninstall.exe
push edx
lea eax, [esp + 0x10]
push 0x637020
push eax
mov dword [esp + 0xfc], 0
call fcn.0057f8fb
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x24]
add esp, 0x10
rep stosd dword es:[edi], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x14], 0x3c
push eax
mov dword [esp + 0x1c], 0x40
mov dword [esp + 0x24], 0x636f3c
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40d8bc
mov ecx, dword [esp + 8]
push 0
push ecx
mov ecx, esi
call fcn.0040c100
test al, al
je 0x40d8bc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], eax
push edx
mov dword [esp + 0x2c], str._stopdriv
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40d8b6
mov eax, dword [esp + 0x4c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x40d8bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 8]
mov dword [esp + 0xec], 0xffffffff
call fcn.00586b33
pop edi
pop esi
mov ecx, dword [esp + 0xdc]
mov dword fs:[0], ecx
add esp, 0xe8
ret
call fcn.0042f230
neg eax
sbb eax, eax
lea ecx, [esp + 0xc]
and eax, 0x100
push ecx
add eax, 0xf003f
push eax
push 0
push str.SYSTEMCurrentControlSetServicesIDMTDI
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40d948
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push 4
push edx
push 4
push 0
push 0x6380fc
push eax
mov dword [esp + 0x20], 3
call esi
mov ecx, dword [esp + 0xc]
push ecx
call edi
lea edx, [esp + 0xc]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x660ff8
push 0
push 0x636e60
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40d995
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push str.AdvIntDriverEnabled2
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call edi
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0xe8
ret
Function at 0x40d9b0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0xa0
push esi
lea eax, [esp + 0x10]
push edi
mov edi, ecx
push eax
xor esi, esi
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40d9fc
cmp dword [esp + 0x24], 2
jne 0x40d9fc
cmp dword [esp + 0x18], 6
jb 0x40da0a
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
mov esi, 1
push str..IDMWFP
jmp 0x40da1e
mov eax, dword [edi + 0x1c]
pop edi
pop esi
add esp, 0xa0
ret 4
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..IDMTDI
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40da4d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xac]
pop edi
mov eax, 1
pop esi
mov dword [ecx], 1
add esp, 0xa0
ret 4
call fcn.0042f230
mov edi, dword [esp + 0xac]
neg eax
sbb eax, eax
mov dword [edi], 0
and eax, 0x100
add eax, 0x20019
test esi, esi
je 0x40da80
lea edx, [esp + 8]
push edx
push eax
push 0
push str.SYSTEMCurrentControlSetServicesIDMWFP
jmp 0x40da8d
lea ecx, [esp + 8]
push ecx
push eax
push 0
push str.SYSTEMCurrentControlSetServicesIDMTDI
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40dae5
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push 0x6380fc
push ecx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40dada
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x40dada
cmp eax, 2
je 0x40dada
mov dword [edi], 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret 4
Function at 0x40e5f0
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
mov dword [esi + 0x34], edi
je 0x40e60f
call fcn.0040e840
test eax, eax
jne 0x40e60f
mov ecx, esi
call fcn.00410070
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40e6d9
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x40e6d9
push edi
push str.IntegrateMIE
mov ecx, esi
call fcn.0040eb00
mov ecx, dword [0x6614e8]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.IDMBIIEXPLORE
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e688
lea edx, [esp + 0x10]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x1c]
push 0x6375c4
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
ret 8
mov eax, dword [0x6614e8]
lea edx, [esp + 0xc]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x660ff8
push 0
push str.IDMBIIEXPLORE
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40e6d9
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push eax
push 0x6375c4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
ret 8

Function at 0x40e6f0
Capabilities:
Delete registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5988e0
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerMenuExt_
push reloc.WSOCK32.dll_accept
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40e73e
mov ecx, dword [esp + 0xc]
push str.Download_with_IDMan
push ecx
call edi
lea edx, [esp + 0xc]
push edx
push 0xf003f
push 0
push str.SoftwareClassesPROTOCOLSName_Space_Handler_
push reloc.WSOCK32.dll_bind
call esi
test eax, eax
je 0x40e76d
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.http_
push ecx
call esi
test eax, eax
jne 0x40e7af
mov edx, dword [esp + 8]
push 0x638294
push edx
call edi
mov eax, dword [esp + 8]
push 0x638290
push eax
call edi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.https_
push edx
call esi
test eax, eax
jne 0x40e7df
mov eax, dword [esp + 8]
push 0x638294
push eax
call edi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.ftp_
push edx
call esi
test eax, eax
jne 0x40e81b
mov eax, dword [esp + 8]
push 0x638294
push eax
call edi
mov ecx, dword [esp + 8]
push 0x638290
push ecx
call edi
mov ecx, dword [esp + 0x14]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret