joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e97a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x40e9a1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004044f1
jmp 0x40ea70
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x40e9c3
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x40e9c5
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x40ea64
jg 0x40e9e2
test esi, esi
je 0x40ea64
test ecx, ecx
jl 0x40ea2f
jg 0x40e9ec
test eax, eax
je 0x40ea2f
cmp ebx, ecx
jg 0x40ea00
jl 0x40e9f6
cmp esi, eax
jae 0x40ea00
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.0044a8d0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x40ea36
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x40ea64
jg 0x40ea40
test esi, esi
je 0x40ea64
cmp dword [edi + 0x4c], 0
je 0x40ea64
mov ecx, edi
call fcn.0040f057
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.00458369
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40f0a2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4a9068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40f124
cmp byte [esi + 0x3d], 0
je 0x40f124
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40f0f6
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40f0fa
sub eax, 1
je 0x40f0fe
dec eax
sub eax, 1
je 0x40f124
xor al, al
jmp 0x40f126
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40f11b
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00457d73
add esp, 0x10
cmp edi, eax
jne 0x40f0f6
cmp byte [esi + 0x3d], 0
sete al
jmp 0x40f126
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004489ea
leave
ret
Function at 0x40ff2a
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebx, ecx
lea ecx, [eax - 1]
push esi
mov ebp, ecx
mov dword [esp + 0x10], ecx
push edi
mov edi, edx
sar ebp, 1
mov dword [esp + 0x10], edi
mov esi, edi
cmp edi, ebp
jge 0x40ff83
add esi, esi
lea eax, [esi + 2]
imul ecx, eax, 0x30
add ecx, ebx
lea eax, [ecx - 0x30]
push eax
call fcn.00403c5b
movzx eax, al
xor eax, 1
imul ecx, edi, 0x30
inc eax
add esi, eax
imul eax, esi, 0x30
add ecx, ebx
add eax, ebx
push eax
call fcn.0040ad8c
mov edi, esi
cmp esi, ebp
jl 0x40ff4d
mov eax, dword [esp + 0x1c]
cmp esi, ebp
jne 0x40ffa2
test al, 1
jne 0x40ffa2
imul eax, eax, 0x30
imul ecx, edi, 0x30
add eax, 0xffffffd0
add eax, ebx
add ecx, ebx
push eax
call fcn.0040ad8c
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x10], edi
jge 0x40ffd4
push dword [esp + 0x20]
lea esi, [edi - 1]
sar esi, 1
imul ebp, esi, 0x30
add ebp, ebx
mov ecx, ebp
call fcn.00403c5b
test al, al
je 0x40ffd4
imul ecx, edi, 0x30
push ebp
add ecx, ebx
call fcn.0040ad8c
mov edi, esi
cmp dword [esp + 0x10], esi
jl 0x40ffa8
push dword [esp + 0x20]
imul ecx, edi, 0x30
add ecx, ebx
call fcn.0040ad8c
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x410312
Capabilities:
Delete registry key

Disassembly:
push 0x38
mov eax, 0x473532
call fcn.004492cf
mov dword [ebp - 0x14], edx
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x44], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x30], bl
test edi, edi
jne 0x41037a
test esi, esi
jne 0x41035a
push 0x2001f
push str.SOFTWAREJavaSoftJava_UpdatePolicyjucheck
lea ecx, [ebp - 0x44]
call fcn.00432ed2
mov edi, dword [ebp - 0x3c]
jmp 0x41036f
mov ecx, str.SetJavaUpdateStringKey_was_called_with_a_NULL_value_for_the_key__so_defaulting_to_trying_jucheck_key
call fcn.0042700b
lea ecx, [ebp - 0x10]
call fcn.004100d8
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x41037a
mov dword [ebp - 0x18], 1
push ecx
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], ebx
call fcn.00410cbc
mov dword [ebp - 4], ebx
mov eax, edi
mov dword [ebp - 0x40], eax
test esi, esi
je 0x4103b4
push esi
mov dword [ebp - 0x28], 1
call fcn.004519b0
pop ecx
push dword [ebp + 8]
inc eax
lea ecx, [ebp - 0x24]
add eax, esi
push eax
push esi
call fcn.00432fda
mov eax, dword [ebp - 0x40]
test edi, edi
je 0x4103f9
test esi, esi
jne 0x4103c8
push dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x4103f2
push esi
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [ebp - 0x24]
call fcn.0044a350
add esp, 0xc
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x14]
call fcn.00432fb8
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
cmp dword [ebp - 0x18], 0
je 0x410407
lea ecx, [ebp - 0x44]
call fcn.00432f09
lea ecx, [ebp - 0x24]
call fcn.0040c077
mov eax, ebx
call fcn.00449298
ret
Function at 0x4104a4
Capabilities:
Delete file
Delete registry value
Query or enumerate registry key

Disassembly:
sub esp, 0x44c
mov eax, dword [0x4a9068]
xor eax, esp
mov dword [esp + 0x444], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x400
push eax
lea eax, [esp + 0x54]
xor ebx, ebx
mov edi, SysStringLen
mov dword [esp + 0x34], ebx
push eax
mov edx, str.LocalFileName
mov dword [esp + 0x20], edi
xor ecx, ecx
mov byte [esp + 0x34], bl
call fcn.004101c6
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ecx
pop ecx
test eax, eax
je 0x410506
cmp dword [esp + 0x14], ebx
je 0x410506
lea eax, [esp + 0x50]
push eax
call esi
lea ecx, [esp + 0x50]
call fcn.00410117
test eax, eax
je 0x410525
lea edx, [esp + 0x50]
mov ecx, edx
call fcn.0041075c
lea eax, [esp + 0x50]
push eax
call esi
call fcn.004105d4
push ebx
mov edx, str.PreDownldStatus
xor ecx, ecx
call fcn.00410312
pop ecx
push 0x80
lea eax, [esp + 0x54]
mov dword [esp + 0x20], edi
push eax
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, ebx
call edi
test eax, eax
jne 0x4105bb
mov ebp, 0x20019
push ebp
lea eax, [esp + 0x54]
inc esi
push eax
lea ecx, [esp + 0x20]
call fcn.00432ed2
test eax, eax
jne 0x4105a6
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x50]
push ebp
push eax
mov dword [esp + 0x54], ebx
mov byte [esp + 0x50], bl
call fcn.00432ed2
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x38], ecx
test eax, eax
jne 0x4105a6
push str.VersionXmlURL
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x80
lea eax, [esp + 0x54]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x41055b
mov ecx, dword [esp + 0x454]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004489ea
add esp, 0x44c
ret
Function at 0x41075c
Capabilities:
Get common file path
Parse url

Disassembly:
sub esp, 0x644
mov eax, dword [0x4a9068]
xor eax, esp
mov dword [esp + 0x640], eax
push ebx
push ebp
push esi
push edi
push 0x3c
pop ebp
xor ebx, ebx
lea eax, [esp + 0x10]
push ebp
push ebx
push eax
mov edi, edx
mov byte [esp + 0x15c], bl
mov esi, ecx
call fcn.0044be20
add esp, 0xc
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x250]
mov dword [esp + 0x40], 0x400
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x10]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov ebp, 0x104
test eax, eax
je 0x410802
push 0x100
lea eax, [esp + 0x154]
push eax
push ebp
lea eax, [esp + 0x58]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x26c]
push ebx
push eax
call fcn.00458abc
lea eax, [esp + 0x70]
push 0x48a8f8
push eax
call fcn.0044c260
add esp, 0x2c
test eax, eax
je 0x41083d
cmp byte [esi], bl
je 0x410829
mov al, byte [esi]
cmp al, 0x20
je 0x410810
cmp al, 9
jne 0x41081b
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x410806
imul ebx, ebx, 0x1f
movsx eax, al
add ebx, eax
inc esi
cmp byte [esi], 0
jne 0x410806
push ebx
lea eax, [esp + 0x50]
push str.jupdate__x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x4c]
push eax
push edi
call esi
lea eax, [esp + 0x150]
push eax
push edi
call esi
mov ecx, dword [esp + 0x650]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004489ea
add esp, 0x644
ret
Function at 0x414cc5
Capabilities:
Delete file

Disassembly:
push 0x64
mov eax, 0x473c43
call fcn.00449303
mov esi, edx
mov edi, ecx
xor ebx, ebx
inc ebx
cmp dword [0x4ad0bc], ebx
jg 0x414d53
push str.Verify_integrity_of___s__file_from___s_...
lea ecx, [ebp - 0x28]
call fcn.00403e1c
and dword [ebp - 4], 0
mov eax, str._null_
mov edx, eax
test esi, esi
mov ecx, eax
lea eax, [ebp - 0x28]
cmovne edx, esi
test edi, edi
push edx
cmovne ecx, edi
cmp dword [ebp - 0x14], 0x10
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004262c7
add esp, 0x10
lea eax, [ebp - 0x58]
mov byte [ebp - 4], bl
push eax
push str.CheckFileIntegrity
push 0x95
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u361_3183_install_src_windows_wrappers_common_UpdateUtils.cpp
push ebx
mov ecx, 0x4ad0bc
call fcn.00427376
lea ecx, [ebp - 0x58]
call fcn.004049ff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004049ff
test esi, esi
je 0x414d60
mov ecx, esi
call fcn.00427030
mov ebx, eax
mov edx, edi
or ecx, 0xffffffff
call fcn.00414bfa
mov esi, eax
test ebx, ebx
je 0x414d78
test esi, esi
je 0x414e01
mov edx, edi
xor ecx, ecx
call fcn.00414bfa
mov esi, eax
test esi, esi
je 0x414e01
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [0x4ad0bc], 3
jg 0x414e01
push str.Integrity_verification_failed_for___s_
lea ecx, [ebp - 0x40]
call fcn.00403e1c
test edi, edi
mov dword [ebp - 4], 2
mov ecx, str._null_
lea eax, [ebp - 0x40]
cmovne ecx, edi
cmp dword [ebp - 0x2c], 0x10
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004262c7
add esp, 0xc
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
push str.CheckFileIntegrity
push 0xac
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u361_3183_install_src_windows_wrappers_common_UpdateUtils.cpp
push 3
mov ecx, 0x4ad0bc
call fcn.00427376
lea ecx, [ebp - 0x70]
call fcn.004049ff
lea ecx, [ebp - 0x40]
call fcn.004049ff
mov eax, esi
call fcn.004492ad
ret
Function at 0x418b05
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x54
mov eax, 0x474775
call fcn.00449303
mov esi, ecx
mov dword [ebp - 0x48], esi
push 5
xor eax, eax
mov dword [ebp - 0x48], esi
pop ecx
inc eax
mov dword [ebp - 0x54], 4
cmp dword [ebp + 0xc], eax
xorps xmm0, xmm0
mov dword [ebp - 0x50], edx
cmove eax, ecx
movlpd qword [ebp - 0x4c], xmm0
lea ecx, [ebp - 0x4c]
xor edi, edi
push ecx
push eax
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x418b7c
push ecx
push dword [ebp - 0x4c]
mov ecx, esi
call fcn.00410cbc
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
push dword [esi]
call fcn.0044a8d0
add esp, 0xc
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
call fcn.004492ad
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00418aab
push eax
mov edx, str.encryption_failed__sysError
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x44]
call fcn.0040a04e
add esp, 0xc
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00402329
push 0x4a5e74
lea eax, [ebp - 0x60]
push eax
call fcn.0044c6b7
int3

Function at 0x418bbc
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x50
mov eax, 0x4747aa
call fcn.00449303
mov esi, ecx
mov dword [ebp - 0x44], esi
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x44], esi
xorps xmm0, xmm0
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x48]
push eax
push 1
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x50]
mov dword [ebp - 0x4c], edx
push eax
movlpd qword [ebp - 0x48], xmm0
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x418c27
push ecx
push dword [ebp - 0x48]
mov ecx, esi
call fcn.00410cbc
push dword [ebp - 0x48]
push dword [ebp - 0x44]
push dword [esi]
call fcn.0044a8d0
add esp, 0xc
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
call fcn.004492ad
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push eax
lea ecx, [ebp - 0x28]
call fcn.00418aab
push eax
mov edx, str.decryption_failed__sysError
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x40]
call fcn.0040a04e
add esp, 0xc
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00402329
push 0x4a5e74
lea eax, [ebp - 0x5c]
push eax
call fcn.0044c6b7
int3
Function at 0x418cca
Capabilities:
Encode data using base64 via winapi

Disassembly:
push 0xa0
mov eax, 0x47481d
call fcn.00449303
mov eax, edx
mov dword [ebp - 0x94], eax
mov esi, ecx
mov dword [ebp - 0x90], esi
xor ebx, ebx
mov dword [ebp - 0x90], esi
cmp dword [ebp + 8], ebx
jne 0x418d07
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
jmp 0x418df3
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], ebx
push ecx
push ebx
push 0x40000001
push dword [ebp + 8]
push eax
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x418dfb
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], bl
push ebx
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x90]
call fcn.00403d55
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x90]
push ecx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push 0x40000001
push dword [ebp + 8]
push dword [ebp - 0x94]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x418dbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
lea ecx, [ebp - 0x74]
call fcn.00418aab
push eax
mov edx, str.binary2string__phase2__failed__sysError
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8c]
call fcn.0040a04e
add esp, 0xc
push eax
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 4
call fcn.00402329
push 0x4a5e74
lea eax, [ebp - 0xac]
jmp 0x418e3a
push ebx
push dword [ebp - 0x90]
lea ecx, [ebp - 0x2c]
call fcn.00403d55
mov byte [ebp - 0x94], bl
lea eax, [ebp - 0x2c]
push dword [ebp - 0x94]
mov ecx, esi
mov dword [esi + 0x10], ebx
push eax
mov dword [esi + 0x14], ebx
call fcn.00404bdf
lea ecx, [ebp - 0x2c]
call fcn.004049ff
mov eax, esi
call fcn.004492ad
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
lea ecx, [ebp - 0x44]
call fcn.00418aab
push eax
mov edx, str.binary2string__phase1__failed__sysError
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x5c]
call fcn.0040a04e
add esp, 0xc
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 1
call fcn.00402329
push 0x4a5e74
lea eax, [ebp - 0xa0]
push eax
call fcn.0044c6b7
int3
Function at 0x418e41
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0x8c
mov eax, 0x47486d
call fcn.00449303
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x74], edi
xor esi, esi
mov dword [ebp - 0x74], edi
cmp dword [ebx + 0x10], esi
jne 0x418e6e
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
jmp 0x418f2e
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
mov dword [ebp - 0x74], esi
jb 0x418e7b
mov eax, dword [ebx]
push esi
push esi
lea ecx, [ebp - 0x74]
push ecx
push esi
push 1
push dword [ebx + 0x10]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x418f36
push ecx
push dword [ebp - 0x74]
lea ecx, [ebp - 0x80]
call fcn.00410cbc
mov dword [ebp - 4], 2
cmp dword [ebx + 0x14], 0x10
mov eax, dword [ebx + 0x10]
jb 0x418eb4
mov ebx, dword [ebx]
push esi
push esi
lea ecx, [ebp - 0x74]
push ecx
push dword [ebp - 0x80]
push 1
push eax
push ebx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x418f0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
lea ecx, [ebp - 0x58]
call fcn.00418aab
push eax
mov edx, str.string2binary__phase2__failed__sysError
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.0040a04e
add esp, 0xc
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 4
call fcn.00402329
push 0x4a5e74
lea eax, [ebp - 0x98]
jmp 0x418f75
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x74]
mov ecx, eax
call fcn.00418feb
lea eax, [ebp - 0x80]
mov ecx, edi
push eax
call fcn.00418fbe
lea ecx, [ebp - 0x80]
call fcn.0040c077
mov eax, edi
call fcn.004492ad
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
lea ecx, [ebp - 0x28]
call fcn.00418aab
push eax
mov edx, str.string2binary__phase1__failed__sysError
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x40]
call fcn.0040a04e
add esp, 0xc
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.00402329
push 0x4a5e74
lea eax, [ebp - 0x8c]
push eax
call fcn.0044c6b7
int3
Function at 0x424bdd
Capabilities:
Check http status code

Disassembly:
push 0x84
mov eax, 0x47635b
call fcn.00449303
mov edi, ecx
push ecx
push 0x13
call fcn.004246a5
mov esi, eax
cmp esi, 0xc8
je 0x424ca3
cmp esi, 0xce
je 0x424ca3
cmp esi, 0x193
jne 0x424c65
push 0x4880ad
lea ecx, [ebp - 0x2c]
call fcn.00403e1c
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push 0x14
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.004247e2
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004049ff
push 0
push str.Export_Denied
lea ecx, [ebp - 0x44]
call fcn.0040bf60
cmp eax, 0xffffffff
jne 0x424ca9
or dword [ebp - 4], eax
lea ecx, [ebp - 0x44]
call fcn.00403dca
push esi
lea ecx, [ebp - 0x90]
call fcn.004224cc
mov edx, eax
push 0x2ce
push str.HttpConnection::Response::checkStatus
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u361_3183_install_src_windows_common_NetUtils.cpp
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 4
call fcn.00402dde
push eax
lea ecx, [ebp - 0x70]
call fcn.00425908
mov dword [esp], 0x4a6298
jmp 0x424ce1
call fcn.004492ad
ret
lea ecx, [ebp - 0x90]
call fcn.0042255e
mov edx, eax
push 0x2cb
push str.HttpConnection::Response::checkStatus
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u361_3183_install_src_windows_common_NetUtils.cpp
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 3
call fcn.00402dde
push eax
lea ecx, [ebp - 0x70]
call fcn.00425941
mov dword [esp], 0x4a6358
lea eax, [ebp - 0x70]
push eax
call fcn.0044c6b7
int3

Function at 0x424f56
Capabilities:
Check http status code
Check internet connectivity via wininet

Disassembly:
push 0xf4
mov eax, 0x476431
call fcn.00449371
xor ebx, ebx
lea eax, [ebp - 0xe4]
push ebx
push eax
mov dword [ebp - 0xe4], ebx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x424f86
mov al, 1
jmp 0x4250b2
test byte [ebp - 0xe4], 0x40
jne 0x424f7f
push str.http:__java.sun.com
lea ecx, [ebp - 0x48]
mov byte [ebp - 0xdd], bl
mov dword [ebp - 4], ebx
call fcn.00403e1c
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xdc]
call fcn.00422768
push ebx
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
mov dword [eax + 0x1c], 2
mov word [eax + 0x18], 1
call fcn.00423491
push ecx
push 0x13
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004246a5
lea ecx, [ebp - 0x100]
mov esi, eax
call fcn.00414b7e
lea ecx, [ebp - 0xdc]
call fcn.004227d5
lea ecx, [ebp - 0x48]
call fcn.004049ff
cmp esi, 0xc8
je 0x42501a
cmp esi, 0x197
jne 0x4250b0
mov bl, 1
jmp 0x4250b0
mov al, bl
call fcn.004492be
ret
Function at 0x4250b8
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4a9068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3c
pop ebx
push ebx
lea eax, [ebp - 0x58]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.0044be20
mov dword [ebp - 0x58], ebx
add esp, 0xc
xor ebx, ebx
inc ebx
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x44], ebx
jb 0x4250f2
mov edi, dword [edi]
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x425109
xor al, al
jmp 0x425147
mov eax, dword [ebp - 0x4c]
push 3
pop ecx
sub eax, ecx
je 0x425120
sub eax, 1
je 0x42511c
mov dword [esi], ebx
jmp 0x425126
mov dword [esi], ecx
jmp 0x425126
mov dword [esi], 2
push dword [ebp - 0x44]
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x48]
call fcn.004254b4
push eax
lea ecx, [esi + 4]
call fcn.00403dcf
lea ecx, [ebp - 0x1c]
call fcn.004049ff
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004489ea
leave
ret
Function at 0x42a6b7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x110
mov eax, 0x4772a1
call fcn.00449303
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
call fcn.0042a699
mov ebx, eax
test ebx, ebx
je 0x42a7a5
mov esi, dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push dword [edi + 0x38]
call esi
test eax, eax
jne 0x42a75d
push str.cannot_load_resource
lea ecx, [ebp - 0x2c]
call fcn.00403e1c
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.0042a5db
push eax
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 5
call fcn.00426fad
push str.System_error
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x84]
call fcn.00436384
mov edx, eax
push 0x46
push str.Resource::getPtr
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x78]
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u361_3183_install_src_windows_common_Resources.cpp
jmp 0x42a812
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [edi + 0x34], 6
mov esi, eax
jne 0x42a78c
mov ecx, dword [edi + 0x18]
and ecx, 0xf
jbe 0x42a782
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x42a774
movzx eax, word [esi]
add eax, eax
add esi, 2
jmp 0x42a796
push ebx
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x6c]
mov dword [ecx], eax
mov eax, esi
call fcn.004492ad
ret 4
push str.cannot_find_resource
lea ecx, [ebp - 0x2c]
call fcn.00403e1c
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.0042a5db
push eax
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 1
call fcn.00426fad
push str.System_error
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [sym.imp.KERNEL32.dll_FindResourceA]
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x78]
call fcn.00436384
mov edx, eax
push 0x41
push str.Resource::getPtr
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x84]
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u361_3183_install_src_windows_common_Resources.cpp
call fcn.00402dde
push eax
lea ecx, [ebp - 0x50]
call fcn.0041e29e
lea eax, [ebp - 0x50]
mov dword [esp], 0x4a60f4
push eax
call fcn.0044c6b7
int3

Function at 0x42ab9e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 0x10
jb 0x42aba6
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
ret

Function at 0x42abb4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 0x10
jb 0x42abbc
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42abcf
test al, 0x10
je 0x42abcf
mov al, 1
ret
xor al, al
ret