joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a470
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b2dc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00476ab0
xor edi, edi
mov dword [esi], vtable.Xunlei::FileSystem::CacheFile.0
mov dword [esp + 0x14], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esi + 8]
mov byte [esp + 0x18], 1
mov dword [esi + 0x24], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x47a800
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0x30]
mov eax, dword [ecx]
push edi
call dword [eax + 0x28]
mov ecx, dword [ebx + 0x30]
mov edx, dword [ecx]
mov edi, eax
call dword [edx + 0x18]
cmp eax, 0x68
jae 0x47a82d
lea edi, [ebx + 0x34]
mov ecx, 0x1a
mov eax, 0x20202020
rep stosd dword es:[edi], eax
pop edi
pop ebx
ret
push ebp
push esi
push 0x68
call fcn.0049ecdd
mov ebp, eax
add esp, 4
xor ecx, ecx
sub edi, ebp
nop
mov al, cl
inc al
imul al
add al, cl
add al, 2
mov dl, 0xea
imul dl
lea esi, [ecx + ebp]
xor al, byte [edi + esi]
inc ecx
cmp ecx, 0x68
mov byte [esi], al
jb 0x47a840
lea edi, [ebx + 0x34]
mov ecx, 0x1a
mov esi, ebp
push ebp
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x47ab00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b2dd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00476ab0
mov edi, dword [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x14], 0
mov dword [esi], vtable.Xunlei::FileSystem::XARFile.0
mov dword [esi + 0x30], edi
call fcn.00476ae0
mov ecx, edi
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.00476b20
push eax
lea ecx, [esi + 8]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov ecx, esi
call fcn.0047a800
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x47ac9f
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xa8]
sub esp, 0x128
mov eax, dword [0x4f0dd0]
push edi
mov edi, dword [ebp + 0xb0]
xor eax, ebp
test edi, edi
mov dword [ebp + 0xa4], eax
je 0x47acd6
lea eax, [ebp - 0x80]
push eax
push edi
call dword [sym.imp.MSVCR71.dll__wstat]
test eax, eax
pop ecx
pop ecx
je 0x47acda
xor eax, eax
jmp 0x47ad31
push esi
mov esi, 0x100
cmp dword [ebp - 0x6c], esi
jle 0x47ace9
xor eax, eax
jmp 0x47ad30
push 0
push edi
call dword [sym.imp.MSVCR71.dll__wopen]
mov edi, eax
cmp edi, 0xffffffff
pop ecx
pop ecx
je 0x47ace5
push esi
lea eax, [ebp - 0x5c]
push eax
push edi
call dword [sym.imp.MSVCR71.dll__read]
add esp, 0xc
test eax, eax
push edi
jne 0x47ad19
call dword [sym.imp.MSVCR71.dll__close]
xor eax, eax
jmp 0x47ad2f
mov byte [ebp + eax - 0x5c], 0
call dword [sym.imp.MSVCR71.dll__close]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
pop ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0xa4]
xor ecx, ebp
pop edi
call fcn.0049f127
add ebp, 0xa8
leave
ret 4
Function at 0x47b8bd
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4b2ecb
call fcn.0049f0d0
sub esp, 0x2c
mov ecx, dword [ebp + 0xc]
push 0x4b8650
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47b8ec
xor al, al
jmp 0x47b9c1
push ebx
lea ecx, [ebp - 0x38]
call fcn.0040847b
xor ebx, ebx
push ebx
push ebx
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.004090e2
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.00409138
test al, al
lea ecx, [ebp - 0x34]
jne 0x47b923
call fcn.004068ed
mov byte [ebp + 0xb], bl
jmp 0x47b9b1
push edi
call fcn.004068ed
lea ecx, [ebp - 0x38]
call fcn.0040673f
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, ebx
mov byte [ebp - 4], 1
jne 0x47b943
mov byte [ebp + 0xb], bl
jmp 0x47b9b0
lea ecx, [edi + 0x30]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
cmp eax, ebx
je 0x47b9a3
push str.info
push eax
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x47b9a3
push esi
push ebx
mov ecx, edi
call fcn.004075d2
mov esi, eax
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov ecx, esi
call fcn.00407c6a
mov ecx, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x47b99c
mov ecx, esi
call fcn.004063b8
mov byte [ebp + 0xb], 1
pop esi
jmp 0x47b9a6
mov byte [ebp + 0xb], bl
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.004063b8
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00407c94
mov al, byte [ebp + 0xb]
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8

