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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x47129c]
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 0x40ca41
cmp byte [esi + 0x3d], bl
je 0x40ca41
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40ca7a
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 0x40ca52
sub eax, 1
je 0x40ca55
dec eax
sub eax, 1
jne 0x40ca7a
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a4ae
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40ca72
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00432917
add esp, 0x10
cmp edi, eax
jne 0x40ca7a
cmp byte [esi + 0x3d], bl
sete al
jmp 0x40ca43
xor al, al
jmp 0x40ca43

Function at 0x40cf16
Capabilities:
Delete directory

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xb8
push ebx
push esi
mov esi, dword [ebp + 0x78]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x40cf30
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne cl
xor ebx, ebx
mov byte [ebp + 0x7b], cl
test eax, eax
je 0x40d00a
push ebx
call fcn.0041205e
mov ecx, eax
call fcn.0041233c
test al, al
je 0x40d007
push esi
lea ecx, [ebp + 0x50]
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
call fcn.00404453
push 1
lea ecx, [ebp - 0x48]
call fcn.00403308
lea eax, [ebp - 0x48]
push str.Deleted__
push eax
call fcn.00402636
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004025f0
mov eax, dword [ebp + 0x64]
add esp, 0x10
cmp eax, 0x10
jb 0x40cfcf
mov ecx, dword [ebp + 0x50]
inc eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x68], ecx
cmp eax, 0x1000
jb 0x40cfc6
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x68]
push eax
call fcn.00404387
mov eax, dword [ebp + 0x6c]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x68]
push eax
push ecx
call fcn.0042a24a
pop ecx
pop ecx
lea eax, [ebp - 0x48]
push str.__directory
push eax
call fcn.00402636
pop ecx
pop ecx
lea eax, [ebp - 0x48]
push eax
push str.FileUtils::deleteDirectory
push 0x2ab
push str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u411_893_install_src_windows_common_FileUtils.cpp
push ebx
call fcn.0041205e
mov ecx, eax
call fcn.0040712f
lea ecx, [ebp - 0x48]
call fcn.00404073
mov cl, byte [ebp + 0x7b]
test cl, cl
jne 0x40d021
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d646
add esp, 4
test al, al
je 0x40d023
mov bl, 1
pop esi
mov al, bl
pop ebx
add ebp, 0x70
leave
ret
Function at 0x40d2a1
Capabilities:
Delete file

Disassembly:
push 0x98
mov eax, 0x44f548
call fcn.0042a4ee
mov esi, dword [ebp + 0xc]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x40d2bd
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40d36a
xor edi, edi
push edi
call fcn.0041205e
mov ecx, eax
call fcn.0041233c
test al, al
je 0x40d366
sub esp, 0x18
mov ecx, esp
mov dword [ebp + 0xc], esp
push esi
mov dword [ecx], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
call fcn.00404453
push 1
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], edi
call fcn.00403308
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 1
push str.Deleted__
push eax
call fcn.00402636
pop ecx
pop ecx
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 2
call fcn.00402805
mov esi, eax
push str.__file
push esi
call fcn.00402636
pop ecx
pop ecx
push esi
push str.FileUtils::_anonymous_namespace::deleteFileImpl
push 0x278
push str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u411_893_install_src_windows_common_FileUtils.cpp
push edi
call fcn.0041205e
mov ecx, eax
call fcn.0040712f
lea ecx, [ebp - 0xa4]
call fcn.00404073
mov al, 1
jmp 0x40d379
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d646
add esp, 4
call fcn.0042a4bc
ret

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

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

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

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 0x10
jb 0x40d638
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
ret
Function at 0x40dcab
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 0x40dcc5
jl 0x40dcbc
test ebx, ebx
jne 0x40dcc5
xor eax, eax
xor edx, edx
jmp 0x40dd8a
cmp dword [esi + 0x38], 0
je 0x40dcdb
push ebp
push ebx
push dword [esp + 0x1c]
call fcn.0040670e
jmp 0x40dd8a
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x40dd21
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x40dd21
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [esp + 0x18]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.004054a7
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 0x40dd29
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
cmp dword [esi + 0x4c], 0
je 0x40dd80
mov ecx, esi
call fcn.0040cb99
mov ecx, dword [esp + 0x18]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x40dd6b
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.004322ab
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 0x40dd80
jmp 0x40dd3c
test edx, edx
je 0x40dd80
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.004322ab
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 0x40eb9e
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x148]
sub esp, 0x148
push 0xffffffffffffffff
push 0x44f871
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x47129c]
xor eax, ebp
mov dword [ebp + 0x144], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x150]
lea eax, [ebp + 0x40]
mov edi, dword [ebp + 0x154]
mov ebx, dword [ebp + 0x158]
push 0x104
push 0
push eax
mov dword [ebp - 0x10], esi
call fcn.0042d0c0
add esp, 0xc
lea eax, [ebp + 0x40]
xor edx, edx
mov ecx, 0x8000
push eax
xor eax, eax
cmp ebx, 1
push edx
cmove eax, ecx
push edx
or eax, edi
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x40ec74
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp + 0x28]
call fcn.004033eb
lea eax, [ebp + 0x28]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.0040d7e7
pop ecx
pop ecx
lea ecx, [ebp + 0x28]
call fcn.0040524f
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x144]
xor ecx, ebp
call fcn.0042a4ae
add ebp, 0x148
leave
ret
lea ecx, [ebp - 0xc8]
call fcn.00403810
push dword [ebp - 0x10]
and dword [ebp - 4], 0
mov ecx, eax
push 0x454b7c
push ebx
push str.__mode
push edi
push 0x411213
push str.SHGetFolderPath_0x
call fcn.00402621
mov ecx, eax
call fcn.0040e895
mov ecx, eax
call fcn.00409f08
mov ecx, eax
call fcn.00402621
mov ecx, eax
call fcn.00409f08
mov ecx, eax
call fcn.00402621
push eax
lea ecx, [ebp - 0x30]
call fcn.00418f70
mov esi, eax
push 0x1f5
push str.SysInfo::SHGetFolderPathAdapter
push str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u411_893_install_src_windows_common_SysInfo.cpp
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004036cc
push eax
lea eax, [ebp]
push esi
push eax
call fcn.0040e4d4
add esp, 0xc
lea eax, [ebp]
push 0x46b6d0
push eax
call fcn.0042d29c
int3
Function at 0x410ec6
Capabilities:
Get common file path

Disassembly:
push 0x38
mov eax, 0x44fb30
call fcn.0042a521
mov eax, dword [ebp + 8]
mov edi, 0x104
push edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], eax
call fcn.0042a21a
mov ebx, eax
mov dword [ebp - 0x40], ebx
lea esi, [ebx + 0x104]
push esi
push ebx
mov dword [ebp - 0x38], esi
call fcn.0040768a
add esp, 0xc
mov dword [ebp - 0x3c], esi
and dword [ebp - 4], 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, ebx
cmp eax, 0x104
jbe 0x410f38
lea ecx, [ebp - 0x2d]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.004075be
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x40]
sub eax, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [ebp - 0x38]
mov edi, ebx
push ebx
lea ecx, [ebp - 0x28]
call fcn.004033eb
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
push ebx
mov byte [ebp - 4], 1
call fcn.0040d7e7
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
call fcn.0040524f
test edi, edi
je 0x410f8e
sub esi, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], esi
cmp esi, 0x1000
jb 0x410f85
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00404387
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x2c]
pop ecx
pop ecx
push esi
push edi
call fcn.0042a24a
pop ecx
pop ecx
mov eax, ebx
call fcn.0042a4d0
ret

Function at 0x41160e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x24
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.0042d0c0
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x24], 9
sete al
leave
ret
Function at 0x41414d
Capabilities:
Create pipe

Disassembly:
sub esp, 0xc
and dword [esp + 4], 0
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], 0xc
push 0
push eax
xor ebp, ebp
lea edi, [esi + 0xc8]
inc ebp
push edi
lea ebx, [esi + 0xc4]
mov dword [esp + 0x24], ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x413ce9
mov eax, dword [edi]
or dword [esi + 0x9c], 0x100
push 0
push ebp
push dword [ebx]
mov dword [esi + 0xb0], eax
mov dword [esi + 0xac], eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
xor ebx, ebx
inc ebx
push ebx
mov dword [esi + 0x50], ebx
call fcn.0041205e
mov ecx, eax
call fcn.0041233c
test al, al
je 0x413ce5
push str.Create_pipe_SUCCESS
push str.Executor::createPipe
push 0xe8
push str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u411_893_install_src_windows_common_Executor.cpp
push ebx
call fcn.0041205e
mov ecx, eax
call fcn.00405fbe
mov al, bl
jmp 0x413d1d
push ebp
call fcn.0041205e
mov ecx, eax
call fcn.0041233c
test al, al
je 0x413d1b
push str.Create_pipe_FAILURE
push str.Executor::createPipe
push 0xeb
push str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u411_893_install_src_windows_common_Executor.cpp
push ebp
call fcn.0041205e
mov ecx, eax
call fcn.00405fbe
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push esi
push edi
mov edi, ecx
push 0x44
push 0
lea esi, [edi + 0x70]
push esi
call fcn.0042d0c0
push 0x10
lea eax, [edi + 0x60]
mov dword [esi], 0x44
push 0
push eax
call fcn.0042d0c0
add esp, 0x18
cmp dword [edi + 0xb4], 1
jne 0x414194
or dword [edi + 0x9c], 1
xor eax, eax
mov word [edi + 0xa0], ax
mov dword [edi + 0x54], 0x8000000
cmp byte [edi + 0xc1], 0
je 0x4141a6
mov ecx, edi
pop edi
pop esi
jmp 0x413c4f
pop edi
pop esi
ret
Function at 0x4142cd
Capabilities:
Create process on windows

Disassembly:
push 0x20
mov eax, 0x450395
call fcn.0042a521
mov esi, ecx
xor ebx, ebx
lea edi, [esi + 0x30]
inc ebx
push ebx
call fcn.0041205e
mov ecx, eax
call fcn.0041233c
test al, al
je 0x414331
push edi
lea eax, [ebp - 0x28]
push str.Executor.exec__:
push eax
call fcn.0040286b
add esp, 0xc
and dword [ebp - 4], 0
push eax
push str.Executor::startExecution
push 0x93
push str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u411_893_install_src_windows_common_Executor.cpp
push ebx
call fcn.0041205e
mov ecx, eax
call fcn.00412348
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040524f
mov ecx, esi
call fcn.0041414d
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x414342
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
add eax, ecx
cmp dword [edi + 0x14], 0x10
jb 0x41434f
mov edi, dword [edi]
lea ecx, [ebp - 0x29]
push ecx
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040bd67
lea eax, [ebp - 0x29]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x29], 0
call fcn.0040c3c3
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x41437a
mov ecx, dword [esi]
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x70]
push eax
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 ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
lea ecx, [ebp - 0x1c]
setne bl
call fcn.00407314
mov al, bl
call fcn.0042a4d0
ret
Function at 0x417d5f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0xac
push 0xffffffffffffffff
push 0x450d0c
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x47129c]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28], edi
mov esi, dword [ebp + 0xb4]
lea ecx, [ebp + 0x78]
mov ebx, dword [ebp + 0xb8]
mov eax, dword [ebp + 0xbc]
mov dword [ebp - 0x18], esi
push ebx
mov dword [ebp - 0x18], eax
call fcn.004177a5
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x88], eax
je 0x417dff
push eax
lea eax, [ebp + 0x78]
push eax
push edi
lea ecx, [ebp + 0x3c]
call fcn.00417821
push dword [ebp - 0x18]
lea ecx, [ebp + 0x90]
mov byte [ebp - 4], 1
push ecx
push esi
mov ecx, eax
call fcn.00417d5f
lea ecx, [ebp + 0x3c]
call fcn.0041799d
jmp 0x417e96
mov ecx, eax
mov dword [ebp - 0x1c], eax
mov edx, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 2
mov eax, edx
sub eax, ecx
cmp ecx, edx
mov dword [ebp - 0x14], eax
sete byte [ebp - 0xd]
xor eax, eax
cmp ecx, edx
cmove ecx, eax
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x417e2e
mov eax, dword [ebx]
lea edx, [ebp - 0x14]
push edx
push ecx
push dword [ebp - 0x18]
push 0
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x14]
mov edi, eax
cmp edi, 0xea
je 0x417e5c
cmp byte [ebp - 0xd], 0
je 0x417e74
test edi, edi
jne 0x417ed0
test ecx, ecx
je 0x417e78
lea eax, [ebp - 0xd]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.004075be
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
jmp 0x417e10
test edi, edi
jne 0x417ed0
lea eax, [ebp - 0xd]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.004075be
mov eax, dword [ebp - 0x24]
mov dword [esi], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 8], eax
lea ecx, [ebp + 0x90]
call fcn.0040524f
lea ecx, [ebp + 0x78]
call fcn.0040524f
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa8]
xor ecx, ebp
call fcn.0042a4ae
add ebp, 0xac
leave
ret 0xc
push str.query_value
lea ecx, [ebp + 0x60]
call fcn.004033eb
lea ecx, [ebp]
call fcn.004035d6
mov ecx, dword [ebp - 0x28]
push eax
push ebx
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.00417b0d
push eax
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 5
call fcn.0040e7af
push str.System_error
push edi
push dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x38]
call fcn.0041863a
mov esi, eax
push 0x12b
push str.Registry::getValue
push str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u411_893_install_src_windows_common_Registry.cpp
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
call fcn.004036cc
push eax
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.004073ff
add esp, 0xc
lea eax, [ebp + 0x18]
push 0x469fa8
push eax
call fcn.0042d29c
int3
Function at 0x418958
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x10c
mov eax, 0x450fe7
call fcn.0042a521
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
call fcn.004188a1
mov ebx, eax
test ebx, ebx
je 0x418a45
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push dword [esi + 0x38]
call edi
test eax, eax
jne 0x4189fb
push str.cannot_load_resource
lea ecx, [ebp - 0x28]
call fcn.004033eb
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.004188bf
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 5
call fcn.0040e7af
push str.System_error
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x80]
call fcn.0041863a
mov esi, eax
push 0x46
push str.Resource::getPtr
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x74]
push str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u411_893_install_src_windows_common_Resources.cpp
jmp 0x418aaf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [esi + 0x34], 6
mov edi, eax
jne 0x418a2c
mov edx, dword [esi + 0x18]
mov ecx, edi
and edx, 0xf
jbe 0x418a22
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
sub edx, 1
jne 0x418a14
movzx eax, word [ecx]
lea edi, [ecx + 2]
add eax, eax
jmp 0x418a36
push ebx
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x68]
mov dword [ecx], eax
mov eax, edi
call fcn.0042a4d0
ret 4
push str.cannot_find_resource
lea ecx, [ebp - 0x28]
call fcn.004033eb
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.004188bf
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.0040e7af
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 - 0x118]
push eax
lea ecx, [ebp - 0x74]
call fcn.0041863a
mov esi, eax
push 0x41
push str.Resource::getPtr
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
push str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u411_893_install_src_windows_common_Resources.cpp
call fcn.004036cc
push eax
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.004073ff
add esp, 0xc
lea eax, [ebp - 0x4c]
push 0x469fa8
push eax
call fcn.0042d29c
int3
Function at 0x422da0
Capabilities:
Read file on windows

