joyce8/EMBER2024-capa huggingface dataset:
Function at 0x516ad3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x6edc5b
call fcn.00682d00
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x516b50
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x516b50
call fcn.00515f2d
mov esi, eax
jmp 0x516c27
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x516b73
call fcn.00515f2d
jmp 0x516c1a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x516b69
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x516ba3
mov esi, 0x8007000e
jmp 0x516c1c
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00515d3d
jmp 0x516bc9
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x516b9c
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x516b69
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00516998
mov esi, eax
test edi, edi
je 0x516c27
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x516c40
lea ecx, [ebp - 0x418]
call fcn.005161b7
mov eax, esi
call fcn.00682c4d
ret 0x10
Function at 0x519f90
Capabilities:
Get file attributes
Get file size
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 8], ebx
cmp byte [ebx + 0x25b], 0
jne 0x51a150
push 0
push 0x80
push 4
push 0
push 1
lea edi, [ebx + 0x40]
push 0x40000000
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x51a057
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x51a00b
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x51a057
mov ebx, dword [ebp - 4]
xor edi, edi
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x51a03e
inc edi
cmp edi, 3
jb 0x51a010
mov ebx, dword [ebp - 8]
cmp edi, 3
je 0x51a04f
cmp esi, 0xffffffff
jne 0x51a057
or eax, esi
jmp 0x51a060
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x51a0ac
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x6400000
jbe 0x51a0bb
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x51a077
push esi
call edi
jmp 0x51a079
xor eax, eax
test eax, eax
je 0x51a0ac
push 0x6400000
mov ecx, ebx
call fcn.0051a390
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea eax, [ebx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x51a0c0
cmp esi, 0xffffffff
je 0x51a0b4
push esi
call edi
xor eax, eax
jmp 0x51a153
cmp esi, 0xffffffff
je 0x51a0cd
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [ebx + 0x260]
jmp 0x51a12a
mov eax, dword [edi]
mov dword [ebp - 4], eax
cmp dword [eax + 4], 0
je 0x51a0f6
mov ebx, eax
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 4], 0
jne 0x51a0e2
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 4]
and dword [ebp - 0xc], 0
cmp esi, 0xffffffff
je 0x51a112
push 0
lea ecx, [ebp - 0xc]
push ecx
push dword [eax]
add eax, 8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ebp + 8], 0
je 0x51a127
push 0x40000
push dword [ebp - 4]
call fcn.00682c08
pop ecx
pop ecx
add edi, 4
cmp edi, dword [ebx + 0x264]
jne 0x51a0d5
cmp byte [ebp + 8], 0
je 0x51a144
mov eax, dword [ebx + 0x260]
mov dword [ebx + 0x264], eax
cmp esi, 0xffffffff
je 0x51a150
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x51a280
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
mov eax, edx
push esi
shr eax, 0x10
xor esi, esi
push esi
mov dword [ecx + 0x24c], eax
movzx eax, dx
mov dword [ecx + 0x250], eax
lea eax, [ebp + 8]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SoftWareTencentQQ
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], edx
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x51a2e6
push 4
lea eax, [ebp - 4]
push eax
push 4
push esi
push str.LogSetting
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x51a390
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
lea eax, [ebp - 0x664]
push esi
push eax
lea esi, [ebx + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x51a4cd
cmp dword [ebp - 0x648], 0
jne 0x51a3df
mov ecx, dword [ebp - 0x644]
cmp ecx, dword [ebp + 8]
jbe 0x51a4c6
push edi
push 0xa
pop edi
cmp dword [ebx + 0x250], edi
jg 0x51a443
push edi
push esi
push str._s._d
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044c607
add esp, 0x14
xor esi, esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x51a437
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x51a437
cmp esi, 2
jge 0x51a431
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 3
jl 0x51a408
dec edi
lea esi, [ebx + 0x40]
cmp edi, dword [ebx + 0x250]
jge 0x51a3eb
mov edi, dword [ebx + 0x250]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x51a48f
push edi
push esi
push str._s._d
push 0x104
push eax
call fcn.0044c607
dec edi
lea eax, [ebp - 0x414]
push edi
push esi
push str._s._d
push 0x104
push eax
call fcn.0044c607
add esp, 0x28
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call ebx
lea eax, [ebp - 0x20c]
cmp edi, 1
jg 0x51a451
push esi
push str._s.1
push 0x104
push eax
call fcn.0044c607
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x668]
pop edi
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00682c16
mov esp, ebp
pop ebp
ret 4
Function at 0x51ae1b
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x7b6824]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, 0x7b6720
push edi
test eax, eax
jne 0x51aeb7
or dword [0x7b6824], 0xffffffff
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push esi
call fcn.0068a560
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x51aeb2
push esi
call fcn.006a3810
mov esi, 0x103
push edi
sub esi, eax
call fcn.006a3810
add eax, esi
push eax
push str.DataProcessFilltersconfig.ini
push edi
call fcn.006a39c0
add esp, 0x14
mov byte [0x7b6823], 0
mov esi, 0x7b6720
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x51aeb2
test al, 0x10
jne 0x51aeb2
mov dword [0x7b6824], 1
jmp 0x51aec0
mov eax, dword [0x7b6824]
cmp eax, 1
jne 0x51afec
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov edi, 0x7675ef
push edi
push 0x6fbc24
push ebx
call esi
push 0x7b6720
push 0x100
lea eax, [ebp - 0x30c]
push eax
push edi
push str.proc
push ebx
call esi
cmp byte [ebp - 0x20c], 0
je 0x51afec
cmp byte [ebp - 0x30c], 0
je 0x51afec
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x51afdc
lea eax, [ebp - 0x20c]
push 0x2f
push eax
call fcn.0068a430
pop ecx
pop ecx
test eax, eax
jne 0x51afcb
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0068a430
pop ecx
pop ecx
test eax, eax
jne 0x51afcb
mov ebx, 0x104
push ebx
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00689b00
push 0x103
lea eax, [ebp - 0x108]
push 0x7b6720
push eax
call fcn.006a39c0
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0068a560
lea ecx, [ebp - 0x108]
add esp, 0x20
sub eax, ecx
cmp eax, ebx
jge 0x51afc3
lea ecx, [ebx - 2]
sub ecx, eax
lea eax, [ebp - 0x20c]
push ecx
push eax
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0068a560
pop ecx
pop ecx
inc eax
push eax
call fcn.006a39c0
add esp, 0xc
lea eax, [ebp - 0x108]
jmp 0x51afd1
lea eax, [ebp - 0x20c]
push eax
call sym.txupd.exe_struct_HINSTANCE______cdecl_Util::Sys::SafeLoadLibrary_char_const__
pop ecx
test eax, eax
je 0x51afec
lea ecx, [ebp - 0x30c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x51afee
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00682c16
mov esp, ebp
pop ebp
ret
Function at 0x51fa77
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea ecx, [ebp - 4]
push ebx
push esi
push dword [ebp + 0xc]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__
mov esi, 0x6fdc28
lea eax, [ebp - 0x10]
push esi
push 1
push eax
lea ecx, [ebp - 4]
call sym.txupd.exe_public:_class_CTXStringW___thiscall_CTXStringW::Right_int_
push eax
call fcn.0051b7e6
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
mov bl, al
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
test bl, bl
je 0x51fabd
push esi
lea ecx, [ebp - 4]
call sym.txupd.exe_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__
xor esi, esi
lea ecx, [ebp - 4]
push esi
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp - 4]
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]
cmp eax, 0xffffffff
je 0x51fb56
test al, 0x10
je 0x51fb56
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call sym.txupd.exe_class_CTXStringA___cdecl_Util::Convert::Utf8FromWS_wchar_t_const___int_
add esp, 0xc
lea ecx, [ebp - 0xc]
call sym.txupd.exe_public:_char_const____thiscall_CTXStringA::operator_char_const__void_const
push eax
call fcn.004187d1
mov edi, eax
pop ecx
test edi, edi
je 0x51fb4d
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
lea eax, [ebp - 8]
push eax
call sym.txupd.exe_class_CTXStringA___cdecl_Util::Convert::Utf8FromWS_wchar_t_const___int_
add esp, 0xc
lea ecx, [ebp - 8]
call sym.txupd.exe_public:_char_const____thiscall_CTXStringA::operator_char_const__void_const
push eax
push 0x7675ef
push edi
call fcn.0051f87b
push edi
mov esi, eax
call fcn.004188ba
add esp, 0x10
lea ecx, [ebp - 8]
call sym.txupd.exe_public:_void___thiscall_CTXStringA::destructor_void_
lea ecx, [ebp - 0xc]
call sym.txupd.exe_public:_void___thiscall_CTXStringA::destructor_void_
pop edi
lea ecx, [ebp - 4]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52309d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x523196
mov edx, dword [ebp + 0x10]
test edx, edx
jle 0x523196
mov ecx, dword [ebp + 8]
not ecx
cmp edx, 8
jl 0x523174
push edi
mov edi, edx
shr edi, 3
imul eax, edi, 0xfffffff8
add edx, eax
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x70f548]
movzx eax, byte [esi + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x70f548]
movzx eax, byte [esi + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x70f548]
movzx eax, byte [esi + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x70f548]
movzx eax, byte [esi + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x70f548]
movzx eax, byte [esi + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x70f548]
movzx eax, byte [esi + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x70f548]
movzx eax, byte [esi + 7]
add esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x70f548]
sub edi, 1
jne 0x5230d0
pop edi
test edx, edx
je 0x523190
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x70f548]
inc esi
sub edx, 1
jne 0x523178
not ecx
mov eax, ecx
jmp 0x523199
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret
Function at 0x53eac5
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x10
mov edi, ecx
push 0
push edi
call fcn.00689b00
add esp, 0xc
lea esi, [edi + 0x10]
xor eax, eax
mov word [esi], ax
push edi
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x63
push esi
push edi
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [edi + 0x74]
mov dword [ebp - 4], 0x20
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x53eb24
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
push 4
mov dword [ebp - 0x2f0], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x53ecaa
push 0x64
mov ecx, esi
call fcn.0054227b
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
jmp 0x53ebcf
cmp dword [ebp - 0x14], ebx
jne 0x53ebc5
mov eax, dword [ebp - 0x2f0]
cmp dword [ebp - 0x18], eax
je 0x53ebc5
push dword [ebp - 0x18]
push 0
push 0xa
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
je 0x53ebc5
and dword [ebp - 0x2f4], 0
mov ecx, esi
mov dword [ebp - 0x2f8], eax
lea eax, [ebp - 0x2f8]
push eax
call fcn.00542217
lea eax, [ebp - 0x20]
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x53eb89
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
sub eax, dword [esi]
sar eax, 3
mov edi, eax
jmp 0x53eca2
cmp edi, eax
je 0x53ebf3
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
mov eax, dword [esi + 4]
xor ebx, ebx
mov ecx, dword [esi]
sub eax, ecx
sar eax, 3
test eax, eax
je 0x53eca2
cmp dword [ecx + ebx*8 + 4], 0
mov dword [ebp - 0x2f4], edi
jne 0x53ec8f
mov eax, dword [ecx + ebx*8]
push eax
mov dword [ebp - 0x2f0], eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [esi]
dec edi
mov dword [eax + ebx*8 + 4], 1
lea eax, [ebp - 0x2ec]
push eax
push dword [ebp - 0x2f0]
mov dword [ebp - 0x2ec], 0x10001
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x53ec8f
mov edx, dword [ebp + 8]
mov eax, dword [edx]
jmp 0x53ec6f
mov ecx, dword [eax]
cmp dword [ebp - 0x234], ecx
jb 0x53ec6c
add ecx, 0xd
cmp dword [ebp - 0x234], ecx
jbe 0x53ec76
add eax, 4
cmp eax, dword [edx + 4]
jne 0x53ec57
jmp 0x53ec8f
push dword [ebp - 0x2f0]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi]
mov edi, dword [ebp - 0x2f4]
and dword [eax + ebx*8 + 4], 0
mov eax, dword [esi + 4]
inc ebx
mov ecx, dword [esi]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x53ec07
test edi, edi
jne 0x53ebe9
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00682c16
mov esp, ebp
pop ebp
ret 4
Function at 0x53ecbf
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x7b68ec
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push edi
push 0x540877
push edi
push edi
mov dword [0x7b68e8], eax
call fcn.006ad77b
add esp, 0x18
mov dword [0x7b68e4], eax
mov eax, esi
pop edi
pop esi
ret

Function at 0x53edb1
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 4]
sub eax, dword [esi]
sar eax, 3
test eax, eax
je 0x53eded
mov eax, dword [esi]
cmp dword [eax + edi*8 + 4], 0
je 0x53edd5
push dword [eax + edi*8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi]
push dword [eax + edi*8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
inc edi
sub eax, dword [esi]
sar eax, 3
cmp edi, eax
jb 0x53edc3
pop edi
mov ecx, esi
pop esi
jmp fcn.0054160e

Function at 0x53f1ca
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x53f24d
cmp dword [ebp + 0xc], 0
je 0x53f24d
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x53f24c
push esi
push 0x290
call fcn.00682bd5
push dword [ebp + 8]
mov esi, eax
push 0x104
push esi
call fcn.006aee9a
push dword [ebp + 0xc]
lea ecx, [esi + 0x208]
push 0x40
push ecx
call fcn.006aee9a
add esp, 0x1c
mov dword [esi + 0x288], edi
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x28c], eax
xor eax, eax
push eax
push eax
push esi
push 0x53f98e
push eax
push eax
call fcn.006ad77b
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebp
ret

Function at 0x53f24f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x53f2c4
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x53f2c3
push esi
push 0x290
call fcn.00682bd5
push dword [ebp + 8]
mov esi, eax
push 0x104
push esi
call fcn.006aee9a
xor eax, eax
mov dword [esi + 0x288], edi
add esp, 0x10
mov word [esi + 0x208], ax
mov ecx, dword [edi]
push edi
call dword [ecx + 4]
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x28c], eax
xor eax, eax
push eax
push eax
push esi
push 0x53f98e
push eax
push eax
call fcn.006ad77b
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebp
ret
Function at 0x543527
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
xor ebx, ebx
inc ebx
push eax
mov dword [edi], eax
lea esi, [edi + 0x38]
mov byte [edi + 4], bl
mov ecx, esi
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x34], 0x32
push eax
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0054451d
mov dword [esi], eax
lea esi, [edi + 0x40]
and dword [esi], 0
mov ecx, esi
and dword [esi + 4], 0
call fcn.005444bb
mov dword [esi], eax
xor eax, eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x28], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 4]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t__
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
call sym.txupd.exe_void___cdecl_Util::Misc::SplitCmdString_class_CTXStringW_const___class_std::vector_class_CTXStringW__class_std::allocator_class_CTXStringW____
pop ecx
pop ecx
lea ecx, [ebp - 4]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
sub ecx, eax
sar ecx, 2
mov dword [ebp - 4], ecx
cmp ecx, ebx
jbe 0x543616
lea ecx, [eax + ebx*4]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
mov esi, eax
test esi, esi
je 0x54360b
push 6
push str._perf:
push esi
call fcn.006af9d2
add esp, 0xc
test eax, eax
jne 0x5435ea
lea eax, [esi + 0xc]
push edi
push eax
call sym.txupd.exe_bool___cdecl_Util::Convert::StringToDWordW_wchar_t_const___unsigned_long_int__
pop ecx
jmp 0x54360a
push 8
push str._perflm:
push esi
call fcn.006af9d2
add esp, 0xc
test eax, eax
jne 0x54360b
lea eax, [esi + 0x10]
push eax
call fcn.006aca8f
mov dword [edi + 0x34], eax
pop ecx
inc ebx
cmp ebx, dword [ebp - 4]
jae 0x543616
mov eax, dword [ebp - 0x10]
jmp 0x5435bb
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp dword [edi], 0
jbe 0x543631
mov ecx, edi
call fcn.00543875
call sym.txupd.exe_void___cdecl_Util::Perf::SetSingleProcess_void_
lea ecx, [ebp - 0x10]
call fcn.005014ba
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5439cd
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 8], 0xffffffff
jne 0x543b9d
push ebx
push esi
mov esi, 0x208
lea eax, [ebp - 0x20c]
push esi
push 0
push eax
call fcn.00689b00
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00689b00
add esp, 0x18
lea eax, [ebp - 0x414]
mov ebx, 0x104
push ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push eax
call fcn.006a37ec
pop ecx
lea esi, [ebp - 0x414]
push 0x5c
lea esi, [esi + eax*2]
pop edx
jmp 0x543a56
movzx eax, word [esi - 2]
cmp ax, dx
je 0x543a60
cmp eax, 0x2f
je 0x543a60
add esi, 0xfffffffe
lea eax, [ebp - 0x414]
cmp esi, eax
ja 0x543a45
push esi
call fcn.006a37ec
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00689580
lea eax, [ebp - 0x414]
push 0x2e
push eax
call fcn.0068a697
add esp, 0x18
test eax, eax
je 0x543a95
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x414], 0
lea eax, [ebp - 0x414]
jne 0x543ab3
push 0x71208c
push ebx
push eax
call sym.txupd.exe_wcslcpy
jmp 0x543abf
push str..perf.tlg
push ebx
push eax
call sym.txupd.exe_wcslcat
add esp, 0xc
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x20c], 0
je 0x543b1c
lea eax, [ebp - 0x20c]
push eax
call fcn.006a37ec
pop ecx
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x20e], cx
je 0x543b1c
push 0x6fdc28
lea eax, [ebp - 0x20c]
push ebx
push eax
call sym.txupd.exe_wcslcat
add esp, 0xc
push str.Tencent_
lea eax, [ebp - 0x20c]
push ebx
push eax
call sym.txupd.exe_wcslcat
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
add esp, 0xc
push 0
push eax
call esi
push str.Logs_
lea eax, [ebp - 0x20c]
push ebx
push eax
call sym.txupd.exe_wcslcat
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push eax
call esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call sym.txupd.exe_wcslcat
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop esi
mov dword [edi + 8], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00682c16
mov esp, ebp
pop ebp
ret