joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415c15
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x43454b
call fcn.0041c8ac
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x415d0a
cmp byte [esi + 0x49], bl
je 0x415d0a
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x415c4d
xor al, al
jmp 0x415d0c
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00414eb1
mov dword [ebp - 4], ebx
push edi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x415cad
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x10]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, eax
push ebx
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x415cb2
dec eax
je 0x415cb6
dec eax
dec eax
je 0x415d06
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040e9b4
mov al, bl
pop edi
jmp 0x415d0c
mov edx, dword [ebp - 0x2c]
jmp 0x415c77
mov byte [esi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x415cc2
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
sub edi, eax
je 0x415ce8
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x415cd5
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.0041ef8b
add esp, 0x10
cmp edi, eax
jne 0x415c9a
cmp byte [esi + 0x49], 0
je 0x415d06
test edi, edi
jne 0x415c69
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0041493e
jmp 0x415c69
mov bl, 1
jmp 0x415c9c
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41642c
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x434513
call fcn.0041c8ac
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x416438
xor eax, eax
jmp 0x416460
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edi
xor edi, edi
cmp ecx, edi
je 0x416470
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x416470
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
cmp dword [esi + 0x54], edi
je 0x416490
mov ecx, esi
call fcn.00412cf8
cmp dword [esi + 0x44], edi
jne 0x416495
push dword [esi + 0x54]
push ebx
call fcn.0041409b
pop ecx
pop ecx
test al, al
jne 0x41645d
or eax, 0xffffffff
jmp 0x41645f
push edi
push 8
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x10], bl
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x34], 0
call fcn.00414eb1
mov dword [ebp - 4], edi
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x416548
lea eax, [ebp - 0x34]
mov edx, eax
add eax, dword [ebp - 0x24]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x14]
push ebx
push eax
push edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
test eax, eax
js 0x416566
cmp eax, 1
jg 0x416550
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x4164fc
lea eax, [ebp - 0x34]
mov edi, dword [ebp - 0x14]
sub edi, eax
je 0x416522
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x41650f
lea eax, [ebp - 0x34]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.0041ef8b
add esp, 0x10
cmp edi, eax
jne 0x416566
lea eax, [ebp - 0x10]
mov byte [esi + 0x49], 1
cmp dword [ebp - 0x18], eax
jne 0x41657c
test edi, edi
jne 0x4164b4
cmp dword [ebp - 0x24], 0x20
jae 0x416566
push edi
push 8
lea ecx, [ebp - 0x34]
call fcn.0041493e
jmp 0x4164b4
mov edx, dword [ebp - 0x34]
jmp 0x4164c6
cmp eax, 3
jne 0x416566
push dword [esi + 0x54]
push dword [ebp - 0x10]
call fcn.0041409b
pop ecx
pop ecx
test al, al
jne 0x41657c
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.0040e9b4
mov eax, esi
jmp 0x41645f
mov esi, dword [ebp + 8]
jmp 0x416569
Function at 0x417e71
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 0x417ec5
lea eax, [ebp - 4]
cmp ebx, edi
jne 0x417ead
push eax
push 0x2001f
push edi
push 0x43a548
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x417eb7
push 1
push eax
call fcn.00417e18
pop ecx
pop ecx
cmp dword [ebp - 4], edi
je 0x417f0c
mov dword [ebp - 8], 1
jmp 0x417ec8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
je 0x417efe
cmp ebx, edi
jne 0x417edf
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x417ef7
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 0x417f0c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x417f77
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
lea eax, [ebp - 8]
push eax
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x417fab
xor eax, eax
jmp 0x41800e
push edi
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x38], bl
lea edi, [ebp - 0x37]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x1e
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetTimeFromSystemTime]
pop edi
test eax, eax
jne 0x417fde
mov byte [ebp - 0x38], bl
push esi
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x38]
push eax
push 1
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
neg eax
sbb esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 1]
pop esi
pop ebx
leave
ret

Function at 0x418011
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push 0x94
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.0041bdb0
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x418072
cmp dword [ebp - 0x90], 6
jne 0x41805e
xor eax, eax
inc eax
leave
ret
cmp dword [ebp - 0x90], 5
jne 0x418072
xor eax, eax
inc eax
cmp dword [ebp - 0x8c], eax
je 0x418074
xor eax, eax
leave
ret
Function at 0x4180c2
Capabilities:
Delete registry value
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push 0x43a79c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4180e9
xor eax, eax
leave
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x43a7c4
push dword [ebp - 4]
call esi
push str.InstallOptions
push dword [ebp - 4]
call esi
push str.UpdateDescription
push dword [ebp - 4]
call esi
push str.UpdateTitle1
push dword [ebp - 4]
call esi
push str.UpdateTitle2
push dword [ebp - 4]
call esi
push str.UpdateMoreInfoUrl
push dword [ebp - 4]
call esi
push str.BalloonTitle
push dword [ebp - 4]
call esi
push str.BalloonTip
push dword [ebp - 4]
call esi
push str.DlgCaption
push dword [ebp - 4]
call esi
push str.MoreInfoTxt
push dword [ebp - 4]
call esi
push str.PreDownld
push dword [ebp - 4]
call esi
push str.UrlInfo
push dword [ebp - 4]
call esi
push str.NumTries
push dword [ebp - 4]
call esi
push str.LastUDCheckTime
push dword [ebp - 4]
call esi
push str.VersionXmlChecksum
push dword [ebp - 4]
call esi
push 0x43a8a4
push dword [ebp - 4]
call esi
call fcn.00418011
test eax, eax
je 0x4181a3
push str.TransferJobID
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x418212
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x43a958
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418296
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.NewJREVersion
push dword [ebp - 4]
call esi
push 0x43a990
push dword [ebp - 4]
call esi
push str.UpdateDetected
push dword [ebp - 4]
call esi
push str.UpdAvailNotifyCnt
push dword [ebp - 4]
call esi
push str.UpdAvailNotifyTime
push dword [ebp - 4]
call esi
push str.UpdAvailElapsed
push dword [ebp - 4]
call esi
push str.SendUDPing
push dword [ebp - 4]
call esi
push str.SendUAPing
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x41866b
Capabilities:
Get common file path
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.0041b8f7
lea eax, [ebp - 0xc]
push eax
call fcn.0041b8d0
xor edi, edi
pop ecx
pop ecx
mov byte [ebp - 0x210], 0
cmp eax, edi
je 0x4186b8
push eax
call fcn.0041bbc3
pop ecx
cmp eax, edi
je 0x4186b8
push eax
lea eax, [ebp - 0x210]
push str._n_s::
push eax
call fcn.0041be2a
add esp, 0xc
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x110]
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 - 0x110]
jne 0x4186ea
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x4186f2
push 0x43b230
push eax
call esi
push str.jusched.log
lea eax, [ebp - 0x110]
push eax
call esi
push edi
push 0x80
push 4
push edi
push 2
push 0x40000000
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41876d
push 2
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x210]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4188f5
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push edi
push 7
pop ecx
xor ebx, ebx
xor eax, eax
mov byte [ebp - 0x28], bl
lea edi, [ebp - 0x27]
rep stosd dword es:[edi], eax
push 7
stosb byte es:[edi], al
pop ecx
xor eax, eax
mov byte [ebp - 0x48], bl
lea edi, [ebp - 0x47]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push 0x43b2d0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x418942
xor eax, eax
pop edi
pop ebx
leave
ret
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x41893c
push esi
xor esi, esi
cmp dword [ebp - 4], ebx
jbe 0x4189a1
push 0x1e
lea eax, [ebp - 0x48]
push eax
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4189b8
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00418864
pop ecx
pop ecx
test eax, eax
jns 0x41899b
xor eax, eax
mov cl, byte [ebp + eax - 0x48]
mov byte [ebp + eax - 0x28], cl
inc eax
cmp cl, bl
jne 0x41898e
inc esi
cmp esi, dword [ebp - 4]
jb 0x418965
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x28]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4189ab
xor ebx, ebx
inc ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop esi
jmp 0x41893e

Function at 0x4189c9
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x407]
push ebx
push eax
mov byte [ebp - 0x408], bl
call fcn.0041bdb0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push ebx
push str.SoftwareMicroSoftWindowsCurrentVersionRunOnce
push SysReAllocString
mov dword [ebp - 8], 0x400
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418a55
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x408]
push eax
push ebx
push ebx
push str.JavaInstallRetry
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x418a4c
lea eax, [ebp - 0x408]
push str.JRERunOnce.exe
push eax
call fcn.0041ca90
pop ecx
pop ecx
test eax, eax
jne 0x418a4c
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418c10
Capabilities:
Get common file path
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x640
push ebx
push esi
push 0x3c
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x3c]
push ebx
push eax
mov byte [ebp - 0x240], bl
call fcn.0041bdb0
lea eax, [ebp - 0x640]
add esp, 0xc
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x3c]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0xc], 0x400
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp eax, ebx
je 0x418c97
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x140]
push eax
push ebx
lea eax, [ebp - 0x640]
push ebx
push eax
call fcn.0041fde8
lea eax, [ebp - 0x140]
push 0x43b58c
push eax
call fcn.0041ca90
add esp, 0x1c
test eax, eax
je 0x418cb7
push 1
push dword [ebp + 8]
call fcn.00418bd7
push eax
lea eax, [ebp - 0x140]
push str.jupdate__x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push dword [ebp + 0xc]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 0xc]
call esi
lea eax, [ebp - 0x240]
push eax
push dword [ebp + 0xc]
call esi
pop esi
pop ebx
leave
ret

Function at 0x418f2f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [ebp + 8]
push ebx
push edi
xor ebx, ebx
xor edi, edi
inc edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp eax, ebx
jne 0x418f7a
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x43a050
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 4], ebx
je 0x418f73
mov dword [ebp - 8], edi
jmp 0x418f7d
xor eax, eax
jmp 0x418ffd
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x14]
lea eax, [ebp + 8]
push dword [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebx
jne 0x418fa0
mov dword [ebp - 0xc], edi
jmp 0x418feb
cmp esi, 2
je 0x418feb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x3ff
mov edi, eax
lea eax, [ebp - 0x40b]
push ebx
push eax
mov byte [ebp - 0x40c], bl
call fcn.0041bdb0
push edi
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x40c]
push str.RegQueryValueEx__s_:_Error:_d__ErrorCode:_d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x40c]
push eax
call fcn.0041866b
add esp, 0x24
pop esi
cmp dword [ebp - 8], ebx
je 0x418ffa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
pop ebx
leave
ret
Function at 0x419001
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x40b]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov byte [ebp - 0x40c], 0
call fcn.0041bdb0
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x41909b
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x43a0a8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x419073
mov dword [ebp - 0xc], 1
jmp 0x4190a4
call edi
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x40c]
push dword [ebp + 0xc]
push str.GetJreMetrics_____RegOpenKeyEx__s_:_Error:_d__ErrorCode:_d_n
push eax
call ebx
lea eax, [ebp - 0x40c]
push eax
call fcn.0041866b
add esp, 0x18
jmp 0x41909e
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x419115
push dword [ebp + 0x14]
lea eax, [ebp + 8]
push dword [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
test eax, eax
je 0x419106
cmp eax, 2
je 0x419106
call edi
push esi
mov edi, eax
lea eax, [ebp - 0x80b]
push 0
push eax
mov byte [ebp - 0x80c], 0
call fcn.0041bdb0
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x80c]
push dword [ebp + 0xc]
push str.GetJreMetrics_____RegQueryValueEx__s_:_Error:_d__ErrorCode:_d_n
push eax
call ebx
lea eax, [ebp - 0x80c]
push eax
call fcn.0041866b
add esp, 0x24
cmp dword [ebp - 0xc], 0
je 0x419115
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41974b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
xor ebx, ebx
mov esi, 0x20019
push esi
push str.SOFTWARE
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.0040154e
test eax, eax
je 0x4197b3
lea ecx, [ebp - 0x14]
call fcn.00401533
lea ecx, [ebp - 0x20]
call fcn.00401533
lea ecx, [ebp - 0x2c]
call fcn.00401533
xor eax, eax
pop esi
pop ebx
leave
ret
push esi
push 0x43a6b4
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x20]
call fcn.0040154e
lea ecx, [ebp - 0x14]
test eax, eax
jne 0x419798
push esi
push str.Java_Runtime_Environment
push dword [ebp - 0x20]
call fcn.0040154e
test eax, eax
je 0x4197f9
lea ecx, [ebp - 0x14]
call fcn.00401533
lea ecx, [ebp - 0x20]
call fcn.00401533
lea ecx, [ebp - 0x2c]
call fcn.00401533
mov eax, ebx
jmp 0x4197af
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x80
lea eax, [ebp - 0xcc]
push eax
push ebx
push dword [ebp - 0x14]
mov byte [ebp - 0x14c], bl
call esi
test eax, eax
jne 0x4198f2
push edi
inc dword [ebp - 8]
push 7
xor eax, eax
mov byte [ebp - 0x4c], bl
pop ecx
lea edi, [ebp - 0x4b]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x4c]
push eax
call fcn.004188f5
pop ecx
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jle 0x4198b8
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0xcc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41987c
cmp dl, bl
je 0x419878
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41987c
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x41985c
xor eax, eax
jmp 0x419881
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4198b8
lea eax, [ebp - 0xcc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41988e
sub eax, edx
cmp eax, 3
jbe 0x4198b8
xor eax, eax
mov cl, byte [ebp + eax - 0xcc]
mov byte [ebp + eax - 0x14c], cl
inc eax
cmp cl, bl
jne 0x41989e
mov dword [ebp - 4], 1
push 0x80
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 8]
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x419820
pop edi
cmp dword [ebp - 4], ebx
je 0x4198f2
lea eax, [ebp - 0x14c]
push eax
push 0x43a6dc
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ebx, dword [ebp - 4]
jmp 0x4197dd

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

Disassembly:
push ebp
mov ebp, esp
call fcn.004198fa
test eax, eax
je 0x419938
pop ebp
jmp fcn.0041866b
pop ebp
ret
Function at 0x419b8f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.0041bdb0
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x419be0
lea eax, [ebp - 0x9c]
push eax
mov dword [ebp - 0x9c], 0x94
call esi
test eax, eax
je 0x419c05
cmp dword [ebp - 0x8c], 2
jne 0x419c02
cmp dword [ebp - 0x98], 6
jae 0x419c02
cmp dword [ebp - 0x98], 4
jb 0x419c02
call fcn.004199bf
jmp 0x419c05
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x41a4ea
Capabilities:
Delete file
Delete registry value
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
mov edi, 0x400
lea eax, [ebp - 0x41c]
push edi
push eax
call fcn.0041993a
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ecx
pop ecx
test eax, eax
js 0x41a51d
lea eax, [ebp - 0x41c]
push eax
call esi
lea eax, [ebp - 0x41c]
push eax
call fcn.0041a3c2
pop ecx
test eax, eax
je 0x41a546
lea eax, [ebp - 0x41c]
push eax
push eax
call fcn.00418c10
pop ecx
pop ecx
lea eax, [ebp - 0x41c]
push eax
call esi
call fcn.004180c2
xor esi, esi
push esi
push str.PreDownldStatus
push esi
call fcn.00417e71
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
add esp, 0xc
push edi
lea eax, [ebp - 0x41c]
push eax
mov dword [ebp - 4], esi
push esi
mov esi, SysStringLen
jmp 0x41a5e7
inc dword [ebp - 4]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push 0x20019
lea eax, [ebp - 0x41c]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040154e
lea ecx, [ebp - 0x10]
test eax, eax
jne 0x41a5cf
push 0x2001f
push 0x43a764
push dword [ebp - 0x1c]
call fcn.0040154e
test eax, eax
jne 0x41a5cc
push str.VersionXmlURL
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 0x10]
call fcn.00401533
lea ecx, [ebp - 0x1c]
call fcn.00401533
push edi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 4]
push esi
call ebx
test eax, eax
je 0x41a575
pop edi
pop esi
pop ebx
leave
ret