joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ca21
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.00413c80
push 0xff
lea eax, [ebp - 0x6b]
push ebx
push eax
mov byte [ebp - 0x6c], bl
call fcn.00413c80
lea eax, [ebp - 0x80]
push eax
call fcn.00417174
lea eax, [ebp - 0x80]
push eax
call fcn.0041714d
mov esi, eax
lea eax, [ebp - 0x6c]
push 0x4266bb
push eax
call fcn.00413d00
add esp, 0x28
cmp esi, ebx
je 0x40caba
push esi
call fcn.004171c5
pop ecx
cmp eax, ebx
je 0x40caba
push eax
lea eax, [ebp - 0x6c]
push str._n_s::
push eax
call fcn.004162b1
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp + 0x94]
push eax
push str.TMPDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
lea eax, [ebp + 0x94]
jne 0x40caec
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40caf4
push 0x4283b8
push eax
call edi
push 0x4283b4
push 0x427968
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
lea eax, [ebp + 0x94]
jne 0x40cb15
push str.jdk_inst.log
jmp 0x40cb1a
push str.jusched.log
push eax
call edi
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 0x40cb8a
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.004141fb
add ebp, 0x19c
leave
ret
Function at 0x40cba2
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.00413c80
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 0x40cc34
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 0x40cc2b
lea eax, [ebp - 0x78]
push str.JRERunOnce.exe
push eax
call fcn.00413aa0
pop ecx
pop ecx
test eax, eax
jne 0x40cc2b
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.004141fb
add ebp, 0x38c
leave
ret
Function at 0x40cda6
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 0x40cdf8
cmp edi, 2
jne 0x40cde6
push str.Could_not_find_HKEY_LOCAL_MACHINE__SOFTWAREJavaSoft_registry_key.
call fcn.0040ca21
xor edi, edi
jmp 0x40cdf0
push str.Could_not_open_HKEY_LOCAL_MACHINE__SOFTWAREJavaSoft_registry_key.
call fcn.0040ca21
pop ecx
mov eax, edi
jmp 0x40cec5
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 0x40ce3c
cmp eax, 0xea
je 0x40ce3c
cmp eax, 2
jne 0x40ce58
and dword [ebp - 0x10], 0
jmp 0x40ce58
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40ce58
push str.Could_not_delete_MSIStatusError_registry_value.
call fcn.0040ca21
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 0x40ce90
cmp edi, 0xea
je 0x40ce90
cmp edi, 2
jne 0x40ceab
xor edi, edi
jmp 0x40ceab
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, eax
test edi, edi
je 0x40ceab
push str.Could_not_delete_MSIStatusExtendedError_registry_value.
call fcn.0040ca21
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 0x40cec5
mov eax, edi
test edi, edi
jne 0x40cec5
mov eax, ecx
pop edi
pop esi
leave
ret

Function at 0x40cec9
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.00413c80
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 0x40cf1d
push str.RemoveJreMetrics_____JreMetrics_key_successfully_removed_n
call fcn.0040ca21
pop ecx
jmp 0x40cf46
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.0040ca21
add esp, 0x14
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004141fb
leave
ret
Function at 0x40cf55
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 0x40cf8c
push str.Could_not_open_the_registry_key.
call fcn.0040ca21
pop ecx
mov eax, esi
jmp 0x40d00c
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 0x40cfc6
push str.Could_not_get_MSIStatusError_registry_value.
call fcn.0040ca21
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 0x40cff2
push str.Could_not_get_MSIStatusExtendedError_registry_value.
call fcn.0040ca21
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 0x40d00c
mov eax, esi
test esi, esi
jne 0x40d00c
mov eax, ecx
pop esi
leave
ret

Function at 0x40d00f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00413c80
add esp, 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x40d059
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call esi
cmp dword [ebp - 0x24], 6
mov ecx, dword [ebp + 0x74]
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.004141fb
add ebp, 0x78
leave
ret
Function at 0x40d070
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 0x40d0e4
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 0x40d0e0
mov dword [ebp - 0x7c], 1
xor ecx, ecx
jmp 0x40d0e7
xor eax, eax
jmp 0x40d158
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 0x40d107
mov dword [ebp - 0x78], 1
jmp 0x40d146
cmp edi, 2
je 0x40d146
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.00413c80
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.0040ca21
add esp, 0x24
cmp dword [ebp - 0x7c], 0
je 0x40d155
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.004141fb
add ebp, 0x394
leave
ret
Function at 0x40d170
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.00413c80
add esp, 0xc
cmp edi, ebx
jne 0x40d234
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 0x40d204
mov dword [ebp - 0x78], 1
jmp 0x40d23c
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.0040ca21
add esp, 0x18
jmp 0x40d237
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x68], ebx
jne 0x40d2a8
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 0x40d29a
cmp edi, 2
je 0x40d29a
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.00413c80
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.0040ca21
add esp, 0x24
cmp dword [ebp - 0x78], ebx
je 0x40d2a8
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.004141fb
add ebp, 0x7a0
leave
ret
Function at 0x40d2e5
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 0x40d37b
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.004141fb
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 0x40d34d
push edi
push str.Java_Runtime_Environment
push dword [ebp - 0x70]
call fcn.00401296
test eax, eax
je 0x40d3c1
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 0x40d364
push ebx
lea eax, [ebp - 0x50]
push 0x4266bb
push eax
call fcn.00413d00
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 0x40d465
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 0x40d43a
lea eax, [ebp + 0x30]
push str.1.7.0_09
push eax
call fcn.00416d80
pop ecx
pop ecx
test eax, eax
je 0x40d43a
lea eax, [ebp + 0x30]
push eax
call fcn.00414170
pop ecx
cmp eax, 3
jbe 0x40d43a
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00413d00
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 0x40d3ec
cmp dword [ebp - 0x54], esi
je 0x40d465
lea eax, [ebp - 0x50]
push eax
push 0x426ae4
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov esi, dword [ebp - 0x54]
pop ebx
jmp 0x40d3a5

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

Disassembly:
call fcn.0040d46e
test eax, eax
je 0x40d4c2
jmp fcn.0040ca21
ret
Function at 0x40eda3
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
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.00413c80
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 5
jne 0x40edfa
cmp dword [ebp - 0x90], 2
jne 0x40edfa
xor eax, eax
inc eax
jmp 0x40edfc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004141fb
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x400
push esi
lea eax, [ebp - 0x404]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.msi.dll
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x804]
push eax
push esi
push ebx
lea eax, [ebp - 0x404]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40eeaa
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x808]
push eax
push 0x4283b8
lea eax, [ebp - 0x804]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40eeaa
mov edx, dword [ebp - 0x808]
mov ecx, dword [edx + 8]
mov eax, 0x20000
cmp ecx, eax
ja 0x40eea1
jne 0x40eeaa
cmp dword [edx + 0xc], 0xa280000
jb 0x40eeaa
xor ebx, ebx
inc ebx
test edi, edi
je 0x40eeaa
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004141fb
leave
ret

Function at 0x40eebb
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.0040eda3
test eax, eax
je 0x40eedb
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
inc esi
jmp 0x40ef29
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 0x40ef37
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 0x40ef1c
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40ef37
push str.msiexec.exe
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, esi
pop esi
leave
ret
Function at 0x40ef3c
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.00414170
push dword [ebp + 8]
mov ebx, eax
call fcn.00414170
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 0x40efc2
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 0x40efe8
xor eax, eax
jmp 0x40f090
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]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x40f033
push str.Installer_:_Wrapper.CreateFile
call fcn.0040ef3c
mov dword [ebp - 4], esi
cmp ebx, esi
jbe 0x40f071
mov edi, 0x2000
mov eax, ebx
sub eax, dword [ebp - 4]
mov dword [ebp - 0xc], esi
cmp eax, edi
jbe 0x40f04d
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 0x40f086
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], eax
add dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
jb 0x40f03f
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
test eax, eax
jne 0x40f08d
push str.Installer_:_Wrapper.CloseHandle
jmp 0x40f02e
push str.Installer_:_Wrapper.WriteFile__In_small_chunks_
jmp 0x40f02e
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x40f094
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 0x40f0e0
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 0x40f0e0
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40f15c
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3dc]
sub esp, 0x45c
mov eax, dword [0x431420]
xor eax, ebp
mov dword [ebp + 0x3d8], eax
push ebx
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x27]
push ebx
push eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x28], bl
call fcn.00413c80
lea eax, [ebp - 0x28]
push 0x400
push eax
call fcn.0040eebb
push 0x44
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00413c80
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.00413c80
add esp, 0x2c
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.__x_4A03706F_666A_4037_7777_5F2748764D10__qn
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x80], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop ebx
test eax, eax
je 0x40f201
push dword [ebp - 0x3c]
call fcn.0040135a
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40f20a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x3d8]
mov eax, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.004141fb
add ebp, 0x3dc
leave
ret
call fcn.0040f0ee
test eax, eax
je 0x40f9c5
jmp 0x40f15c
xor eax, eax
ret

Function at 0x40f27a
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40f2ea
cmp dword [ebp + 0x10], 0
push dword [ebp + 8]
je 0x40f2a4
push 0x40f251
jmp 0x40f2a9
push 0x40f222
call dword [sym.imp.USER32.dll_EnumWindows]
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
test eax, eax
je 0x40f2dd
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp + 0xc]
push edi
call esi
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 2
jmp 0x40f2e0
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x40f2ef
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
shr eax, 4
and eax, 1
ret