joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a080
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push ebx
push eax
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1002a0bf
mov byte [ebp - 0x21], 0
mov bl, byte [ebp - 0x21]
jmp 0x1002a0c9
shr ebx, 4
mov byte [ebp - 0x21], 1
and bl, 1
lea ecx, [ebp - 0x20]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
cmp byte [ebp - 0x21], 0
je 0x1002a0ec
test bl, bl
je 0x1002a0ec
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop ebx
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
Function at 0x1002a600
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push eax
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1002a63c
xor bl, bl
jmp 0x1002a645
shr eax, 4
mov bl, 1
and al, 1
mov byte [esi], al
lea ecx, [ebp - 0x20]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.1008bffe
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1002a6a5
xor bl, bl
jmp 0x1002a6ae
shr eax, 4
mov bl, 1
and al, 1
mov byte [esi], al
lea ecx, [ebp - 0x20]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
test bl, bl
je 0x1002a6cd
cmp byte [esi], 0
je 0x1002a6cd
push edi
call sym.XNewLookSch.dll_bool___cdecl_LFile::IsDirEmpty_class_LString_const__
mov ecx, dword [ebp - 0x24]
add esp, 4
mov byte [ecx], al
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
Function at 0x1002bbb0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d3171
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x48]
mov esi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x4c], 0
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
sub eax, dword [esi]
jne 0x1002bc37
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2c]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
lea eax, [ebp - 0x48]
push eax
call sym.XNewLookSch.dll_int___cdecl_LFile::touch_class_LString_const__
add esp, 4
mov esi, eax
jmp 0x1002bce5
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x4c], 1
call sym.XNewLookSch.dll_public:_static_int___cdecl_LString::ws2str_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____unsigned_int_
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x100efc64
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.100a1278
mov edx, dword [ebp - 0x14]
add esp, 0x14
mov edi, eax
cmp edx, 0x10
jb 0x1002bcae
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002bca4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002bd0a
push edx
push ecx
call fcn.1008bfe4
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test edi, edi
jne 0x1002bcc9
or esi, 0xffffffff
jmp 0x1002bce5
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push edi
push 1
sub ecx, eax
push ecx
push eax
call fcn.100a04c8
push edi
call fcn.1009ffb4
add esp, 0x14
xor esi, esi
lea ecx, [ebp - 0x48]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
call fcn.10092486
int3
Function at 0x1002bd10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d31c1
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x48], 0
test edi, edi
je 0x1002be24
cmp dword [ebp + 0x10], 0
jle 0x1002be24
lea eax, [ebp - 0x44]
push eax
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x48], 1
call sym.XNewLookSch.dll_public:_static_int___cdecl_LString::ws2str_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____unsigned_int_
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x100efc64
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.100a1278
mov edx, dword [ebp - 0x14]
add esp, 0x14
mov esi, eax
cmp edx, 0x10
jb 0x1002bddc
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002bdd2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002be44
push edx
push ecx
call fcn.1008bfe4
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test esi, esi
jne 0x1002be01
lea ecx, [ebp - 0x44]
or esi, 0xffffffff
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov eax, esi
jmp 0x1002be29
push esi
push 1
push dword [ebp + 0x10]
push edi
call fcn.100a04c8
push esi
call fcn.1009ffb4
add esp, 0x14
lea ecx, [ebp - 0x44]
xor esi, esi
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov eax, esi
jmp 0x1002be29
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
call fcn.10092486
int3
Function at 0x1002be50
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d31f8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push eax
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
push 0
push 0x80
push 3
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push 0
cmovae eax, dword [ebp - 0x28]
push 1
push connect
mov dword [ebx], 0
push eax
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1002bed2
or esi, eax
jmp 0x1002bf60
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1002beef
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffffe
jmp 0x1002bf60
mov eax, dword [ebp - 0x38]
mov dword [edi], eax
test eax, eax
jg 0x1002bf06
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffffd
jmp 0x1002bf60
add eax, 2
push eax
call fcn.1008bff2
add esp, 4
mov dword [ebx], eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push 0
push ecx
push dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x1002bf45
mov dword [edi], ecx
xor esi, esi
mov eax, dword [ebx]
mov byte [ecx + eax], 0
jmp 0x1002bf60
mov dword [edi], 0
push dword [ebx]
call fcn.1008c032
add esp, 4
mov dword [ebx], 0
mov esi, 0xffffff9c
lea ecx, [ebp - 0x2c]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
Function at 0x1002bfc0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d3228
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x48]
mov esi, dword [ebp + 0xc]
push eax
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 5
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push ecx
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
lea ecx, [ebp - 0x2c]
setne bl
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x48]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret

Function at 0x1002c060
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push ebx
push eax
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 4
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
lea ecx, [ebp - 0x20]
setne bl
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1008bffe
mov esp, ebp
pop ebp
ret

Function at 0x1002c0c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push ebx
push eax
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
lea ecx, [ebp - 0x20]
setne bl
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
Function at 0x1002c110
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d3228
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x48]
mov esi, dword [ebp + 0xc]
push eax
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x30], 8
push ecx
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
lea ecx, [ebp - 0x2c]
setne bl
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x48]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
Function at 0x1002c660
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d3228
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x48]
mov esi, dword [ebp + 0xc]
push eax
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
movzx eax, byte [ebp + 0x10]
lea ecx, [ebp - 0x44]
cmovae edx, dword [ebp - 0x28]
cmp dword [ebp - 0x30], 8
push eax
cmovae ecx, dword [ebp - 0x44]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
lea ecx, [ebp - 0x2c]
setne bl
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x48]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
Function at 0x1002c960
Capabilities:
Check if file exists
Get file attributes
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d339b
mov eax, dword fs:[0]
push eax
sub esp, 0xab4
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xa84]
push eax
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
push 1
lea eax, [ebp - 0xac0]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0xaa8], 0xc8
mov dword [ebp - 0xaa4], 0xc8
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 2
push 0x800
lea eax, [ebp - 0xa68]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
lea eax, [ebp - 0xaac]
push eax
lea eax, [ebp - 0xaa4]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0xaa8]
push eax
lea eax, [ebp - 0xd8]
push eax
push str.Everyone
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0xd8]
push eax
push 0x10000000
push 2
lea eax, [ebp - 0xa68]
push eax
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
push 0
lea eax, [ebp - 0xa68]
push eax
push 1
lea eax, [ebp - 0xac0]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0xaa0]
push eax
lea ecx, [ebp - 0xa84]
call sym.XNewLookSch.dll_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp dword [ebp - 0xa88], 8
lea eax, [ebp - 0xa9c]
cmovae eax, dword [ebp - 0xa9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea ecx, [ebp - 0xaa0]
setne bl
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
test bl, bl
je 0x1002caae
cmp dword [ebp - 0xa6c], 8
lea ecx, [ebp - 0xac0]
push ecx
lea eax, [ebp - 0xa80]
cmovae eax, dword [ebp - 0xa80]
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
jmp 0x1002cab3
mov esi, 0xfffffffd
lea ecx, [ebp - 0xa84]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
Function at 0x1002db90
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x101120a8]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x1002dbc8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
push 0x40
lea eax, [esp + 0xc]
push 0
push eax
call fcn.1008da10
push edi
push 1
lea eax, [esp + 0x1c]
push 0x40
push eax
call fcn.100a145b
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x1002dc08
mov esi, 0xfffffffc
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [esp + 8], ax
je 0x1002dc2f
mov esi, 0xfffffffb
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
push 0
push dword [esp + 0x48]
push edi
call fcn.100a0ba6
add esp, 0xc
test eax, eax
je 0x1002dc5d
mov esi, 0xfffffffa
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
push 0xf8
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.1008da10
push 0x108
lea eax, [esp + 0x150]
push 0
push eax
call fcn.1008da10
push edi
push 1
lea eax, [esp + 0x68]
push 0xf8
push eax
call fcn.100a145b
add esp, 0x28
cmp eax, 0xffffffff
jne 0x1002dcb7
mov esi, 0xfffffff9
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x48], 0x4550
je 0x1002dcdc
mov esi, 0xfffffff8
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
mov ax, word [esp + 0x60]
mov ecx, 0x10b
cmp ax, cx
jne 0x1002dd06
mov esi, 1
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
mov ecx, 0x20b
cmp ax, cx
jne 0x1002dda7
push 0
push dword [esp + 0x48]
mov esi, 2
push edi
call fcn.100a0ba6
add esp, 0xc
test eax, eax
je 0x1002dd47
mov esi, 0xfffffff6
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
push edi
push 1
lea eax, [esp + 0x148]
push 0x108
push eax
call fcn.100a145b
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1002dd7f
mov esi, 0xfffffff5
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x140], 0x4550
je 0x1002ddac
mov esi, 0xfffffff4
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
mov esi, 0xfffffff7
mov ecx, dword [esp + 0x24c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
Function at 0x100303c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d3769
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], 0
push 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
push ecx
add eax, 4
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], 1
call sym.XNewLookSch.dll_public:_static_int___cdecl_LString::ws2str_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____unsigned_int_
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x100efc08
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.100a1278
mov dword [ebp - 4], 0xffffffff
add esp, 0x14
mov edx, dword [ebp - 0x14]
mov edi, eax
cmp edx, 0x10
jb 0x10030480
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10030476
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003057c
push edx
push ecx
call fcn.1008bfe4
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x30], 0x64
test edi, edi
jne 0x100304a5
or eax, 0xffffffff
jmp 0x10030560
push 2
push 0
push edi
call fcn.100a0ba6
push edi
call fcn.100a11a1
push 0
push 0
push edi
mov dword [ebp - 0x2c], eax
call fcn.100a0ba6
add esp, 0x1c
mov ecx, edi
xor esi, esi
call fcn.1002db90
mov ebx, eax
cmp ebx, 1
je 0x100304e1
cmp ebx, 2
je 0x100304e1
mov dword [ebp - 0x30], ebx
xor eax, eax
jmp 0x1003053c
push 0
push 0
push edi
call fcn.100a0ba6
push dword [ebp - 0x2c]
call fcn.1008bff2
push edi
push 1
push dword [ebp - 0x2c]
mov esi, eax
push esi
call fcn.100a145b
add esp, 0x20
cmp eax, 0xffffffff
jne 0x10030514
mov dword [ebp - 0x30], 0xfffffffe
xor eax, eax
jmp 0x1003053c
mov eax, dword [esi + 0x3c]
push esi
cmp ebx, 1
jne 0x1003052b
push dword [eax + esi + 0x88]
call sym.XNewLookSch.dll_int___cdecl_LFile::RvaToRaw32_int__unsigned_char_const__
jmp 0x10030537
push dword [eax + esi + 0x98]
call sym.XNewLookSch.dll_int___cdecl_LFile::RvaToRaw32_int__unsigned_char_const__
add esp, 8
add eax, esi
push dword [ebp - 0x34]
push ebx
push esi
push eax
call sym.XNewLookSch.dll_int___cdecl_LFile::get_pe_resource_info_void___unsigned_char_const___int__class_std::vector_class_LFileVersinSimple__class_std::allocator_class_LFileVersinSimple____
push edi
call fcn.1009ffb4
add esp, 0x14
test esi, esi
je 0x1003055d
push esi
call fcn.1008c032
add esp, 4
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
call fcn.10092486
int3