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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x610304]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4993d1
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4993d1
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll__snwprintf_s]
push esi
mov esi, 1
jmp 0x499330
push esi
push edi
push str._s_d
push 0x208
lea eax, [ebp - 0x20c]
push 0x104
push eax
call ebx
add esp, 0x18
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x499377
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x499377
add esi, 1
cmp esi, 0x14
jl 0x499330
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
pop esi
pop ebx
je 0x4993d1
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4993bd
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4993bd
push 4
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00584870
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.00584870
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x499415
test al, 7
je 0x499415
and eax, 0xfffffff8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x499420
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f430
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x610304]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x499477
push eax
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call sym.txupd.exe_public:_int___thiscall_CTXStringW::GetLength_void_const
test eax, eax
lea ecx, [ebp + 8]
jg 0x49948a
mov dword [ebp - 4], 0xffffffff
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea esi, [eax - 1]
push esi
call sym.txupd.exe_public:_wchar_t___thiscall_CTXStringW::GetAt_int_const
cmp ax, 0x5c
jne 0x4994a4
push 1
push esi
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_int___thiscall_CTXStringW::Delete_int__int_
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_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
je 0x4994c2
test al, 0x10
jne 0x499559
mov esi, dword [ebp + 0xc]
test esi, esi
lea ecx, [ebp + 8]
jne 0x4994e7
mov dword [ebp - 4], edi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x5c
call sym.txupd.exe_public:_int___thiscall_CTXStringW::ReverseFind_wchar_t_const
cmp eax, edi
lea ecx, [ebp + 8]
je 0x4994cc
push eax
lea eax, [ebp - 0x10]
push eax
call sym.txupd.exe_public:_class_CTXStringW___thiscall_CTXStringW::Left_int_
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call fcn.00499420
add esp, 8
push 0
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_CreateDirectoryW]
test eax, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
jne 0x499554
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x499ba0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f575
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x610304]
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
xor ebx, ebx
mov dword [ebp - 0x26c], ebx
push 0x250
lea eax, [ebp - 0x260]
push ebx
push eax
mov dword [ebp - 4], ebx
lea esi, [ebx + 1]
call sub.MSVCR80.dll_memset
push 0x5b0408
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x270]
push edx
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__
add esp, 0x18
lea ecx, [ebp - 0x260]
push ecx
mov ecx, eax
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x270]
mov edi, eax
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
cmp edi, 0xffffffff
je 0x499d43
test esi, esi
je 0x499d3c
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x268]
push ecx
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__
add esp, 0xc
test byte [ebp - 0x260], 0x10
mov byte [ebp - 4], 1
jne 0x499d18
push 4
lea edx, [ebp - 0x274]
push edx
lea ecx, [ebp - 0x268]
call sym.txupd.exe_public:_class_CTXStringW___thiscall_CTXStringW::Right_int_
or ebx, 1
push str..zip
mov ecx, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x26c], ebx
call sym.txupd.exe_public:_int___thiscall_CTXStringW::CompareNoCase_wchar_t_const__const
test eax, eax
je 0x499cc3
push 3
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x268]
call sym.txupd.exe_public:_class_CTXStringW___thiscall_CTXStringW::Right_int_
push 0x5a80c8
mov ecx, eax
or ebx, 2
call sym.txupd.exe_public:_int___thiscall_CTXStringW::CompareNoCase_wchar_t_const__const
test eax, eax
mov byte [ebp - 0x261], 0
jne 0x499cca
mov byte [ebp - 0x261], 1
test bl, 2
je 0x499ce3
and ebx, 0xfffffffd
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x26c], ebx
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
test bl, 1
mov dword [ebp - 4], 1
je 0x499cfd
lea ecx, [ebp - 0x274]
and ebx, 0xfffffffe
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
cmp byte [ebp - 0x261], 0
je 0x499d18
lea ecx, [ebp - 0x268]
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]
lea ecx, [ebp - 0x260]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [ebp - 0x268]
mov esi, eax
mov byte [ebp - 4], 0
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
jmp 0x499c31
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
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.00584870
mov esp, ebp
pop ebp
ret
Function at 0x49a0d0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f668
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x610304]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
test edi, edi
je 0x49a199
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x49a199
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push esi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__
lea eax, [ebp - 0x10]
push eax
call fcn.00499a30
add esp, 8
mov ecx, eax
mov dword [ebp - 4], 0
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call fcn.00499420
add esp, 8
test eax, eax
lea ecx, [ebp - 0x10]
sete bl
mov dword [ebp - 4], 0xffffffff
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
test bl, bl
jne 0x49a199
mov ecx, dword [ebp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push ecx
push esi
push edi
call ebx
mov edi, eax
test edi, edi
jne 0x49a185
cmp dword [ebp + 0x10], eax
jne 0x49a185
push esi
call fcn.004993f0
add esp, 4
test eax, eax
je 0x49a185
mov edx, dword [ebp + 8]
push edi
push esi
push edx
call ebx
mov edi, eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a0e1c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x610304]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4a0e60
cmp byte [ebp - 0x194], 2
jne 0x4a0e5a
cmp byte [ebp - 0x193], 2
jne 0x4a0e5a
inc eax
jmp 0x4a0e62
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00584870
leave
ret

Function at 0x4a0ea6
Capabilities:
Get hostname
Resolve dns

Disassembly:
jmp 0x4e6c8d
push 0x108
mov eax, 0x597574
call fcn.00584fd1
lea ecx, [ebp - 0x114]
call sym.txupd.exe_public:_void___thiscall_CTXStringA::constructor_void_
xor esi, esi
cmp dword [0x61163c], esi
mov dword [ebp - 4], esi
jne 0x4e6ccc
lea ecx, [ebp - 0x114]
or dword [ebp - 4], 0xffffffff
call sym.txupd.exe_public:_void___thiscall_CTXStringA::destructor_void_
xor eax, eax
inc eax
call fcn.00585054
ret
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
lea ecx, [ebp - 0x114]
jne 0x4e6cba
lea eax, [ebp - 0x110]
push eax
call fcn.004b5dc3
lea ecx, [ebp - 0x114]
call sym.txupd.exe_public:_char_const____thiscall_CTXStringA::operator_char_const__void_const
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
jne 0x4e6d20
xor esi, esi
inc esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call sym.txupd.exe_public:_void___thiscall_CTXStringA::destructor_void_
mov eax, esi
jmp 0x4e6cc6
mov eax, dword [eax + 0xc]
cmp dword [eax], esi
je 0x4e6d0a
mov ecx, dword [eax]
mov ecx, dword [ecx]
cmp dword [0x61163c], ecx
je 0x4e6d0d
add eax, 4
jmp 0x4e6d23
Function at 0x4a72ac
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x610304]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov eax, ecx
lea edi, [eax + 0x24]
lea eax, [ebp - 0x664]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x668], eax
je 0x4a739e
cmp dword [ebp - 0x648], 0
jne 0x4a72fb
cmp dword [ebp - 0x644], 0x500000
jbe 0x4a7392
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x414]
push esi
push eax
call sym.txupd.exe_wcslcpy
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call sym.txupd.exe_wcslcpy
push 0x5b1c28
lea eax, [ebp - 0x414]
push esi
push eax
call sym.txupd.exe_wcslcat
push 0x5b1c20
lea eax, [ebp - 0x20c]
push esi
push eax
call sym.txupd.exe_wcslcat
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x30
xor esi, esi
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x4a736d
cmp esi, 2
jge 0x4a7367
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 3
jl 0x4a734d
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x414]
push eax
push edi
call esi
push edi
call ebx
pop esi
pop ebx
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00584870
leave
ret
Function at 0x4a7467
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x610304]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x611594], 0
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll_strncpy]
push esi
push edi
mov dword [ebp - 0x314], eax
mov edi, 0x104
mov esi, 0x611490
jne 0x4a751e
or dword [0x611594], 0xffffffff
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strrchr]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x318], eax
je 0x4a751e
push esi
call sub.MSVCR80.dll_strlen
push dword [ebp - 0x318]
mov dword [ebp - 0x310], 0x103
sub dword [ebp - 0x310], eax
call sub.MSVCR80.dll_strlen
add eax, dword [ebp - 0x310]
push eax
push str.DataProcessFilltersconfig.ini
push dword [ebp - 0x318]
call ebx
add esp, 0x14
push esi
mov byte [0x611593], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4a751e
test al, 0x10
jne 0x4a751e
mov dword [0x611594], 1
cmp dword [0x611594], 1
jne 0x4a764f
push esi
push edi
lea eax, [ebp - 0x108]
push eax
push 0x5d1273
push 0x5b1c38
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push pe_nt_image_headers32
lea eax, [ebp - 0x30c]
push eax
push 0x5d1273
push str.proc
push dword [ebp - 0x314]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x108], 0
je 0x4a764f
cmp byte [ebp - 0x30c], 0
je 0x4a764f
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4a763f
lea eax, [ebp - 0x108]
push 0x2f
push eax
call dword [sym.imp.MSVCR80.dll_strchr]
test eax, eax
pop ecx
pop ecx
jne 0x4a762e
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [sym.imp.MSVCR80.dll_strchr]
test eax, eax
pop ecx
pop ecx
jne 0x4a762e
push edi
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCR80.dll_memset
push 0x103
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
mov esi, dword [sym.imp.MSVCR80.dll_strrchr]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call esi
lea ecx, [ebp - 0x20c]
sub eax, ecx
add esp, 0x20
cmp eax, edi
jge 0x4a7626
mov ecx, 0x102
sub ecx, eax
push ecx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call esi
pop ecx
pop ecx
inc eax
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x20c]
jmp 0x4a7634
lea eax, [ebp - 0x108]
push eax
call sym.txupd.exe_struct_HINSTANCE______cdecl_Util::Sys::SafeLoadLibrary_char_const__
test eax, eax
pop ecx
je 0x4a764f
lea ecx, [ebp - 0x30c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x4a7651
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00584870
leave
ret
Function at 0x4a7dc4
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x610304]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.004a7ae1
mov ecx, esi
mov dword [esi + 0x1c], eax
call fcn.004a740a
xor ebx, ebx
push 0x206
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea ebx, [ebp + eax*2 - 0x20c]
jmp 0x4a7e56
lea eax, [ebx - 2]
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x4a7e60
cmp cx, 0x2f
je 0x4a7e60
mov ebx, eax
lea eax, [ebp - 0x20c]
cmp ebx, eax
ja 0x4a7e42
push ebx
call dword [sym.imp.MSVCR80.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.MSVCR80.dll_memmove]
lea eax, [ebp - 0x20c]
push 0x2e
push eax
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 0x18
test eax, eax
je 0x4a7e94
and word [eax], 0
cmp word [ebp - 0x20c], 0
lea eax, [ebp - 0x20c]
jne 0x4a7eb2
push str.log.tlg
push edi
push eax
call sym.txupd.exe_wcslcpy
jmp 0x4a7ebe
push str..tlg
push edi
push eax
call sym.txupd.exe_wcslcat
add esp, 0xc
push 1
lea ebx, [esi + 0x24]
and word [ebx], 0
push 0x1a
push ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebx], 0
je 0x4a7eff
push ebx
call dword [sym.imp.MSVCR80.dll_wcslen]
cmp word [esi + eax*2 + 0x22], 0x5c
pop ecx
je 0x4a7eff
push 0x5d13ac
push edi
push ebx
call sym.txupd.exe_wcslcat
add esp, 0xc
push str.Tencent_
push edi
push ebx
call sym.txupd.exe_wcslcat
add esp, 0xc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.Logs_
push edi
push ebx
call sym.txupd.exe_wcslcat
add esp, 0xc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
push eax
push edi
push ebx
call sym.txupd.exe_wcslcat
add esp, 0xc
push str.NoTXLog
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a7f61
mov byte [esi + 0x23f], 1
jmp 0x4a7f68
mov ecx, esi
call fcn.004a72ac
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00584870
leave
ret
Function at 0x4a86f6
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x19010
call fcn.005848d0
mov eax, dword [0x610304]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x23f], 0
push edi
mov dword [ebp - 0x19010], esi
jne 0x4a88a1
or dword [ebp - 0x19008], 0xffffffff
lea edi, [esi + 0x24]
push edi
lea ecx, [ebp - 0x19008]
call fcn.004a79ee
test eax, eax
jne 0x4a87a6
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4a8765
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
lea ecx, [ebp - 0x19008]
call fcn.004a79ee
test eax, eax
jne 0x4a87a6
xor ebx, ebx
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
lea ecx, [ebp - 0x19008]
call fcn.004a79ee
test eax, eax
jne 0x4a8785
inc ebx
cmp ebx, 3
jb 0x4a8767
cmp ebx, 3
jne 0x4a87a6
cmp dword [ebp - 0x19008], 0xffffffff
je 0x4a879f
push dword [ebp - 0x19008]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4a88ec
cmp dword [ebp - 0x19008], 0xffffffff
je 0x4a87c1
push 2
push 0
push 0
push dword [ebp - 0x19008]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x18fff
xor edi, edi
lea eax, [ebp - 0x19003]
push edi
push eax
mov byte [ebp - 0x19004], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esi + 0x240]
mov dword [ebp - 0x1900c], edi
call fcn.004a7669
test eax, eax
jbe 0x4a8879
mov ebx, 0x19000
push dword [ebp - 0x1900c]
lea ecx, [esi + 0x240]
call fcn.004a767c
mov esi, dword [eax]
mov eax, dword [esi]
add eax, edi
cmp eax, ebx
jbe 0x4a882d
push edi
lea eax, [ebp - 0x19004]
push eax
lea ecx, [ebp - 0x19008]
call fcn.004a7283
xor edi, edi
mov eax, dword [esi]
cmp eax, ebx
push eax
push esi
jbe 0x4a8842
lea ecx, [ebp - 0x19008]
call fcn.004a7283
jmp 0x4a8854
lea eax, [ebp + edi - 0x19004]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
add edi, dword [esi]
mov ecx, dword [ebp - 0x19010]
inc dword [ebp - 0x1900c]
add ecx, 0x240
call fcn.004a7669
cmp dword [ebp - 0x1900c], eax
mov esi, dword [ebp - 0x19010]
jb 0x4a87fd
push edi
lea eax, [ebp - 0x19004]
push eax
lea ecx, [ebp - 0x19008]
call fcn.004a7283
cmp dword [ebp - 0x19008], 0xffffffff
je 0x4a88a1
push dword [ebp - 0x19008]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0x240
mov ecx, esi
xor edi, edi
call fcn.004a7669
test eax, eax
jbe 0x4a88e2
cmp byte [ebp + 8], 0
je 0x4a88cb
push edi
mov ecx, esi
call fcn.004a767c
push dword [eax]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
push edi
mov ecx, esi
call fcn.004a767c
and dword [eax], 0
mov ecx, esi
inc edi
call fcn.004a7669
cmp edi, eax
jb 0x4a88b4
mov ecx, esi
call fcn.004a842d
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00584870
leave
ret 4
Function at 0x4a88fd
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x610304]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x23f], 0
push edi
mov dword [ebp - 0x410], esi
jne 0x4a8aa4
or dword [ebp - 0x408], 0xffffffff
lea edi, [esi + 0x24]
push edi
lea ecx, [ebp - 0x408]
call fcn.004a79ee
test eax, eax
jne 0x4a89a9
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4a8968
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
lea ecx, [ebp - 0x408]
call fcn.004a79ee
test eax, eax
jne 0x4a89a9
xor ebx, ebx
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
lea ecx, [ebp - 0x408]
call fcn.004a79ee
test eax, eax
jne 0x4a8988
inc ebx
cmp ebx, 3
jb 0x4a896a
cmp ebx, 3
jne 0x4a89a9
cmp dword [ebp - 0x408], 0xffffffff
je 0x4a89a2
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4a8aef
cmp dword [ebp - 0x408], 0xffffffff
je 0x4a89c4
push 2
push 0
push 0
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x3ff
xor edi, edi
lea eax, [ebp - 0x403]
push edi
push eax
mov byte [ebp - 0x404], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esi + 0x240]
mov dword [ebp - 0x40c], edi
call fcn.004a7669
test eax, eax
jbe 0x4a8a7c
mov ebx, 0x400
push dword [ebp - 0x40c]
lea ecx, [esi + 0x240]
call fcn.004a767c
mov esi, dword [eax]
mov eax, dword [esi]
add eax, edi
cmp eax, ebx
jbe 0x4a8a30
push edi
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x408]
call fcn.004a7283
xor edi, edi
mov eax, dword [esi]
cmp eax, ebx
push eax
push esi
jbe 0x4a8a45
lea ecx, [ebp - 0x408]
call fcn.004a7283
jmp 0x4a8a57
lea eax, [ebp + edi - 0x404]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
add edi, dword [esi]
mov ecx, dword [ebp - 0x410]
inc dword [ebp - 0x40c]
add ecx, 0x240
call fcn.004a7669
cmp dword [ebp - 0x40c], eax
mov esi, dword [ebp - 0x410]
jb 0x4a8a00
push edi
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x408]
call fcn.004a7283
cmp dword [ebp - 0x408], 0xffffffff
je 0x4a8aa4
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0x240
mov ecx, esi
xor edi, edi
call fcn.004a7669
test eax, eax
jbe 0x4a8ae5
cmp byte [ebp + 8], 0
je 0x4a8ace
push edi
mov ecx, esi
call fcn.004a767c
push dword [eax]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
push edi
mov ecx, esi
call fcn.004a767c
and dword [eax], 0
mov ecx, esi
inc edi
call fcn.004a7669
cmp edi, eax
jb 0x4a8ab7
mov ecx, esi
call fcn.004a842d
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00584870
leave
ret 4