joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b430
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push esi
push edi
xor eax, eax
mov byte [ebp - 0x408], 0
mov ecx, 0xff
lea edi, [ebp - 0x407]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push str.SoftwareMicroSoftWindowsCurrentVersionRunOnce
push SysReAllocString
mov dword [ebp - 8], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b4b8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x408]
push eax
push esi
push esi
push str.JavaInstallRetry
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b4af
lea eax, [ebp - 0x408]
push str.JRERunOnce.exe
push eax
call fcn.00412a50
test eax, eax
pop ecx
pop ecx
jne 0x40b4af
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40b603
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor esi, esi
push esi
push str.SOFTWAREJavaSoft
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
cmp edi, esi
je 0x40b655
cmp edi, 2
jne 0x40b643
push str.Could_not_find_HKEY_LOCAL_MACHINE__SOFTWAREJavaSoft_registry_key.
call fcn.0040b31c
xor edi, edi
jmp 0x40b64d
push str.Could_not_open_HKEY_LOCAL_MACHINE__SOFTWAREJavaSoft_registry_key.
call fcn.0040b31c
pop ecx
mov eax, edi
jmp 0x40b722
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
push 4
pop ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov esi, str.MSIStatusError
push esi
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call edi
test eax, eax
mov dword [ebp - 0x10], eax
je 0x40b699
cmp eax, 0xea
je 0x40b699
cmp eax, 2
jne 0x40b6b5
and dword [ebp - 0x10], 0
jmp 0x40b6b5
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x40b6b5
push str.Could_not_delete_MSIStatusError_registry_value.
call fcn.0040b31c
pop ecx
and dword [ebp - 0xc], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov esi, str.MSIStatusExtendedError
push esi
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call edi
mov edi, eax
test edi, edi
pop ebx
je 0x40b6ed
cmp edi, 0xea
je 0x40b6ed
cmp edi, 2
jne 0x40b708
xor edi, edi
jmp 0x40b708
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, eax
test edi, edi
je 0x40b708
push str.Could_not_delete_MSIStatusExtendedError_registry_value.
call fcn.0040b31c
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40b722
test edi, edi
mov eax, edi
jne 0x40b722
mov eax, ecx
pop edi
pop esi
leave
ret
Function at 0x40b726
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push str.SOFTWAREJavaSoft
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
je 0x40b75d
push str.Could_not_open_the_registry_key.
call fcn.0040b31c
pop ecx
mov eax, esi
jmp 0x40b7dd
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
and dword [ebp - 0xc], 0
push edi
push 4
pop edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0
push str.MSIStatusError
push dword [ebp - 4]
mov dword [ebp - 8], edi
call esi
test eax, eax
mov dword [ebp - 0x10], eax
je 0x40b797
push str.Could_not_get_MSIStatusError_registry_value.
call fcn.0040b31c
pop ecx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push 0
push str.MSIStatusExtendedError
push dword [ebp - 4]
mov dword [ebp - 8], edi
call esi
mov esi, eax
test esi, esi
pop edi
je 0x40b7c3
push str.Could_not_get_MSIStatusExtendedError_registry_value.
call fcn.0040b31c
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40b7dd
test esi, esi
mov eax, esi
jne 0x40b7dd
mov eax, ecx
pop esi
leave
ret

Function at 0x40b7e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [ebp + 8]
push ebx
push edi
xor ebx, ebx
xor edi, edi
inc edi
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
jne 0x40b82b
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 4], ebx
je 0x40b824
mov dword [ebp - 8], edi
jmp 0x40b82e
xor eax, eax
jmp 0x40b8ae
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x14]
lea eax, [ebp + 8]
push dword [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebx
jne 0x40b851
mov dword [ebp - 0xc], edi
jmp 0x40b89c
cmp esi, 2
je 0x40b89c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
xor eax, eax
mov byte [ebp - 0x40c], bl
mov ecx, 0xff
lea edi, [ebp - 0x40b]
rep stosd dword es:[edi], eax
push edx
stosw word es:[edi], ax
push esi
push dword [ebp + 0xc]
stosb byte es:[edi], al
lea eax, [ebp - 0x40c]
push str.RegQueryValueEx__s_:_Error:_d__ErrorCode:_d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x40c]
push eax
call fcn.0040b31c
add esp, 0x18
cmp dword [ebp - 8], ebx
pop esi
je 0x40b8ab
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
pop ebx
leave
ret
Function at 0x40b8b2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
xor edx, edx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
xor eax, eax
mov byte [ebp - 0x40c], dl
mov ecx, 0xff
lea edi, [ebp - 0x40b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
cmp eax, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
jne 0x40b946
lea eax, [ebp - 8]
push eax
push 0x20019
push edx
push str.SoftwareJreMetrics
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [ebp - 4], eax
jne 0x40b91e
mov dword [ebp - 0xc], 1
jmp 0x40b949
call esi
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x40c]
push dword [ebp + 0xc]
push str.GetJreMetrics_____RegOpenKeyEx__s_:_Error:_d__ErrorCode:_d_n
push eax
call ebx
lea eax, [ebp - 0x40c]
push eax
call fcn.0040b31c
add esp, 0x18
jmp 0x40b949
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x40b9b4
push dword [ebp + 0x14]
lea eax, [ebp + 8]
push dword [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [ebp - 4], eax
je 0x40b9b4
cmp eax, 2
je 0x40b9b4
call esi
mov edx, eax
xor eax, eax
mov byte [ebp - 0x80c], 0
mov ecx, 0xff
lea edi, [ebp - 0x80b]
rep stosd dword es:[edi], eax
push edx
push dword [ebp - 4]
stosw word es:[edi], ax
push dword [ebp + 0xc]
stosb byte es:[edi], al
lea eax, [ebp - 0x80c]
push str.GetJreMetrics_____RegQueryValueEx__s_:_Error:_d__ErrorCode:_d_n
push eax
call ebx
lea eax, [ebp - 0x80c]
push eax
call fcn.0040b31c
add esp, 0x18
cmp dword [ebp - 0xc], 0
pop edi
pop esi
pop ebx
je 0x40b9c6
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x40b9cb
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
push edi
mov byte [ebp - 0x400], 0
xor eax, eax
mov ecx, 0xff
lea edi, [ebp - 0x3ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.SoftwareJreMetrics
push reloc.OLEAUT32.dll_SysReAllocString
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
test esi, esi
jne 0x40ba12
push str.RemoveJreMetrics_____JreMetrics_key_successfully_removed_n
call fcn.0040b31c
pop ecx
jmp 0x40ba3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x400]
push str.RemoveJreMetrics_____RegDeleteKeyEx__:_Error:_d__ErrorCode:_d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x400]
push eax
call fcn.0040b31c
add esp, 0x14
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x40ba63
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x114
push ebx
push esi
mov esi, 0x20019
push esi
xor ebx, ebx
push str.SOFTWARE
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0x64]
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x6c], ebx
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x60], ebx
call fcn.004013df
test eax, eax
je 0x40baa4
xor esi, esi
jmp 0x40bb8b
push esi
push str.JavaSoft
push dword [ebp + 0x64]
lea ecx, [ebp + 0x68]
call fcn.004013df
test eax, eax
jne 0x40ba9d
push esi
push str.Java_Runtime_Environment
push dword [ebp + 0x68]
lea ecx, [ebp + 0x6c]
call fcn.004013df
test eax, eax
jne 0x40ba9d
push edi
lea eax, [ebp - 0xa4]
push 0x41e625
push eax
call fcn.00412ae0
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
pop ecx
pop ecx
mov edi, 0x80
push edi
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp + 0x6c]
call esi
test eax, eax
jne 0x40bb87
inc dword [ebp + 0x5c]
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jle 0x40bb59
cmp dword [ebp + 0x7c], ebx
jne 0x40bb31
lea eax, [ebp - 0x24]
push str.1.6.0_23
push eax
call fcn.004136a0
test eax, eax
pop ecx
pop ecx
je 0x40bb59
lea eax, [ebp - 0x24]
push eax
call fcn.004129c0
cmp eax, 3
pop ecx
jbe 0x40bb59
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00412ae0
pop ecx
pop ecx
mov dword [ebp + 0x60], 1
push edi
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x5c]
push dword [ebp + 0x6c]
call esi
test eax, eax
je 0x40bb00
cmp dword [ebp + 0x60], ebx
je 0x40bb87
lea eax, [ebp - 0xa4]
push eax
push 0x41e88c
push dword [ebp + 0x78]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov esi, dword [ebp + 0x60]
pop edi
lea ecx, [ebp + 0x6c]
call fcn.004013c8
lea ecx, [ebp + 0x68]
call fcn.004013c8
lea ecx, [ebp + 0x64]
call fcn.004013c8
mov eax, esi
pop esi
pop ebx
add ebp, 0x70
leave
ret
Function at 0x40cf87
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push 0x94
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.00412120
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x40cfd4
cmp dword [ebp - 0x8c], 2
jne 0x40cfd4
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x40cfd8
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push esi
push edi
mov esi, 0x400
push esi
lea eax, [ebp - 0x408]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.msi.dll
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x808]
push eax
push esi
push edi
lea eax, [ebp - 0x408]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40d066
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x41ffd8
lea eax, [ebp - 0x808]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40d066
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 8]
mov eax, 0x20000
cmp ecx, eax
ja 0x40d05a
jne 0x40d066
cmp dword [edx + 0xc], 0xa280000
jb 0x40d066
mov eax, dword [ebp + 8]
xor edi, edi
inc edi
test eax, eax
je 0x40d066
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40d06c
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
call fcn.0040cf87
test eax, eax
je 0x40d08c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
inc esi
jmp 0x40d0da
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d0e8
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push str.InstallerLocation
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d0cd
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40d0e8
push str.msiexec.exe
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, esi
pop esi
leave
ret
Function at 0x40d0ed
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
push esi
push esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0x400
push edi
push esi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 4]
call fcn.004129c0
push dword [ebp + 8]
mov ebx, eax
call fcn.004129c0
pop ecx
pop ecx
lea eax, [ebx + eax + 0x28]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 4]
mov ebx, eax
push edi
push dword [ebp + 8]
push str._s_failed_with_error__d:__s
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push esi
push str.Error
push ebx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push ebx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40d173
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x40d199
xor eax, eax
jmp 0x40d241
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0x14]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x40d1e1
push str.Installer_:_Wrapper.CreateFile
jmp 0x40d232
cmp ebx, esi
mov dword [ebp - 4], esi
jbe 0x40d21f
mov edi, 0x2000
mov eax, ebx
sub eax, dword [ebp - 4]
mov dword [ebp - 0xc], esi
cmp eax, edi
jbe 0x40d1fb
mov eax, edi
push esi
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d237
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], eax
add dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
jb 0x40d1ed
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
pop ebx
jne 0x40d23e
push str.Installer_:_Wrapper.CloseHandle
call fcn.0040d0ed
push str.Installer_:_Wrapper.WriteFile__In_small_chunks_
jmp 0x40d232
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x40d245
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREJavaSoftAuto_Update
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d291
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push esi
push str.AUVersion
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d291
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40d3d7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
shr eax, 4
and eax, 1
ret
Function at 0x40d673
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push ebx
push esi
push edi
push dword [ebp + 0x10]
xor eax, eax
push dword [ebp + 0xc]
mov edx, 0x103
push dword [ebp + 8]
xor ebx, ebx
mov byte [ebp - 0x820], bl
mov ecx, edx
lea edi, [ebp - 0x81f]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x410], bl
mov ecx, edx
lea edi, [ebp - 0x40f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str._s_s_s
lea eax, [ebp - 0x820]
push edi
push eax
call esi
push dword [ebp + 0x14]
lea eax, [ebp - 0x410]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push eax
call esi
add esp, 0x28
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x820]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x40d73b
push str.___MoveFile:_MoveFile___failed__trying_MoveFileOnReboot__.
call fcn.0040b31c
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x820]
push eax
call fcn.0040d3e8
add esp, 0xc
test eax, eax
je 0x40d72b
mov eax, dword [ebp + 0x18]
mov dword [eax], esi
jmp 0x40d73b
push str.___MoveFile:_MoveFileOnReboot___failed.
call fcn.0040b31c
pop ecx
mov ebx, 0x65b
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x40d742
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREJavaSoft
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d798
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push esi
push str.SPName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d78f
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40d79d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
xor ebx, ebx
call fcn.00412120
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x54], 0x44
call fcn.00412120
add esp, 0x18
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push esi
push esi
push 0x8000000
xor eax, eax
inc eax
push eax
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x28], eax
push esi
mov word [ebp - 0x24], si
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40d7ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40d80f
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40d815
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SOFTWAREJavaSoft
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d84d
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x40d84f
Capabilities:
Create process on windows

Disassembly:
push str.Restart_IE
call fcn.0040b31c
pop ecx
push 1
push 0
push str.http:__java.com_verify
push str.iexplore
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret

Function at 0x40d876
Capabilities:
Create process on windows

Disassembly:
call fcn.0040d29f
test eax, eax
je 0x40d884
jmp fcn.0040d2f9
xor eax, eax
ret

Function at 0x40d887
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push edi
push dword [esp + 8]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40d8df
push esi
push dword [esp + 0xc]
push 0x40d3a8
call dword [sym.imp.USER32.dll_EnumWindows]
push dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40d8d2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, eax
neg esi
sbb esi, esi
and esi, 2
jmp 0x40d8d5
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
ret 8

Function at 0x40db5a
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40dbca
lea eax, [ebp - 0x128]
push eax
push esi
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.dll_Process32First
jmp 0x40dbbf
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0041b5be
test eax, eax
pop ecx
pop ecx
jne 0x40dbb2
push 0x1388
push dword [ebp - 0x120]
call fcn.0040d887
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40db8d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
leave
ret

Function at 0x40de4e
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.0040a7dd
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop ecx
xor ebp, ebp
push ebp
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push str._sSun_
push esi
call edi
add esp, 0xc
push ebp
push esi
call ebx
push esi
push str._sJava_
push esi
call edi
add esp, 0xc
push ebp
push esi
call ebx
cmp dword [esp + 0x18], ebp
push str.1.6.0_23
mov ebp, 0x41f654
push ebp
push esi
je 0x40dea8
push str._s_s_s_x64
jmp 0x40dead
push 0x420b94
push esi
call edi
add esp, 0x14
push 0
push esi
call ebx
push str.1.6.0_23
push ebp
push esi
push str._s_s_s.msi
push esi
call edi
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
ret