joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006dac4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x30
and qword [rsp + 0x40], 0
lea r8, [rsp + 0x40]
lea rdx, [0x1400b8150]
lea rcx, str.Msi.dll
call fcn.140001ae4
mov ebx, eax
test eax, eax
jns 0x14006db1c
mov edx, 0x99
lea rax, str.Failed_to_load_Msi.DLL
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutilwiutil.cpp
mov dword [rsp + 0x20], ebx
lea r9d, [rdx - 0x63]
lea r8d, [r9 - 0x31]
call fcn.1400012b4
jmp 0x14006dcd8
mov rcx, qword [rsp + 0x40]
lea r8, [0x1400b81a8]
lea rdx, [0x1400b81a4]
call fcn.140073138
mov rcx, qword [0x1400b8150]
lea rdx, str.MsiDeterminePatchSequenceW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400b8118]
lea rdx, str.MsiDetermineApplicablePatchesW
test rcx, rcx
mov qword [0x1400b8158], rax
cmove rcx, rax
mov qword [0x1400b8118], rcx
mov rcx, qword [0x1400b8150]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400b8120]
lea rdx, str.MsiEnumProductsExW
test rcx, rcx
mov qword [0x1400b8160], rax
cmove rcx, rax
mov qword [0x1400b8120], rcx
mov rcx, qword [0x1400b8150]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400b8128]
lea rdx, str.MsiGetPatchInfoExW
test rcx, rcx
mov qword [0x1400b8168], rax
cmove rcx, rax
mov qword [0x1400b8128], rcx
mov rcx, qword [0x1400b8150]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400b8130]
lea rdx, str.MsiGetProductInfoExW
test rcx, rcx
mov qword [0x1400b8170], rax
cmove rcx, rax
mov qword [0x1400b8130], rcx
mov rcx, qword [0x1400b8150]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400b8138]
lea rdx, str.MsiSetExternalUIRecord
test rcx, rcx
mov qword [0x1400b8178], rax
cmove rcx, rax
mov qword [0x1400b8138], rcx
mov rcx, qword [0x1400b8150]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400b8140]
lea rdx, str.MsiSourceListAddSourceExW
test rcx, rcx
mov qword [0x1400b8180], rax
cmove rcx, rax
mov qword [0x1400b8140], rcx
mov rcx, qword [0x1400b8150]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400b8148]
test rcx, rcx
mov qword [0x1400b8188], rax
cmove rcx, rax
cmp qword [0x1400b8190], 0
mov qword [0x1400b8148], rcx
jne 0x14006dca9
mov rcx, qword [0x1400b8150]
lea rdx, str.MsiBeginTransactionW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400b8190], rax
cmp qword [0x1400b8198], 0
jne 0x14006dcce
mov rcx, qword [0x1400b8150]
lea rdx, str.MsiEndTransaction
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400b8198], rax
mov dword [0x1400b81a0], 1
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14006dce7
call fcn.140004278
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14006fa90
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rdx, [0x1400b8200]
lea rcx, str.Shcore.dll
call fcn.140001a28
test eax, eax
js 0x14006fae1
mov rcx, qword [0x1400b8200]
lea rdx, str.GetDpiForMonitor
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400b8200]
lea rdx, str.SetProcessDpiAwareness
mov qword [0x1400b81d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400b81f0], rax
lea rdx, [0x1400b8208]
lea rcx, str.User32.dll
call fcn.140001a28
test eax, eax
js 0x14006fb64
mov rcx, qword [0x1400b8208]
lea rdx, str.AdjustWindowRectExForDpi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400b8208]
lea rdx, str.GetDpiForWindow
mov qword [0x1400b81d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400b8208]
lea rdx, str.SetProcessDPIAware
mov qword [0x1400b81e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400b8208]
lea rdx, str.SetProcessDpiAwarenessContext
mov qword [0x1400b81e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400b81f8], rax
mov dword [0x1400b8210], 1
add rsp, 0x28
ret

Function at 0x140071548
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1400b6018]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov esi, edx
lea rax, [rsp + 0x40]
mov rdi, rcx
mov qword [rsp + 0x20], rax
bts edx, 0xf
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
test eax, eax
jns 0x1400715a5
mov dword [rsp + 0x30], esi
lea rax, str.Failed_to_get_folder_path_for_CSIDL:__d
mov edx, 0xb7
jmp 0x1400715f5
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400037ac
mov ebx, eax
test eax, eax
jns 0x1400715d3
lea rax, [rsp + 0x40]
mov edx, 0xba
mov qword [rsp + 0x30], rax
lea rax, str.Failed_to_copy_shell_folder_path:__ls
jmp 0x1400715f5
mov rcx, rdi
call fcn.140004ab4
mov ebx, eax
test eax, eax
jns 0x140071614
mov rax, qword [rdi]
mov edx, 0xbd
mov qword [rsp + 0x30], rax
lea rax, str.Failed_to_backslash_terminate_shell_folder_path:__ls
mov r9d, 0x2c
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_shelutil.cpp
mov dword [rsp + 0x20], ebx
lea r8d, [r9 - 0x27]
call fcn.1400012b4
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140053b50
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140071d9c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x1050
call fcn.14007e550
sub rsp, rax
mov rax, qword [0x1400b6018]
xor rax, rsp
mov qword [rsp + 0x1040], rax
xor ebx, ebx
mov rsi, r9
xor edi, edi
mov rbp, r8
mov r14, rdx
mov r15, rcx
mov r12d, 0x1000
mov r8d, ebp
lea r9, [rsp + 0x30]
sub r8d, edi
lea rdx, [rsp + 0x40]
mov rax, rbp
mov rcx, r15
sub rax, rdi
cmp rax, r12
cmova r8d, r12d
test rbp, rbp
cmove r8d, r12d
and qword [rsp + 0x20], 0
mov dword [rsp + 0x30], r8d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140071e60
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140071e3a
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.1400735fc
mov ebx, eax
test eax, eax
js 0x140071e52
mov eax, dword [rsp + 0x30]
mov ecx, eax
add rdi, rcx
cmp rdi, rbp
jae 0x140071e48
test eax, eax
jne 0x140071ddc
test rsi, rsi
je 0x140071ebc
mov qword [rsi], rdi
jmp 0x140071ebc
lea rax, str.Failed_to_write_to_target.
mov edx, 0x35c
jmp 0x140071e9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov edi, 0x356
or ebx, 0x80070000
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
test eax, eax
mov edx, edi
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov r8d, ebx
call fcn.1400012b0
lea rax, str.Failed_to_read_from_source.
mov edx, edi
mov r9d, 0x13
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov dword [rsp + 0x20], ebx
lea r8d, [r9 - 0xe]
call fcn.1400012b4
mov eax, ebx
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140053b50
add rsp, 0x1050
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140072204
Capabilities:
Copy file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov ebp, r8d
xor r15d, r15d
mov r8d, r15d
test ebp, ebp
mov rdi, rdx
mov r14, rcx
sete r8b
mov ebx, r15d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140072359
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebp, ebp
jne 0x140072267
cmp eax, 0x50
je 0x14007225d
cmp eax, 0xb7
jne 0x140072267
mov ebx, 1
jmp 0x140072359
cmp eax, 3
jne 0x14007234b
movzx ecx, word [rdi]
mov rsi, r15
mov rdx, rdi
test cx, cx
je 0x140072344
lea r12d, [rax + 0x59]
cmp cx, r12w
mov rax, rdx
cmovne rax, rsi
add rdx, 2
mov rsi, rax
movzx ecx, word [rdx]
test cx, cx
jne 0x140072286
test rax, rax
je 0x140072344
xor edx, edx
mov word [rax], r15w
mov rcx, rdi
call fcn.1400079e8
mov word [rsi], r12w
mov ebx, eax
test eax, eax
jns 0x1400722f8
lea rax, str.failed_to_create_directory_while_copying_file:__ls_to:__ls
mov edx, 0x405
mov qword [rsp + 0x38], rdi
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov r8d, 4
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
lea r9d, [r8 + 0xf]
call fcn.1400012b4
jmp 0x140072359
mov r8d, ebp
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140072359
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140072359
mov esi, 0x40a
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov edx, esi
mov r8d, ebx
call fcn.1400012b0
lea rax, str.failed_to_copy_file:__ls_to:__ls
mov edx, esi
jmp 0x1400722cd
mov ebx, 0x80070003
jmp 0x140072359
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x140072448
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
or dword [rsp + 0x58], 0xffffffff
lea rdx, [rsp + 0x58]
mov rdi, rcx
xor ebx, ebx
call fcn.1400727a8
test eax, eax
je 0x14007252a
test byte [rsp + 0x58], 7
je 0x1400724c1
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400724c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400724c1
mov r8d, ebx
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov edx, 0x57a
call fcn.1400012b0
lea rax, str.Failed_to_remove_attributes_from_file:__ls
mov edx, 0x57a
jmp 0x140072506
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14007252a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14007252a
mov r8d, ebx
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov edx, 0x580
call fcn.1400012b0
lea rax, str.Failed_to_delete_file:__ls
mov edx, 0x580
mov r9d, 0x13
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov dword [rsp + 0x20], ebx
lea r8d, [r9 - 0xe]
call fcn.1400012b4
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140072538
Capabilities:
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
mov r14d, r8d
test r8d, r8d
mov eax, r12d
mov rsi, rdx
mov rbp, rcx
setne al
mov ebx, r12d
mov r15d, eax
or r15d, 2
test r9d, r9d
cmove r15d, eax
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400726bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test r14d, r14d
jne 0x1400725af
cmp eax, 0x50
je 0x1400725a5
cmp eax, 0xb7
jne 0x1400725af
mov ebx, 1
jmp 0x1400726bf
cmp eax, 2
jne 0x1400725cb
xor edx, edx
mov rcx, rbp
call fcn.1400727a8
test eax, eax
je 0x1400726b1
mov edi, 3
cmp edi, 3
jne 0x1400726b1
movzx ecx, word [rsi]
mov rdi, r12
mov rdx, rsi
test cx, cx
je 0x1400726aa
mov r14d, 0x5c
cmp cx, r14w
mov rax, rdx
cmovne rax, rdi
add rdx, 2
mov rdi, rax
movzx ecx, word [rdx]
test cx, cx
jne 0x1400725ec
test rax, rax
je 0x1400726aa
xor edx, edx
mov word [rax], r12w
mov rcx, rsi
call fcn.1400079e8
mov word [rdi], r14w
mov ebx, eax
test eax, eax
jns 0x14007265e
lea rax, str.failed_to_create_directory_while_moving_file:__ls_to:__ls
mov edx, 0x485
mov qword [rsp + 0x38], rsi
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov r8d, 4
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
lea r9d, [r8 + 0xf]
call fcn.1400012b4
jmp 0x1400726bf
mov r8d, r15d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400726bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400726bf
mov edi, 0x48a
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov edx, edi
mov r8d, ebx
call fcn.1400012b0
lea rax, str.failed_to_move_file:__ls_to:__ls
mov edx, edi
jmp 0x140072633
mov ebx, 0x80070003
jmp 0x1400726bf
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x140072868
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
xor esi, esi
and dword [rax + 0x18], ebx
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
je 0x140072934
mov r15d, 0xffffffff
mov r8d, edi
lea rdx, [rsi + rbp]
cmp rdi, r15
lea r9, [rsp + 0x60]
mov rcx, r14
cmova r8d, r15d
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400728e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1400728d6
xor ebx, ebx
jmp 0x1400728e8
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400728f6
mov eax, dword [rsp + 0x60]
add rsi, rax
sub rdi, rax
je 0x140072934
jmp 0x14007289f
mov edi, 0x2f2
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov edx, edi
mov r8d, ebx
call fcn.1400012b0
mov r9d, 0x13
lea rax, str.Failed_to_read_data_from_file_handle.
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov edx, edi
mov dword [rsp + 0x20], ebx
lea r8d, [r9 - 0xe]
call fcn.1400012b4
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1400730a0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
xor ebx, ebx
mov qword [rdx], rbx
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140073121
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
mov edi, 0x1e9
or ecx, 0x80070000
mov edx, edi
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
mov ebx, ecx
mov r8d, ecx
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
call fcn.1400012b0
mov r9d, 0x13
lea rax, str.Failed_to_get_size_of_file.
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov edx, edi
mov dword [rsp + 0x20], ebx
lea r8d, [r9 - 0xe]
call fcn.1400012b4
jmp 0x140073129
mov rcx, qword [rsp + 0x48]
mov qword [rdi], rcx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140073138
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
mov r15, rdx
and dword [rax + 0x20], ebx
lea rdx, [rax + 0x20]
and qword [rax - 0x20], rbx
mov r14, r8
and dword [rax - 0x28], ebx
mov rsi, rcx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
test eax, eax
jne 0x1400731d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400731d4
mov edi, 0xa8
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov edx, edi
mov r8d, ebx
call fcn.1400012b0
lea rax, str.failed_to_get_version_info_for_file:__ls
mov r9d, 0x13
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov edx, edi
mov dword [rsp + 0x20], ebx
lea r8d, [r9 - 0xf]
call fcn.1400012b4
jmp 0x1400732ef
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
jne 0x14007320b
mov ebx, 0x8007000e
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov edi, 0xac
mov r8d, ebx
mov edx, edi
call fcn.1400012b0
lea rax, str.failed_to_allocate_version_info_for_file:__ls
jmp 0x1400731a9
mov edx, dword [rsp + 0x88]
mov r9, rdi
mov r8d, ebp
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x140073281
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140073281
mov ebp, 0xb0
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov edx, ebp
mov r8d, ebx
call fcn.1400012b0
lea rax, str.failed_to_get_version_info_for_file:__ls
mov r9d, 0x13
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov edx, ebp
mov dword [rsp + 0x20], ebx
lea r8d, [r9 - 0xf]
call fcn.1400012b4
jmp 0x1400732e6
lea r9, [rsp + 0x40]
mov rcx, rdi
lea r8, [rsp + 0x48]
lea rdx, [0x140080e0c]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1400732d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400732d5
mov ebp, 0xb5
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov edx, ebp
mov r8d, ebx
call fcn.1400012b0
lea rax, str.failed_to_get_version_value_for_file:__ls
jmp 0x140073259
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rdx + 8]
mov dword [r15], ecx
mov ecx, dword [rdx + 0xc]
mov dword [r14], ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400735fc
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
xor esi, esi
and dword [rax + 0x18], ebx
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
je 0x1400736bd
mov r15d, 0xffffffff
mov r8d, edi
lea rdx, [rsi + rbp]
cmp rdi, r15
lea r9, [rsp + 0x60]
mov rcx, r14
cmova r8d, r15d
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140073671
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14007367f
mov eax, dword [rsp + 0x60]
add rsi, rax
sub rdi, rax
je 0x1400736bd
jmp 0x140073633
mov edi, 0x335
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov edx, edi
mov r8d, ebx
call fcn.1400012b0
mov r9d, 0x13
lea rax, str.Failed_to_write_data_to_file_handle.
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov edx, edi
mov dword [rsp + 0x20], ebx
lea r8d, [r9 - 0xe]
call fcn.1400012b4
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140076d10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, r9
mov r8, rdx
xor ebx, ebx
xor r9d, r9d
mov rdi, rcx
lea edx, [rbx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
mov rsi, rax
test rax, rax
jne 0x140076dad
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
mov edi, 0xbb
or ecx, 0x80070000
mov edx, edi
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
mov ebx, ecx
mov r8d, ecx
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_resrutil.cpp
call fcn.1400012b0
lea rax, str.Failed_to_find_resource.
mov r9d, 0x25
mov qword [rsp + 0x28], rax
mov edx, edi
mov dword [rsp + 0x20], ebx
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_resrutil.cpp
lea r8d, [r9 - 0x20]
call fcn.1400012b4
jmp 0x140076eaa
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
jne 0x140076e00
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
mov edi, 0xbe
or ecx, 0x80070000
mov edx, edi
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
mov ebx, ecx
mov r8d, ecx
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_resrutil.cpp
call fcn.1400012b0
lea rax, str.Failed_to_load_resource.
jmp 0x140076d87
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
jne 0x140076e54
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
mov edi, 0xc3
or ecx, 0x80070000
mov edx, edi
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
mov ebx, ecx
mov r8d, ecx
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_resrutil.cpp
call fcn.1400012b0
lea rax, str.Failed_to_get_size_of_resource.
jmp 0x140076d87
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [r15], rax
test rax, rax
jne 0x140076ea7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
mov edi, 0xc7
or ecx, 0x80070000
mov edx, edi
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
mov ebx, ecx
mov r8d, ecx
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_resrutil.cpp
call fcn.1400012b0
lea rax, str.Failed_to_lock_data_resource.
jmp 0x140076d87
mov dword [r14], edi
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140078418
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x40
mov r15, rdx
mov rbp, r8
mov r8, rcx
lea rdx, str._ls.R
mov rdi, rcx
xor esi, esi
and dword [rax + 0x20], esi
mov rcx, r15
and qword [r9], rsi
mov r14, r9
call fcn.1400031dc
lea r13, str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
mov ebx, eax
test eax, eax
jns 0x140078487
lea rax, str.Failed_to_create_resume_path.
mov edx, 0x313
mov qword [rsp + 0x28], rax
lea r9d, [rsi + 0xf]
lea r8d, [rsi + 5]
mov dword [rsp + 0x20], ebx
mov rcx, r13
call fcn.1400012b4
test ebx, ebx
jns 0x1400784bc
mov qword [rsp + 0x30], rdi
lea rax, str.Failed_to_calculate_resume_path_from_working_path:__ls
mov edx, 0xce
mov r8d, 5
mov qword [rsp + 0x28], rax
mov rcx, r13
mov dword [rsp + 0x20], ebx
lea r9d, [r8 + 0xa]
call fcn.1400012b4
jmp 0x1400785ed
and qword [rsp + 0x30], rsi
mov r8d, 4
mov rcx, qword [r15]
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140078534
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov edi, 0xd3
or ebx, 0x80070000
mov rcx, r13
test eax, eax
mov edx, edi
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov r8d, ebx
call fcn.1400012b0
mov rax, qword [r15]
mov edx, edi
mov qword [rsp + 0x30], rax
lea rax, str.Failed_to_create_resume_file:__ls
jmp 0x14007849c
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, 8
mov edx, esi
sub r8d, esi
add rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140078582
mov eax, dword [rsp + 0x88]
add esi, eax
test eax, eax
je 0x14007856f
cmp esi, 8
jb 0x140078534
cmp esi, 8
je 0x140078578
and qword [r14], 0
mov qword [rbp], rdi
or rdi, 0xffffffffffffffff
jmp 0x1400785de
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov esi, 0xda
or ebx, 0x80070000
mov rcx, r13
test eax, eax
mov edx, esi
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov r8d, ebx
call fcn.1400012b0
mov rax, qword [r15]
mov r9d, 0xf
mov qword [rsp + 0x30], rax
mov edx, esi
lea rax, str.Failed_to_read_resume_file:__ls
mov rcx, r13
mov qword [rsp + 0x28], rax
lea r8d, [r9 - 0xa]
mov dword [rsp + 0x20], ebx
call fcn.1400012b4
cmp rdi, 0xffffffffffffffff
je 0x1400785ed
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret