joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bce4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x432f34], 0
je 0x40bd07
mov eax, dword [0x432f30]
jmp 0x40bd5a
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.004139c0
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x88], 2
jne 0x40bd4d
cmp dword [ebp - 0x94], 6
jne 0x40bd4d
mov eax, ecx
jmp 0x40bd4f
xor eax, eax
mov dword [0x432f30], eax
mov dword [0x432f34], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413f3b
leave
ret

Function at 0x40bd66
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x594]
sub esp, 0x614
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp + 0x590], eax
mov eax, dword [ebp + 0x59c]
push ebx
push esi
push edi
mov edi, 0x103
xor ebx, ebx
push edi
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x389]
push ebx
push eax
mov byte [ebp + 0x388], bl
call fcn.004139c0
add esp, 0xc
lea esi, [edi + 1]
push esi
lea eax, [ebp + 0x388]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x80], eax
cmp eax, ebx
je 0x40be8d
cmp eax, esi
ja 0x40be8d
push edi
lea eax, [ebp + 0x48d]
push ebx
push eax
mov byte [ebp + 0x48c], bl
call fcn.004139c0
push dword [ebp - 0x7c]
lea eax, [ebp + 0x388]
push eax
push str._s_s
push 0xffffffffffffffff
lea eax, [ebp + 0x48c]
push esi
push eax
call fcn.00416093
add esp, 0x24
test eax, eax
jg 0x40be32
push 0x3ff
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.004139c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 0x48c]
push eax
push str._snprintf_failed.__ErrorCode:__d
jmp 0x40beb1
lea eax, [ebp + 0x48c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
jne 0x40be89
push 0x3ff
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.004139c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 0x48c]
push eax
push str.LoadLibrary__s__failed.__ErrorCode:__d
push 0xffffffffffffffff
lea eax, [ebp - 0x78]
push 0x400
push eax
call fcn.00416093
lea eax, [ebp - 0x78]
push eax
call fcn.0040cb43
add esp, 0x1c
mov eax, esi
jmp 0x40becf
push 0x3ff
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.004139c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x80]
push str.GetSystemDirectory_failed.__Return_Code:__d__ErrorCode:__d
push 0xffffffffffffffff
lea eax, [ebp - 0x78]
push 0x400
push eax
call fcn.00416093
lea eax, [ebp - 0x78]
push eax
call fcn.0040cb43
add esp, 0x1c
xor eax, eax
mov ecx, dword [ebp + 0x590]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413f3b
add ebp, 0x594
leave
ret
Function at 0x40c6db
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp eax, edi
jne 0x40c72f
lea eax, [ebp - 4]
cmp ebx, edi
jne 0x40c717
push eax
push 0x2001f
push edi
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x40c721
push 1
push eax
call fcn.0040c683
pop ecx
pop ecx
cmp dword [ebp - 4], edi
je 0x40c776
mov dword [ebp - 8], 1
jmp 0x40c732
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
je 0x40c768
cmp ebx, edi
jne 0x40c749
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40c761
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
push 1
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp - 8], edi
je 0x40c776
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40c77d
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xcc
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp + 0x64], eax
cmp dword [0x432f64], 0
mov eax, dword [ebp + 0x70]
push ebx
push esi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x78]
push edi
mov dword [ebp - 0x3c], eax
mov edi, 0x432f50
jne 0x40c93d
mov esi, 0x9c
push esi
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.004139c0
add esp, 0xc
push str.win32
mov dword [ebp - 0x38], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x38]
push eax
call ebx
test eax, eax
jne 0x40c7f5
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0x94
call ebx
cmp dword [ebp - 0x28], 2
jne 0x40c872
cmp dword [ebp - 0x34], 4
jne 0x40c80b
push str.winnt
jmp 0x40c89d
cmp dword [ebp - 0x34], 6
jne 0x40c845
cmp dword [ebp - 0x30], 0
jne 0x40c82b
cmp byte [ebp + 0x62], 1
jne 0x40c824
push str.winvista
jmp 0x40c89d
push str.winlong
jmp 0x40c89d
cmp dword [ebp - 0x30], 1
jne 0x40c8a6
cmp byte [ebp + 0x62], 1
jne 0x40c83e
push str.win7
jmp 0x40c89d
push str.win2008R2
jmp 0x40c89d
cmp dword [ebp - 0x34], 5
jne 0x40c8a0
cmp dword [ebp - 0x30], 0
jne 0x40c858
push str.win2000
jmp 0x40c89d
cmp dword [ebp - 0x30], 1
jne 0x40c865
push str.winxp
jmp 0x40c89d
cmp dword [ebp - 0x30], 2
jne 0x40c8a6
push str.win2003
jmp 0x40c89d
cmp dword [ebp - 0x28], 1
jne 0x40c8a0
cmp dword [ebp - 0x34], 4
jne 0x40c898
cmp dword [ebp - 0x30], 0xa
jne 0x40c88b
push str.win98
jmp 0x40c89d
cmp dword [ebp - 0x30], 0x5a
jne 0x40c898
push str.winme
jmp 0x40c89d
push str.win95
push edi
call esi
cmp dword [ebp - 0x34], 0
jbe 0x40c8d1
cmp dword [ebp - 0x30], 0
jbe 0x40c8d1
push str.win32
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40c8d1
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push str._d._d
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
movzx eax, word [ebp + 0x5c]
push str.Unknown
mov ebx, 0x432f3c
push ebx
mov dword [0x432f38], eax
call esi
xor eax, eax
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x64]
test eax, eax
je 0x40c929
cmp eax, 6
je 0x40c922
cmp eax, 9
je 0x40c91b
push eax
push 0x428250
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40c931
push str.amd64
jmp 0x40c92e
push str.ia64
jmp 0x40c92e
push str.i586
push ebx
call esi
mov dword [0x432f64], 1
jmp 0x40c942
mov ebx, 0x432f3c
mov eax, dword [0x432f38]
mov esi, 0x426af4
test eax, eax
je 0x40c965
push eax
push edi
push str._s_sp_d
push dword [ebp - 0x40]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40c973
push edi
push esi
push dword [ebp - 0x40]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp - 0x3c], 0
je 0x40c987
push ebx
push esi
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, dword [ebp + 0x64]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00413f3b
add ebp, 0x68
leave
ret
Function at 0x40cab8
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
push 4
pop eax
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.SoftwareJreMetrics
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40cafa
xor eax, eax
jmp 0x40cb40
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
mov esi, str.OfferedSPCnt
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x40cb27
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40cb33
cmp eax, 2
je 0x40cb33
mov dword [ebp - 8], 0xfffffffe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
pop edi
leave
ret

Function at 0x40cb43
Capabilities:
Get common file path
Query environment variable
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x95]
push ebx
push eax
mov byte [ebp + 0x94], bl
call fcn.004139c0
push 0xff
lea eax, [ebp - 0x6b]
push ebx
push eax
mov byte [ebp - 0x6c], bl
call fcn.004139c0
lea eax, [ebp - 0x80]
push eax
call fcn.00416eb4
lea eax, [ebp - 0x80]
push eax
call fcn.00416e8d
mov esi, eax
lea eax, [ebp - 0x6c]
push 0x4266a7
push eax
call fcn.00413a40
add esp, 0x28
cmp esi, ebx
je 0x40cbdc
push esi
call fcn.00416f05
pop ecx
cmp eax, ebx
je 0x40cbdc
push eax
lea eax, [ebp - 0x6c]
push str._n_s::
push eax
call fcn.00415ff1
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp + 0x94]
push eax
push str.TMPDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
lea eax, [ebp + 0x94]
jne 0x40cc0e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40cc16
push 0x428390
push eax
call esi
push str.jusched.log
lea eax, [ebp + 0x94]
push eax
call esi
push ebx
push 0x80
push 4
push ebx
push 2
push 0x40000000
lea eax, [ebp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x70], edi
cmp edi, 0xffffffff
je 0x40cc91
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
push eax
call esi
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
push ebx
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x74]
call esi
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x70]
call edi
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413f3b
add ebp, 0x19c
leave
ret
Function at 0x40cca9
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x38c]
sub esp, 0x40c
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp + 0x388], eax
push ebx
push esi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.004139c0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 1
push ebx
push str.SoftwareMicroSoftWindowsCurrentVersionRunOnce
push SysReAllocString
mov dword [ebp - 0x80], 0x400
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cd3b
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push str.JavaInstallRetry
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cd32
lea eax, [ebp - 0x78]
push str.JRERunOnce.exe
push eax
call fcn.004137e0
pop ecx
pop ecx
test eax, eax
jne 0x40cd32
inc esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x388]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413f3b
add ebp, 0x38c
leave
ret
Function at 0x40cead
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 0x40ceff
cmp edi, 2
jne 0x40ceed
push str.Could_not_find_HKEY_LOCAL_MACHINE__SOFTWAREJavaSoft_registry_key.
call fcn.0040cb43
xor edi, edi
jmp 0x40cef7
push str.Could_not_open_HKEY_LOCAL_MACHINE__SOFTWAREJavaSoft_registry_key.
call fcn.0040cb43
pop ecx
mov eax, edi
jmp 0x40cfcc
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
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40cf43
cmp eax, 0xea
je 0x40cf43
cmp eax, 2
jne 0x40cf5f
and dword [ebp - 0x10], 0
jmp 0x40cf5f
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40cf5f
push str.Could_not_delete_MSIStatusError_registry_value.
call fcn.0040cb43
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
pop ebx
test edi, edi
je 0x40cf97
cmp edi, 0xea
je 0x40cf97
cmp edi, 2
jne 0x40cfb2
xor edi, edi
jmp 0x40cfb2
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, eax
test edi, edi
je 0x40cfb2
push str.Could_not_delete_MSIStatusExtendedError_registry_value.
call fcn.0040cb43
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 0x40cfcc
mov eax, edi
test edi, edi
jne 0x40cfcc
mov eax, ecx
pop edi
pop esi
leave
ret

Function at 0x40cfd0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.004139c0
add esp, 0xc
push str.SoftwareJreMetrics
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
test esi, esi
jne 0x40d024
push str.RemoveJreMetrics_____JreMetrics_key_successfully_removed_n
call fcn.0040cb43
pop ecx
jmp 0x40d04d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x404]
push str.RemoveJreMetrics_____RegDeleteKeyEx__:_Error:_d__ErrorCode:_d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x404]
push eax
call fcn.0040cb43
add esp, 0x14
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00413f3b
leave
ret
Function at 0x40d05c
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 0x40d093
push str.Could_not_open_the_registry_key.
call fcn.0040cb43
pop ecx
mov eax, esi
jmp 0x40d113
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
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40d0cd
push str.Could_not_get_MSIStatusError_registry_value.
call fcn.0040cb43
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
pop edi
test esi, esi
je 0x40d0f9
push str.Could_not_get_MSIStatusExtendedError_registry_value.
call fcn.0040cb43
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 0x40d113
mov eax, esi
test esi, esi
jne 0x40d113
mov eax, ecx
pop esi
leave
ret

Function at 0x40d116
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp + 0x390], eax
mov eax, dword [ebp + 0x39c]
push ebx
mov ebx, dword [ebp + 0x3a8]
xor ecx, ecx
push esi
mov esi, dword [ebp + 0x3a0]
push edi
mov edi, dword [ebp + 0x3a4]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x7c], ecx
cmp eax, ecx
jne 0x40d18a
lea eax, [ebp - 0x74]
push eax
push 0x20019
push ecx
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x74], 0
je 0x40d186
mov dword [ebp - 0x7c], 1
xor ecx, ecx
jmp 0x40d18d
xor eax, eax
jmp 0x40d1fe
mov dword [ebp - 0x74], eax
push ebx
push edi
lea eax, [ebp - 0x80]
push eax
push ecx
push esi
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x40d1ad
mov dword [ebp - 0x78], 1
jmp 0x40d1ec
cmp edi, 2
je 0x40d1ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x3ff
mov ebx, eax
lea eax, [ebp - 0x6f]
push 0
push eax
mov byte [ebp - 0x70], 0
call fcn.004139c0
push ebx
push edi
push esi
lea eax, [ebp - 0x70]
push str.RegQueryValueEx__s_:_Error:_d__ErrorCode:_d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x70]
push eax
call fcn.0040cb43
add esp, 0x24
cmp dword [ebp - 0x7c], 0
je 0x40d1fb
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x390]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413f3b
add ebp, 0x394
leave
ret
Function at 0x40d216
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7a0]
sub esp, 0x820
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp + 0x79c], eax
mov eax, dword [ebp + 0x7ac]
push ebx
push esi
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x7b0]
push edi
mov edi, dword [ebp + 0x7a8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x7b4]
xor ebx, ebx
mov esi, 0x3ff
push esi
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x39d]
push ebx
push eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x78], ebx
mov byte [ebp + 0x39c], bl
call fcn.004139c0
add esp, 0xc
cmp edi, ebx
jne 0x40d2da
lea eax, [ebp - 0x6c]
push eax
push 0x20019
push ebx
push str.SoftwareJreMetrics
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x68], eax
cmp eax, ebx
jne 0x40d2aa
mov dword [ebp - 0x78], 1
jmp 0x40d2e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x68]
lea eax, [ebp + 0x39c]
push dword [ebp - 0x70]
push str.GetJreMetrics_____RegOpenKeyEx__s_:_Error:_d__ErrorCode:_d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x39c]
push eax
call fcn.0040cb43
add esp, 0x18
jmp 0x40d2dd
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x68], ebx
jne 0x40d34e
push dword [ebp - 0x7c]
lea eax, [ebp - 0x80]
push dword [ebp - 0x74]
push eax
push ebx
push dword [ebp - 0x70]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
mov dword [ebp - 0x68], edi
cmp edi, ebx
je 0x40d340
cmp edi, 2
je 0x40d340
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x63]
push ebx
push eax
mov byte [ebp - 0x64], bl
call fcn.004139c0
push dword [ebp - 0x74]
lea eax, [ebp - 0x64]
push edi
push dword [ebp - 0x70]
push str.GetJreMetrics_____RegQueryValueEx__s_:_Error:_d__ErrorCode:_d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x64]
push eax
call fcn.0040cb43
add esp, 0x24
cmp dword [ebp - 0x78], ebx
je 0x40d34e
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x79c]
mov eax, dword [ebp - 0x68]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413f3b
add ebp, 0x7a0
leave
ret
Function at 0x40d38b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xb4]
sub esp, 0x134
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp + 0xb0], eax
mov eax, dword [ebp + 0xbc]
push esi
push edi
xor esi, esi
mov edi, 0x20019
push edi
push str.SOFTWARE
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
call fcn.00401296
test eax, eax
je 0x40d421
lea ecx, [ebp - 0x64]
call fcn.0040127b
lea ecx, [ebp - 0x70]
call fcn.0040127b
lea ecx, [ebp - 0x7c]
call fcn.0040127b
xor eax, eax
mov ecx, dword [ebp + 0xb0]
pop edi
xor ecx, ebp
pop esi
call fcn.00413f3b
add ebp, 0xb4
leave
ret
push edi
push str.JavaSoft
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x70]
call fcn.00401296
lea ecx, [ebp - 0x64]
test eax, eax
jne 0x40d3f3
push edi
push str.Java_Runtime_Environment
push dword [ebp - 0x70]
call fcn.00401296
test eax, eax
je 0x40d467
lea ecx, [ebp - 0x64]
call fcn.0040127b
lea ecx, [ebp - 0x70]
call fcn.0040127b
lea ecx, [ebp - 0x7c]
call fcn.0040127b
mov eax, esi
jmp 0x40d40a
push ebx
lea eax, [ebp - 0x50]
push 0x4266a7
push eax
call fcn.00413a40
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
pop ecx
pop ecx
mov ebx, 0x80
push ebx
lea eax, [ebp + 0x30]
push eax
push esi
push dword [ebp - 0x64]
call edi
test eax, eax
jne 0x40d50b
inc dword [ebp - 0x58]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jle 0x40d4e0
lea eax, [ebp + 0x30]
push str.1.7.0
push eax
call fcn.00416ac0
pop ecx
pop ecx
test eax, eax
je 0x40d4e0
lea eax, [ebp + 0x30]
push eax
call fcn.00413eb0
pop ecx
cmp eax, 3
jbe 0x40d4e0
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00413a40
pop ecx
pop ecx
mov dword [ebp - 0x54], 1
push ebx
lea eax, [ebp + 0x30]
push eax
push dword [ebp - 0x58]
push dword [ebp - 0x64]
call edi
test eax, eax
je 0x40d492
cmp dword [ebp - 0x54], esi
je 0x40d50b
lea eax, [ebp - 0x50]
push eax
push 0x426af4
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov esi, dword [ebp - 0x54]
pop ebx
jmp 0x40d44b

Function at 0x40d55a
Capabilities:
Get common file path
Query environment variable
Write file on windows

Disassembly:
call fcn.0040d514
test eax, eax
je 0x40d568
jmp fcn.0040cb43
ret