joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d1797
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4d1856
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call ebx
test eax, eax
je 0x4d1856
push edi
xor edi, edi
inc edi
push edi
push esi
push str._s_d
push 0x208
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004d2c78
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x4d1810
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4d1810
inc edi
cmp edi, 0x14
jl 0x4d17cc
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop edi
test eax, eax
je 0x4d1856
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x4d1851
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4d1851
push 4
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
inc eax
jmp 0x4d1858
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00682c16
mov esp, ebp
pop ebp
ret
Function at 0x4d1ace
Capabilities:
Get common file path

Disassembly:
push 0x21c
mov eax, 0x6e4d7e
call fcn.00682c92
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
xor edi, edi
push 0x208
push edi
push eax
mov dword [ebp - 0x228], edi
call fcn.00689b00
add esp, 0xc
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], edi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
push 1
push 0x1a
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4d1b42
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t__
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_bool___thiscall_CTXStringW::IsEmpty_void_const
test al, al
je 0x4d1b69
push 0x7002e4
lea ecx, [ebp - 0x220]
call fcn.0051b674
lea eax, [ebp - 0x220]
jmp 0x4d1bb6
push 1
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW___thiscall_CTXStringW::Right_int_
mov edi, 0x6fdc28
mov byte [ebp - 4], 2
push edi
push eax
call fcn.0051b7e6
pop ecx
pop ecx
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
mov bl, al
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
test bl, bl
je 0x4d1bb0
push edi
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
lea ecx, [ebp - 0x220]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, esi
call fcn.00682c3c
ret
Function at 0x4d1e79
Capabilities:
Get common file path

Disassembly:
push 0x21c
mov eax, 0x6e4e6f
call fcn.00682c92
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
xor edi, edi
push 0x208
push edi
push eax
mov dword [ebp - 0x228], edi
call fcn.00689b00
add esp, 0xc
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], edi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
push 1
push 0x2b
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4d1eed
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t__
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_bool___thiscall_CTXStringW::IsEmpty_void_const
test al, al
je 0x4d1f14
push 0x7002e4
lea ecx, [ebp - 0x220]
call fcn.0051b674
lea eax, [ebp - 0x220]
jmp 0x4d1f61
push 1
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW___thiscall_CTXStringW::Right_int_
mov edi, 0x6fdc28
mov byte [ebp - 4], 2
push edi
push eax
call fcn.0051b7e6
pop ecx
pop ecx
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
mov bl, al
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
test bl, bl
je 0x4d1f5b
push edi
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
lea ecx, [ebp - 0x220]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, esi
call fcn.00682c3c
ret
Function at 0x4d21ca
Capabilities:
Get common file path

Disassembly:
push 0x21c
mov eax, 0x6e4f31
call fcn.00682c92
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
xor edi, edi
push 0x208
push edi
push eax
mov dword [ebp - 0x228], edi
call fcn.00689b00
add esp, 0xc
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], edi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
push 1
push 0x1c
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4d223e
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t__
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_bool___thiscall_CTXStringW::IsEmpty_void_const
test al, al
je 0x4d2265
push 0x7002e4
lea ecx, [ebp - 0x220]
call fcn.0051b674
lea eax, [ebp - 0x220]
jmp 0x4d22b2
push 1
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW___thiscall_CTXStringW::Right_int_
mov edi, 0x6fdc28
mov byte [ebp - 4], 2
push edi
push eax
call fcn.0051b7e6
pop ecx
pop ecx
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
mov bl, al
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
test bl, bl
je 0x4d22ac
push edi
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
lea ecx, [ebp - 0x220]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, esi
call fcn.00682c3c
ret
Function at 0x4d262c
Capabilities:
Get common file path

Disassembly:
push 0x21c
mov eax, 0x6e5098
call fcn.00682c92
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
xor edi, edi
push 0x208
push edi
push eax
mov dword [ebp - 0x228], edi
call fcn.00689b00
add esp, 0xc
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], edi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
push 1
push 0x25
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4d26a0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t__
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_bool___thiscall_CTXStringW::IsEmpty_void_const
test al, al
je 0x4d26c7
push 0x7002e4
lea ecx, [ebp - 0x220]
call fcn.0051b674
lea eax, [ebp - 0x220]
jmp 0x4d2714
push 1
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW___thiscall_CTXStringW::Right_int_
mov edi, 0x6fdc28
mov byte [ebp - 4], 2
push edi
push eax
call fcn.0051b7e6
pop ecx
pop ecx
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
mov bl, al
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
test bl, bl
je 0x4d270e
push edi
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
lea ecx, [ebp - 0x220]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, esi
call fcn.00682c3c
ret

Function at 0x4d2948
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4d299d
push esi
call fcn.004d275b
pop ecx
test eax, eax
je 0x4d299d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4d2974
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4d2996
xor eax, eax
inc eax
jmp 0x4d299f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4d2c50
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4d2c74
test al, 7
je 0x4d2c74
and eax, 0xfffffff8
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4d3a60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.00689b00
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4d3abf
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4d3ad6
cmp dword [ebp - 0x110], 2
jne 0x4d3ad6
cmp dword [ebp - 0x11c], 6
jb 0x4d3ad6
xor eax, eax
inc eax
jmp 0x4d3ad8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret

Function at 0x4d3ae6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00689b00
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0x540
call fcn.004d3a60
test eax, eax
mov dword [ebp - 0x20], 1
mov eax, dword [ebp + 0xc]
mov edx, 0x700aa8
mov dword [ebp - 0x2c], eax
mov ecx, str.runas
mov eax, dword [ebp + 0x10]
cmove ecx, edx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x30], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x4d3b5a
cmp dword [ebp + 0x14], 0
je 0x4d3b5a
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 4], 0
je 0x4d3b69
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e17f3
Capabilities:
Read .ini file

Disassembly:
push 0x218
mov eax, 0x6e706c
call fcn.00682c92
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x220]
push eax
call fcn.004d1bdc
push esi
push eax
lea eax, [ebp - 0x21c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___class_CTXStringW_const__
add esp, 0x10
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00689b00
add esp, 0xc
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push 0x103
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
push ebx
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push str.DReport
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
call fcn.006a37ec
pop ecx
test eax, eax
je 0x4e18a7
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x218]
push eax
call sym.txupd.exe_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t__
inc ebx
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, ebx
call fcn.00682c3c
ret 0xc
Function at 0x4e5f68
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x6e7a60
call fcn.00682c5e
xor ebx, ebx
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call sym.txupd.exe_public:_bool___thiscall_CTXStringW::IsEmpty_void_const
test al, al
jne 0x4e5fec
push ebx
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
lea eax, [ebp - 0x10]
push eax
call fcn.004d2a20
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0051b603
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea eax, [ebp + 8]
push 1
push eax
call fcn.004d1a73
pop ecx
pop ecx
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4e5fd9
inc ebx
jmp 0x4e5fec
push ebx
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call fcn.004d1868
pop ecx
pop ecx
mov ebx, eax
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, ebx
call fcn.00682c27
ret 4
Function at 0x4e5ffe
Capabilities:
Move file

Disassembly:
push 4
mov eax, 0x6e7a9b
call fcn.00682c5e
xor ebx, ebx
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call sym.txupd.exe_public:_bool___thiscall_CTXStringW::IsEmpty_void_const
test al, al
jne 0x4e613f
push ebx
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
lea eax, [ebp - 0x10]
push eax
call fcn.004d2a20
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0051b603
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea eax, [ebp + 8]
push ebx
push eax
call fcn.004d1a73
lea eax, [ebp + 8]
mov esi, 0x7026c4
push eax
lea eax, [ebp - 0x10]
push esi
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_operator_wchar_t_const___class_CTXStringW_const__
add esp, 0x14
mov ecx, eax
mov byte [ebp - 4], 2
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call sym.txupd.exe_int___cdecl_FS::IsFileExist_wchar_t_const__
mov ebx, eax
mov byte [ebp - 4], 0
pop ecx
neg ebx
lea ecx, [ebp - 0x10]
sbb bl, bl
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
add bl, 1
jne 0x4e613c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push esi
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_operator_wchar_t_const___class_CTXStringW_const__
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 3
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call sym.txupd.exe_int___cdecl_FS::DeleteFileW_wchar_t_const__
mov ebx, eax
mov byte [ebp - 4], 0
pop ecx
neg ebx
lea ecx, [ebp - 0x10]
sbb bl, bl
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
add bl, 1
je 0x4e613c
push 4
xor ebx, ebx
lea ecx, [ebp + 8]
push ebx
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4e613c
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call esi
push eax
mov edi, str.ext_action:__delete__failed__last_error__lu__file:__s__n
push edi
push 0x70282c
push 2
push str.CExtActioner::DelFile
push 0x12c
push str.E:FixReplayAttackscodingTXUpdate_servicelogicExtAction.cpp
call fcn.004ce9b9
add esp, 0x20
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call esi
push eax
push edi
call fcn.0047380a
add esp, 0xc
jmp 0x4e613f
xor ebx, ebx
inc ebx
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, ebx
call fcn.00682c27
ret 4
Function at 0x4e7d44
Capabilities:
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4e7d57
call fcn.004f056c
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp ecx, eax
je 0x4e7dbe
push edi
lea edi, [ecx + 0x14]
mov ecx, edi
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, edi
test al, 0x10
je 0x4e7d8c
push 1
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call fcn.004d1868
pop ecx
pop ecx
jmp 0x4e7dad
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4e7dad
push 4
push eax
mov ecx, edi
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 4]
call fcn.004e14de
mov ecx, dword [ebp - 4]
cmp ecx, dword [esi + 8]
jne 0x4e7d64
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e85ef
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push edi
mov edi, esi
lea ecx, [ebp + 0xc]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4e8624
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x4e85f8
jmp 0x4e8627
xor esi, esi
inc esi
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp + 0xc]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x4e863f
Capabilities:
Move file

Disassembly:
push 4
mov eax, 0x6e8168
call fcn.00682c5e
xor esi, esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.006acd8e
pop ecx
lea ecx, [ebp - 0x10]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
mov byte [ebp - 4], 1
mov edi, esi
call fcn.006acd6d
cdq
mov ecx, 0x3e8
idiv ecx
lea ecx, [ebp + 8]
push edx
call sym.txupd.exe_public:_wchar_t____thiscall_CTXStringW::GetBuffer_void_
push eax
lea eax, [ebp - 0x10]
push 0x70336c
push eax
call sym.txupd.exe_public:_void___cdecl_CTXStringW::Format_wchar_t_const__
add esp, 0x10
lea ecx, [ebp - 0x10]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4e86bf
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x4e866b
jmp 0x4e86c2
xor esi, esi
inc esi
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.0051b603
lea ecx, [ebp - 0x10]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, esi
call fcn.00682c27
ret 8

Function at 0x4e9ed1
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.004e9f74
push dword [ebp + 8]
mov ecx, esi
call fcn.004e9f48
push 0
push dword [esi + 0x1c]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [esi + 8], eax
test eax, eax
jne 0x4e9efb
xor eax, eax
jmp 0x4e9f43
push eax
call fcn.00682d64
mov dword [esi + 0xc], eax
pop ecx
test eax, eax
je 0x4e9ef7
push eax
push dword [esi + 8]
push 0
push dword [esi + 0x1c]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4e9f24
mov ecx, esi
call fcn.004e9f74
jmp 0x4e9ef7
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x10]
push eax
push 0x6fdc28
push dword [esi + 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4e9f1b
xor eax, eax
inc eax
mov dword [esi + 4], eax
pop esi
pop ebp
ret 4
Function at 0x4ed787
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10c0
call fcn.006839e0
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea ebx, [ecx + 0xc]
xor eax, eax
mov ecx, ebx
push eax
push eax
push 3
push eax
push 1
push bind
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ed7d1
xor eax, eax
jmp 0x4ed8ba
and dword [ebp - 0x10c0], 0
lea eax, [ebp - 0x1060]
push eax
call sym.txupd.exe_void___cdecl_MD5_Init_struct_MD5state_st__
pop ecx
jmp 0x4ed80c
cmp dword [ebp - 0x10c0], 0
je 0x4ed82c
push dword [ebp - 0x10c0]
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x1060]
push eax
call sym.txupd.exe_void___cdecl_MD5_Update_struct_MD5state_st___unsigned_char_const___unsigned_long_int_
add esp, 0xc
push 0
lea eax, [ebp - 0x10c0]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ed7e7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 8], 3
jne 0x4ed875
mov ecx, ebx
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4ed7ca
mov eax, dword [esi + 0x3c]
push dword [eax + esi + 0x1c]
mov eax, dword [eax + esi + 0x2c]
add eax, esi
push eax
lea eax, [ebp - 0x1060]
push eax
call sym.txupd.exe_void___cdecl_MD5_Update_struct_MD5state_st___unsigned_char_const___unsigned_long_int_
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x1060]
push eax
push edi
call sym.txupd.exe_void___cdecl_MD5_Final_unsigned_char___struct_MD5state_st__
pop ecx
pop ecx
push 0x14
pop esi
lea eax, [ebp - 0x10bc]
push eax
call sym.txupd.exe_void___cdecl_MD5_Init_struct_MD5state_st__
push 0x10
lea eax, [ebp - 0x10bc]
push edi
push eax
call sym.txupd.exe_void___cdecl_MD5_Update_struct_MD5state_st___unsigned_char_const___unsigned_long_int_
lea ecx, [ebp - 0x10bc]
push ecx
push edi
call sym.txupd.exe_void___cdecl_MD5_Final_unsigned_char___struct_MD5state_st__
add esp, 0x18
sub esi, 1
jne 0x4ed887
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00682c16
mov esp, ebp
pop ebp
ret 8