joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1403aae30
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov rcx, rsi
xor edx, edx
call sym.ErrorReportClient.exe_SfDoesFileExist
test eax, eax
jne 0x1403aae5e
mov eax, 0x8004e032
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov r9, 0xffffffffffffffff
mov qword [rsp + 0x50], rbx
mov r8, rsi
lea rcx, [rdi + 0x10]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor esi, esi
lea rcx, [rdi + 0x10]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x8000000
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x218], rax
cmp rax, 0xffffffffffffffff
je 0x1403aaf3a
lea rdx, [rsp + 0x64]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x60], eax
mov rbx, qword [rsp + 0x60]
test rbx, rbx
jne 0x1403aaeeb
mov rbx, qword [rsp + 0x50]
mov eax, 0x8004e00b
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi + 0x218]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x20], esi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rdi + 0x220], rax
test rax, rax
je 0x1403aaf3a
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 0x228], rax
test rax, rax
jne 0x1403aaf4f
mov rbx, qword [rsp + 0x50]
mov eax, 0x8004e007
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
mov qword [rdi + 8], rax
mov qword [rdi], rbx
call sym.ErrorReportClient.exe_private:_long_int___cdecl_CSfXML_Document::GetEncodingInterface_void____ptr64
test eax, eax
js 0x1403aaf92
mov qword [rsp + 0x38], rsi
lea rcx, [rdi + 0x490]
mov r9d, 0xffffffff
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rsi
mov r8d, r9d
mov edx, 8
mov dword [rsp + 0x20], 0x40000002
call sym.ErrorReportClient.exe_SfList_CreateExZ
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1403abfe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x480
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rdi, qword [rsp + 0x4d0]
xor eax, eax
mov qword [rsp + 0x48], rax
mov r14, r9
mov rsi, rdx
mov rbp, rcx
test r8b, 1
je 0x1403ac09d
mov qword [rsp + 0x30], rax
lea r8d, [rax + 1]
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
mov ebx, 0x8004e007
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1403ac12f
mov rcx, rax
call fcn.1403fcdc0
mov qword [rsp + 0x3b0], rax
test rax, rax
je 0x1403ac08f
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.1403acd20
mov ebx, eax
test eax, eax
js 0x1403ac08f
test rdi, rdi
je 0x1403ac08f
movzx ecx, byte [rsp + 0x280]
mov dword [rdi], ecx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1403ac12f
lea r9, [rsp + 0x40]
mov r8d, 0x1f
mov ebx, 0x8004e00e
call sym.ErrorReportClient.exe_SfLoadResourceCustom
test rax, rax
jne 0x1403ac0d3
lea r9, [rsp + 0x40]
mov rdx, rsi
lea r8, str.BINARY
mov rcx, rbp
call sym.ErrorReportClient.exe_SfLoadResourceCustom
test rax, rax
je 0x1403ac129
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x1403ac129
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x1403ac12f
mov rcx, rax
mov ebx, 0x8007000e
call fcn.1403fcd50
mov qword [rsp + 0x3b0], rax
test rax, rax
je 0x1403ac12f
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.1403acd20
mov ebx, eax
test eax, eax
js 0x1403ac12f
test rdi, rdi
je 0x1403ac12f
movzx eax, byte [rsp + 0x280]
mov dword [rdi], eax
jmp 0x1403ac12f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [rsp + 0x48]
mov qword [r14], rax
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x480
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1403dfd00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14d, edx
mov rsi, rcx
mov edx, 0x28
mov rbx, r9
mov rbp, r8
lea ecx, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
test rax, rax
je 0x1403dfdbf
mov r9, rax
lea r8, [0x140485ce0]
mov rdx, rsi
mov rcx, rbx
call sym.ErrorReportClient.exe_SfLoadResourceCustom
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1403dfd8c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1403dfd8c
mov r9, rbp
lea rdx, [0x140687438]
mov r8d, r14d
mov rcx, rdi
call fcn.1403e28d0
jmp 0x1403dfd91
call sym.ErrorReportClient.exe_SfErrorHandler_GetLastError
mov ebx, eax
test eax, eax
jns 0x1403dfdbb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebx
jmp 0x1403dfdc4
mov eax, 0x8007000e
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1403e2b30
Capabilities:
Print debug messages

Disassembly:
mov rax, rdx
mov rdx, rcx
mov rcx, rax
jmp fcn.140197000

