joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431cc0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4f9008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call sym.XNewLook.exe_int___cdecl_LFile::touch_class_LString_const__
add esp, 4
test eax, eax
je 0x431cf3
add eax, 0xffffff9c
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475880
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call sym.XNewLook.exe_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.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
xor ecx, ecx
mov eax, 0xfffffed4
test bl, bl
pop ebx
cmovne eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00475880
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4f9008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push ebx
push eax
call sym.XNewLook.exe_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
lea ecx, [ebp - 0x20]
setne bl
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00475880
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f9008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push ebx
push eax
call sym.XNewLook.exe_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 0x431dcf
mov byte [ebp - 0x21], 0
mov bl, byte [ebp - 0x21]
jmp 0x431dd9
shr ebx, 4
mov byte [ebp - 0x21], 1
and bl, 1
lea ecx, [ebp - 0x20]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
cmp byte [ebp - 0x21], 0
je 0x431dfc
test bl, bl
jne 0x431dfc
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475880
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop ebx
call fcn.00475880
mov esp, ebp
pop ebp
ret
Function at 0x431e10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f9008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push ebx
push eax
call sym.XNewLook.exe_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 0x431e4f
mov byte [ebp - 0x21], 0
mov bl, byte [ebp - 0x21]
jmp 0x431e59
shr ebx, 4
mov byte [ebp - 0x21], 1
and bl, 1
lea ecx, [ebp - 0x20]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
cmp byte [ebp - 0x21], 0
je 0x431e7c
test bl, bl
je 0x431e7c
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475880
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop ebx
call fcn.00475880
mov esp, ebp
pop ebp
ret
Function at 0x432390
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4f9008]
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.XNewLook.exe_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 0x4323cc
xor bl, bl
jmp 0x4323d5
shr eax, 4
mov bl, 1
and al, 1
mov byte [esi], al
lea ecx, [ebp - 0x20]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00475880
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f9008]
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.XNewLook.exe_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 0x432435
xor bl, bl
jmp 0x43243e
shr eax, 4
mov bl, 1
and al, 1
mov byte [esi], al
lea ecx, [ebp - 0x20]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
test bl, bl
je 0x43245d
cmp byte [esi], 0
je 0x43245d
push edi
call sym.XNewLook.exe_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.00475880
mov esp, ebp
pop ebp
ret
Function at 0x433940
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bcee1
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4f9008]
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.XNewLook.exe_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 0x4339c7
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call sym.XNewLook.exe_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.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
lea eax, [ebp - 0x48]
push eax
call sym.XNewLook.exe_int___cdecl_LFile::touch_class_LString_const__
add esp, 4
mov esi, eax
jmp 0x433a75
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.XNewLook.exe_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 0x4d66a8
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004870f5
mov edx, dword [ebp - 0x14]
add esp, 0x14
mov edi, eax
cmp edx, 0x10
jb 0x433a3e
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x433a34
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433a9a
push edx
push ecx
call fcn.00475891
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test edi, edi
jne 0x433a59
or esi, 0xffffffff
jmp 0x433a75
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push edi
push 1
sub ecx, eax
push ecx
push eax
call fcn.00487a5a
push edi
call fcn.00487369
add esp, 0x14
xor esi, esi
lea ecx, [ebp - 0x48]
call sym.XNewLook.exe_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.00475880
mov esp, ebp
pop ebp
ret
call fcn.0047cd61
int3
Function at 0x433aa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bcf31
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4f9008]
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 0x433bb4
cmp dword [ebp + 0x10], 0
jle 0x433bb4
lea eax, [ebp - 0x44]
push eax
call sym.XNewLook.exe_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.XNewLook.exe_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 0x4d66a8
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004870f5
mov edx, dword [ebp - 0x14]
add esp, 0x14
mov esi, eax
cmp edx, 0x10
jb 0x433b6c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x433b62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433bd4
push edx
push ecx
call fcn.00475891
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test esi, esi
jne 0x433b91
lea ecx, [ebp - 0x44]
or esi, 0xffffffff
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
mov eax, esi
jmp 0x433bb9
push esi
push 1
push dword [ebp + 0x10]
push edi
call fcn.00487a5a
push esi
call fcn.00487369
add esp, 0x14
lea ecx, [ebp - 0x44]
xor esi, esi
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
mov eax, esi
jmp 0x433bb9
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.00475880
mov esp, ebp
pop ebp
ret
call fcn.0047cd61
int3
Function at 0x433be0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bcf68
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4f9008]
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.XNewLook.exe_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 0x433c62
or esi, eax
jmp 0x433cf0
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x433c7f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffffe
jmp 0x433cf0
mov eax, dword [ebp - 0x38]
mov dword [edi], eax
test eax, eax
jg 0x433c96
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffffd
jmp 0x433cf0
add eax, 2
push eax
call fcn.004759b9
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 0x433cd5
mov dword [edi], ecx
xor esi, esi
mov eax, dword [ebx]
mov byte [ecx + eax], 0
jmp 0x433cf0
mov dword [edi], 0
push dword [ebx]
call fcn.004759e5
add esp, 4
mov dword [ebx], 0
mov esi, 0xffffff9c
lea ecx, [ebp - 0x2c]
call sym.XNewLook.exe_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.00475880
mov esp, ebp
pop ebp
ret
Function at 0x433d50
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bcf98
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4f9008]
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.XNewLook.exe_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.XNewLook.exe_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.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x48]
call sym.XNewLook.exe_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.00475880
mov esp, ebp
pop ebp
ret

Function at 0x433df0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4f9008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push ebx
push eax
call sym.XNewLook.exe_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.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00475880
mov esp, ebp
pop ebp
ret

Function at 0x433e50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4f9008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push ebx
push eax
call sym.XNewLook.exe_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.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00475880
mov esp, ebp
pop ebp
ret
Function at 0x433ea0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bcf98
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4f9008]
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.XNewLook.exe_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.XNewLook.exe_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.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x48]
call sym.XNewLook.exe_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.00475880
mov esp, ebp
pop ebp
ret
Function at 0x4343f0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bcf98
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4f9008]
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.XNewLook.exe_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.XNewLook.exe_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.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x48]
call sym.XNewLook.exe_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.00475880
mov esp, ebp
pop ebp
ret
Function at 0x4346f0
Capabilities:
Check if file exists
Get file attributes
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd10b
mov eax, dword fs:[0]
push eax
sub esp, 0xab4
mov eax, dword [0x4f9008]
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.XNewLook.exe_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.XNewLook.exe_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.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
test bl, bl
je 0x43483e
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 0x434843
mov esi, 0xfffffffd
lea ecx, [ebp - 0xa84]
call sym.XNewLook.exe_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.00475880
mov esp, ebp
pop ebp
ret
Function at 0x435920
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x4f9008]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x435958
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00475880
mov esp, ebp
pop ebp
ret
push 0x40
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004773d0
push edi
push 1
lea eax, [esp + 0x1c]
push 0x40
push eax
call fcn.0048802f
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x435998
mov esi, 0xfffffffc
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00475880
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [esp + 8], ax
je 0x4359bf
mov esi, 0xfffffffb
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00475880
mov esp, ebp
pop ebp
ret
push 0
push dword [esp + 0x48]
push edi
call fcn.004876be
add esp, 0xc
test eax, eax
je 0x4359ed
mov esi, 0xfffffffa
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00475880
mov esp, ebp
pop ebp
ret
push 0xf8
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.004773d0
push 0x108
lea eax, [esp + 0x150]
push 0
push eax
call fcn.004773d0
push edi
push 1
lea eax, [esp + 0x68]
push 0xf8
push eax
call fcn.0048802f
add esp, 0x28
cmp eax, 0xffffffff
jne 0x435a47
mov esi, 0xfffffff9
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00475880
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x48], 0x4550
je 0x435a6c
mov esi, 0xfffffff8
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00475880
mov esp, ebp
pop ebp
ret
mov ax, word [esp + 0x60]
mov ecx, 0x10b
cmp ax, cx
jne 0x435a96
mov esi, 1
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00475880
mov esp, ebp
pop ebp
ret
mov ecx, 0x20b
cmp ax, cx
jne 0x435b37
push 0
push dword [esp + 0x48]
mov esi, 2
push edi
call fcn.004876be
add esp, 0xc
test eax, eax
je 0x435ad7
mov esi, 0xfffffff6
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00475880
mov esp, ebp
pop ebp
ret
push edi
push 1
lea eax, [esp + 0x148]
push 0x108
push eax
call fcn.0048802f
add esp, 0x10
cmp eax, 0xffffffff
jne 0x435b0f
mov esi, 0xfffffff5
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00475880
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x140], 0x4550
je 0x435b3c
mov esi, 0xfffffff4
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00475880
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.00475880
mov esp, ebp
pop ebp
ret