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

Disassembly:
push 0xc
mov eax, 0x100729de
call fcn.1006c23a
lea ecx, [ebp - 0x10]
call dword [0x10085f84]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [0x10085f84]
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call sym.winzipsshelper.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_STGetReNewURLFromSetupScript_void_
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call dword [0x10085f74]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
pop ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.BUYNOW
call dword [0x10085f70]
lea eax, [ebp - 0x10]
push eax
call sym.winzipsshelper.dll_bool___cdecl_STGetPublishedURL_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____
pop ecx
pop ecx
push 3
mov eax, 0x10086e50
push eax
push eax
push dword [ebp - 0x10]
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
call fcn.1006c312
ret
Function at 0x10005a37
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x100ce038]
xor eax, ebp
mov dword [ebp + 0x398], eax
push esi
mov esi, dword [ebp + 0x3a8]
push edi
xor eax, eax
push 0x40e
mov word [ebp - 0x78], ax
xor edi, edi
lea eax, [ebp - 0x76]
push edi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x3a4]
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x10005aa3
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_4]
inc edi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 0x398]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1006b19e
add ebp, 0x39c
leave
ret

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

Disassembly:
push 0x234
mov eax, 0x1006cc80
call fcn.1006c2d9
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jne 0x10005c94
push 0xfffffffffffffffc
pop eax
jmp 0x10005cf3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10005ca5
xor eax, eax
inc eax
jmp 0x10005cf3
mov byte [ebp - 4], 1
mov edi, dword [edi]
lea eax, [ebp - 0x240]
push eax
push edi
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
call sub.mfc90u.dll_CFile::GetStatus
cmp eax, esi
jne 0x10005ca0
xor eax, eax
jmp 0x10005cf3
call fcn.1006c335
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x10005d03
sub eax, ecx
sar eax, 1
jne 0x10005d17
xor eax, eax
leave
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10005d29
or eax, eax
leave
ret
not al
movzx eax, al
shr eax, 4
and eax, 1
leave
ret
Function at 0x100063e0
Capabilities:
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x7d0]
sub esp, 0x850
mov eax, dword [0x100ce038]
xor eax, ebp
mov dword [ebp + 0x7cc], eax
mov eax, dword [ebp + 0x7d8]
and dword [ebp - 0x80], 0
push ebx
mov ebx, dword [ebp + 0x7dc]
push esi
push edi
mov dword [ebp - 0x60], eax
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov esi, 0x410
push esi
push eax
mov word [ebp + 0x3b8], ax
lea eax, [ebp + 0x3ba]
push eax
call sub.MSVCR90.dll_memset
xor eax, eax
push esi
push eax
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x5a]
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
lea ecx, [ebp + 0x3b8]
add esp, 0x18
mov edx, eax
sub ecx, eax
movzx esi, word [edx]
mov word [ecx + edx], si
inc edx
inc edx
test si, si
jne 0x1000645c
mov ecx, dword [eax - 0xc]
xor edx, edx
mov word [ebp + ecx*2 + 0x3ba], dx
mov edx, dword [ebx]
lea edi, [ebp - 0x5c]
mov ecx, edx
sub edi, edx
movzx esi, word [ecx]
mov word [edi + ecx], si
inc ecx
inc ecx
test si, si
jne 0x10006480
mov ecx, dword [edx - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, 0xa0
push edi
xor edx, edx
push eax
mov word [ebp + ecx*2 - 0x5a], dx
call esi
push edi
push dword [ebx]
call esi
lea eax, [ebp + 0x3b8]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x74], eax
mov eax, 0x4614
mov word [ebp - 0x70], ax
xor esi, esi
lea eax, [ebp - 0x80]
inc esi
push eax
mov dword [ebp - 0x7c], esi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x100064dc
mov eax, esi
jmp 0x100064e3
call fcn.10005765
xor eax, eax
mov ecx, dword [ebp + 0x7cc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006b19e
add ebp, 0x7d0
leave
ret
Function at 0x10006568
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x234
mov eax, 0x1006f16f
call fcn.1006c2d9
xor esi, esi
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov eax, dword [eax - 0xc]
cmp eax, esi
je 0x10006635
cmp eax, 3
jl 0x10006635
dec eax
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetAt]
movzx eax, ax
push 0x5c
pop ecx
cmp cx, ax
jne 0x100065e0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push 1
dec eax
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Delete]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10006614
lea eax, [ebp - 0x240]
push eax
push dword [ebp + 8]
call sub.mfc90u.dll_CFile::GetStatus
cmp eax, esi
je 0x10006614
test byte [ebp - 0x220], 0x10
je 0x10006614
test bl, 0x10
je 0x10006614
xor esi, esi
inc esi
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, esi
jmp 0x10006640
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
call fcn.1006c335
ret

Function at 0x1000673b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100ce038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
cmp edi, 0x104
jbe 0x10006761
xor eax, eax
jmp 0x100067b5
push 0x20c
lea eax, [ebp - 0x210]
push 0
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x210]
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x10006782
and dword [esi + 0xc], 0
xor eax, eax
mov word [ebp + edi*2 - 0x20e], ax
lea eax, [ebp - 0x210]
push esi
mov dword [esi + 4], 3
mov dword [esi + 8], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1006b19e
leave
ret 8
Function at 0x1000c2df
Capabilities:
Link many functions at runtime

Disassembly:
or dword [esi + 0x38], 0xffffffff
or dword [esi + 0x3c], 0xffffffff
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
push edi
mov dword [esi], vtable.CEnumProcess.0
mov byte [esi + 4], bl
push str.PSAPI
mov byte [esi + 5], bl
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x1000c362
push str.EnumProcesses
push eax
mov dword [esi + 0x10], 0x100
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call edi
push str.EnumProcessModules
push dword [esi + 0xc]
mov dword [esi + 0x2c], eax
call edi
push str.GetModuleFileNameEx
push dword [esi + 0xc]
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
cmp dword [esi + 0x2c], ebx
je 0x1000c362
cmp dword [esi + 0x30], ebx
je 0x1000c362
cmp eax, ebx
je 0x1000c362
mov byte [esi + 4], 1
push str.Kernel32
call ebp
mov dword [esi + 0x40], eax
cmp eax, ebx
je 0x1000c3fb
push 0x1008a060
push eax
mov dword [esi + 0x44], 0x22c
mov dword [esi + 0x270], 0x428
call edi
push str.Process32First
push dword [esi + 0x40]
mov dword [esi + 0x698], eax
call edi
push str.Process32Next
push dword [esi + 0x40]
mov dword [esi + 0x69c], eax
call edi
push str.Module32First
push dword [esi + 0x40]
mov dword [esi + 0x6a0], eax
call edi
push str.Module32Next
push dword [esi + 0x40]
mov dword [esi + 0x6a4], eax
call edi
mov dword [esi + 0x6a8], eax
cmp dword [esi + 0x698], ebx
je 0x1000c3fb
cmp dword [esi + 0x69c], ebx
je 0x1000c3fb
cmp dword [esi + 0x6a0], ebx
je 0x1000c3fb
cmp dword [esi + 0x6a4], ebx
je 0x1000c3fb
cmp eax, ebx
je 0x1000c3fb
mov byte [esi + 5], 1
mov ecx, esi
mov dword [esi + 8], ebx
call fcn.1000c4a2
push 2
pop ecx
mov edx, eax
pop edi
or edx, ecx
pop ebp
pop ebx
cmp eax, edx
jne 0x1000c416
mov dword [esi + 8], ecx
xor ecx, ecx
inc ecx
mov edx, eax
or edx, ecx
cmp eax, edx
jne 0x1000c424
mov dword [esi + 8], ecx
mov eax, esi
ret

Function at 0x1000c886
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x100ce038]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x10
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x50], eax
cmp eax, ebx
je 0x1000c921
push 0xf4
lea eax, [ebp - 0x148]
push ebx
push eax
mov dword [ebp - 0x14c], ebx
call sub.MSVCR90.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
add esp, 0xc
push ebx
push 0x40
lea eax, [ebp - 0x4c]
push eax
push edi
push dword [ebp - 0x50]
call esi
mov eax, 0x5a4d
cmp ax, word [ebp - 0x4c]
jne 0x1000c904
push ebx
push 0xf8
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 0x10]
add edi, eax
push edi
push dword [ebp - 0x50]
call esi
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14c], 0x4550
jne 0x1000c921
mov eax, dword [ebp - 0x118]
jmp 0x1000c923
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006b19e
leave
ret 4
Function at 0x1000cf7e
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push 0x1008825c
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [esi + 0x28], eax
test eax, eax
jne 0x1000cfa9
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x28], eax
test eax, eax
jne 0x1000cfa9
xor al, al
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1008a060
push dword [esi + 0x28]
call edi
test eax, eax
je 0x1000d002
push str.Process32First
push dword [esi + 0x28]
mov dword [esi + 0x10], eax
call edi
test eax, eax
je 0x1000d002
push str.Process32Next
push dword [esi + 0x28]
mov dword [esi + 0x14], eax
call edi
test eax, eax
je 0x1000d002
push str.Module32First
push dword [esi + 0x28]
mov dword [esi + 0x18], eax
call edi
test eax, eax
je 0x1000d002
push str.Module32Next
push dword [esi + 0x28]
mov dword [esi + 0x1c], eax
call edi
test eax, eax
jne 0x1000d016
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x30], 2
xor al, al
jmp 0x1000d01f
mov dword [esi + 0x20], eax
mov byte [esi + 0x2d], 1
mov al, 1
pop edi
pop esi
ret
Function at 0x1000e265
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4008
call fcn.1006bbf0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ebx, eax
add ebx, 3
push 0
mov esi, ecx
pop ecx
mov edi, edx
adc edi, ecx
and ebx, 0xfffffffc
mov dword [ebp - 8], ebx
cmp eax, ecx
jne 0x1000e297
cmp edx, ecx
je 0x1000e2a3
cmp edx, dword [esi + 0x14]
jb 0x1000e2ae
ja 0x1000e2a3
cmp eax, dword [esi + 0x10]
jbe 0x1000e2ae
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
mov dword [ebp - 8], eax
mov ebx, eax
cmp dword [ebp + 0x10], ecx
je 0x1000e2b9
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x30], ecx
mov eax, dword [esi + 0x3c]
cmp ecx, edi
ja 0x1000e3f3
jb 0x1000e2ce
cmp eax, ebx
jae 0x1000e3f3
mov eax, dword [esi + 4]
push ecx
push 0x8000000
push 3
push ecx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea ecx, [ebp + 0x10]
push ecx
push dword [esi + 0x3c]
mov dword [ebp + 0xc], eax
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x3c]
xor ecx, ecx
cmp ecx, edi
ja 0x1000e3ea
jb 0x1000e317
cmp eax, ebx
jae 0x1000e3ea
jmp 0x1000e317
mov ebx, dword [ebp - 8]
mov eax, 0x4000
cmp ebx, eax
jbe 0x1000e322
mov ebx, eax
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
lea eax, [ebp - 0x4008]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000e3ea
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jbe 0x1000e3ea
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x1000e35d
mov eax, dword [eax]
test eax, eax
jne 0x1000e3ea
test dword [ebp + 0x10], 0xfffffffc
jbe 0x1000e394
mov eax, dword [ebp + ebx*4 - 0x4008]
add dword [esi + 0x30], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1000e387
mov ecx, dword [eax]
add ecx, 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
inc ebx
shr ecx, 2
cmp ebx, ecx
jb 0x1000e366
jmp 0x1000e397
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
and edx, 3
je 0x1000e3bc
push 4
pop ecx
sub ecx, edx
shl ecx, 3
or ebx, 0xffffffff
shr ebx, cl
mov ecx, dword [ebp + 0x10]
shr ecx, 2
and ebx, dword [ebp + ecx*4 - 0x4008]
add dword [esi + 0x30], ebx
test eax, eax
je 0x1000e3cc
mov ecx, dword [eax]
add ecx, edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp + 0x10]
add dword [esi + 0x3c], eax
mov eax, dword [esi + 0x3c]
xor ecx, ecx
cmp ecx, edi
jb 0x1000e314
ja 0x1000e3ea
cmp eax, dword [ebp - 8]
jb 0x1000e314
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1000e3fd
Capabilities:
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4008
call fcn.1006bbf0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ebx, eax
add ebx, 3
push 0
mov esi, ecx
pop ecx
mov edi, edx
adc edi, ecx
and ebx, 0xfffffffc
mov dword [ebp - 8], ebx
cmp eax, ecx
jne 0x1000e42f
cmp edx, ecx
je 0x1000e43b
cmp edx, dword [esi + 0x14]
jb 0x1000e446
ja 0x1000e43b
cmp eax, dword [esi + 0x10]
jbe 0x1000e446
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
mov dword [ebp - 8], eax
mov ebx, eax
cmp dword [ebp + 0x10], ecx
je 0x1000e452
or dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x38], ecx
mov eax, dword [esi + 0x38]
cmp ecx, edi
ja 0x1000e5ce
jb 0x1000e467
cmp eax, ebx
jae 0x1000e5ce
mov eax, dword [esi + 4]
push ecx
push 0x8000000
push 3
push ecx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea ecx, [ebp + 0x10]
push ecx
push dword [esi + 0x38]
mov dword [ebp + 0xc], eax
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x38]
xor ecx, ecx
cmp ecx, edi
ja 0x1000e5b1
jb 0x1000e4b0
cmp eax, ebx
jae 0x1000e5b1
jmp 0x1000e4b0
mov ebx, dword [ebp - 8]
mov eax, 0x4000
cmp ebx, eax
jbe 0x1000e4bb
mov ebx, eax
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
lea eax, [ebp - 0x4008]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000e5b1
cmp dword [ebp + 0x10], 0
jbe 0x1000e5b1
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1000e4f5
mov eax, dword [eax]
test eax, eax
jne 0x1000e5b1
xor ebx, ebx
test dword [ebp + 0x10], 0xfffffffc
jbe 0x1000e542
movzx ecx, byte [esi + 0x34]
movzx eax, byte [ebp + ebx*4 - 0x4008]
xor eax, ecx
mov ecx, dword [esi + 0x34]
shr ecx, 8
xor ecx, dword [eax*4 + 0x100869c0]
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x34], ecx
test eax, eax
je 0x1000e535
mov ecx, dword [eax]
add ecx, 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
inc ebx
shr ecx, 2
cmp ebx, ecx
jb 0x1000e500
jmp 0x1000e545
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
and edx, 3
je 0x1000e583
or ebx, 0xffffffff
push 4
pop ecx
sub ecx, edx
shl ecx, 3
shr ebx, cl
movzx ecx, bl
mov ebx, dword [ebp + 0x10]
shr ebx, 2
movzx ebx, byte [ebp + ebx*4 - 0x4008]
and ecx, ebx
movzx ebx, byte [esi + 0x34]
xor ecx, ebx
mov ebx, dword [esi + 0x34]
shr ebx, 8
xor ebx, dword [ecx*4 + 0x100869c0]
mov dword [esi + 0x34], ebx
test eax, eax
je 0x1000e593
mov ecx, dword [eax]
add ecx, edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp + 0x10]
add dword [esi + 0x38], eax
mov eax, dword [esi + 0x38]
xor ecx, ecx
cmp ecx, edi
jb 0x1000e4ad
ja 0x1000e5b1
cmp eax, dword [ebp - 8]
jb 0x1000e4ad
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x38]
xor ecx, ecx
cmp ecx, dword [esi + 0x14]
jb 0x1000e5ce
ja 0x1000e5cb
cmp eax, dword [esi + 0x10]
jb 0x1000e5ce
not dword [esi + 0x34]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1000f956
Capabilities:
Read file via mapping

Disassembly:
push 0x28
mov eax, 0x1006ddec
call fcn.1006c26d
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 0xc]
or dword [eax], 0xffffffff
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
cmp dword [ecx + 4], esi
jne 0x1000f99b
push 0x100a24f8
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], esi
call sub.MSVCR90.dll__CxxThrowException
mov dword [ebp - 0x14], 0x17
mov eax, 0x1000f999
ret
push esi
push 0x8000027
push 3
push esi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, 0xffffffff
je 0x1000fa29
lea eax, [ebp - 0x2c]
push eax
push edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
call sym.winzipsshelper.dll_protected:_static_bool___cdecl_CCrc32Dynamic::GetFileSizeQW_void__const__long_long___int64___
pop ecx
pop ecx
test al, al
jne 0x1000fa0d
mov dword [ebp - 0x14], 0x18
cmp dword [ebp - 0x1c], esi
je 0x1000f9ef
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], esi
je 0x1000f9fd
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
not dword [eax]
mov eax, dword [ebp - 0x14]
call fcn.1006c312
ret 8
mov eax, dword [ebp - 0x2c]
or eax, dword [ebp - 0x28]
je 0x1000f9e1
push esi
push esi
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x18], eax
cmp eax, esi
jne 0x1000fa34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x1000f9e1
cmp dword [ebp - 0x28], esi
jl 0x1000f9e1
jg 0x1000fa40
cmp dword [ebp - 0x2c], esi
jbe 0x1000f9e1
cmp dword [ebp - 0x28], esi
jg 0x1000fa55
jl 0x1000fa50
cmp dword [ebp - 0x2c], 0xa00000
jae 0x1000fa55
mov esi, dword [ebp - 0x2c]
jmp 0x1000fa5a
mov esi, 0xa00000
mov eax, dword [ebp - 0x30]
push esi
push dword [ebp - 0x34]
sar eax, 0x1f
push dword [ebp - 0x30]
push 4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp + 8], esi
mov ebx, edi
mov eax, dword [ebp + 8]
dec dword [ebp + 8]
test eax, eax
jbe 0x1000fa95
movzx eax, byte [ebx]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x24]
push eax
call sym.winzipsshelper.dll_protected:_void___thiscall_CCrc32Dynamic::CalcCrc32_unsigned_char__unsigned_long_int__const
inc ebx
jmp 0x1000fa79
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
add dword [ebp - 0x34], esi
adc dword [ebp - 0x30], eax
sub dword [ebp - 0x2c], esi
sbb dword [ebp - 0x28], eax
xor esi, esi
jmp 0x1000fa34
Function at 0x10010ff0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
call sym.winzipsshelper.dll_public:_void___thiscall_CGdiPlusBitmapResource::Empty_void_
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x1001110a
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x1001110a
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x1001110a
push dword [ebp + 0xc]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x1001110a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x100110fe
push dword [ebp + 0xc]
push edi
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [esi + 8]
mov dword [ebp + 0x10], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x100110f5
mov eax, dword [ebp + 0x10]
push 0x10
mov dword [ebp + 8], eax
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
cmp edi, ebx
je 0x100110c2
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov dword [edi], vtable.Gdiplus::Bitmap.0
mov dword [ebp + 0xc], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
jmp 0x100110c4
xor edi, edi
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x100110f5
mov ecx, dword [eax + 8]
mov dword [eax + 8], ebx
cmp ecx, ebx
jne 0x100110e5
mov al, 1
jmp 0x1001110c
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x100110f2
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 4], ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], ebx
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 0xc