Function at 0x1403e6670
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor eax, eax
mov qword [rcx + 0x10], rdx
mov qword [rcx], rax
mov rbx, r8
mov qword [rcx + 8], rax
mov rdi, rcx
mov qword [rcx + 0x18], rax
mov dword [rcx + 0x20], r9d
mov byte [rcx + 0x24], al
test r8, r8
je 0x1403e674a
mov edx, 0x208
mov qword [rsp + 0x40], rsi
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov r8d, 0x104
mov rcx, rbx
mov rdx, rax
mov rsi, rax
call sym.ErrorReportClient.exe_SfGetModulePath
mov edx, 0x104
mov rcx, rsi
call sym.ErrorReportClient.exe_SfAddSlashToPathName
lea rdx, [rsi - 2]
nop dword [rax]
cmp word [rdx + 2], 0
lea rdx, [rdx + 2]
jne 0x1403e66e0
movups xmm0, xmmword [str.skins.ini]
movups xmmword [rdx], xmm0
mov eax, dword [0x14060ebd0]
mov dword [rdx + 0x10], eax
mov edx, 0x80
lea ecx, [rdx - 0x7f]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rsp + 0x28], rsi
lea r8, str.skins
mov r9, rax
mov dword [rsp + 0x20], 0x40
lea rdx, str.UseSection
mov rbx, rax
lea rcx, str.skins
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov qword [rdi + 8], rsi
mov rsi, qword [rsp + 0x40]
mov qword [rdi], rbx
mov byte [rdi + 0x24], 1
mov rbx, qword [rsp + 0x48]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x1403e6a10
Capabilities:
Get file size

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x48
mov rbx, rdx
mov rdi, rcx
call sym.ErrorReportClient.exe_void___cdecl_SfSkin_Bmp_Free_struct_tSFSKINBMP____ptr64_
and dword [rdi + 0x10], 0xffffffad
xor r12d, r12d
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r12 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1403e6b92
xor edx, edx
mov qword [rsp + 0x78], rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp eax, 0x36
jbe 0x1403e6b8d
mov qword [rsp + 0x28], r12
lea r8d, [r12 + 8]
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor edx, edx
mov qword [rsp + 0x80], r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r14, rax
test rax, rax
jne 0x1403e6aba
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1403e6b85
xor r9d, r9d
mov qword [rsp + 0x40], r15
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rcx, r14
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
je 0x1403e6b6e
mov eax, 0x4d42
cmp word [rbx], ax
jne 0x1403e6b40
cmp dword [rbx + 2], ebp
ja 0x1403e6b40
test dword [rdi + 0x10], 0x100
je 0x1403e6b37
lea eax, [rbp - 0xe]
mov ecx, 0x42
mov edx, eax
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rbp, rax
test rax, rax
je 0x1403e6b6e
lea rdx, [rbx + 0xe]
mov r8d, r15d
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
or dword [rdi + 0x10], 0x10
mov qword [rdi], rbp
jmp 0x1403e6b65
lea rax, [rbx + 0xe]
mov qword [rdi], rax
jmp 0x1403e6b6e
mov r8d, ebp
mov qword [rsp + 0x70], r12
mov rdx, rbx
lea rcx, [rsp + 0x70]
call sym.ErrorReportClient.exe_long_int___cdecl_SfDibFromPng_struct_tagBITMAPINFOHEADER____ptr64____ptr64__void_const____ptr64__long_int_
test eax, eax
js 0x1403e6b65
mov rax, qword [rsp + 0x70]
or dword [rdi + 0x10], 0x40
mov qword [rdi], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
cmp qword [rdi], r12
mov eax, 0x80004005
cmovne eax, r12d
add rsp, 0x48
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1403e6bb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call sym.ErrorReportClient.exe_void___cdecl_SfSkin_Bmp_Free_struct_tSFSKINBMP____ptr64_
mov eax, dword [rdi + 0x10]
lea r8, [rsp + 0x40]
movdqa xmm0, xmmword [0x14060ec00]
and eax, 0xffffffaf
or eax, 2
mov dword [rsp + 0x30], 0xffffffff
mov dword [rdi + 0x10], eax
mov r9d, 3
lea rax, str.BINARY
mov rdx, rbx
mov qword [rsp + 0x50], rax
mov rcx, rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
movdqu xmmword [rsp + 0x40], xmm0
call sym.ErrorReportClient.exe_SfFindResourceMulti
xor r14d, r14d
mov rbp, rax
test rax, rax
je 0x1403e6ce1
mov rdx, rax
mov rcx, rsi
call sym.ErrorReportClient.exe_SfLoadResource
test rax, rax
je 0x1403e6ce1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
movsxd rcx, dword [rsp + 0x30]
mov rbx, rax
cmp qword [rsp + rcx*8 + 0x40], 2
je 0x1403e6c8f
mov rdx, rbp
mov rcx, rsi
call sym.ErrorReportClient.exe_SfSizeofResource
mov r8d, eax
mov qword [rsp + 0x38], r14
mov rdx, rbx
lea rcx, [rsp + 0x38]
call sym.ErrorReportClient.exe_long_int___cdecl_SfDibFromPng_struct_tagBITMAPINFOHEADER____ptr64____ptr64__void_const____ptr64__long_int_
test eax, eax
js 0x1403e6c8f
mov rbx, qword [rsp + 0x38]
or dword [rdi + 0x10], 0x40
mov eax, dword [rdi + 0x10]
test al, 0x40
jne 0x1403e6cde
bt eax, 8
jae 0x1403e6cde
mov rdx, rbp
mov rcx, rsi
call sym.ErrorReportClient.exe_SfSizeofResource
movsxd rbp, eax
mov ecx, 0x42
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
test rax, rax
je 0x1403e6cde
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
or dword [rdi + 0x10], 0x10
mov rbx, rsi
mov qword [rdi], rbx
cmp qword [rdi], r14
mov eax, 0x80004005
cmovne eax, r14d
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1403e71e0
Capabilities:
Print debug messages

Disassembly:
test rcx, rcx
je 0x1403e71fb
mov r10, qword [rcx]
test r10, r10
je 0x1403e71fb
test byte [rcx + 0x10], 0x20
jne 0x1403e71fb
mov rcx, r10
jmp sym.ErrorReportClient.exe_int___cdecl_SfSkin_GetImageLists_struct_tagBITMAPINFOHEADER_const____ptr64__struct_tagSIZE____ptr64__struct__IMAGELIST____ptr64__const___ptr64__int__unsigned_long_int__long_int____ptr64_
mov rcx, qword [r8]
test rcx, rcx
jne fcn.1401cc620
xor eax, eax
ret

Function at 0x1403e97f0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rdi, rcx
xor esi, esi
mov ecx, dword [rcx + 0x18]
sub ecx, 1
je 0x1403e9927
cmp ecx, 0x10000
je 0x1403e9823
xor eax, eax
mov rsi, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call sym.ErrorReportClient.exe_public:_static_unsigned_long_int___cdecl_Skin::GetColorRef_enum_IColorPalette::ColorKey_
mov ecx, 0xd
mov dword [rdi + 0x68], eax
call sym.ErrorReportClient.exe_public:_static_unsigned_long_int___cdecl_Skin::GetColorRef_enum_IColorPalette::ColorKey_
mov ecx, 9
mov dword [rdi + 0x70], eax
call sym.ErrorReportClient.exe_public:_static_unsigned_long_int___cdecl_Skin::GetColorRef_enum_IColorPalette::ColorKey_
mov ecx, VariantTimeToDosDateTime
mov dword [rdi + 0x74], eax
call sym.ErrorReportClient.exe_public:_static_unsigned_long_int___cdecl_Skin::GetColorRef_enum_IColorPalette::ColorKey_
mov ecx, VariantTimeToDosDateTime
mov dword [rdi + 0x78], eax
call sym.ErrorReportClient.exe_public:_static_unsigned_long_int___cdecl_Skin::GetColorRef_enum_IColorPalette::ColorKey_
mov r8, qword [rdi + 0x38]
lea r9, [rsp + 0x40]
mov rcx, qword [rdi]
mov edx, 0x43f
mov dword [rdi + 0x7c], eax
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x40], 0x30
mov dword [rsp + 0x44], 8
call qword [sym.imp.USER32.dll_SendMessageW]
cmp dword [rdi + 0x40], 8
jne 0x1403e9911
mov qword [rsp + 0x80], rbx
mov ecx, 0xa
mov rbx, qword [rdi + 0x20]
mov esi, 0x400000
call sym.ErrorReportClient.exe_public:_static_unsigned_long_int___cdecl_Skin::GetColorRef_enum_IColorPalette::ColorKey_
mov edx, eax
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SetBkColor]
mov qword [rsp + 0x38], 0
lea rdx, [rdi + 0x28]
mov dword [rsp + 0x30], 0
mov r9d, 2
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
xor edx, edx
call qword [sym.imp.GDI32.dll_ExtTextOutW]
mov rbx, qword [rsp + 0x80]
or esi, 0x870000
mov eax, esi
mov rsi, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rsi, qword [rsp + 0x88]
mov eax, 0x30
add rsp, 0x70
pop rdi
ret
Function at 0x1403fa1a0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbp
push rsi
push r12
push r13
push r15
sub rsp, 0x50
xor r13d, r13d
mov rax, rdx
mov r15, r8
mov qword [rsp + 0x30], r13
mov r12, rcx
mov dword [rsp + 0x28], r13d
xor r9d, r9d
mov dword [rsp + 0x20], 3
lea r8d, [r13 + 1]
mov edx, 0x80000000
mov rcx, rax
mov esi, 0x80004005
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1403fa347
lea rdx, [rsp + 0x44]
mov qword [rsp + 0x90], r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
mov qword [rsp + 0x28], r13
xor edx, edx
mov dword [rsp + 0x40], eax
lea r8d, [r13 + 2]
mov dword [rsp + 0x20], r13d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r14, rax
test rax, rax
je 0x1403fa336
xor r9d, r9d
mov qword [rsp + 0x88], rdi
xor r8d, r8d
mov qword [rsp + 0x20], r13
lea edx, [r13 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
je 0x1403fa325
mov qword [rsp + 0x80], rbx
mov esi, r13d
mov rbx, qword [rsp + 0x40]
add rbx, rax
add rax, 2
cmp rax, rbx
jae 0x1403fa314
mov ecx, 0xd8ff
cmp cx, word [rdi]
jne 0x1403fa314
lea rcx, [rdi + 6]
cmp rcx, rbx
jae 0x1403fa314
mov r13d, 0xe1ff
movzx r8d, word [rax]
add rax, 2
movzx edx, word [rax]
movzx ecx, dx
mov byte [rsp + 0x99], dl
shr cx, 8
mov byte [rsp + 0x98], cl
cmp r13w, r8w
jne 0x1403fa300
add rax, 2
lea r8, [rax + 6]
cmp r8, rbx
jae 0x1403fa30b
mov ecx, dword [rax]
cmp ecx, dword [sym.ErrorReportClient.exe_unsigned_char_const__const_const_CSfExifMetaDataHelper::JpegMarkerApp1ExifIdentifier]
jne 0x1403fa30b
movzx ecx, word [rax + 4]
cmp cx, word [0x14061070c]
jne 0x1403fa30b
mov r9, rbx
mov rdx, r15
mov rcx, r12
call sym.ErrorReportClient.exe_private:_long_int___cdecl_CSfExifMetaDataHelper::AddExifTagsToSummaryList_struct_tSFLIST____ptr64__unsigned_char_const____ptr64__unsigned_char_const____ptr64____ptr64
mov esi, eax
mov rax, rbx
jmp 0x1403fa30b
movzx ecx, word [rsp + 0x98]
add rax, rcx
lea rcx, [rax + 4]
cmp rcx, rbx
jb 0x1403fa2a1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rbx, qword [rsp + 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x88]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x90]
mov eax, esi
add rsp, 0x50
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret
Function at 0x1403fa360
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x40
xor ebp, ebp
mov rax, rdx
mov r14, r8
mov qword [rsp + 0x30], rbp
mov r15, rcx
mov dword [rsp + 0x28], ebp
xor r9d, r9d
mov dword [rsp + 0x20], 3
lea r8d, [rbp + 1]
mov edx, 0x80000000
mov rcx, rax
mov ebx, 0x80004005
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1403fa447
lea rdx, [rsp + 0x7c]
mov qword [rsp + 0x60], rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor edx, edx
mov dword [rsp + 0x78], eax
lea r8d, [rbp + 2]
mov dword [rsp + 0x20], ebp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x1403fa439
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
lea edx, [rbp + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbp, rax
test rax, rax
je 0x1403fa430
mov r9, qword [rsp + 0x78]
mov r8, rax
add r9, rax
mov rdx, r14
mov rcx, r15
call sym.ErrorReportClient.exe_private:_long_int___cdecl_CSfExifMetaDataHelper::AddExifTagsToSummaryList_struct_tSFLIST____ptr64__unsigned_char_const____ptr64__unsigned_char_const____ptr64____ptr64
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1403fac50
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x50
xor esi, esi
mov rax, rdx
mov r12, r8
mov qword [rsp + 0x30], rsi
mov r15, rcx
mov dword [rsp + 0x28], esi
xor r9d, r9d
mov dword [rsp + 0x98], esi
lea r8d, [rsi + 2]
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
mov rcx, rax
mov ebp, esi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1403facb0
mov eax, 0x8004e007
add rsp, 0x50
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x80], rbx
lea rdx, [rsp + 0x4c]
mov qword [rsp + 0x88], r13
mov rcx, rdi
mov qword [rsp + 0x90], r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r13d, 0xffffffff
mov dword [rsp + 0x48], eax
mov r14d, eax
cmp qword [rsp + 0x48], r13
jl 0x1403facf4
mov ebx, 0x80004005
jmp 0x1403fae0e
lea r8, [rsp + 0x98]
mov rdx, rdi
mov rcx, r15
call sym.ErrorReportClient.exe_private:_long_int___cdecl_CSfExifMetaDataHelper::FindStartOfNonExifData_void____ptr64__unsigned_long_int____ptr64____ptr64
mov ebx, eax
test eax, eax
js 0x1403fae0e
sub r14d, dword [rsp + 0x98]
mov ecx, 0x40
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rbp, rax
test rax, rax
jne 0x1403fad42
mov ebx, 0x8007000e
jmp 0x1403fae0e
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
mov r8d, r14d
mov rdx, rbp
mov rcx, rdi
call sym.ErrorReportClient.exe_SfReadFile
test eax, eax
jne 0x1403fad68
mov ebx, 0x8004e008
jmp 0x1403fae0e
cmp r14d, dword [rsp + 0x40]
je 0x1403fad79
mov ebx, 0x8004e008
jmp 0x1403fae0e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, r13d
jne 0x1403fad96
mov ebx, 0x8004e008
jmp 0x1403fae0e
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rsi
mov r8d, 2
lea rdx, sym.ErrorReportClient.exe_unsigned_short_int_const_CSfExifMetaDataHelper::JPEG_MARKER_SOI
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1403fadc1
mov ebx, 0x8004e009
jmp 0x1403fae0e
mov r8, r12
mov rdx, rdi
mov rcx, r15
call sym.ErrorReportClient.exe_private:_long_int___cdecl_CSfExifMetaDataHelper::WriteExifTagsFromSummaryList_void____ptr64__struct_tSFLIST____ptr64____ptr64
mov ebx, eax
test eax, eax
js 0x1403fae0e
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rsi
mov r8d, r14d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1403fadf9
mov ebx, 0x8004e009
jmp 0x1403fae0e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebx, 0x8004e009
test eax, eax
cmove esi, ebx
mov ebx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x90]
mov r13, qword [rsp + 0x88]
test rbp, rbp
je 0x1403fae50
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1403fb5f0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x50
xor ebx, ebx
mov rsi, r8
mov word [rax + 0x18], bx
mov rdi, rdx
mov word [rax + 0x20], bx
mov dword [rax - 0x34], ebx
test r8, r8
je 0x1403fb615
mov dword [r8], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1403fb63a
mov ebx, 0x8004e008
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rbx
mov r8d, 2
lea rdx, [rsp + 0x80]
mov rcx, rdi
call sym.ErrorReportClient.exe_SfReadFile
test eax, eax
je 0x1403fb62b
mov eax, 0xd8ff
cmp ax, word [rsp + 0x80]
je 0x1403fb67c
mov ebx, 0x80004005
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rbx
mov r8d, 2
lea rdx, [rsp + 0x80]
mov rcx, rdi
call sym.ErrorReportClient.exe_SfReadFile
test eax, eax
je 0x1403fb62b
mov qword [rsp + 0x70], rbp
mov ebp, 0xe3ff
mov qword [rsp + 0x48], r14
mov r14d, 0x1f01
mov qword [rsp + 0x40], r15
mov r15d, 0xfcff
movzx ecx, word [rsp + 0x80]
lea eax, [r14 + rcx]
test r15w, ax
jne 0x1403fb780
cmp cx, bp
je 0x1403fb780
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rbx
mov r8d, 2
lea rdx, [rsp + 0x88]
mov rcx, rdi
call sym.ErrorReportClient.exe_SfReadFile
test eax, eax
je 0x1403fb772
movzx ecx, word [rsp + 0x88]
movzx eax, cx
mov byte [rsp + 0x31], cl
shr ax, 8
mov byte [rsp + 0x30], al
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x88], ax
cmp ax, 2
jbe 0x1403fb779
movzx edx, ax
mov r9d, 1
sub edx, 2
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1403fb772
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rbx
mov r8d, 2
lea rdx, [rsp + 0x80]
mov rcx, rdi
call sym.ErrorReportClient.exe_SfReadFile
test eax, eax
jne 0x1403fb6c0
mov ebx, 0x8004e008
jmp 0x1403fb7a2
mov ebx, 0x80004005
jmp 0x1403fb7a2
mov r9d, 1
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 - 3]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1403fb772
test rsi, rsi
je 0x1403fb7a2
mov dword [rsi], eax
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x70]
mov r15, qword [rsp + 0x40]
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret