joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ca2
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp dword [ebp + 0x10], eax
sete al
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x404dca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], esi
jne 0x404ce9
cmp eax, 0x50
je 0x404ce1
cmp eax, 0xb7
jne 0x404ce9
xor esi, esi
inc esi
jmp 0x404dca
cmp eax, 3
jne 0x404db9
movzx eax, word [edi]
mov edx, esi
mov ecx, edi
test ax, ax
je 0x404db2
push 0x5c
mov ebx, eax
pop edi
cmp bx, di
jne 0x404d0e
mov edx, ecx
add ecx, 2
movzx eax, word [ecx]
mov ebx, eax
test ax, ax
jne 0x404d07
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], edx
test edx, edx
je 0x404db2
push esi
xor eax, eax
push edi
mov word [edx], ax
call fcn.0040241c
mov esi, eax
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [eax], cx
test esi, esi
jns 0x404d67
push edi
push ebx
push str.failed_to_create_directory_while_copying_file:__ls_to:__ls
push esi
push 0x13
push 4
push 0x405
push str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
call fcn.004012a1
add esp, 0x20
jmp 0x404dca
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x404dca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x404d8d
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x404dca
push esi
push 0x40a
push str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
call fcn.0040129e
push edi
push ebx
push str.failed_to_copy_file:__ls_to:__ls
push esi
push 0x13
push 4
push 0x40a
jmp 0x404d58
mov esi, 0x80070003
jmp 0x404dca
test eax, eax
jg 0x404dc1
mov esi, eax
jmp 0x404dca
movzx esi, ax
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x404e55
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
push eax
push ebx
xor esi, esi
call fcn.004050e3
test eax, eax
je 0x404f15
test byte [ebp - 4], 7
push edi
mov edi, 0x80070000
je 0x404eca
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x404eca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x404ea5
movzx esi, si
or esi, edi
test esi, esi
jns 0x404eca
push esi
push 0x57a
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
push edi
call fcn.0040129e
push ebx
push str.Failed_to_remove_attributes_from_file:__ls
push esi
push 0x13
push 5
push 0x57a
jmp 0x404f0b
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404f14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x404ee8
movzx esi, si
or esi, edi
test esi, esi
jns 0x404f14
push esi
push 0x580
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
push edi
call fcn.0040129e
push ebx
push str.Failed_to_delete_file:__ls
push esi
push 0x13
push 5
push 0x580
push edi
call fcn.004012a1
add esp, 0x1c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x404f1d
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
xor esi, esi
cmp dword [ebp + 0x10], ebx
setne bl
cmp dword [ebp + 0x14], esi
je 0x404f35
or ebx, 2
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x405071
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [ebp + 0x10], esi
jne 0x404f6d
cmp edi, 0x50
je 0x404f65
cmp edi, 0xb7
jne 0x404f6d
xor esi, esi
inc esi
jmp 0x405070
cmp edi, 2
jne 0x404f86
push esi
push dword [ebp + 8]
call fcn.004050e3
test eax, eax
je 0x405067
push 3
pop edi
cmp edi, 3
jne 0x40505f
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov edx, edi
movzx eax, word [edi]
test ax, ax
je 0x405058
push 0x5c
mov edi, eax
pop esi
cmp di, si
jne 0x404fae
mov ecx, edx
add edx, 2
movzx eax, word [edx]
mov edi, eax
test ax, ax
jne 0x404fa7
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push 0
pop esi
test ecx, ecx
je 0x405058
push esi
xor eax, eax
push edi
mov word [ecx], ax
call fcn.0040241c
mov esi, eax
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [eax], cx
test esi, esi
jns 0x405001
push edi
push dword [ebp + 8]
push str.failed_to_create_directory_while_moving_file:__ls_to:__ls
push esi
push 0x13
push 4
push 0x485
push str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
jmp 0x40504e
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x405070
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x405027
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x405070
push esi
push 0x48a
mov ebx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
push ebx
call fcn.0040129e
push edi
push dword [ebp + 8]
push str.failed_to_move_file:__ls_to:__ls
push esi
push 0x13
push 4
push 0x48a
push ebx
call fcn.004012a1
add esp, 0x20
jmp 0x405070
mov esi, 0x80070003
jmp 0x405070
test edi, edi
jg 0x405067
mov esi, edi
jmp 0x405070
movzx esi, di
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10

Function at 0x405174
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
xor ebx, ebx
and dword [ebp - 4], esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4051f8
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push edi
add eax, ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4051c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xea
jne 0x4051b7
xor esi, esi
jmp 0x4051c8
test esi, esi
jle 0x4051c6
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4051d2
add ebx, dword [ebp - 4]
sub edi, dword [ebp - 4]
jne 0x405189
jmp 0x4051f8
push esi
mov ebx, 0x2f2
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
push ebx
push edi
call fcn.0040129e
push str.Failed_to_read_data_from_file_handle.
push esi
push 0x13
push 5
push ebx
push edi
call fcn.004012a1
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x405811
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x40587b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40584a
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x405851
mov esi, 0x80004005
push ebx
push esi
mov ebx, 0x1e9
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
push ebx
push edi
call fcn.0040129e
push str.Failed_to_get_size_of_file.
push esi
push 0x13
push 5
push ebx
push edi
call fcn.004012a1
add esp, 0x18
pop ebx
jmp 0x405886
mov ecx, dword [ebp - 8]
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
mov dword [edi + 4], ecx
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x40588e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov esi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x4058ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4058ce
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x4058ff
push esi
push 0xa8
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
push edi
call fcn.0040129e
push ebx
push str.failed_to_get_version_info_for_file:__ls
push esi
push 0x13
push 4
push 0xa8
push edi
call fcn.004012a1
add esp, 0x1c
jmp 0x4059fc
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x405937
mov esi, 0x8007000e
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
push esi
push 0xac
push edi
call fcn.0040129e
push ebx
push str.failed_to_allocate_version_info_for_file:__ls
push esi
push 0x13
push 4
push 0xac
jmp 0x4058f1
push eax
push edi
push dword [ebp - 4]
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40598b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40595d
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x40598b
push esi
push 0xb0
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
push edi
call fcn.0040129e
push ebx
push str.failed_to_get_version_info_for_file:__ls
push esi
push 0x13
push 4
push 0xb0
push edi
call fcn.004012a1
add esp, 0x1c
jmp 0x4059f3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x478aec
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4059e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4059bb
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x4059e0
push esi
push 0xb5
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
push edi
call fcn.0040129e
push ebx
push str.failed_to_get_version_value_for_file:__ls
push esi
push 0x13
push 4
push 0xb5
jmp 0x405980
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [edx + 0xc]
mov dword [ecx], edx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x405c1e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
xor ebx, ebx
and dword [ebp - 4], esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x405c96
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push edi
add eax, ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x405c66
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x405c64
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x405c70
add ebx, dword [ebp - 4]
sub edi, dword [ebp - 4]
jne 0x405c33
jmp 0x405c96
push esi
mov ebx, 0x335
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
push ebx
push edi
call fcn.0040129e
push str.Failed_to_write_data_to_file_handle.
push esi
push 0x13
push 5
push ebx
push edi
call fcn.004012a1
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x406884
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0
je 0x406913
lea eax, [ebp - 4]
push eax
push dword [edi]
call fcn.0040429c
mov esi, eax
test esi, esi
jns 0x4068bd
push str.Failed_to_get_max_length_of_input_buffer.
push esi
push 0x20
push 5
push 0x417
jmp 0x4069d1
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], ebx
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
test ebx, ebx
jne 0x40693c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4068e9
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4068f0
mov esi, 0x80004005
push esi
mov ebx, 0x424
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutilpathutil.cpp
push ebx
push edi
call fcn.0040129e
push str.Failed_to_get_system_directory_path_with_default_size.
push esi
push 0x20
push 5
push ebx
push edi
jmp 0x4069d6
mov ebx, 0x105
push ebx
push edi
mov dword [ebp - 8], ebx
call fcn.00403471
mov esi, eax
test esi, esi
jns 0x4068c3
push str.Failed_to_allocate_space_for_system_directory.
push esi
push 0x20
push 5
push 0x420
jmp 0x4069d1
cmp ebx, dword [ebp - 8]
jbe 0x4069b6
push ebx
push edi
call fcn.00403471
mov esi, eax
test esi, esi
jns 0x40695f
push str.Failed_to_realloc_system_directory_path.
push esi
push 0x20
push 5
push 0x429
jmp 0x4069d1
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4069a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x406983
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x40698a
mov esi, 0x80004005
mov ebx, 0x42e
push esi
push ebx
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutilpathutil.cpp
push edi
call fcn.0040129e
push str.Failed_to_get_system_directory_path_with_returned_size.
jmp 0x406907
cmp eax, ebx
jbe 0x4069b6
mov esi, 0x8007007a
mov ebx, 0x432
jmp 0x40698f
push edi
call fcn.00405cbf
mov esi, eax
test esi, esi
jns 0x4069de
push str.Failed_to_terminate_system_directory_path_with_backslash.
push esi
push 0x20
push 5
push 0x437
push str.d:_awixwix_srclibsdutilwixtoolset.dutilpathutil.cpp
call fcn.004012a1
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x4069e7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp dword [ebx], 0
je 0x406a76
lea eax, [ebp - 4]
push eax
push dword [ebx]
call fcn.0040429c
mov esi, eax
test esi, esi
jns 0x406a20
push str.Failed_to_get_max_length_of_input_buffer.
push esi
push 0x20
push 5
push 0x44a
jmp 0x406b36
mov edi, dword [ebp - 4]
mov dword [ebp - 8], edi
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
mov edi, eax
test edi, edi
jne 0x406a9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x406a4c
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x406a53
mov esi, 0x80004005
push esi
mov ebx, 0x457
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutilpathutil.cpp
push ebx
push edi
call fcn.0040129e
push str.Failed_to_get_system_wow64_directory_path_with_default_size.
push esi
push 0x20
push 5
push ebx
push edi
jmp 0x406b3b
mov edi, 0x105
push edi
push ebx
mov dword [ebp - 8], edi
call fcn.00403471
mov esi, eax
test esi, esi
jns 0x406a26
push str.Failed_to_allocate_space_for_system_wow64_directory.
push esi
push 0x20
push 5
push 0x453
jmp 0x406b36
inc edi
cmp edi, dword [ebp - 8]
jbe 0x406b1b
push edi
push ebx
call fcn.00403471
mov esi, eax
test esi, esi
jns 0x406ac3
push str.Failed_to_realloc_system_wow64_directory_path.
push esi
push 0x20
push 5
push 0x45e
jmp 0x406b36
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x406b0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x406ae7
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x406aee
mov esi, 0x80004005
mov ebx, 0x463
push esi
push ebx
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutilpathutil.cpp
push edi
call fcn.0040129e
push str.Failed_to_get_system_wow64_directory_path_with_returned_size.
jmp 0x406a6a
inc eax
cmp eax, edi
jbe 0x406b1b
mov esi, 0x8007007a
mov ebx, 0x469
jmp 0x406af3
push ebx
call fcn.00405cbf
mov esi, eax
test esi, esi
jns 0x406b43
push str.Failed_to_terminate_system_wow64_directory_path_with_backslash.
push esi
push 0x20
push 5
push 0x46e
push str.d:_awixwix_srclibsdutilwixtoolset.dutilpathutil.cpp
call fcn.004012a1
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x4079cb
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
cmp dword [ebx], 0
je 0x407a73
lea eax, [ebp - 4]
push eax
push dword [ebx]
call fcn.0040429c
mov esi, eax
test esi, esi
jns 0x407a12
push str.Failed_to_get_max_length_of_input_buffer.
push esi
push 0x3c
push 5
push 0x25
push str.d:_awixwix_srclibsdutilwixtoolset.dutilenvutil.cpp
call fcn.004012a1
add esp, 0x18
jmp 0x407b46
mov edi, dword [ebp - 4]
mov dword [ebp - 8], edi
push edi
push dword [ebx]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
jne 0x407a97
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x407a41
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x407a48
mov esi, 0x80004005
push esi
push 0x34
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutilenvutil.cpp
push edi
call fcn.0040129e
push dword [ebp + 8]
push str.Failed_to_expand_environment_variables_in_string:__ls
push esi
push 0x3c
push 5
push 0x34
push edi
call fcn.004012a1
add esp, 0x1c
jmp 0x407b46
push 0x40
pop edi
push edi
push ebx
mov dword [ebp - 8], edi
call fcn.00403471
mov esi, eax
test esi, esi
jns 0x407a18
push str.Failed_to_allocate_space_for_expanded_path.
push esi
push 0x3c
push 5
push 0x2e
jmp 0x407a00
cmp dword [ebp - 8], edi
jae 0x407b3d
push edi
push ebx
mov dword [ebp - 8], edi
call fcn.00403471
mov esi, eax
test esi, esi
jns 0x407ac1
push str.Failed_to_re_allocate_more_space_for_expanded_path.
push esi
push 0x3c
push 5
push 0x3a
jmp 0x407a00
push edi
push dword [ebx]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
jne 0x407b13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x407aea
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x407af1
mov esi, 0x80004005
push esi
push 0x3f
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutilenvutil.cpp
push edi
call fcn.0040129e
push dword [ebp + 8]
push str.Failed_to_expand_environment_variables_in_string:__ls
push esi
push 0x3c
push 5
push 0x3f
jmp 0x407a65
cmp dword [ebp - 8], edi
jae 0x407b3d
mov esi, 0x8007007a
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutilenvutil.cpp
push esi
push 0x43
push edi
call fcn.0040129e
push str.Failed_to_allocate_buffer_for_expanded_string.
push esi
push 0x3c
push 5
push 0x43
push edi
jmp 0x407a05
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x407b46
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40ef76
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x40efcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x40efa3
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
js 0x40efaa
mov ebx, 0x80004005
push ebx
mov esi, 0x13a
mov edi, str.d:_awixwix_src_burnengine_section.cpp
push esi
push edi
call fcn.0040129e
push str.Failed_to_get_module_handle_to_process.
push ebx
push 0x100
push 5
push esi
jmp 0x40f180
mov eax, 0x5a4d
cmp ax, word [edi]
je 0x40f008
mov esi, 0x8007000d
mov edi, str.d:_awixwix_src_burnengine_section.cpp
push esi
push 0x144
push edi
mov ebx, esi
call fcn.0040129e
push str.Failed_to_find_valid_DOS_image_header_in_buffer.
push esi
push 0x100
push 5
push 0x144
jmp 0x40f180
mov ecx, dword [edi + 0x3c]
cmp dword [ecx + edi], 0x4550
je 0x40f043
mov esi, 0x8007000d
mov edi, str.d:_awixwix_src_burnengine_section.cpp
push esi
push 0x14f
push edi
mov ebx, esi
call fcn.0040129e
push str.Failed_to_find_valid_NT_image_header_in_buffer.
push esi
push 0x100
push 5
push 0x14f
jmp 0x40f180
movzx esi, word [ecx + edi + 0x14]
add ecx, 0x18
add esi, ecx
push 8
add esi, edi
push 0x47cd54
push esi
mov dword [ebp - 4], esi
call fcn.004529e0
add esp, 0xc
test eax, eax
je 0x40f08d
mov eax, dword [edi + 0x3c]
movzx ecx, word [eax + edi + 6]
xor eax, eax
inc eax
cmp eax, ecx
jae 0x40f0d1
add esi, 0x28
inc eax
mov dword [ebp - 4], esi
cmp dword [esi], 0x7869772e
jne 0x40f071
cmp dword [esi + 4], 0x6e727562
jne 0x40f071
cmp dword [esi + 0x10], 0x34
jae 0x40f100
mov esi, 0x8007000d
mov edi, str.d:_awixwix_src_burnengine_section.cpp
push esi
push 0x174
push edi
mov ebx, esi
call fcn.0040129e
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push str.Failed_to_read_section_info__data_too_short:__u
push esi
push 0x100
push 5
push 0x174
push edi
call fcn.004012a1
add esp, 0x1c
jmp 0x40f189
mov esi, 0x8007000d
mov edi, str.d:_awixwix_src_burnengine_section.cpp
push esi
push 0x168
push edi
mov ebx, esi
call fcn.0040129e
push str.Failed_to_find_Burn_section.
push esi
push 0x100
push 5
push 0x168
jmp 0x40f180
mov edx, dword [esi + 0xc]
add edx, edi
mov dword [ebp - 4], edx
cmp dword [edx + 4], 2
je 0x40f140
mov esi, 0x8007000d
mov edi, str.d:_awixwix_src_burnengine_section.cpp
push esi
push 0x17e
push edi
mov ebx, esi
call fcn.0040129e
mov eax, dword [ebp - 4]
push dword [eax + 4]
push str.Failed_to_read_section_info__unsupported_version:__08x
push esi
push 0x100
push 5
push 0x17e
jmp 0x40f0c3
mov esi, dword [ebp + 8]
mov ecx, ebx
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4 + 8]
jne 0x40f156
inc ecx
cmp ecx, 4
jne 0x40f145
jmp 0x40f189
mov esi, 0x8007000d
mov edi, str.d:_awixwix_src_burnengine_section.cpp
push esi
push 0x184
push edi
mov ebx, esi
call fcn.0040129e
push str.Bundle_guid_didnt_match_the_guid_in_the_PE_Header_in_memory.
push esi
push 0x100
push 5
push 0x184
push edi
call fcn.004012a1
add esp, 0x18
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x411d99
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
xor ebx, ebx
mov dword [ebp - 0x10], edi
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.00412436
mov esi, eax
test esi, esi
jns 0x411dd9
push str.Failed_to_initialize_file_search.
push esi
push 0x100
push 5
push 0x26f
jmp 0x411ec4
push ebx
lea eax, [ebp - 4]
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.0040bf1d
mov esi, eax
test esi, esi
jns 0x411e06
push str.Failed_to_format_variable_string.
push esi
push 0x100
push 5
push 0x274
jmp 0x411ec4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x411e89
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x411e71
cmp esi, 3
je 0x411e71
test esi, esi
je 0x411e85
jle 0x411e37
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x411e3e
mov esi, 0x80004005
push esi
push 0x280
mov ebx, str.d:_awixwix_src_burnengine_search.cpp
push ebx
call fcn.0040129e
push dword [edi + 0x14]
push dword [edi]
push str.Directory_search:__ls__failed_get_to_directory_attributes.__ls
push esi
push 0x100
push 5
push 0x280
push ebx
call fcn.004012a1
add esp, 0x20
jmp 0x411ed1
push dword [edi + 0x14]
push dword [edi]
push str.Directory_search:__ls__did_not_find_path:__ls
push 2
call fcn.0040ba47
add esp, 0x10
mov eax, ebx
jmp 0x411e9c
test al, 0x10
jne 0x411e99
push dword [edi + 0x14]
push dword [edi]
push str.Directory_search:__ls__found_file_at_path:__ls
jmp 0x411e7b
xor eax, eax
inc eax
push ebx
mov ecx, ebx
push ecx
push eax
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.0040cf8d
mov esi, eax
test esi, esi
jns 0x411ed1
push str.Failed_to_set_variable.
push esi
push 0x100
push 5
push 0x28e
push str.d:_awixwix_src_burnengine_search.cpp
call fcn.004012a1
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
call fcn.00412400
push dword [ebp - 4]
call fcn.0040432f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8