joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10021060
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x10142fbb
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [esp + 0x10]
mov ebx, 1
push eax
mov dword [esp + 0x58], ebx
call fcn.10003040
add esp, 4
push str.EditPartion.ini
lea ecx, [esp + 0x14]
call dword [0x1014c4e8]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [esp + 0x54], 2
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x100210e8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP80.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__]
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x10021102
lea eax, [esp + 0x30]
push eax
push ebx
push str.EditDiscPartItem
push str.EditPartition
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
sub eax, ebx
mov ecx, esi
je 0x10021149
sub eax, ebx
je 0x1002113c
sub eax, ebx
je 0x1002112f
push str.error
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
jmp 0x10021154
push 0x101547f8
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
jmp 0x10021154
push str.space2allpart
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
jmp 0x10021154
push str.noresize
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x2c]
mov dword [esp + 8], ebx
mov byte [esp + 0x54], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10130e50
add esp, 0x50
ret
Function at 0x100211a0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x10142fbb
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [esp + 0x10]
mov ebx, 1
push eax
mov dword [esp + 0x58], ebx
call fcn.10003040
add esp, 4
push str.EditPartion.ini
lea ecx, [esp + 0x14]
call dword [0x1014c4e8]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [esp + 0x54], 2
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x10021228
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP80.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__]
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x10021242
lea eax, [esp + 0x30]
push eax
push 0
push str.ResizePart
push str.EditPartition
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [esp + 0x5c], 0
jne 0x1002126f
test eax, eax
je 0x1002126f
push 0x10153e30
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
jmp 0x1002127c
push 0x10153e2c
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x2c]
mov dword [esp + 8], ebx
mov byte [esp + 0x54], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10130e50
add esp, 0x50
ret 4
Function at 0x10027750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101453c6
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov dword [edi + 4], vtable.IConvert.0
lea ebp, [edi + 0xc]
xor ebx, ebx
mov dword [edi], vtable.CUiBackup.0
mov dword [edi + 4], vtable.CUiBackup.1.0
mov dword [esp + 0x18], edi
mov dword [ebp + 0x210], ebx
mov dword [ebp + 0x214], ebx
mov dword [ebp + 0x218], ebx
push 0x3818
mov dword [esp + 0x54], ebx
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x50], 1
je 0x100277d7
mov esi, eax
call fcn.1002c1c0
jmp 0x100277d9
xor eax, eax
mov byte [esp + 0x50], bl
mov dword [edi + 0x430], eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x20]
call eax
push 0x208
push ebx
push ebp
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x208
lea ecx, [edi + 0x228]
push ebx
push ecx
call sub.MSVCR80.dll_memset
mov dword [edi + 0x438], ebx
mov dword [edi + 0x434], ebx
mov edx, dword [str.My_Backup]
mov eax, dword [0x10154f8c]
mov ecx, dword [0x10154f90]
mov dword [esp + 0x38], edx
mov edx, dword [0x10154f94]
mov dword [esp + 0x3c], eax
mov eax, dword [0x10154f98]
mov dword [esp + 0x40], ecx
mov cx, word [0x10154f9c]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
add esp, 0xc
mov ebx, 0x104
lea edx, [esp + 0x2c]
mov eax, ebp
mov word [esp + 0x40], cx
call fcn.10001650
mov ecx, dword [edi + 0x430]
mov edx, dword [ecx]
mov eax, dword [edx + 0xec]
push ebp
call eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.RPCRT4.dll_UuidCreate]
mov esi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x430]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x30]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x34]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x38]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0xe8]
call eax
mov dword [edi + 8], 0
mov eax, edi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.10130e50
add esp, 0x44
ret
Function at 0x10028430
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10145386
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [edi + 4], vtable.IConvert.0
lea esi, [edi + 0xc]
push esi
mov dword [esp + 0x14], edi
mov dword [edi], vtable.CUiClone.0
mov dword [edi + 4], vtable.CUiClone.1.0
call fcn.10028550
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [edi + 8], eax
mov ecx, dword [str.Clone_Task]
mov edx, dword [0x1015503c]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x10155040]
mov dword [esp + 0x18], edx
mov edx, dword [0x10155044]
push 0x208
mov dword [esp + 0x20], ecx
mov ecx, dword [0x10155048]
mov dword [esp + 0x24], edx
mov dx, word [0x1015504c]
push eax
push esi
mov dword [esp + 0x30], ecx
mov word [esp + 0x34], dx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ebx, 0x104
lea edx, [esp + 0x14]
mov eax, esi
call fcn.10001650
xor ebx, ebx
push 0x3818
mov dword [edi + 0x240], ebx
mov dword [edi + 0x23c], ebx
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x38], 1
je 0x10028518
mov esi, eax
call fcn.1002c1c0
jmp 0x1002851a
xor eax, eax
mov byte [esp + 0x38], bl
mov dword [edi + 0x234], eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.10130e50
add esp, 0x30
ret
Function at 0x10029e60
Capabilities:
Get disk information

Disassembly:
sub esp, 0x10
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
push edi
je 0x10029ec1
mov ecx, esi
lea edi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x10029e80
sub ecx, edi
sar ecx, 1
je 0x10029ec1
mov eax, dword [0x101550b4]
mov ecx, dword [0x101550b8]
mov dx, word [esi]
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 0xc], ecx
mov word [esp + 8], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 5
sete cl
mov eax, ecx
mov ecx, dword [esp + 0xc]
pop edi
xor ecx, esp
call fcn.10130e50
add esp, 0x10
ret

Function at 0x10029ee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10145347
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
mov dword [ebp + 4], vtable.IConvert.0
xor edi, edi
mov dword [ebp], vtable.CUiFlbackup.0
mov dword [ebp + 4], vtable.CUiFlbackup.1.0
mov dword [esp + 0x18], ebp
mov dword [ebp + 0x42c], edi
mov dword [ebp + 0x430], edi
mov dword [ebp + 0x434], edi
mov dword [esp + 0x5c], edi
mov dword [ebp + 0x43c], edi
mov dword [ebp + 0x440], edi
mov dword [ebp + 0x444], edi
push 0x208
lea eax, [ebp + 0x14]
mov bl, 1
mov byte [esp + 0x60], bl
push edi
push eax
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0x10], edi
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x208
lea eax, [ebp + 0x21c]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3818
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
mov byte [esp + 0x5c], 2
je 0x10029fb2
mov esi, eax
call fcn.1002c1c0
jmp 0x10029fb4
xor eax, eax
mov byte [esp + 0x5c], bl
mov dword [ebp + 0x424], eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
call eax
mov ecx, 8
mov esi, str.My_File_Backup
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp + 0x14]
mov ebx, 0x104
lea edx, [esp + 0x2c]
mov eax, esi
call fcn.10001650
mov ecx, dword [ebp + 0x424]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c4]
push esi
call eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.RPCRT4.dll_UuidCreate]
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x424]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x30]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x34]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x38]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x2c0]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10130e50
add esp, 0x4c
ret 4
Function at 0x1002ae20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101452b9
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
mov dword [ebp + 4], vtable.IConvert.0
xor ebx, ebx
mov dword [ebp], vtable.CUiFlBackupToCloud.0
mov dword [ebp + 4], vtable.CUiFlBackupToCloud.1.0
mov dword [esp + 0x18], ebp
mov dword [ebp + 0x42c], ebx
mov dword [ebp + 0x430], ebx
mov dword [ebp + 0x434], ebx
push 0x208
mov dword [esp + 0x60], ebx
lea eax, [ebp + 0x14]
push ebx
push eax
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0x10], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x208
lea eax, [ebp + 0x21c]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3818
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x5c], 1
je 0x1002aeda
mov esi, eax
call fcn.1002c1c0
jmp 0x1002aedc
xor eax, eax
mov byte [esp + 0x5c], bl
mov dword [ebp + 0x424], eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
call eax
mov ecx, 8
mov esi, str.My_File_Backup
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp + 0x14]
mov ebx, 0x104
lea edx, [esp + 0x2c]
mov eax, esi
call fcn.10001650
mov ecx, dword [ebp + 0x424]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c4]
push esi
call eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.RPCRT4.dll_UuidCreate]
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x424]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x30]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x34]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x38]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x2c0]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10130e50
add esp, 0x4c
ret 4
Function at 0x1002c1c0
Capabilities:
Get common file path

Disassembly:
mov dword [esi + 4], vtable.IConvert.0
push ebx
xor ebx, ebx
push 0x1d88
mov dword [esi], vtable.CUiOption.0
mov dword [esi + 4], vtable.CUiOption.1.0
mov dword [esi + 0x380c], ebx
mov dword [esi + 0x3810], ebx
mov dword [esi + 0x3814], ebx
lea eax, [esi + 0x1840]
push ebx
push eax
mov byte [esi + 0x37f0], bl
mov dword [esi + 0x35dc], ebx
mov dword [esi + 0x35d8], ebx
mov dword [esi + 0x35e0], ebx
mov dword [esi + 0x35e4], ebx
mov dword [esi + 0x35c8], ebx
mov dword [esi + 0x35d0], ebx
mov dword [esi + 0x35d4], ebx
mov dword [esi + 0x35cc], ebx
mov dword [esi + 0x3804], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x618
lea ecx, [esi + 0x1224]
push ebx
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0xcf4
lea edx, [esi + 0x530]
push ebx
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esi + 0x35e8]
push eax
push 0x104
mov dword [esi + 0x37f4], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [esi + 0x37f8], ebx
mov eax, esi
pop ebx
ret

Function at 0x10030220
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
xor eax, eax
test edi, edi
je 0x100302a4
push ebx
push esi
push 0x34
push str.Backupper_Service
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1003029a
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x10], 1
je 0x10030297
lea ecx, [esp + 0xc]
push ecx
push 0xc9
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call ebx
push edi
call ebx
pop esi
mov eax, 1
pop ebx
pop edi
add esp, 0x1c
ret
Function at 0x10031f00
Capabilities:
Delete file
Get common file path

Disassembly:
push 0x94
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x10031f1f
mov dword [esp + 4], eax
mov ecx, 1
jmp fcn.10031f40
xor eax, eax
ret 4
Function at 0x100322f0
Capabilities:
Modify service
Query service status
Start service

Disassembly:
push esi
mov esi, ecx
call fcn.100327e0
cmp dword [esi + 0x14], 0
mov eax, dword [esi]
mov ecx, esi
je 0x10032310
mov edx, dword [eax + 0x138]
call edx
pop esi
jmp fcn.10030380
mov edx, dword [eax + 0x13c]
call edx
pop esi
jmp fcn.10030380
Function at 0x10039480
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1014a19b
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
push 0x2f8
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x38], ecx
je 0x100394d5
push eax
call fcn.10007f70
mov dword [esp + 0x14], eax
jmp 0x100394d9
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [ebx]
mov edx, dword [eax + 0x104]
mov ecx, ebx
call edx
mov edi, dword [ebp + 8]
cmp edi, eax
jge 0x10039585
cmp edi, 0xffffffff
jle 0x10039585
mov eax, dword [ebx + 0x4c]
test eax, eax
lea esi, [ebx + 0x48]
je 0x10039527
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x86d90545
imul ecx
add edx, ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x1003952d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 4]
mov eax, edi
imul eax, eax, 0x1e60
cmp dword [eax + ecx + 0xa88], 0xffffffff
je 0x10039585
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov dword [esp + 0x18], eax
call fcn.1005b730
mov edi, dword [eax + 0xa88]
lea esi, [ebx + 0x78]
call fcn.1005ba80
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push eax
mov eax, dword [edx]
mov ecx, esi
call eax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebx]
mov edx, dword [edx + 0x30]
push edi
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call edx
mov edx, dword [eax]
mov esi, dword [esp + 0x14]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.10008420
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1004c2a0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x344
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push esi
push edi
push 0x7e
lea eax, [esp + 0xc6]
push 0
push eax
mov esi, ecx
mov word [esp + 0xcc], 0
call sub.MSVCR80.dll_memset
mov edi, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
add esp, 0xc
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call edx
mov ebx, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push edi
lea ecx, [esp + 0x84]
push ecx
mov ecx, esi
call edx
movzx eax, byte [eax + 0xf]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
push eax
push edi
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call edx
movzx eax, byte [eax + 0xe]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
push eax
push edi
lea eax, [esp + 0xbc]
push eax
mov ecx, esi
call edx
movzx eax, byte [eax + 0xd]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
push eax
push edi
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call edx
movzx eax, byte [eax + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
push eax
push edi
lea eax, [esp + 0xb4]
push eax
mov ecx, esi
call edx
movzx eax, byte [eax + 0xb]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
push eax
push edi
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call edx
movzx eax, byte [eax + 0xa]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
push eax
push edi
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call edx
movzx eax, byte [eax + 9]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
push eax
push edi
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call edx
movzx eax, byte [eax + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
push eax
push edi
lea eax, [esp + 0x94]
push eax
mov ecx, esi
call edx
movzx eax, word [eax + 6]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
push eax
push edi
lea eax, [esp + 0xb8]
push eax
mov ecx, esi
call edx
movzx eax, word [eax + 4]
mov ecx, dword [ebx]
push eax
push ecx
lea edx, [esp + 0xec]
push 0x101527d8
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x206
lea eax, [esp + 0x17a]
push 0
push eax
mov word [esp + 0x180], 0
call sub.MSVCR80.dll_memset
add esp, 0x40
lea ecx, [esp + 0x140]
push ecx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x1015719c
lea edx, [esp + 0x144]
push 0x104
push edx
call esi
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x150]
push 0x104
push ecx
call esi
add esp, 0x18
lea edx, [esp + 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
pop esi
pop ebx
mov eax, ecx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.10130e50
mov esp, ebp
pop ebp
ret 4