joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b10
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x1708]
mov eax, 0x1788
call fcn.00414690
mov eax, dword [0x43ec80]
xor eax, ebp
mov dword [ebp + 0x1704], eax
push ebx
push esi
push str.extracting_files
call fcn.0040ff78
mov dword [esp], 0x7d2
call fcn.004038fd
mov esi, eax
push esi
push 0x433d60
mov dword [ebp - 0x80], esi
call fcn.0040ff78
xor ebx, ebx
add esp, 0xc
cmp esi, ebx
jne 0x403b75
cmp byte [ebp + 0x1710], bl
je 0x403b6e
mov byte [0x44bce0], bl
xor eax, eax
jmp 0x403cd6
cmp byte [ebp + 0x1710], bl
je 0x403b82
call fcn.00411e85
push edi
call fcn.0040106b
push ebx
push ebx
push dword [0x440068]
mov dword [ebp - 0x74], eax
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x7d3
call fcn.004038a2
mov dword [esp], 0x433d5c
push eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ebx
call fcn.00414f90
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
jle 0x403ca4
mov edi, 0x44bce0
cmp dword [ebp - 0x70], ebx
je 0x403ca4
push dword [ebp - 0x70]
call fcn.00414100
pop ecx
test eax, eax
je 0x403ca4
push dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
push edi
push 0x433d54
push eax
call fcn.00415111
push 0x5c
push dword [ebp - 0x70]
call fcn.00414040
mov esi, eax
add esp, 0x18
cmp esi, ebx
je 0x403c55
push edi
call fcn.00414100
sub esi, dword [ebp - 0x70]
lea ecx, [ebp + esi - 0x6b]
mov byte [ecx + eax], bl
lea eax, [ebp - 0x6c]
push eax
push str.creating_directory__S
call fcn.0040ff78
add esp, 0xc
push ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x403c55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403c55
lea eax, [ebp - 0x6c]
push eax
push str.failed_to_create_directory__S
call fcn.0040ff0f
pop ecx
pop ecx
push dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
push edi
push 0x433d54
push eax
call fcn.00415111
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
call fcn.004027b3
mov esi, eax
add esp, 0x18
cmp esi, ebx
jne 0x403ced
inc dword [ebp - 0x78]
push 0x433d5c
push ebx
call fcn.00414f90
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
call fcn.00403d57
test al, al
jne 0x403cd3
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x80]
jl 0x403bc9
push dword [ebp - 0x7c]
call fcn.00414445
pop ecx
push 1
push ebx
push ebx
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x74]
mov dword [0x440060], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.extracting_files_done
call fcn.0040ff78
pop ecx
xor eax, eax
pop edi
mov ecx, dword [ebp + 0x1704]
pop esi
xor ecx, ebp
pop ebx
call fcn.00414678
add ebp, 0x1708
leave
ret
lea eax, [ebp - 0x6c]
push eax
push str.Failed_to_extract__S
call fcn.0040ff0f
push dword [ebp - 0x7c]
call fcn.00414445
add esp, 0xc
mov eax, esi
jmp 0x403cd5
Function at 0x4047b4
Capabilities:
Delete directory
Terminate process

Disassembly:
push 0x4c
mov eax, 0x4317c0
call fcn.00414d62
cmp byte [0x44d460], 0
jne 0x404857
mov esi, 0x44bce0
push esi
call fcn.00414100
pop ecx
test eax, eax
jbe 0x404857
lea ecx, [ebp - 0x3c]
call fcn.0040c918
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.0040c918
push 1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00406928
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x404835
push esi
lea ecx, [ebp - 0x58]
call fcn.00402f86
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0040475a
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.00402991
lea ecx, [ebp - 0x24]
call fcn.0040437b
push dword [ebp - 0x24]
call fcn.00414445
pop ecx
lea ecx, [ebp - 0x3c]
call fcn.0040437b
push dword [ebp - 0x3c]
call fcn.00414445
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4049ce
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4049f2
cmp dword [ebp - 8], 2
jae 0x404a10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error__d_n
call fcn.0040ff78
push str.Internal_Error:_readShort
call fcn.00404861
add esp, 0xc
mov ax, word [ebp - 4]
leave
ret

Function at 0x404a62
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00404984
mov ebx, eax
cdq
sub eax, edx
mov esi, eax
sar esi, 1
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041375e
pop ecx
pop ecx
mov edi, eax
xor eax, eax
push eax
mov word [edi + esi*2], ax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404ab4
cmp dword [ebp - 4], ebx
jae 0x404abf
push str.Internal_Error:_readWString
call fcn.00404861
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405f29
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x177c
call fcn.00414690
mov eax, dword [0x43ec80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1774]
push eax
call fcn.00405e80
lea eax, [ebp - 0x1774]
push eax
push 0x434454
call fcn.0040ff78
add esp, 0xc
push esi
push 0
push 0x434450
lea eax, [ebp - 0x1774]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x406003
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetTempFileName_failed__last_error__d_
call fcn.0040ff78
lea eax, [ebp - 0x1774]
push eax
call fcn.00414100
add esp, 0xc
test eax, eax
jle 0x405fc7
mov al, byte [ebp + eax - 0x1775]
cmp al, 0x5c
je 0x405fc7
cmp al, 0x2f
je 0x405fc7
lea eax, [ebp - 0x1774]
push 0x4343f8
push eax
call fcn.00414590
pop ecx
pop ecx
push edi
push 0
call fcn.00415a54
pop ecx
mov edi, eax
mov dword [ebp - 0x1778], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
imul eax, edi
push eax
call fcn.00415faa
call fcn.00415fbc
push eax
lea eax, [ebp - 0x1774]
push eax
push str._se4j_d
push esi
call fcn.00415111
add esp, 0x14
pop edi
push esi
push str.tempFile_is__S
call fcn.0040ff78
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00414678
leave
ret
Function at 0x4067b8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x18b4]
mov eax, 0x18b4
call fcn.00414690
push 0xffffffffffffffff
push 0x431806
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x43ec80]
xor eax, ebp
mov dword [ebp + 0x18b0], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x18bc]
mov edi, dword [ebp + 0x18c0]
mov esi, dword [ebp + 0x18c4]
push eax
lea eax, [ebp + 0x140]
push eax
call fcn.00414580
lea eax, [ebp + 0x140]
push 0x434490
push eax
call fcn.00414590
add esp, 0x10
cmp byte [edi], 0x2e
je 0x40683f
lea eax, [ebp + 0x140]
push 0x43448c
push eax
call fcn.00414590
pop ecx
pop ecx
lea eax, [ebp + 0x140]
push edi
push eax
call fcn.00414590
pop ecx
pop ecx
lea eax, [ebp]
push eax
lea eax, [ebp + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40686d
xor eax, eax
jmp 0x406906
lea ecx, [ebp - 0x2c]
call fcn.00406640
and dword [ebp - 4], 0
push 0x1770
call fcn.00416145
lea ecx, [ebp + 0x2c]
push ecx
push eax
mov dword [ebp - 0x10], eax
call fcn.00414580
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040678f
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406879
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
imul eax, eax, 0x1770
push eax
call fcn.00416145
cmp dword [ebp - 0x14], 0
pop ecx
mov dword [esi], eax
jbe 0x4068f2
xor edi, edi
lea ecx, [ebp - 0x2c]
call fcn.00406503
mov ecx, dword [esi]
mov eax, dword [eax]
mov dword [edi + ecx], eax
lea ecx, [ebp - 0x2c]
call fcn.00406677
add edi, 4
cmp dword [ebp - 0x14], 0
ja 0x4068d2
lea ecx, [ebp - 0x2c]
call fcn.00406419
push dword [ebp - 0x2c]
call fcn.00414445
mov eax, dword [ebp - 0x10]
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x18b0]
xor ecx, ebp
call fcn.00414678
add ebp, 0x18b4
leave
ret
Function at 0x40a551
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1778
call fcn.00414690
mov eax, dword [0x43ec80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push edi
push str.SOFTWAREej_technologiesexe4jjvms2_
push eax
lea eax, [ebp - 0x1774]
push eax
call fcn.0040a508
add esp, 0xc
xor edi, edi
push edi
lea eax, [ebp - 0x1778]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
lea eax, [ebp - 0x1774]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40a607
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 8
lea eax, [ebp + 0xc]
push eax
push 3
push edi
push str.LastWriteTime
push dword [ebp - 0x1778]
call esi
push ebx
call fcn.00414100
pop ecx
push eax
push ebx
push 1
push edi
push str.Version
push dword [ebp - 0x1778]
call esi
push 4
lea eax, [ebp + 0x18]
push eax
push 4
push edi
push str.Machine
push dword [ebp - 0x1778]
call esi
push dword [ebp - 0x1778]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00414678
leave
ret
Function at 0x40a615
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x170c]
mov eax, 0x178c
call fcn.00414690
mov eax, dword [0x43ec80]
xor eax, ebp
mov dword [ebp + 0x1708], eax
mov eax, dword [ebp + 0x1714]
push ebx
push esi
mov esi, dword [ebp + 0x1724]
push edi
mov edi, dword [ebp + 0x1720]
push str.SOFTWAREej_technologiesexe4jjvms2_
push eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x80], esi
xor bl, bl
call fcn.0040a508
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x70]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a77f
and dword [esi], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x1700]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push str.LastWriteTime
push dword [ebp - 0x78]
mov dword [ebp - 0x74], 8
call esi
test eax, eax
jne 0x40a776
cmp dword [ebp - 0x74], 8
jne 0x40a776
push 8
lea eax, [ebp + 0x1718]
push eax
lea eax, [ebp + 0x1700]
push eax
call fcn.0041748c
add esp, 0xc
test eax, eax
jne 0x40a776
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x7c]
push eax
push 0
push str.Version
push dword [ebp - 0x78]
mov dword [ebp - 0x74], 0x1770
call esi
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
je 0x40a776
mov eax, dword [ebp - 0x74]
xor ebx, ebx
inc ebx
cmp eax, ebx
jae 0x40a713
mov byte [edi], 0
jmp 0x40a71e
add eax, edi
cmp byte [eax - 1], 0
je 0x40a71e
mov byte [eax], 0
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
push 0
push str.Machine
push dword [ebp - 0x78]
call esi
test eax, eax
jne 0x40a73f
cmp dword [ebp - 0x74], 4
je 0x40a741
xor bl, bl
push str.1.7.
push edi
call fcn.00415ec0
pop ecx
pop ecx
test eax, eax
je 0x40a774
push str.1.6.
push edi
call fcn.00415ec0
pop ecx
pop ecx
test eax, eax
je 0x40a774
push str.1.5.
push edi
call fcn.00415ec0
pop ecx
pop ecx
test eax, eax
jne 0x40a776
xor bl, bl
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x1708]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00414678
add ebp, 0x170c
leave
ret

Function at 0x40a799
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
push edi
xor esi, esi
push esi
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jle 0x40a7f1
push edi
call fcn.0041375e
pop ecx
mov esi, eax
push edi
push esi
push ebx
mov byte [esi], 0
call ebp
dec edi
push esi
cmp eax, edi
je 0x40a7da
call fcn.00414445
push ebx
xor esi, esi
push str.error_reading__S
jmp 0x40a7e0
push ebx
push str._S_is__S
call fcn.0040ff78
add esp, 0xc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x40a818
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x43ec80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x436110
lea eax, [ebp - 0x18]
push esi
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.00418f9c
add esp, 0xc
cmp eax, ebx
jne 0x40a980
cmp dword [ebp - 0x18], ebx
je 0x40a980
push dword [ebp - 0x18]
xor edi, edi
push 2
inc edi
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00418ebb
add esp, 0x10
cmp eax, 2
jne 0x40a96d
cmp byte [ebp - 0x14], 0x4d
jne 0x40a96d
cmp byte [ebp - 0x13], 0x5a
jne 0x40a96d
push ebx
push 0x3c
push dword [ebp - 0x18]
call fcn.00418b96
add esp, 0xc
push dword [ebp - 0x18]
test eax, eax
je 0x40a8b5
call fcn.004169c0
push esi
push str.no_PE32_file_2__S
call fcn.0040ff78
add esp, 0xc
jmp 0x40a992
push edi
lea eax, [ebp - 0x20]
push 4
push eax
call fcn.00418ebb
add esp, 0x10
cmp eax, edi
je 0x40a8d8
push dword [ebp - 0x18]
call fcn.004169c0
push esi
push str.no_PE32_file_3__S
jmp 0x40a8a8
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00418b96
add esp, 0xc
push dword [ebp - 0x18]
test eax, eax
je 0x40a8fb
call fcn.004169c0
push esi
push str.no_PE32_file_4__S
jmp 0x40a8a8
push 4
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00418ebb
add esp, 0x10
cmp eax, 4
jne 0x40a95a
cmp byte [ebp - 0x14], 0x50
jne 0x40a95a
cmp byte [ebp - 0x13], 0x45
jne 0x40a95a
cmp byte [ebp - 0x12], bl
jne 0x40a95a
cmp byte [ebp - 0x11], bl
jne 0x40a95a
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push edi
push 2
push eax
call fcn.00418ebb
add esp, 0x10
push dword [ebp - 0x18]
cmp eax, edi
je 0x40a94e
call fcn.004169c0
push esi
push str.no_PE32_file_6__S
jmp 0x40a8a8
call fcn.004169c0
movzx eax, word [ebp - 0x1c]
pop ecx
jmp 0x40a994
push dword [ebp - 0x18]
call fcn.004169c0
push esi
push str.no_PE32_file_5__S
jmp 0x40a8a8
push dword [ebp - 0x18]
call fcn.004169c0
push esi
push str.no_PE32_file__S
jmp 0x40a8a8
push dword [ebp - 0x18]
push eax
push esi
push str.could_not_open__S__d__p
call fcn.0040ff78
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414678
leave
ret
Function at 0x40aa3a
Capabilities:
Check os version
Get common file path
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x1788]
mov eax, 0x1808
call fcn.00414690
mov eax, dword [0x43ec80]
xor eax, ebp
mov dword [ebp + 0x1784], eax
push esi
push edi
mov edi, dword [ebp + 0x1790]
mov esi, 0x94
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00415e40
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x7c], 6
jb 0x40aa98
jne 0x40ab29
cmp dword [ebp - 0x78], 4
jae 0x40ab29
push ebx
push edi
call fcn.00414100
add eax, 0x64
push eax
call fcn.0041375e
push edi
mov ebx, eax
push str._sucrtbase.dll
push ebx
call fcn.00415111
push ebx
call fcn.004050ae
add esp, 0x18
test al, al
je 0x40ab21
push str.Preloading_ucrtbase.dll_4
call fcn.0040ff78
pop ecx
lea eax, [ebp + 0x14]
push eax
push 0x1770
mov byte [ebp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ucrtbase.dll
call esi
test eax, eax
jne 0x40ab0d
push ebx
call esi
test eax, eax
jne 0x40ab0d
push str.Could_not_preload_ucrtbase.dll
call fcn.0040ff78
pop ecx
lea eax, [ebp + 0x14]
push eax
call fcn.00414100
pop ecx
test eax, eax
jbe 0x40ab21
lea eax, [ebp + 0x14]
push eax
call edi
push ebx
call fcn.00414445
pop ecx
pop ebx
mov ecx, dword [ebp + 0x1784]
pop edi
xor ecx, ebp
pop esi
call fcn.00414678
add ebp, 0x1788
leave
ret
Function at 0x40b13d
Capabilities:
Query environment variable
Set environment variable

Disassembly:
sub esp, 0xdc
mov eax, dword [0x43ec80]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xf0]
push 0x7d0
call fcn.0041375e
push edi
mov esi, eax
call fcn.0040ab40
mov ebp, eax
push ebp
push edi
push esi
call fcn.00414450
push esi
mov byte [esi + ebp], 0
call fcn.00411f98
push esi
mov dword [esp + 0x38], eax
call fcn.0040aa3a
add esp, 0x1c
push 0
push 0
mov ebp, 0x435c9c
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test edi, edi
jge 0x40b1a7
xor edi, edi
lea eax, [edi + 0x1770]
push eax
call fcn.0041375e
push esi
mov dword [esp + 0x18], eax
call fcn.00414100
lea eax, [eax + edi + 0x1771]
push eax
call fcn.0041375e
mov ebx, eax
push esi
push ebx
call fcn.00414580
push 0x433d5c
push ebx
call fcn.00414590
add esp, 0x1c
lea eax, [edi + 0x1770]
push eax
push dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x40b205
push dword [esp + 0x10]
push ebx
call fcn.00414590
pop ecx
pop ecx
jmp 0x40b20c
mov eax, dword [esp + 0x10]
mov byte [eax], 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x40b221
push ebx
push edi
push str.Setting_PATH__d__S
jmp 0x40b22e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Setting_PATH__S_failed_with_error__d
call fcn.0040ff78
add esp, 0xc
push 0x5dc6
call fcn.0041375e
push ebx
mov edi, eax
push str.PATH_s
push edi
call fcn.00415111
push edi
call fcn.00419203
and dword [esp + 0x28], 0
push 0xc8
lea eax, [esp + 0x38]
push eax
push 0x98
call fcn.00403846
lea eax, [esp + 0x40]
push eax
call fcn.00414100
add esp, 0x24
test eax, eax
jbe 0x40b28f
lea eax, [esp + 0x20]
push eax
push esi
call fcn.0040a9a3
pop ecx
pop ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], str.client
cmp dword [esp + 0x14], 0
jne 0x40b322
mov eax, dword [esp + 0x18]
push dword [eax]
push esi
call fcn.0040a9a3
add dword [esp + 0x20], 4
cmp dword [esp + 0x20], 0x435fa8
pop ecx
pop ecx
mov dword [esp + 0x14], eax
jl 0x40b297
test eax, eax
jne 0x40b322
push dword [esp + 0x1c]
call fcn.00412027
pop ecx
push dword [esp + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x40b2f2
push dword [esp + 0x10]
push 0x436264
call fcn.0040ff78
pop ecx
pop ecx
jmp 0x40b30a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esp + 0x14]
push str.Setting_PATH__S_failed_with_error__d
call fcn.0040ff78
add esp, 0xc
push dword [esp + 0x10]
push str.PATH_s
push edi
call fcn.00415111
push edi
call fcn.00419203
add esp, 0x10
push ebx
call fcn.00414445
push dword [esp + 0x14]
call fcn.00414445
push edi
call fcn.00414445
push esi
call fcn.00414445
mov ecx, dword [esp + 0xf8]
mov eax, dword [esp + 0x24]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00414678
add esp, 0xdc
ret
Function at 0x40e116
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x45f0]
mov eax, 0x4670
call fcn.00414690
mov eax, dword [0x43ec80]
xor eax, ebp
mov dword [ebp + 0x45ec], eax
mov eax, dword [ebp + 0x4600]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x4604]
push ebx
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x4608]
push esi
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x460c]
push edi
mov edi, dword [ebp + 0x45f8]
mov dword [ebp - 0x7c], eax
mov ebx, 0x1770
push ebx
lea eax, [ebp - 0x64]
push eax
push 0xa0
call fcn.00403846
mov esi, dword [ebp + 0x45fc]
push edi
push esi
lea eax, [ebp - 0x64]
push eax
push str.checking_app_id__S___d___p_
call fcn.0040ff78
lea eax, [ebp - 0x64]
push eax
call fcn.00414100
add esp, 0x20
test eax, eax
je 0x40e2ce
lea eax, [ebp - 0x68]
push eax
or esi, 0x20019
push esi
xor esi, esi
push esi
push str.SOFTWAREej_technologiesinstall4jinstallations
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x40e2c1
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x2e7c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x68]
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e2a9
cmp dword [ebp - 0x70], esi
jbe 0x40e2a9
lea eax, [ebp + 0x2e7c]
push eax
push str.found_installations:__S
call fcn.0040ff78
mov ebx, 0x433d5c
lea eax, [ebp + 0x2e7c]
push ebx
push eax
call fcn.00414f90
add esp, 0x10
jmp 0x40e299
push edi
call fcn.00414100
pop ecx
test eax, eax
je 0x40e2b6
push edi
lea eax, [ebp + 0x170c]
push str._sjre
push eax
call fcn.00415111
lea eax, [ebp + 0x170c]
push eax
push dword [ebp - 0x6c]
call fcn.0040a467
add esp, 0x14
test al, al
je 0x40e27d
push 1
push 1
push esi
push dword [ebp - 0x7c]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push dword [ebp - 0x6c]
call fcn.0040dead
add esp, 0x1c
test al, al
jne 0x40e2a5
lea eax, [ebp + 0x170c]
push eax
push str.java_version_did_not_match_in__S
jmp 0x40e289
lea eax, [ebp + 0x170c]
push eax
push str.did_not_find_java_in__S
call fcn.0040ff78
pop ecx
pop ecx
push ebx
push esi
call fcn.00414f90
pop ecx
pop ecx
mov edi, eax
cmp edi, esi
jne 0x40e21b
jmp 0x40e2b6
mov al, 1
jmp 0x40e2d0
push esi
push str.could_not_query_value_node__d
call fcn.0040ff78
pop ecx
pop ecx
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e2ce
push eax
push str.could_not_open_installation_node__d
call fcn.0040ff78
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp + 0x45ec]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414678
add ebp, 0x45f0
leave
ret
Function at 0x40e32f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x177c
call fcn.00414690
mov eax, dword [0x43ec80]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x177c], ecx
push 0x1770
lea ecx, [ebp - 0x1774]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x40e3f4
and dword [ebp - 0x1778], 0
lea eax, [ebp - 0x1774]
push eax
call fcn.00414100
pop ecx
test eax, eax
jbe 0x40e3bd
mov eax, dword [ebp - 0x1778]
lea eax, [ebp + eax - 0x1774]
cmp byte [eax], 0x2f
jne 0x40e3a2
mov byte [eax], 0x5c
inc dword [ebp - 0x1778]
lea eax, [ebp - 0x1774]
push eax
call fcn.00414100
pop ecx
cmp dword [ebp - 0x1778], eax
jb 0x40e38d
lea eax, [ebp - 0x1774]
push eax
push esi
call fcn.0040a467
pop ecx
pop ecx
test al, al
je 0x40e3f0
push 1
push 1
push 0
push dword [ebp - 0x177c]
push ebx
push edi
push esi
call fcn.0040dead
add esp, 0x1c
test al, al
je 0x40e3f0
xor eax, eax
inc eax
jmp 0x40e3f6
xor eax, eax
jmp 0x40e3f6
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414678
leave
ret