Disassembly:
push 0x2c
mov eax, 0x452a5c
call fcn.0042a4ee
push 0x458748
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
call fcn.00422570
add esp, 0xc
mov cl, byte [eax + 4]
mov edi, dword [eax]
mov byte [ebp - 0xd], cl
mov byte [eax + 4], bl
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], cl
xor esi, esi
inc esi
mov dword [ebp - 4], esi
cmp byte [ebp - 0x1c], bl
je 0x422dea
push dword [ebp - 0x20]
mov byte [ebp - 0x1c], bl
call fcn.0044d741
pop ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0xe]
mov byte [ebp - 4], 2
push eax
push 0x100001
lea ecx, [ebp - 0x24]
call fcn.004075be
push edi
push 0x100000
push esi
mov esi, dword [ebp - 0x24]
push esi
call fcn.004322ab
mov ebx, eax
add esp, 0x10
cmp ebx, 0x100000
ja 0x422ebb
push edi
call fcn.0043975d
pop ecx
test eax, eax
je 0x422e3e
push 0x133
jmp 0x422ec0
push edi
call fcn.00439731
pop ecx
test eax, eax
jne 0x422e50
push 0x13b
jmp 0x422ec0
push ebx
push esi
call fcn.00423631
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xe]
push eax
lea eax, [esi + ebx]
push eax
push esi
call fcn.004091dc
test esi, esi
je 0x422e9e
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x422e95
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404387
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
pop ecx
pop ecx
push eax
push esi
call fcn.0042a24a
pop ecx
pop ecx
cmp byte [ebp - 0xd], 0
mov dword [ebp - 4], 3
je 0x422eb2
push edi
call fcn.0044d741
pop ecx
mov eax, dword [ebp + 8]
call fcn.0042a4bc
ret
push 0xc8
lea ecx, [ebp - 0x38]
call fcn.00419ef0
push 0x46d018
lea eax, [ebp - 0x38]
push eax
call fcn.0042d29c
int3
Function at 0x4265c7
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, 0x7fffffff
push edi
mov edi, dword [esp + 0x24]
test edi, edi
jl 0x42664b
jg 0x4265f4
test esi, esi
je 0x42664b
test edi, edi
jg 0x4265f4
jl 0x4265f0
cmp esi, ebp
jae 0x4265f4
mov eax, esi
jmp 0x4265f6
mov eax, ebp
and dword [esp + 0x1c], 0
cmp dword [esp + 0x14], 0xffffffff
je 0x42663c
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x426626
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x426646
jmp 0x42663c
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x426637
add ebx, eax
cdq
sub esi, eax
sbb edi, edx
jmp 0x4265dc
cmp eax, 0xffffffff
jne 0x426646
call fcn.004310a0
cmp dword [eax], 4
je 0x4265dc
or eax, 0xffffffff
jmp 0x42664d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x428683
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push 4
pop edx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4597b8]
sub edx, 1
jne 0x42868a
ret

Function at 0x440d2e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00440ba4

Function at 0x4474a4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00446ff7

Function at 0x44d860
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44d88d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44d88d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret