joyce8/EMBER2024-capa huggingface dataset:
Function at 0x34afff
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x34b08e
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x34b04c
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x34b06f
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x34b1ba
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x34b0b6
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x34b0c1
xor eax, eax
jmp 0x34b10d
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x34b0de
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.0034c111
jmp 0x34b0ee
cmp ecx, 2
jne 0x34b0f7
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.0034c5a0
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edx, dword [esi + 0x74]
cmp edx, 3
jb 0x34b135
mov edi, dword [esi + 0x6c]
add edi, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edi]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edi + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edx, 0x106
jae 0x34b149
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x34b00a
mov ecx, dword [esi + 0x16c0]
mov eax, dword [esi + 0x3c]
cmp ecx, eax
jae 0x34b1ba
mov edi, dword [esi + 0x6c]
add edi, edx
cmp ecx, edi
jae 0x34b189
sub eax, edi
mov ebx, eax
mov eax, 0x102
cmp ebx, eax
jbe 0x34b16e
mov ebx, eax
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
add ebx, edi
mov dword [esi + 0x16c0], ebx
jmp 0x34b1ba
lea edx, [edi + 0x102]
cmp ecx, edx
jae 0x34b1ba
sub edi, ecx
add edi, 0x102
sub eax, ecx
cmp edi, eax
jbe 0x34b1a3
mov edi, eax
mov eax, dword [esi + 0x38]
push edi
add eax, ecx
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
leave
ret
Function at 0x4090ed
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x120
mov eax, dword [0x4b34c4]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x128]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x1c], ecx
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0xc], ebp
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call fcn.00408e1d
mov esi, eax
test esi, esi
jne 0x4091cc
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
push dword [esp + 0x28]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
call ebp
test eax, eax
jne 0x4091a4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.004090ed
mov esi, eax
test esi, esi
jne 0x4091cc
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call ebp
test eax, eax
je 0x409169
jmp 0x4091a6
xor esi, esi
cmp dword [esp + 0xc], 0
je 0x4091bb
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.0040899c
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x4091dd
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x128]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00450e68
add esp, 0x120
ret 4
Function at 0x40a012
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x40a02c
Capabilities:
Set registry value

Disassembly:
cmp dword [esp + 8], 0
push ebp
mov ebp, ecx
jne 0x40a03b
push 0xd
pop eax
jmp 0x40a06c
push ebx
mov ebx, dword [esp + 0x10]
push edi
xor edi, edi
push ebx
call fcn.00456520
inc eax
add ebx, eax
add edi, eax
pop ecx
cmp eax, 1
jne 0x40a043
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
pop ebp
ret 8
Function at 0x40b7e7
Capabilities:
Delete file

Disassembly:
sub esp, 0x18c
mov eax, dword [0x4b34c4]
xor eax, esp
mov dword [esp + 0x188], eax
cmp dword [esp + 0x194], 0
push esi
mov esi, dword [esp + 0x194]
push edi
mov ecx, dword [esi + 0x2478]
jne 0x40b850
mov edx, dword [esi + 0x2474]
test edx, edx
je 0x40b822
test ecx, ecx
je 0x40b850
mov eax, dword [esi]
push edx
push ecx
push esi
call dword [eax + 0x10]
mov edi, eax
test edi, edi
jne 0x40b846
push 1
call fcn.004109e6
pop ecx
test eax, eax
je 0x40b850
mov eax, 0x80070204
jmp 0x40ba0a
call fcn.00411bb9
jmp 0x40ba08
cmp dword [esi + 0x2478], 0
je 0x40b867
push 0x80
lea eax, [esi + 8]
push eax
call fcn.0040dd49
push 0x104
lea eax, [esp + 0x90]
mov ecx, esi
push eax
call fcn.0040bbaa
mov edi, eax
test edi, edi
js 0x40b9fd
push ebx
push ebp
push str.Download_Status:_Download_Complete
call fcn.00412911
pop ecx
push 1
call fcn.00425c61
mov ecx, eax
call fcn.00425e91
mov edi, str.CDownloadManager::DownloadExecInstaller
mov ebp, str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u381_237_install_src_windows_au_jucheck_DownloadManager.cpp
test al, al
je 0x40b8f5
lea eax, [esp + 0x40]
push 0
push eax
call fcn.004256c0
push eax
lea eax, [esp + 0x34]
push str.DownloadManager_MOS_MODE
push eax
call fcn.00407b42
add esp, 0x14
push eax
push edi
push 0xa0
push ebp
push 1
call fcn.00425c61
mov ecx, eax
call fcn.00425e9d
lea ecx, [esp + 0x28]
call fcn.004063d7
lea ecx, [esp + 0x40]
call fcn.004063d7
lea eax, [esp + 0x94]
mov bl, 1
push eax
lea ecx, [esp + 0x14]
call fcn.004038cc
push 0
push 0x48764c
lea ecx, [esp + 0x18]
call fcn.0040d2aa
cmp eax, 0xffffffff
je 0x40b94b
push 1
call fcn.00425c61
mov ecx, eax
call fcn.00425e91
test al, al
je 0x40b949
push str.MOS__cb_detected__do_not_run
push edi
push 0xa6
push ebp
push 1
call fcn.00425c61
mov ecx, eax
call fcn.0040714b
xor bl, bl
mov eax, dword [esi]
lea ecx, [esp + 0x94]
push ecx
push esi
call dword [eax + 0x1c]
mov edi, eax
test edi, edi
js 0x40b987
test bl, bl
je 0x40b987
push dword [esp + 0x1a4]
mov eax, dword [esi]
lea ecx, [esp + 0x98]
push 1
push ecx
push esi
call dword [eax + 0x18]
mov edi, eax
test edi, edi
jns 0x40b9f0
push str.Download_Status:_Verification_of_Downloaded_File_Signature_Failed
jmp 0x40b9ea
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x58]
call fcn.0043078e
lea ecx, [esp + 0x58]
call fcn.00430a04
call fcn.0042c575
push eax
push 0x74
call fcn.0042c575
push eax
push 0x72
lea ecx, [esp + 0x68]
call fcn.00430907
mov ecx, eax
call fcn.00430aeb
mov ecx, eax
call fcn.00430a71
lea ecx, [esp + 0x70]
call fcn.004063fd
lea ecx, [esp + 0x58]
call fcn.004063fd
call fcn.00411a99
push str.Download_Status:_Verification_of_Downloaded_File_Version_Failed
call fcn.00412911
pop ecx
lea ecx, [esp + 0x10]
call fcn.004063d7
pop ebp
pop ebx
jmp 0x40ba08
push str.Download_Status:_Download_Failed
call fcn.00412911
pop ecx
mov eax, edi
mov ecx, dword [esp + 0x190]
pop edi
pop esi
xor ecx, esp
call fcn.00450e68
add esp, 0x18c
ret 8
Function at 0x40bf53
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push edi
xor edi, edi
lea eax, [ebp - 0x40]
push 0x3c
push edi
push eax
mov dword [ebp - 4], edi
call fcn.004541a0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x140
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x2c], eax
call fcn.0042c93f
cmp eax, 2
mov dword [ebp - 0x24], 1
mov edx, str.open
mov ecx, str.runas
push 6
cmovl ecx, edx
push edi
mov dword [ebp - 0x34], ecx
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
test eax, eax
je 0x40bffe
cmp dword [ebp + 0x10], 0
je 0x40bff0
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp eax, 0x669
cmove eax, ecx
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x40c004
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret 0xc

Function at 0x40d762
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4b34c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
push ebx
push ebx
push 1
mov dword [edi + 0xc], 0xbc2
mov eax, dword [0x4b6c00]
push ebx
mov dword [edi + 0x18], eax
call esi
push ebx
push ebx
push 1
push ebx
mov dword [edi + 0x20], eax
call esi
push ebx
push ebx
push 1
push ebx
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x38], eax
call fcn.00411f2c
mov dword [edi + 0x3c], eax
call fcn.0040f6de
push dword [edi + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [edi + 0x40], eax
call esi
push dword [edi + 0x24]
call esi
push dword [edi + 0x38]
call esi
lea eax, [ebp - 0x10c]
push eax
push ebx
push edi
push 0x40d5a4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40d7f6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x20]
call esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [edi + 0x54]
mov ebx, 0x104
push ebx
push eax
push 0x7b
push dword [edi + 0x18]
call esi
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x7c
push dword [edi + 0x18]
call esi
lea eax, [ebp - 0x108]
mov ecx, edi
push eax
call fcn.0040d888
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450e68
leave
ret 4
Function at 0x40e7d4
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
lea ecx, [eax - 1]
push esi
mov ebx, ecx
push edi
mov edi, dword [esp + 0x1c]
mov esi, edi
sar ebx, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ecx
cmp edi, ebx
jge 0x40e830
add esi, esi
lea eax, [esi + 2]
imul ecx, eax, 0x30
add ecx, ebp
lea eax, [ecx - 0x30]
push eax
call fcn.0040443e
movzx eax, al
xor eax, 1
imul ecx, edi, 0x30
inc eax
add esi, eax
imul eax, esi, 0x30
add ecx, ebp
add eax, ebp
push eax
call fcn.0040b65a
mov edi, esi
cmp esi, ebx
jl 0x40e7fa
mov eax, dword [esp + 0x20]
cmp esi, ebx
jne 0x40e84f
test al, 1
jne 0x40e84f
imul eax, eax, 0x30
imul ecx, edi, 0x30
add eax, 0xffffffd0
add eax, ebp
add ecx, ebp
push eax
call fcn.0040b65a
mov edi, dword [esp + 0x1c]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x18]
push edi
push ebp
call fcn.0040e8f5
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x410b1a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4b34c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x410b71
cmp byte [esi + 0x3d], bl
je 0x410b71
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x410baa
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, ebx
je 0x410b82
sub eax, 1
je 0x410b85
dec eax
sub eax, 1
jne 0x410baa
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450e68
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x410ba2
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00460306
add esp, 0x10
cmp edi, eax
jne 0x410baa
cmp byte [esi + 0x3d], bl
sete al
jmp 0x410b73
xor al, al
jmp 0x410b73

Function at 0x411749
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
test ebp, ebp
jg 0x411763
jl 0x41175a
test ebx, ebx
jne 0x411763
xor eax, eax
xor edx, edx
jmp 0x411828
cmp dword [esi + 0x38], 0
je 0x411779
push ebp
push ebx
push dword [esp + 0x1c]
call fcn.004078e9
jmp 0x411828
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x4117bf
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x4117bf
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [esp + 0x18]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.00406634
mov ecx, dword [esp + 0x1c]
add edi, esi
mov dword [esp + 0x24], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x4117c7
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
cmp dword [esi + 0x4c], 0
je 0x41181e
mov ecx, esi
call fcn.00410d55
mov ecx, dword [esp + 0x18]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x411809
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.0045fd00
mov ecx, dword [esp + 0x28]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [esp + 0x18], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x41181e
jmp 0x4117da
test edx, edx
je 0x41181e
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.0045fd00
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb ebp, 0
mov edx, ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x411a99
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x3bc]
sub esp, 0x43c
mov eax, dword [0x4b34c4]
xor eax, ebp
mov dword [ebp + 0x3b8], eax
push ebx
push esi
push edi
mov ebx, SysStringLen
lea ecx, [ebp - 0x64]
push ebx
call fcn.0043916c
lea eax, [ebp - 0x48]
push 0x400
push eax
call fcn.004120dc
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ecx
pop ecx
test eax, eax
js 0x411ae5
lea eax, [ebp - 0x48]
push eax
call esi
lea eax, [ebp - 0x48]
push eax
call fcn.00411e80
pop ecx
test eax, eax
je 0x411b05
lea eax, [ebp - 0x48]
push eax
push eax
call fcn.00411f80
pop ecx
pop ecx
lea eax, [ebp - 0x48]
push eax
call esi
call fcn.00411bb9
xor edi, edi
push edi
push str.PreDownldStatus
push edi
call fcn.004121c3
add esp, 0xc
lea ecx, [ebp - 0x64]
push ebx
call fcn.004391aa
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
call fcn.004391f1
test eax, eax
jne 0x411ba1
mov ebx, 0x20019
push ebx
lea eax, [ebp - 0x48]
inc edi
push eax
lea ecx, [ebp - 0x64]
call fcn.0043920a
lea ecx, [ebp - 0x64]
mov esi, eax
call fcn.00408b63
test esi, esi
jne 0x411b90
push eax
lea ecx, [ebp - 0x80]
call fcn.0043916c
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x80]
call fcn.0043920a
lea ecx, [ebp - 0x80]
mov esi, eax
call fcn.00408b63
push eax
lea ecx, [ebp - 0x80]
call fcn.004391aa
test esi, esi
jne 0x411b90
push str.VersionXmlURL
lea ecx, [ebp - 0x80]
call fcn.004391e1
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
call fcn.004391f1
test eax, eax
je 0x411b3a
mov ecx, dword [ebp + 0x3b8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450e68
add ebp, 0x3bc
leave
ret

Function at 0x411f80
Capabilities:
Get common file path
Parse url

Disassembly:
sub esp, 0x644
mov eax, dword [0x4b34c4]
xor eax, esp
mov dword [esp + 0x640], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x654]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x65c]
push 0x3c
pop ebx
push ebx
push 0
push eax
mov byte [esp + 0x15c], 0
call fcn.004541a0
add esp, 0xc
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x250]
mov dword [esp + 0x40], 0x400
mov dword [esp + 0x3c], eax
xor ebx, ebx
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 0x412032
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.00460de8
lea eax, [esp + 0x70]
push 0x488208
push eax
call fcn.004547a0
add esp, 0x2c
test eax, eax
je 0x41204e
push 1
push esi
call fcn.004128da
push eax
lea eax, [esp + 0x58]
push str.jupdate__x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
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.00450e68
add esp, 0x644
ret
Function at 0x41626a
Capabilities:
Delete file

Disassembly:
push 0x6c
mov eax, 0x47c105
call fcn.00450edb
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
inc ebx
push ebx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], esi
call fcn.00425c61
mov ecx, eax
call fcn.00425e91
test al, al
je 0x4162f3
push str.Verify_integrity_of___s__file_from___s_...
lea ecx, [ebp - 0x28]
call fcn.004038cc
and dword [ebp - 4], 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00416151
add esp, 0x10
push eax
push str.CheckFileIntegrity
push 0x95
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u381_237_install_src_windows_wrappers_common_UpdateUtils.cpp
push ebx
mov byte [ebp - 4], bl
call fcn.00425c61
mov ecx, eax
call fcn.00425e9d
lea ecx, [ebp - 0x58]
call fcn.004063d7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004063d7
test esi, esi
je 0x416300
push esi
call fcn.0042801c
pop ecx
mov ebx, eax
push edi
push 0xffffffffffffffff
call fcn.00416797
mov esi, eax
pop ecx
pop ecx
test ebx, ebx
je 0x416318
test esi, esi
je 0x41639b
push edi
push 0
call fcn.00416797
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41639b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 3
call fcn.00425c61
mov ecx, eax
call fcn.00425e91
test al, al
je 0x41639b
push str.Integrity_verification_failed_for___s_
lea ecx, [ebp - 0x40]
call fcn.004038cc
lea eax, [ebp - 0x74]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040b4e1
add esp, 0xc
push eax
push str.CheckFileIntegrity
push 0xac
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u381_237_install_src_windows_wrappers_common_UpdateUtils.cpp
push 3
mov byte [ebp - 4], 3
call fcn.00425c61
mov ecx, eax
call fcn.00425e9d
lea ecx, [ebp - 0x70]
call fcn.004063d7
lea ecx, [ebp - 0x40]
call fcn.004063d7
mov eax, esi
call fcn.00450e8a
ret
Function at 0x41b0e6
Capabilities:
Encode data using base64 via winapi

Disassembly:
push 0x68
mov eax, 0x47ced5
call fcn.00450edb
mov esi, dword [ebp + 8]
xor ecx, ecx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x60], esi
cmp dword [ebp + 0x10], ecx
jne 0x41b115
mov dword [esi], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 0xf
mov byte [esi], cl
jmp 0x41b232
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], ecx
push eax
push ecx
push 0x40000001
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x41b23a
xor ecx, ecx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 4], 2
test eax, eax
jne 0x41b15d
mov dword [ebp - 0x18], eax
mov byte [ebp + eax - 0x28], cl
jmp 0x41b167
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040645b
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x5c]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x40000001
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x41b1bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041b6b2
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push str.binary2string__phase2__failed__sysError
push eax
call fcn.00407b42
add esp, 0x18
mov byte [ebp - 4], 4
jmp 0x41b266
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp - 0x18]
ja 0x41b1d7
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x41b1e5
sub ecx, dword [ebp - 0x18]
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040645b
and dword [esi], 0
lea eax, [ebp - 0x28]
and dword [esi + 0x10], 0
mov ecx, esi
and dword [esi + 0x14], 0
push eax
call fcn.00406263
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x41b232
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ecx
cmp eax, 0x1000
jb 0x41b229
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004055a1
mov eax, dword [ebp - 0x64]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x60]
push eax
push ecx
call fcn.00450c04
pop ecx
pop ecx
mov eax, esi
call fcn.00450e8a
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041b6b2
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x58]
push str.binary2string__phase1__failed__sysError
push eax
call fcn.00407b42
add esp, 0x18
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x70]
call fcn.00403d30
push 0x4a64a0
lea eax, [ebp - 0x70]
push eax
call fcn.0045437c
int3