Function at 0x47df53
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
mov ecx, dword [esi + 4]
call fcn.0047bd99
test al, al
je 0x47dfa2
mov ecx, dword [esi + 4]
call fcn.0047de20
push esi
mov ecx, edi
call fcn.0047c3c5
test al, al
je 0x47df91
mov ecx, dword [esi + 4]
add ecx, 0xbc
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 4]
mov dword [eax + 0x98], 4
xor al, al
jmp 0x47dfa4
mov al, 1
pop edi
pop esi
ret 4
Function at 0x47f545
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4b325e
call fcn.0049f0d0
sub esp, 0x38
push dword [ebp + 8]
mov dword [ebp - 0x10], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47f569
xor al, al
jmp 0x47f6aa
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.0040847b
xor esi, esi
push esi
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], esi
call fcn.004090e2
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
call fcn.00409138
test al, al
lea ecx, [ebp - 0x40]
jne 0x47f5a0
call fcn.004068ed
xor bl, bl
jmp 0x47f69a
push edi
call fcn.004068ed
lea ecx, [ebp - 0x44]
call fcn.0040673f
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, esi
mov byte [ebp - 4], 1
jne 0x47f5c2
xor bl, bl
jmp 0x47f699
lea ecx, [edi + 0x30]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
cmp eax, esi
je 0x47f68c
push str.auto_thunder_skin
push eax
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x47f68c
lea ecx, [edi + 0x80]
call fcn.00465347
cmp eax, esi
mov dword [ebp - 0x14], eax
mov dword [ebp + 8], esi
jbe 0x47f67a
push dword [ebp + 8]
mov ecx, edi
call fcn.004075d2
mov esi, eax
mov dword [ebp - 0x1c], esi
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov ebx, eax
push str.info
push ebx
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x47f637
mov ecx, dword [ebp - 0x10]
push esi
call fcn.0047e18b
jmp 0x47f660
push str.skin_package_list
push ebx
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x47f653
mov ecx, dword [ebp - 0x10]
push esi
call fcn.0047f4a5
jmp 0x47f660
push ebx
push str.unknown_attr:_S
call fcn.0044f0cd
pop ecx
pop ecx
test esi, esi
mov byte [ebp - 4], 1
je 0x47f66f
mov ecx, esi
call fcn.004063b8
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x14]
jb 0x47f5fd
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xb0]
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, 1
jmp 0x47f68e
xor bl, bl
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.004063b8
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00407c94
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x47f6f1
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp edi, 1
mov esi, ecx
jge 0x47f70d
push edi
push str.index_less_then_zero___index_d
call fcn.0044f0cd
pop ecx
pop ecx
jmp 0x47f74d
cmp byte [esi + 0xa5], 0
jne 0x47f731
lea ecx, [esi + 0x40]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47f731
mov ecx, esi
call fcn.0047f6b8
lea ecx, [esi + 0x78]
call fcn.00465347
test eax, eax
je 0x47f74d
lea ecx, [esi + 0xc8]
dec edi
call fcn.00465347
cmp edi, eax
jl 0x47f751
xor eax, eax
jmp 0x47f762
mov eax, dword [esi + 0xcc]
lea eax, [eax + edi*4]
mov eax, dword [eax]
inc dword [eax + 0xec]
pop edi
pop esi
ret 4
Function at 0x482734
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x4b35cd
call fcn.0049f0d0
sub esp, 0x3c
mov eax, dword [0x4f0dd0]
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
test esi, esi
push edi
mov dword [ebp - 0x10], eax
mov edi, ecx
jne 0x48275d
xor al, al
jmp 0x4827ed
push ebx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [ebp - 0x48]
push eax
push esi
mov byte [ebp - 4], 1
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push esi
call fcn.0043c417
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
mov ecx, edi
call fcn.004826db
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4827ce
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4827ce
xor bl, bl
jmp 0x4827d0
mov bl, 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.0049f127
leave
ret 4
Function at 0x483b5e
Capabilities:
Create directory

Disassembly:
mov eax, 0x4b37a8
call fcn.0049f0d0
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.MSVCR71.dll__wmkdir]
test eax, eax
pop ecx
je 0x483b9b
mov edi, dword [sym.imp.MSVCR71.dll__errno]
call edi
cmp dword [eax], 0x11
je 0x483b9b
call edi
push dword [eax]
push str.create_dir_failed__errno_d
call fcn.0044f0cd
pop ecx
pop ecx
xor al, al
jmp 0x483c0e
push dword [ebp + 8]
lea edi, [esi + 0xc]
mov ecx, edi
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push edi
lea ecx, [esi + 0x28]
call dword [0x4b743c]
push 0x94
call fcn.0049ecb8
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x483bdb
push 0
push str.thunder_skin
call fcn.00407b3b
mov edi, eax
jmp 0x483bdd
xor edi, edi
mov dword [ebp + 8], edi
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x44]
mov dword [ebp - 4], 1
call fcn.0047fec7
mov ecx, dword [esi + 0x48]
push 0
call fcn.0048375e
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x483c0c
mov ecx, edi
call fcn.004063b8
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4873cb
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x4b3bad
call fcn.0049f0d0
sub esp, 0x24
mov eax, dword [0x4f0dd0]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, ebp
mov edi, ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.MSVCR71.dll_wcslen]
pop ecx
push eax
push esi
call fcn.0043c751
add esp, 0xc
push 0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call sub.minizip.dll_zipOpen
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x48742d
xor bl, bl
jmp 0x4874a5
push esi
mov ecx, edi
call fcn.004872d1
mov bl, al
test bl, bl
je 0x48747d
push esi
mov ecx, edi
call fcn.00486aac
mov bl, al
test bl, bl
je 0x48747d
push esi
mov ecx, edi
call fcn.00486ba7
mov bl, al
test bl, bl
je 0x48747d
push esi
mov ecx, edi
call fcn.00486caf
mov bl, al
test bl, bl
je 0x48747d
push esi
mov ecx, edi
call fcn.00486d79
mov bl, al
test bl, bl
je 0x48747d
push esi
mov ecx, edi
call fcn.00486e74
mov bl, al
push 0
push esi
call sub.minizip.dll_zipClose
test bl, bl
pop ecx
pop ecx
jne 0x4874a3
push dword [ebp - 0x30]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x487429
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x487429
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0049f127
leave
ret 4
Function at 0x48c5b9
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x4f0dd0]
push ebx
xor eax, ebp
push esi
mov esi, dword [ebp + 0x39c]
mov dword [ebp + 0x390], eax
mov eax, dword [ebp + 0x3a4]
push edi
mov edi, dword [ebp + 0x3a0]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x78], eax
je 0x48c623
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48c623
cmp edi, ebx
je 0x48c623
cmp dword [ebp - 0x78], ebx
je 0x48c623
push ebx
lea eax, [ebp - 0x74]
push eax
push 0x4b8894
push esi
mov dword [ebp - 0x74], ebx
call fcn.0046c570
add esp, 0x10
test eax, eax
je 0x48c62a
xor al, al
jmp 0x48c6e2
push dword [ebp - 0x74]
call fcn.0046b9a0
mov esi, edx
cmp esi, ebx
pop ecx
mov edi, eax
jg 0x48c649
jl 0x48c6d7
cmp edi, ebx
jbe 0x48c6d7
push edi
call fcn.0049ecdd
push esi
push edi
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], eax
call fcn.0046bde0
add esp, 0x14
cmp edx, ebx
jg 0x48c66a
jl 0x48c6ce
cmp eax, ebx
jbe 0x48c6ce
mov esi, dword [ebp - 0x80]
push esi
call sub.MSVCR71.dll_strlen
pop ecx
xor ecx, ecx
cmp eax, ebx
jbe 0x48c69b
lea edx, [ebp - 0x70]
sub esi, edx
lea edx, [esi + ecx]
mov dl, byte [ebp + edx - 0x70]
cmp dl, 0x5c
jne 0x48c692
mov byte [ebp + ecx - 0x70], 0x2f
jmp 0x48c696
mov byte [ebp + ecx - 0x70], dl
inc ecx
cmp ecx, eax
jb 0x48c67f
push 0xffffffffffffffff
push 8
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
mov byte [ebp + ecx - 0x70], bl
call sub.minizip.dll_zipOpenNewFileInZip
push edi
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
call sub.minizip.dll_zipWriteInFileInZip
push dword [ebp - 0x78]
call sub.minizip.dll_zipCloseFileInZip
add esp, 0x38
mov bl, 1
push dword [ebp - 0x7c]
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x74]
call fcn.0046be30
pop ecx
mov al, bl
mov ecx, dword [ebp + 0x390]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f127
add ebp, 0x394
leave
ret 0xc
Function at 0x48ce1c
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4f0dd0]
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, eax
test edi, edi
jne 0x48ce4e
xor al, al
jmp 0x48cf04
push esi
mov esi, dword [sym.imp.MSVCR71.dll__wcsicmp]
push str..jpg
push edi
call esi
test eax, eax
pop ecx
pop ecx
je 0x48ceae
push str..jpeg
push edi
call esi
test eax, eax
pop ecx
pop ecx
je 0x48ceae
push str..png
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x48ce86
mov esi, str.image_png
jmp 0x48ceb3
push str..bmp
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x48ce9b
mov esi, str.image_bmp
jmp 0x48ceb3
push ebx
push edi
push str.cant_save_thumbnail_for_ext:__S__file_s
call fcn.0044f0cd
add esp, 0xc
xor al, al
jmp 0x48cf03
mov esi, str.image_jpeg
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48cec5
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0048c529
test al, al
jne 0x48cee5
push esi
push str.cant_get_encoder_clsid__format_S
call fcn.0044f0cd
pop ecx
pop ecx
jmp 0x48ceaa
mov ecx, dword [ebp - 0x18]
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.0042a6a6
test eax, eax
je 0x48cf01
push ebx
push eax
push str.gdi_save_file_failed__errno_d__file_s
jmp 0x48cea2
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0049f127
leave
ret 8

Function at 0x48fc20
Capabilities:
Parse pe header

Disassembly:
push 0x2c
push 0x4c9980
call fcn.0049f2f8
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x48fc8c
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
je 0x48fc64
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x48fc92
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x48fc5c
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x48fc5c
mov al, 1
jmp 0x48fc5e
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.0049f333
ret
Function at 0x48fd94
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
mov ebx, 0x10000
jbe 0x48fdb7
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x48fdba
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x48fdcd
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x48fdd4
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x53ae2c]
test eax, eax
mov ecx, dword [0x53ae28]
jne 0x48fdee
test ecx, ecx
je 0x48fe03
mov eax, ecx
mov dword [0x53ae2c], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x48fe03
cmp edx, dword [ebp - 4]
jb 0x48fe03
cmp edx, dword [ebp - 8]
jbe 0x48fed7
mov eax, ecx
test ecx, ecx
jmp 0x48fe27
test eax, eax
je 0x48fe22
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x48fe22
cmp ecx, dword [ebp - 4]
jb 0x48fe22
cmp ecx, dword [ebp - 8]
jbe 0x48fed7
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x53ae2c], eax
jne 0x48fe09
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp - 4]
mov edi, esi
jbe 0x48ff72
cmp edi, 0x70000000
jb 0x48fe57
cmp edi, 0x80000000
ja 0x48fe57
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x48ff72
cmp dword [ebp - 0x30], ebx
jne 0x48fe76
cmp dword [ebp - 0x34], ebx
jae 0x48fe89
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x48fe42
jmp 0x48ff72
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x53ae2c], eax
je 0x48ff72
mov ecx, dword [0x53ae28]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x53ae28], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x48fec9
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x48ff77
cmp esi, dword [ebp - 8]
ja 0x48ff77
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x48ff79
cmp esi, 0x70000000
jb 0x48ff1b
cmp esi, 0x80000000
ja 0x48ff1b
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x48ff77
cmp dword [ebp - 0x14], ebx
jne 0x48ff69
cmp dword [ebp - 0x18], ebx
jb 0x48ff69
mov ecx, esi
and ecx, 0xffff
je 0x48ff4d
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x53ae2c], eax
jne 0x48fea5
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x48ff06
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret