joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009eed5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1009eef7
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1009eef7
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1009eef7
ret
cmp word [ebx + 4], 0x14c
jne 0x1009eef7
test word [ebx + 0x16], 2
je 0x1009eef7
test word [ebx + 0x16], 0x100
je 0x1009eef7
cmp word [ebx + 0x18], 0x10b
jne 0x1009eef7
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1009eef7
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1009ef83
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1009ef17
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10085e62
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1009eef7
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x1009ef83
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1009eef7
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1009eef7
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1009eef7
ret
cmp word [ebx + 4], 0x14c
jne 0x1009eef7
test word [ebx + 0x16], 2
je 0x1009eef7
test word [ebx + 0x16], 0x100
je 0x1009eef7
cmp word [ebx + 0x18], 0x10b
jne 0x1009eef7
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1009eef7
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1009ef83
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1009ef17
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10085e62
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1009eef7
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x1009f03a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1009f093
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1009f03a
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1009f049
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x104a4cec
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1009f09a
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10085f10
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1009f139
add edi, 4
add eax, 2
dec ecx
jne 0x1009f07f
call 0x1009f0e6
loope 0x1009f0dc
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1009f136
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1009f147
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1009f0fa
cmp eax, ecx
ja 0x1009f0fa
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1009f184
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1009f17a
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100863ef
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1009f049
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1009f093
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1009f03a
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1009f049
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x104a4cec
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1009f09a
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10085f10
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1009f139
add edi, 4
add eax, 2
dec ecx
jne 0x1009f07f
call 0x1009f0e6
loope 0x1009f0dc
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1009f136
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1009f147
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1009f0fa
cmp eax, ecx
ja 0x1009f0fa
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1009f184
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1009f17a
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100863ef
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x405ae0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov eax, dword [0x4ca93c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0xd74c61e2
mov eax, dword [ebp - 0x10]
mov ecx, eax
sub ecx, 0xfff288fc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
jg 0x405b5a
jmp 0x405b18
mov eax, dword [ebp - 0x14]
sub eax, 0xbb29e7ea
mov dword [ebp - 0x1c], eax
je 0x405ba7
jmp 0x405b2e
mov eax, dword [ebp - 0x14]
sub eax, 0xd74c61e2
mov dword [ebp - 0x20], eax
je 0x405b75
jmp 0x405b44
mov eax, dword [ebp - 0x14]
sub eax, 0xdd74b62b
mov dword [ebp - 0x24], eax
je 0x405bd3
jmp 0x405b70
mov eax, dword [ebp - 0x14]
sub eax, 0xfff288fd
mov dword [ebp - 0x28], eax
je 0x405b93
jmp 0x405b70
jmp 0x405bdb
mov eax, 0xbb29e7ea
mov ecx, 0xfff288fd
mov edx, dword [ebp - 4]
cmp edx, 0
cmovne eax, ecx
mov dword [ebp - 0x10], eax
jmp 0x405bdb
mov eax, dword [0x4ca93c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0xdd74b62b
jmp 0x405bdb
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [0x4ca93c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0xdd74b62b
jmp 0x405bdb
mov eax, dword [ebp - 8]
add esp, 0x28
pop ebp
ret
jmp 0x405afc
Function at 0x4b64ea
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ca1e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004b4999
mov dword [ebp - 0x14], eax
cmp dword [0x4cb984], edi
jne 0x4b65db
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4b6568
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4b66bb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4b66bb
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b66bb
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4cb984], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4cb988], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4cb98c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4cb994], eax
test eax, eax
je 0x4b65d8
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4cb990], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4b6600
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4b65f3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4b6615
push 4
pop eax
jmp 0x4b66bd
cmp dword [ebp - 0x14], edi
je 0x4b6615
push dword [0x4cb984]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4b65fa
mov eax, dword [0x4cb990]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4b6673
cmp dword [0x4cb994], esi
je 0x4b6673
push eax
call ebx
push dword [0x4cb994]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4b6673
test eax, eax
je 0x4b6673
call ecx
test eax, eax
je 0x4b6668
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4b6668
test byte [ebp - 8], 1
jne 0x4b6673
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4b66a3
mov eax, dword [0x4cb988]
cmp eax, esi
je 0x4b66a0
push eax
call ebx
test eax, eax
je 0x4b66a0
call eax
mov edi, eax
test edi, edi
je 0x4b66a0
mov eax, dword [0x4cb98c]
cmp eax, esi
je 0x4b66a0
push eax
call ebx
test eax, eax
je 0x4b66a0
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4cb984]
call ebx
test eax, eax
je 0x4b66bb
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4b66bd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b66cc
leave
ret
Function at 0x40a2a4
Capabilities:
Create process on windows

Disassembly:
push 0x24
mov eax, 0x449698
call fcn.00426584
mov esi, ecx
cmp dword [0x46ee38], 1
jg 0x40a2f9
lea eax, [esi + 0x30]
mov edx, str.Executor.exec__:
push eax
lea ecx, [ebp - 0x28]
call fcn.004040f2
pop ecx
and dword [ebp - 4], 0
mov ecx, 0x46ee38
push eax
push str.Executor::startExecution
push 0x93
push str.c:_jenkins_workspace_8_2_build_windows_amd64_cygwin_jdk8u261_295_install_src_windows_common_Executor.cpp
push 1
call fcn.0040f042
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403a8e
push 0x44
pop ebx
push ebx
lea edi, [esi + 0x70]
push 0
push edi
call fcn.00428d20
push 0x10
mov dword [edi], ebx
lea ebx, [esi + 0x60]
push 0
push ebx
call fcn.00428d20
add esp, 0x18
cmp dword [esi + 0xb4], 1
jne 0x40a33a
or dword [esi + 0x9c], 1
xor eax, eax
mov word [esi + 0xa0], ax
mov dword [esi + 0x54], 0x8000000
cmp byte [esi + 0xc1], 0
je 0x40a34a
mov ecx, esi
call fcn.0040a79a
lea ecx, [esi + 0x30]
cmp dword [ecx + 0x14], 0x10
mov edx, ecx
jb 0x40a357
mov edx, dword [ecx]
mov eax, dword [ecx + 0x10]
add eax, edx
cmp dword [ecx + 0x14], 0x10
jb 0x40a364
mov ecx, dword [ecx]
push dword [ebp - 0x2d]
xor edx, edx
push eax
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
call fcn.0040ad81
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x29], 0
cmp dword [ebp - 0x14], eax
je 0x40a398
mov byte [eax], 0
inc eax
mov dword [ebp - 0x18], eax
jmp 0x40a3a5
lea ecx, [ebp - 0x29]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040ac03
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40a3af
mov eax, dword [esi]
push ebx
push edi
push dword [esi + 0x5c]
push dword [esi + 0x58]
push dword [esi + 0x54]
push dword [esi + 0x50]
push dword [esi + 0x4c]
push dword [esi + 0x48]
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
lea ecx, [ebp - 0x1c]
setne bl
call fcn.00406581
mov al, bl
call fcn.0042652e
ret
Function at 0x40aef2
Capabilities:
Check if file exists
Get file attributes

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

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

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

Function at 0x40b1cc
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x9c
mov eax, 0x4498bf
call fcn.00426550
mov esi, edx
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40b1e7
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40b284
cmp dword [0x46ee38], 0
jg 0x40b27c
sub esp, 0x18
xor edi, edi
mov ecx, esp
mov dword [ebp - 0x10], esp
push esi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
call fcn.00403c2a
push ecx
push ecx
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], edi
call fcn.00402ff8
mov edx, str.Deleted__
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.00405a4e
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 2
call fcn.00404320
mov esi, eax
mov edx, str.__file
mov ecx, esi
call fcn.00405a4e
push esi
push str.FileUtils::_anonymous_namespace::deleteFileImpl
push 0x25e
push str.c:_jenkins_workspace_8_2_build_windows_amd64_cygwin_jdk8u261_295_install_src_windows_common_FileUtils.cpp
push edi
mov ecx, 0x46ee38
call fcn.00406215
lea ecx, [ebp - 0xa8]
call fcn.004025f1
mov al, 1
call fcn.00426519
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40b27c
cmp eax, 3
je 0x40b27c
xor al, al
jmp 0x40b27e
Function at 0x40b298
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov edx, edi
call fcn.0040b1cc
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, al
mov byte [esp + 0x17], bl
call ebp
test bl, bl
jne 0x40b457
xor ebx, ebx
cmp eax, 5
jne 0x40b44b
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x40b2dc
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 5
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
jne 0x40b2ff
xor al, al
jmp 0x40b45b
test al, 1
je 0x40b44b
and eax, 0xfffffffe
mov ecx, edi
cmp dword [edi + 0x14], 0x10
jb 0x40b314
mov ecx, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
push ecx
call esi
test eax, eax
je 0x40b39b
cmp dword [0x46ee38], ebx
jg 0x40b38f
sub esp, 0x18
mov ecx, esp
push edi
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00403c2a
push ecx
push ecx
lea ecx, [esp + 0x48]
call fcn.00402ff8
mov edx, str.Discarded_R_O_attribute_from__
lea ecx, [esp + 0x40]
call fcn.00405a4e
lea ecx, [esp + 0x40]
call fcn.00404320
mov esi, eax
mov edx, str.__file
mov ecx, esi
call fcn.00405a4e
push esi
push str.FileUtils::deleteFile
push 0x276
push str.c:_jenkins_workspace_8_2_build_windows_amd64_cygwin_jdk8u261_295_install_src_windows_common_FileUtils.cpp
push ebx
mov ecx, 0x46ee38
call fcn.00406215
lea ecx, [esp + 0x28]
call fcn.004025f1
mov edx, edi
call fcn.0040b1cc
jmp 0x40b447
cmp dword [0x46ee38], 2
jg 0x40b43b
push str.System_error
call ebp
push eax
push esi
sub esp, 0x18
mov ecx, esp
push edi
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00403c2a
push ecx
push ecx
lea ecx, [esp + 0x54]
call fcn.00402ff8
mov edx, str.Failed_to_discard_R_O_attribute_from__
lea ecx, [esp + 0x4c]
call fcn.00405a4e
lea ecx, [esp + 0x4c]
call fcn.00404320
mov esi, eax
mov edx, str.__file._File_will_not_be_deleted
mov ecx, esi
call fcn.00405a4e
push esi
lea ecx, [esp + 0x2c]
call fcn.0041548f
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
push eax
push str.FileUtils::deleteFile
push 0x27c
push str.c:_jenkins_workspace_8_2_build_windows_amd64_cygwin_jdk8u261_295_install_src_windows_common_FileUtils.cpp
push 2
mov ecx, 0x46ee38
call fcn.0040272d
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], vtable.std::exception.0
push eax
call fcn.00427223
pop ecx
lea ecx, [esp + 0x28]
call fcn.004025f1
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [esp + 0x17]
test al, al
jne 0x40b457
call ebp
cmp eax, 2
je 0x40b457
cmp eax, 3
jne 0x40b459
mov bl, 1
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b463
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
push ebx
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x40b47d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne cl
xor ebx, ebx
mov byte [esp + 0xb], cl
test eax, eax
je 0x40b504
cmp dword [0x46ee38], ebx
jg 0x40b504
sub esp, 0x18
mov ecx, esp
push esi
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00403c2a
push ecx
push ecx
lea ecx, [esp + 0x30]
call fcn.00402ff8
mov edx, str.Deleted__
lea ecx, [esp + 0x28]
call fcn.00405a4e
lea ecx, [esp + 0x28]
call fcn.00404320
mov esi, eax
mov edx, str.__directory
mov ecx, esi
call fcn.00405a4e
push esi
push str.FileUtils::deleteDirectory
push 0x291
push str.c:_jenkins_workspace_8_2_build_windows_amd64_cygwin_jdk8u261_295_install_src_windows_common_FileUtils.cpp
push ebx
mov ecx, 0x46ee38
call fcn.00406215
lea ecx, [esp + 0x10]
call fcn.004025f1
mov cl, byte [esp + 0xb]
test cl, cl
jne 0x40b518
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40b518
cmp eax, 3
jne 0x40b51a
mov bl, 1
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b53d
Capabilities:
Get file version info

Disassembly:
push 0xe4
mov eax, 0x449926
call fcn.00426584
mov esi, ecx
mov dword [ebp - 0x38], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x40], esi
push eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.00403c2a
lea edi, [esi + 0x18]
mov dword [ebp - 4], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov byte [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x38], ebx
jb 0x40b584
mov eax, dword [esi]
mov ebx, dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
lea ecx, [ebp - 0x38]
push ecx
push eax
call ebx
test eax, eax
je 0x40b649
push edi
push eax
mov ecx, edi
call fcn.00406682
mov eax, dword [edi + 4]
mov ecx, esi
sub eax, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x40b5b1
mov ecx, dword [esi]
push dword [edi]
mov edi, dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
push eax
push dword [ebp - 0x38]
push ecx
call edi
test eax, eax
jne 0x40b63f
push 0x46d
push str.VersionResource::VersionResource
push str.c:_jenkins_workspace_8_2_build_windows_amd64_cygwin_jdk8u261_295_install_src_windows_common_FileUtils.cpp
lea ecx, [ebp - 0x58]
call fcn.0040263d
push eax
push str.System_error
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x45df90
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3c], esp
push esi
call fcn.00402f9b
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 6
call fcn.0040259d
mov byte [ebp - 4], 7
push str.GetFileVersionInfo_
mov ecx, eax
call fcn.0040420a
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00404320
mov ecx, eax
call fcn.0040420a
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041548f
mov byte [ebp - 4], 9
jmp 0x40b6bf
mov eax, esi
call fcn.0042652e
ret 4
push 0x464
push str.VersionResource::VersionResource
push str.c:_jenkins_workspace_8_2_build_windows_amd64_cygwin_jdk8u261_295_install_src_windows_common_FileUtils.cpp
lea ecx, [ebp - 0x4c]
call fcn.0040263d
push eax
push str.System_error
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x45df90
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3c], esp
push esi
call fcn.00402f9b
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 2
call fcn.0040259d
mov byte [ebp - 4], 3
push str.GetFileVersionInfoSize_
mov ecx, eax
call fcn.0040420a
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00404320
mov ecx, eax
call fcn.0040420a
push eax
lea ecx, [ebp - 0x58]
call fcn.0041548f
mov byte [ebp - 4], 5
mov edx, eax
lea ecx, [ebp - 0x34]
call fcn.004065a4
lea eax, [ebp - 0x34]
mov dword [esp], 0x46a4fc
push eax
call fcn.0042906d
int3
Function at 0x40b967
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40b98e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403556
jmp 0x40ba43
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x40b9b0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40b9b2
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x40ba37
jg 0x40b9c7
test esi, esi
je 0x40ba37
test ecx, ecx
jl 0x40ba10
jg 0x40b9d1
test eax, eax
je 0x40ba10
cmp edi, ecx
jg 0x40b9e5
jl 0x40b9db
cmp esi, eax
jae 0x40b9e5
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.004277d0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x40ba13
mov edx, dword [ebp + 8]
test edi, edi
jl 0x40ba37
jg 0x40ba1d
test esi, esi
je 0x40ba37
cmp dword [ebx + 0x4c], 0
je 0x40ba37
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.0042de16
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc