joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ba16
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x58]
push 0x44
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00447480
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x45ba48
mov eax, 0x46e904
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push str.__ls___ls
push eax
call fcn.00402acf
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x45ba84
push str.Failed_to_allocate_full_command_line.
push esi
push 0x23
push 5
push 0x160
push str.d:_awixwix_srclibsdutilwixtoolset.dutilprocutil.cpp
call fcn.00401228
add esp, 0x18
jmp 0x45bb0e
mov ax, word [ebp + 0x10]
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x44
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x2c], 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x45bb03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x45bacf
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x45bad6
mov esi, 0x80004005
push esi
mov ebx, 0x167
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutilprocutil.cpp
push ebx
push edi
call fcn.00401225
push dword [ebp - 4]
push str.Failed_to_create_process:__ls
push esi
push 0x23
push 5
push ebx
push edi
call fcn.00401228
add esp, 0x1c
xor ebx, ebx
jmp 0x45bb0e
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov dword [eax], ecx
cmp dword [ebp - 0x10], 0
je 0x45bb20
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], 0
je 0x45bb32
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 4], 0
je 0x45bb40
push dword [ebp - 4]
call fcn.0040367f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x45f5c7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push 0x49d6a4
push str.Msi.dll
call fcn.004018c0
mov esi, eax
test esi, esi
jns 0x45f60a
push str.Failed_to_load_Msi.DLL
push esi
push 0x36
push 5
push 0x99
push str.d:_awixwix_srclibsdutilwixtoolset.dutilwiutil.cpp
call fcn.00401228
add esp, 0x18
jmp 0x45f760
push 0x49d6d4
push 0x49d6d0
push dword [ebp - 4]
call fcn.00463bff
push str.MsiDeterminePatchSequenceW
push dword [0x49d6a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x49d688], 0
mov dword [0x49d6a8], eax
jne 0x45f640
mov dword [0x49d688], eax
push str.MsiDetermineApplicablePatchesW
push dword [0x49d6a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x49d68c], 0
mov dword [0x49d6ac], eax
jne 0x45f664
mov dword [0x49d68c], eax
push str.MsiEnumProductsExW
push dword [0x49d6a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x49d690], 0
mov dword [0x49d6b0], eax
jne 0x45f688
mov dword [0x49d690], eax
push str.MsiGetPatchInfoExW
push dword [0x49d6a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x49d694], 0
mov dword [0x49d6b4], eax
jne 0x45f6ac
mov dword [0x49d694], eax
push str.MsiGetProductInfoExW
push dword [0x49d6a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x49d698], 0
mov dword [0x49d6b8], eax
jne 0x45f6d0
mov dword [0x49d698], eax
push str.MsiSetExternalUIRecord
push dword [0x49d6a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x49d69c], 0
mov dword [0x49d6bc], eax
jne 0x45f6f4
mov dword [0x49d69c], eax
push str.MsiSourceListAddSourceExW
push dword [0x49d6a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x49d6a0], 0
mov dword [0x49d6c0], eax
jne 0x45f718
mov dword [0x49d6a0], eax
cmp dword [0x49d6c4], 0
jne 0x45f737
push str.MsiBeginTransactionW
push dword [0x49d6a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x49d6c4], eax
cmp dword [0x49d6c8], 0
jne 0x45f756
push str.MsiEndTransaction
push dword [0x49d6a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x49d6c8], eax
mov dword [0x49d6cc], 1
cmp dword [ebp - 4], 0
je 0x45f76e
push dword [ebp - 4]
call fcn.0040367f
mov eax, esi
pop esi
leave
ret
Function at 0x4624ef
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x49c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push ebx
or eax, 0x8000
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jns 0x46253d
push dword [ebp + 0xc]
push str.Failed_to_get_folder_path_for_CSIDL:__d
push esi
push 0x2c
push 5
push 0xb7
jmp 0x462586
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00402eaf
mov esi, eax
test esi, esi
jns 0x462569
lea eax, [ebp - 0x20c]
push eax
push str.Failed_to_copy_shell_folder_path:__ls
push esi
push 0x2c
push 5
push 0xba
jmp 0x462586
push edi
call fcn.00403cfd
mov esi, eax
test esi, esi
jns 0x462593
push dword [edi]
push str.Failed_to_backslash_terminate_shell_folder_path:__ls
push esi
push 0x2c
push 5
push 0xbd
push str.d:_awixwix_srclibsdutilwixtoolset.dutil_shelutil.cpp
call fcn.00401228
add esp, 0x1c
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00446806
leave
ret 8
Function at 0x462b4d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0046ce60
mov eax, dword [0x49c00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x1010], eax
xor esi, esi
mov eax, dword [ebp + 0x18]
xor edi, edi
mov dword [ebp - 0x1014], edx
xor ebx, ebx
mov dword [ebp - 0x1018], eax
cmp dword [ebp + 0x10], 0
jne 0x462b9b
cmp dword [ebp + 0x14], 0
jne 0x462b9b
mov eax, 0x1000
jmp 0x462bc6
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
sub eax, edi
sbb ecx, ebx
test ecx, ecx
jb 0x462bc0
ja 0x462bb2
cmp eax, 0x1000
jbe 0x462bc0
and dword [ebp - 0x1008], 0
mov eax, 0x1000
jmp 0x462bc6
mov dword [ebp - 0x1008], ecx
push 0
lea ecx, [ebp - 0x1008]
mov dword [ebp - 0x1008], eax
push ecx
push eax
lea eax, [ebp - 0x1004]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x462c58
mov eax, dword [ebp - 0x1008]
test eax, eax
je 0x462c11
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1010]
call fcn.00463f8f
mov esi, eax
test esi, esi
js 0x462c31
mov eax, dword [ebp - 0x1008]
add edi, eax
adc ebx, 0
cmp ebx, dword [ebp + 0x14]
ja 0x462c47
jb 0x462c22
cmp edi, dword [ebp + 0x10]
jae 0x462c47
test eax, eax
je 0x462c47
mov edx, dword [ebp - 0x1014]
jmp 0x462b88
push str.Failed_to_write_to_target.
push esi
push 0x13
push 5
push 0x35c
push str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
jmp 0x462c94
mov eax, dword [ebp - 0x1018]
test eax, eax
je 0x462c9c
mov dword [eax], edi
mov dword [eax + 4], ebx
jmp 0x462c9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x462c6f
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x462c76
mov esi, 0x80004005
push esi
mov ebx, 0x356
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
push ebx
push edi
call fcn.00401225
push str.Failed_to_read_from_source.
push esi
push 0x13
push 5
push ebx
push edi
call fcn.00401228
add esp, 0x18
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00446806
leave
ret 0x14
Function at 0x463019
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 0x463141
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], esi
jne 0x463060
cmp eax, 0x50
je 0x463058
cmp eax, 0xb7
jne 0x463060
xor esi, esi
inc esi
jmp 0x463141
cmp eax, 3
jne 0x463130
movzx eax, word [edi]
mov edx, esi
mov ecx, edi
test ax, ax
je 0x463129
push 0x5c
mov ebx, eax
pop edi
cmp bx, di
jne 0x463085
mov edx, ecx
add ecx, 2
movzx eax, word [ecx]
mov ebx, eax
test ax, ax
jne 0x46307e
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], edx
test edx, edx
je 0x463129
push esi
xor eax, eax
push edi
mov word [edx], ax
call fcn.00406305
mov esi, eax
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [eax], cx
test esi, esi
jns 0x4630de
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.00401228
add esp, 0x20
jmp 0x463141
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x463141
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x463104
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x463141
push esi
push 0x40a
push str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
call fcn.00401225
push edi
push ebx
push str.failed_to_copy_file:__ls_to:__ls
push esi
push 0x13
push 4
push 0x40a
jmp 0x4630cf
mov esi, 0x80070003
jmp 0x463141
test eax, eax
jg 0x463138
mov esi, eax
jmp 0x463141
movzx esi, ax
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4631cc
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.0046345a
test eax, eax
je 0x46328c
test byte [ebp - 4], 7
push edi
mov edi, 0x80070000
je 0x463241
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x463241
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x46321c
movzx esi, si
or esi, edi
test esi, esi
jns 0x463241
push esi
push 0x57a
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
push edi
call fcn.00401225
push ebx
push str.Failed_to_remove_attributes_from_file:__ls
push esi
push 0x13
push 5
push 0x57a
jmp 0x463282
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x46328b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x46325f
movzx esi, si
or esi, edi
test esi, esi
jns 0x46328b
push esi
push 0x580
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
push edi
call fcn.00401225
push ebx
push str.Failed_to_delete_file:__ls
push esi
push 0x13
push 5
push 0x580
push edi
call fcn.00401228
add esp, 0x1c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x463294
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 0x4632ac
or ebx, 2
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4633e8
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [ebp + 0x10], esi
jne 0x4632e4
cmp edi, 0x50
je 0x4632dc
cmp edi, 0xb7
jne 0x4632e4
xor esi, esi
inc esi
jmp 0x4633e7
cmp edi, 2
jne 0x4632fd
push esi
push dword [ebp + 8]
call fcn.0046345a
test eax, eax
je 0x4633de
push 3
pop edi
cmp edi, 3
jne 0x4633d6
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov edx, edi
movzx eax, word [edi]
test ax, ax
je 0x4633cf
push 0x5c
mov edi, eax
pop esi
cmp di, si
jne 0x463325
mov ecx, edx
add edx, 2
movzx eax, word [edx]
mov edi, eax
test ax, ax
jne 0x46331e
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push 0
pop esi
test ecx, ecx
je 0x4633cf
push esi
xor eax, eax
push edi
mov word [ecx], ax
call fcn.00406305
mov esi, eax
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [eax], cx
test esi, esi
jns 0x463378
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 0x4633c5
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4633e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x46339e
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x4633e7
push esi
push 0x48a
mov ebx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
push ebx
call fcn.00401225
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.00401228
add esp, 0x20
jmp 0x4633e7
mov esi, 0x80070003
jmp 0x4633e7
test edi, edi
jg 0x4633de
mov esi, edi
jmp 0x4633e7
movzx esi, di
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4634eb
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 0x46356f
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 0x46353f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xea
jne 0x46352e
xor esi, esi
jmp 0x46353f
test esi, esi
jle 0x46353d
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x463549
add ebx, dword [ebp - 4]
sub edi, dword [ebp - 4]
jne 0x463500
jmp 0x46356f
push esi
mov ebx, 0x2f2
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
push ebx
push edi
call fcn.00401225
push str.Failed_to_read_data_from_file_handle.
push esi
push 0x13
push 5
push ebx
push edi
call fcn.00401228
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x463b82
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 0x463bec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x463bbb
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x463bc2
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.00401225
push str.Failed_to_get_size_of_file.
push esi
push 0x13
push 5
push ebx
push edi
call fcn.00401228
add esp, 0x18
pop ebx
jmp 0x463bf7
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 0x463bff
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 0x463c70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x463c3f
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x463c70
push esi
push 0xa8
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
push edi
call fcn.00401225
push ebx
push str.failed_to_get_version_info_for_file:__ls
push esi
push 0x13
push 4
push 0xa8
push edi
call fcn.00401228
add esp, 0x1c
jmp 0x463d6d
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x463ca8
mov esi, 0x8007000e
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
push esi
push 0xac
push edi
call fcn.00401225
push ebx
push str.failed_to_allocate_version_info_for_file:__ls
push esi
push 0x13
push 4
push 0xac
jmp 0x463c62
push eax
push edi
push dword [ebp - 4]
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x463cfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x463cce
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x463cfc
push esi
push 0xb0
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
push edi
call fcn.00401225
push ebx
push str.failed_to_get_version_info_for_file:__ls
push esi
push 0x13
push 4
push 0xb0
push edi
call fcn.00401228
add esp, 0x1c
jmp 0x463d64
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x46f888
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x463d51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x463d2c
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x463d51
push esi
push 0xb5
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
push edi
call fcn.00401225
push ebx
push str.failed_to_get_version_value_for_file:__ls
push esi
push 0x13
push 4
push 0xb5
jmp 0x463cf1
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 0x463f8f
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 0x464007
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 0x463fd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x463fd5
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x463fe1
add ebx, dword [ebp - 4]
sub edi, dword [ebp - 4]
jne 0x463fa4
jmp 0x464007
push esi
mov ebx, 0x335
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
push ebx
push edi
call fcn.00401225
push str.Failed_to_write_data_to_file_handle.
push esi
push 0x13
push 5
push ebx
push edi
call fcn.00401228
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4669bb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
push esi
push dword [ebp + 0xc]
push 0xa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov edi, eax
test edi, edi
jne 0x466a21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4669ef
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4669f6
mov esi, 0x80004005
push esi
mov ebx, 0xbb
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_resrutil.cpp
push ebx
push edi
call fcn.00401225
push str.Failed_to_find_resource.
push esi
push 0x25
push 5
push ebx
push edi
call fcn.00401228
add esp, 0x18
jmp 0x466b03
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x466a68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x466a48
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x466a4f
mov esi, 0x80004005
push esi
mov ebx, 0xbe
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_resrutil.cpp
push ebx
push edi
call fcn.00401225
push str.Failed_to_load_resource.
jmp 0x466a0d
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x466ab2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x466a8f
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x466a96
mov esi, 0x80004005
push esi
mov ebx, 0xc3
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_resrutil.cpp
push ebx
push edi
call fcn.00401225
push str.Failed_to_get_size_of_resource.
jmp 0x466a0d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
test ecx, ecx
jne 0x466afe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x466adb
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x466ae2
mov esi, 0x80004005
push esi
mov ebx, 0xc7
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_resrutil.cpp
push ebx
push edi
call fcn.00401225
push str.Failed_to_lock_data_resource.
jmp 0x466a0d
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x467cc3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
push esi
push edi
push dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push str._ls.R
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
call fcn.00402acf
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x467d39
push str.Failed_to_create_resume_path.
push esi
push 0xf
push 5
push 0x313
push str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
call fcn.00401228
add esp, 0x18
test esi, esi
jns 0x467d39
push dword [ebp + 8]
push str.Failed_to_calculate_resume_path_from_working_path:__ls
push esi
push 0xf
push 5
push 0xce
push str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
call fcn.00401228
add esp, 0x1c
jmp 0x467e3d
push 0
push 0x80
push 4
push 0
push 4
push 0xc0000000
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x467d9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x467d71
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x467d78
mov esi, 0x80004005
push esi
mov edi, 0xd3
mov ebx, str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
push edi
push ebx
call fcn.00401225
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.Failed_to_create_resume_file:__ls
push esi
push 0xf
push 5
push edi
push ebx
jmp 0x467d2c
mov ecx, dword [ebp - 4]
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, ecx
push eax
lea eax, [ecx + ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x467de5
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
cmp dword [ebp - 8], 0
mov dword [ebp - 4], ecx
je 0x467dcf
cmp ecx, 8
jb 0x467da0
cmp ecx, 8
je 0x467ddb
and dword [ebx], 0
and dword [ebx + 4], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
or edi, 0xffffffff
jmp 0x467e31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x467dfc
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x467e03
mov esi, 0x80004005
push esi
mov ebx, 0xda
push ebx
push str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
call fcn.00401225
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.Failed_to_read_resume_file:__ls
push esi
push 0xf
push 5
push ebx
push str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
call fcn.00401228
add esp, 0x1c
cmp edi, 0xffffffff
je 0x467e3d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x468402
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
add dword [edi], eax
adc dword [edi + 4], ecx
cmp dword [ebp + 0xc], 0xffffffff
je 0x46847a
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 4], ecx
call fcn.004639fc
mov esi, eax
test esi, esi
jns 0x468453
push str.Failed_to_seek_to_start_point_in_file.
push esi
push 0xf
push 5
push 0x1fd
push str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
call fcn.00401228
add esp, 0x18
jmp 0x46847a
push 0
lea eax, [ebp - 4]
push eax
push 8
pop eax
sub eax, ebx
push eax
lea eax, [edi + ebx*8]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add ebx, dword [ebp - 4]
cmp dword [ebp - 4], 0
je 0x46847a
cmp ebx, 8
jb 0x468453
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc