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

Disassembly:
push ebp
lea ebp, [esp - 0x1708]
mov eax, 0x1788
call fcn.0041d7b0
mov eax, dword [0x450970]
xor eax, ebp
mov dword [ebp + 0x1704], eax
push ebx
push esi
push str.extracting_files
call fcn.0040b684
mov dword [esp], 0x7d2
call fcn.00403858
mov esi, eax
push esi
push 0x438e38
mov dword [ebp - 0x80], esi
call fcn.0040b684
xor ebx, ebx
add esp, 0xc
cmp esi, ebx
jne 0x403ad0
cmp byte [ebp + 0x1710], bl
je 0x403ac9
mov byte [0x4620c0], bl
xor eax, eax
jmp 0x403c28
cmp byte [ebp + 0x1710], bl
je 0x403add
call fcn.0040ccf2
push edi
call fcn.0040106c
push ebx
push ebx
push dword [0x451de8]
mov dword [ebp - 0x74], eax
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x7d3
call fcn.004037fd
mov dword [esp], 0x438e34
push eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ebx
call fcn.0041e0b0
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
jle 0x403bf6
mov edi, 0x4620c0
cmp dword [ebp - 0x70], ebx
je 0x403bf6
push dword [ebp - 0x70]
call fcn.0041d280
pop ecx
test eax, eax
je 0x403bf6
push dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
push edi
push 0x438e2c
push eax
call fcn.0041e231
push 0x5c
push dword [ebp - 0x70]
call fcn.0041d1c0
mov esi, eax
add esp, 0x18
cmp esi, ebx
je 0x403bb0
push edi
call fcn.0041d280
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.0040b684
add esp, 0xc
push ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x403bb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403bb0
lea eax, [ebp - 0x6c]
push eax
push str.failed_to_create_directory__S
call fcn.0040b625
pop ecx
pop ecx
push dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
push edi
push 0x438e2c
push eax
call fcn.0041e231
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
call fcn.0040274f
mov esi, eax
add esp, 0x18
cmp esi, ebx
jne 0x403c3f
inc dword [ebp - 0x78]
push 0x438e34
push ebx
call fcn.0041e0b0
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x80]
pop ecx
pop ecx
jl 0x403b24
push dword [ebp - 0x7c]
call fcn.0041d558
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 [0x451de0], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.extracting_files_done
call fcn.0040b684
pop ecx
xor eax, eax
pop edi
mov ecx, dword [ebp + 0x1704]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d798
add ebp, 0x1708
leave
ret
lea eax, [ebp - 0x6c]
push eax
push str.Failed_to_extract__S
call fcn.0040b625
push dword [ebp - 0x7c]
call fcn.0041d558
add esp, 0xc
mov eax, esi
jmp 0x403c27
Function at 0x403fc5
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3024
call fcn.0041d7b0
mov eax, dword [0x450970]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 1
push 0x438fa4
push esi
call fcn.0041e171
add esp, 0xc
test eax, eax
je 0x404197
push esi
call fcn.0041d280
pop ecx
test eax, eax
je 0x404197
push esi
push 0x438f8c
call fcn.0040b684
push esi
call fcn.0041d280
add esp, 0xc
test eax, eax
je 0x404197
push edi
lea eax, [ebp - 0x2ee4]
push esi
push eax
call fcn.0041d6a0
lea eax, [ebp - 0x2ee4]
push eax
call fcn.0041d280
add esp, 0xc
cmp byte [ebp + eax - 0x2ee4], 0x5c
mov edi, 0x438f88
je 0x40405e
lea eax, [ebp - 0x2ee4]
push edi
push eax
call fcn.0041d6b0
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x2ee4]
push 0x438f84
push eax
call fcn.0041d6b0
pop ecx
pop ecx
lea eax, [ebp - 0x3024]
push eax
lea eax, [ebp - 0x2ee4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404195
lea eax, [ebp - 0x2ff8]
push 0x438fa4
push eax
call fcn.0041ebd0
pop ecx
pop ecx
test eax, eax
je 0x404178
lea eax, [ebp - 0x2ff8]
push 0x438f80
push eax
call fcn.0041ebd0
pop ecx
pop ecx
test eax, eax
je 0x404178
lea eax, [ebp - 0x1774]
push esi
push eax
call fcn.0041d6a0
lea eax, [ebp - 0x1774]
push eax
call fcn.0041d280
add esp, 0xc
cmp byte [ebp + eax - 0x1774], 0x5c
je 0x4040fc
lea eax, [ebp - 0x1774]
push edi
push eax
call fcn.0041d6b0
pop ecx
pop ecx
lea eax, [ebp - 0x2ff8]
push eax
lea eax, [ebp - 0x1774]
push eax
call fcn.0041d6b0
test byte [ebp - 0x3024], 0x10
pop ecx
pop ecx
jbe 0x404158
movzx eax, byte [ebp + 0xc]
push eax
lea eax, [ebp - 0x1774]
push eax
push str.attempting_to_remove__S___d_
call fcn.0040b684
add esp, 0xc
cmp byte [ebp + 0xc], 0
je 0x404149
lea eax, [ebp - 0x1774]
push 0
push eax
call fcn.00403fc5
pop ecx
pop ecx
lea eax, [ebp - 0x1774]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x404178
lea eax, [ebp - 0x1774]
push eax
push str.attempting_to_delete__S
call fcn.0040b684
pop ecx
pop ecx
lea eax, [ebp - 0x1774]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x3024]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404091
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041d798
leave
ret

Function at 0x4042f1
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 0x404315
cmp dword [ebp - 8], 2
jae 0x404333
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x438fe0
call fcn.0040b684
push str.Internal_Error:_readShort
call fcn.00403f42
add esp, 0xc
mov ax, word [ebp - 4]
leave
ret
Function at 0x404385
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.004042a7
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.0041d128
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 0x4043d7
cmp dword [ebp - 4], ebx
jae 0x4043e2
push str.Internal_Error:_readWString
call fcn.00403f42
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404bce
Capabilities:
Get common file path
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
mov edi, 0x1770
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x404bfa
push 1
push 1
push esi
call fcn.00404ade
add esp, 0xc
test al, al
jne 0x404dd4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push edi
push esi
push 0x4391cc
call ebp
test eax, eax
jbe 0x404c34
push 0x4391b8
push esi
call fcn.0041d6b0
pop ecx
pop ecx
test eax, eax
je 0x404c34
push 1
push 0
push esi
call fcn.00404ade
add esp, 0xc
test al, al
jne 0x404dd3
push edi
push esi
push 0x4391ac
call ebp
test eax, eax
jbe 0x404c77
push esi
call fcn.0041d280
pop ecx
mov ecx, edi
sub ecx, eax
push ecx
push esi
call fcn.0041d280
pop ecx
add eax, esi
push eax
push 0x4391a0
call ebp
test eax, eax
jbe 0x404c77
push 1
push 0
push esi
call fcn.00404ade
add esp, 0xc
test al, al
jne 0x404dd3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
push esi
call ebx
test eax, eax
jbe 0x404cac
push 0x439198
push esi
call fcn.0041d6b0
pop ecx
pop ecx
test eax, eax
je 0x404cac
push 0
push 0
push esi
call fcn.00404ade
add esp, 0xc
test al, al
jne 0x404dd2
push 0x439190
push esi
call fcn.0041d6a0
pop ecx
pop ecx
test eax, eax
je 0x404cd2
push 0
push 0
push esi
call fcn.00404ade
add esp, 0xc
test al, al
jne 0x404dd2
push 0x439188
push esi
call fcn.0041d6a0
pop ecx
pop ecx
test eax, eax
je 0x404cf8
push 0
push 0
push esi
call fcn.00404ade
add esp, 0xc
test al, al
jne 0x404dd2
push edi
push esi
call ebx
xor ebx, ebx
test eax, eax
jbe 0x404d15
push ebx
push ebx
push esi
call fcn.00404ade
add esp, 0xc
test al, al
jne 0x404dd2
push 0x439188
push esi
call fcn.0041d6a0
pop ecx
pop ecx
test eax, eax
je 0x404d3a
push ebx
push 1
push esi
call fcn.00404ade
add esp, 0xc
test al, al
jne 0x404dd2
push esi
push edi
mov byte [0x45d9ba], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x404d5d
push ebx
push 1
push esi
call fcn.00404ade
add esp, 0xc
test al, al
jne 0x404dd2
push edi
push esi
push 0x4391cc
call ebp
test eax, eax
jbe 0x404d8a
push 0x4391b8
push esi
call fcn.0041d6b0
pop ecx
pop ecx
test eax, eax
je 0x404d8a
push ebx
push ebx
push esi
call fcn.00404ade
add esp, 0xc
test al, al
jne 0x404dd2
push edi
push esi
push 0x4391ac
call ebp
test eax, eax
jbe 0x404dc5
push esi
call fcn.0041d280
pop ecx
sub edi, eax
push edi
push esi
call fcn.0041d280
pop ecx
add eax, esi
push eax
push 0x4391a0
call ebp
test eax, eax
jbe 0x404dc5
push ebx
push ebx
push esi
call fcn.00404ade
add esp, 0xc
test al, al
jne 0x404dd2
push ebx
push 0x3f7
call fcn.00403fa8
pop ecx
pop ecx
pop ebx
pop ebp
pop edi
pop esi
ret
Function at 0x404dd7
Capabilities:
Get common file path
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
mov edi, 0x1770
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x404e03
push 1
push 1
push esi
call fcn.00404b56
add esp, 0xc
test al, al
jne 0x404fee
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push edi
push esi
push str.USERPROFILE
call ebp
test eax, eax
jbe 0x404e3d
push str.AppDataLocalTemp
push esi
call fcn.0041df8c
pop ecx
pop ecx
test eax, eax
je 0x404e3d
push 1
push 0
push esi
call fcn.00404b56
add esp, 0xc
test al, al
jne 0x404fed
push edi
push esi
push str.HOMEDRIVE
call ebp
test eax, eax
jbe 0x404e81
push esi
call fcn.0041da4b
pop ecx
mov ecx, edi
sub ecx, eax
push ecx
push esi
call fcn.0041da4b
pop ecx
lea eax, [esi + eax*2]
push eax
push str.HOMEPATH
call ebp
test eax, eax
jbe 0x404e81
push 1
push 0
push esi
call fcn.00404b56
add esp, 0xc
test al, al
jne 0x404fed
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push edi
push esi
call ebx
test eax, eax
jbe 0x404eb6
push 0x4391f8
push esi
call fcn.0041df8c
pop ecx
pop ecx
test eax, eax
je 0x404eb6
push 0
push 0
push esi
call fcn.00404b56
add esp, 0xc
test al, al
jne 0x404fec
push str.c:_temp
push esi
call fcn.0041dfba
pop ecx
pop ecx
test eax, eax
je 0x404edc
push 0
push 0
push esi
call fcn.00404b56
add esp, 0xc
test al, al
jne 0x404fec
push str.c:_tmp
push esi
call fcn.0041dfba
pop ecx
pop ecx
test eax, eax
je 0x404f02
push 0
push 0
push esi
call fcn.00404b56
add esp, 0xc
test al, al
jne 0x404fec
push edi
push esi
call ebx
xor ebx, ebx
test eax, eax
jbe 0x404f1f
push ebx
push ebx
push esi
call fcn.00404b56
add esp, 0xc
test al, al
jne 0x404fec
push str.c:_tmp
push esi
call fcn.0041dfba
pop ecx
pop ecx
test eax, eax
je 0x404f44
push ebx
push 1
push esi
call fcn.00404b56
add esp, 0xc
test al, al
jne 0x404fec
push esi
push edi
mov byte [0x45d9ba], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x404f6b
push ebx
push 1
push esi
call fcn.00404b56
add esp, 0xc
test al, al
jne 0x404fec
push edi
push esi
push str.USERPROFILE
call ebp
test eax, eax
jbe 0x404f98
push str.AppDataLocalTemp
push esi
call fcn.0041df8c
pop ecx
pop ecx
test eax, eax
je 0x404f98
push ebx
push ebx
push esi
call fcn.00404b56
add esp, 0xc
test al, al
jne 0x404fec
push edi
push esi
push str.HOMEDRIVE
call ebp
test eax, eax
jbe 0x404fd4
push esi
call fcn.0041da4b
pop ecx
sub edi, eax
push edi
push esi
call fcn.0041da4b
pop ecx
lea eax, [esi + eax*2]
push eax
push str.HOMEPATH
call ebp
test eax, eax
jbe 0x404fd4
push ebx
push ebx
push esi
call fcn.00404b56
add esp, 0xc
test al, al
jne 0x404fec
xor eax, eax
mov word [esi], ax
cmp byte [esp + 0x18], al
je 0x404fec
push ebx
push 0x3f7
call fcn.00403fa8
pop ecx
pop ecx
pop ebx
pop ebp
pop edi
pop esi
ret
Function at 0x4050a8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x177c
call fcn.0041d7b0
mov eax, dword [0x450970]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1774]
push eax
call fcn.00404ff1
lea eax, [ebp - 0x1774]
push eax
push 0x4392ec
call fcn.0040b684
add esp, 0xc
push esi
push 0
push 0x4392e8
lea eax, [ebp - 0x1774]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405182
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetTempFileName_failed__last_error__d_
call fcn.0040b684
lea eax, [ebp - 0x1774]
push eax
call fcn.0041d280
add esp, 0xc
test eax, eax
jle 0x405146
mov al, byte [ebp + eax - 0x1775]
cmp al, 0x5c
je 0x405146
cmp al, 0x2f
je 0x405146
lea eax, [ebp - 0x1774]
push 0x438f88
push eax
call fcn.0041d6b0
pop ecx
pop ecx
push edi
push 0
call fcn.0041eb56
pop ecx
mov edi, eax
mov dword [ebp - 0x1778], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
imul eax, edi
push eax
call fcn.0041f027
call fcn.0041f039
push eax
lea eax, [ebp - 0x1774]
push eax
push 0x43928c
push esi
call fcn.0041e231
add esp, 0x14
pop edi
push esi
push str.tempFile_is__S
call fcn.0040b684
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041d798
leave
ret
Function at 0x405912
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x18b4]
mov eax, 0x18b4
call fcn.0041d7b0
push 0xffffffffffffffff
push 0x436c65
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x450970]
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.0041d6a0
lea eax, [ebp + 0x140]
push 0x439324
push eax
call fcn.0041d6b0
add esp, 0x10
cmp byte [edi], 0x2e
je 0x405999
lea eax, [ebp + 0x140]
push 0x438fa4
push eax
call fcn.0041d6b0
pop ecx
pop ecx
lea eax, [ebp + 0x140]
push edi
push eax
call fcn.0041d6b0
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 0x4059c7
xor eax, eax
jmp 0x405a60
lea ecx, [ebp - 0x2c]
call fcn.004057cb
and dword [ebp - 4], 0
push 0x1770
call fcn.0041f1b7
lea ecx, [ebp + 0x2c]
push ecx
push eax
mov dword [ebp - 0x10], eax
call fcn.0041d6a0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004058e9
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4059d3
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.0041f1b7
cmp dword [ebp - 0x14], 0
pop ecx
mov dword [esi], eax
jbe 0x405a4c
xor edi, edi
lea ecx, [ebp - 0x2c]
call fcn.0040568e
mov ecx, dword [esi]
mov eax, dword [eax]
mov dword [edi + ecx], eax
lea ecx, [ebp - 0x2c]
call fcn.00405802
add edi, 4
cmp dword [ebp - 0x14], 0
ja 0x405a2c
lea ecx, [ebp - 0x2c]
call fcn.004055be
push dword [ebp - 0x2c]
call fcn.0041d558
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.0041d798
add ebp, 0x18b4
leave
ret
Function at 0x408404
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1778
call fcn.0041d7b0
mov eax, dword [0x450970]
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_technologiesexe4jjvms_
push eax
lea eax, [ebp - 0x1774]
push eax
call fcn.004083bb
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 0x4084a4
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.0041d280
pop ecx
push eax
push ebx
push 1
push edi
push str.Version
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.0041d798
leave
ret

Function at 0x40854c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1708]
mov eax, 0x1788
call fcn.0041d7b0
mov eax, dword [0x450970]
xor eax, ebp
mov dword [ebp + 0x1704], eax
mov eax, dword [ebp + 0x1710]
push ebx
push esi
mov esi, dword [ebp + 0x171c]
push str.SOFTWAREej_technologiesexe4jjvms_
push eax
lea eax, [ebp - 0x74]
push eax
xor bl, bl
call fcn.004083bb
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x74]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408683
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x16fc]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.LastWriteTime
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], 8
call edi
test eax, eax
jne 0x408679
cmp dword [ebp - 0x78], 8
jne 0x408679
push 8
lea eax, [ebp + 0x1714]
push eax
lea eax, [ebp + 0x16fc]
push eax
call fcn.00420204
add esp, 0xc
test eax, eax
jne 0x408679
lea eax, [ebp - 0x78]
push eax
push esi
lea eax, [ebp - 0x80]
push eax
push 0
push str.Version
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], 0x1770
call edi
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
je 0x408679
mov eax, dword [ebp - 0x78]
cmp eax, 1
jae 0x408639
mov byte [esi], 0
jmp 0x408644
add eax, esi
cmp byte [eax - 1], 0
je 0x408644
mov byte [eax], 0
push str.1.7.
push esi
call fcn.0041ebd0
pop ecx
pop ecx
test eax, eax
je 0x408677
push str.1.6.
push esi
call fcn.0041ebd0
pop ecx
pop ecx
test eax, eax
je 0x408677
push str.1.5.
push esi
call fcn.0041ebd0
pop ecx
pop ecx
test eax, eax
jne 0x408679
xor bl, bl
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp + 0x1704]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0041d798
add ebp, 0x1708
leave
ret
Function at 0x408929
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408973
push dword [ebp + 0x18]
lea eax, [ebp - 8]
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret
Function at 0x4089fc
Capabilities:
Query environment variable
Set environment variable

Disassembly:
sub esp, 0xdc
mov eax, dword [0x450970]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
mov ebx, dword [esp + 0xe4]
push ebp
push esi
push edi
push 0x7d0
call fcn.0041d128
mov esi, str.javaw.exe
push esi
mov edi, eax
call fcn.0041d280
pop ecx
pop ecx
push esi
mov ebp, ebx
push ebx
sub ebp, eax
call fcn.0041d280
pop ecx
add eax, ebp
push eax
call fcn.0041ebd0
pop ecx
pop ecx
test eax, eax
jne 0x408a51
push esi
jmp 0x408a56
push str.java.exe
call fcn.0041d280
or ebp, 0xffffffff
push ebx
sub ebp, eax
call fcn.0041d280
pop ecx
mov esi, eax
pop ecx
add esi, ebp
push esi
push ebx
push edi
call fcn.0041d570
push edi
mov byte [esi + edi], 0
call fcn.0040ce03
mov ebx, 0x5dc0
push ebx
mov dword [esp + 0x30], eax
call fcn.0041d128
push ebx
mov esi, eax
call fcn.0041d128
add esp, 0x18
push 0x2ee0
mov ebp, eax
push ebp
mov ebx, str.PATH
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push ebp
push esi
call fcn.0041d6a0
push 0x438e34
push esi
call fcn.0041d6b0
push edi
push esi
call fcn.0041d6b0
add esp, 0x18
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x408ae3
push esi
push str.Setting_PATH__S
call fcn.0040b684
pop ecx
pop ecx
jmp 0x408af8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Setting_PATH__S_failed_with_error__d
call fcn.0040b684
add esp, 0xc
push 0x5dc6
call fcn.0041d128
push esi
push str.PATH_s
push eax
mov dword [esp + 0x24], eax
call fcn.0041e231
push dword [esp + 0x24]
call fcn.00421ba1
and dword [esp + 0x24], 0
push 0xc8
lea eax, [esp + 0x38]
push eax
push 0x98
call fcn.004037a1
lea eax, [esp + 0x40]
push eax
call fcn.0041d280
add esp, 0x24
test eax, eax
jbe 0x408b56
lea eax, [esp + 0x20]
push eax
push edi
call fcn.00408978
pop ecx
pop ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], str.hotspot
cmp dword [esp + 0x10], 0
jne 0x408bdf
mov eax, dword [esp + 0x18]
push dword [eax]
push edi
call fcn.00408978
add dword [esp + 0x20], 4
cmp dword [esp + 0x20], 0x43aa04
pop ecx
pop ecx
mov dword [esp + 0x10], eax
jl 0x408b5e
test eax, eax
jne 0x408bdf
push dword [esp + 0x1c]
call fcn.0040ce83
pop ecx
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x408baf
push ebp
push str.Setting_PATH__S
call fcn.0040b684
pop ecx
pop ecx
jmp 0x408bc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push str.Setting_PATH__S_failed_with_error__d
call fcn.0040b684
add esp, 0xc
push ebp
push str.PATH_s
push dword [esp + 0x1c]
call fcn.0041e231
push dword [esp + 0x20]
call fcn.00421ba1
add esp, 0x10
push esi
call fcn.0041d558
push ebp
call fcn.0041d558
push dword [esp + 0x1c]
call fcn.0041d558
push edi
call fcn.0041d558
mov ecx, dword [esp + 0xf8]
mov eax, dword [esp + 0x20]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041d798
add esp, 0xdc
ret
Function at 0x409dbb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x45f0]
mov eax, 0x4670
call fcn.0041d7b0
mov eax, dword [0x450970]
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.004037a1
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.0040b684
lea eax, [ebp - 0x64]
push eax
call fcn.0041d280
add esp, 0x20
test eax, eax
je 0x409f71
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 0x409f64
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 0x409f4c
cmp dword [ebp - 0x70], esi
jbe 0x409f4c
lea eax, [ebp + 0x2e7c]
push eax
push str.found_installations:__S
call fcn.0040b684
mov ebx, 0x438e34
lea eax, [ebp + 0x2e7c]
push ebx
push eax
call fcn.0041e0b0
add esp, 0x10
jmp 0x409f3c
push edi
call fcn.0041d280
pop ecx
test eax, eax
je 0x409f59
push edi
lea eax, [ebp + 0x170c]
push str._sjre
push eax
call fcn.0041e231
lea eax, [ebp + 0x170c]
push eax
push dword [ebp - 0x6c]
call fcn.0040831a
add esp, 0x14
test al, al
je 0x409f20
push 1
push esi
push dword [ebp - 0x7c]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push dword [ebp - 0x6c]
call fcn.00409bf7
add esp, 0x18
test al, al
jne 0x409f48
lea eax, [ebp + 0x170c]
push eax
push str.java_version_did_not_match_in__S
jmp 0x409f2c
lea eax, [ebp + 0x170c]
push eax
push str.did_not_find_java_in__S
call fcn.0040b684
pop ecx
pop ecx
push ebx
push esi
call fcn.0041e0b0
pop ecx
pop ecx
mov edi, eax
cmp edi, esi
jne 0x409ec0
jmp 0x409f59
mov al, 1
jmp 0x409f73
push esi
push str.could_not_query_value_node__d
call fcn.0040b684
pop ecx
pop ecx
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409f71
push eax
push str.could_not_open_installation_node__d
call fcn.0040b684
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp + 0x45ec]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d798
add ebp, 0x45f0
leave
ret