joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470740
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4c3127
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
mov eax, dword [0x4e880c]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
lea edx, [esi + 0x10]
mov dword [esi], 0x4cf0ac
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
push edx
mov dword [esi + 0xc], 0x4cdf54
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ebx, ebx
mov dword [esp + 0x5c], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov eax, dword [esp + 0x6c]
push 0x4d39d0
push ebx
push eax
lea ecx, [esi + 0x3c]
mov byte [esp + 0x68], 1
call fcn.0046ec50
push ebx
push ebx
push ebx
lea ecx, [esi + 0x44]
mov byte [esp + 0x68], 2
call fcn.0046c300
push ebx
push ebx
push ebx
lea ecx, [esi + 0x50]
mov byte [esp + 0x68], 3
call fcn.0046c300
lea ecx, [esp + 0x64]
push ecx
push ebx
push esi
push 0x470010
push ebx
push ebx
mov byte [esp + 0x74], 4
call fcn.0048ca0b
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x5c], eax
jne 0x47083a
push 0x14
push str.create_thread_failed
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.0040229b
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 5
call fcn.004079b0
push eax
mov byte [esp + 0x60], 6
call fcn.0046ec20
mov eax, esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x54
ret 0xc

Function at 0x470850
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x48]
push edi
push eax
mov dword [esi], 0x4cf0ac
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x5c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x470884
mov edx, dword [esi + 0x5c]
push 0xff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x5c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 0x54]
push ecx
mov dword [esi + 0x50], 0x4cf000
call edi
mov ebx, 0x4cda14
mov dword [esi + 0x50], ebx
mov edx, dword [esi + 0x48]
push edx
mov dword [esi + 0x44], 0x4cf000
call edi
mov dword [esi + 0x44], ebx
mov eax, dword [esi + 0x40]
push eax
mov dword [esi + 0x3c], 0x4cf000
call edi
lea ecx, [esi + 0x28]
mov dword [esi + 0x3c], ebx
call fcn.0046de60
lea ecx, [esi + 0x10]
push ecx
mov dword [esi + 0xc], 0x4cdf54
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
mov dword [esi + 0xc], ebx
pop esi
pop ebx
ret
Function at 0x471660
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c321e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e880c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0xc], eax
xor ebx, ebx
lea ecx, [esi + 0x14]
mov dword [esi], 0x4cf120
mov eax, 0xf
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x20], ebx
mov byte [ecx + 4], bl
lea edi, [esi + 0x30]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov ebp, dword [esp + 0x28]
mov eax, ebp
lea edx, [eax + 1]
mov byte [esp + 0x20], 2
mov dword [esp + 0x30], edx
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4716d6
sub eax, dword [esp + 0x30]
push eax
push ebp
call fcn.0040229b
mov edx, dword [esp + 0x2c]
mov eax, edx
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4716f3
sub eax, ebp
push eax
push edx
mov ecx, edi
call fcn.0040229b
mov dword [esi + 0x10], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc

Function at 0x472460
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c33b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4e880c]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4e880c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], ecx
mov byte [esp + 0xc], cl
mov dword [esp + 0x30], ecx
lea ecx, [esp + 8]
push ecx
push eax
call fcn.004713d0
lea edx, [esp + 0x10]
push edx
push esi
call fcn.0040bca0
add esp, 0x10
cmp dword [esp + 0x20], 0x10
jb 0x4724da
mov eax, dword [esp + 0xc]
push eax
call fcn.0048c049
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0048c010
add esp, 0x2c
ret

Function at 0x472fd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c3423
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4e880c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.004a9e72
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x473021
mov eax, dword [esi + 0x1c]
push eax
call fcn.0048c049
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x475b90
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3788
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4e880c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x420]
xor edi, edi
cmp eax, edi
jne 0x475c86
lea eax, [esi + 0x210]
push eax
lea ecx, [esi + 0x424]
push ecx
lea edx, [ebp - 0x64]
push edx
call fcn.00441210
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], di
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
push ecx
mov byte [ebp - 4], 1
call fcn.00454f60
mov eax, dword [ebp - 0x28]
add esp, 0x14
cmp dword [ebp - 0x14], 8
jae 0x475c16
lea eax, [ebp - 0x28]
jmp 0x475c1a
cmp eax, edi
je 0x475c4b
cmp word [eax], di
je 0x475c4b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x475c4b
test al, 0x10
jne 0x475c4b
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x475c3b
lea eax, [ebp - 0x28]
push edi
push edi
push str.__install
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0x14], 8
jb 0x475c5d
mov edx, dword [ebp - 0x28]
push edx
call fcn.0048c049
add esp, 4
cmp dword [ebp - 0x4c], 0x10
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], di
mov dword [ebp - 4], 0xffffffff
jb 0x475cf1
mov eax, dword [ebp - 0x60]
push eax
call fcn.0048c049
add esp, 4
jmp 0x475cf1
cmp eax, 1
jne 0x475cf1
lea ecx, [ebp - 0x48]
push edi
push ecx
call fcn.004463c0
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 4], 2
call fcn.004462a0
sub esp, 0x10
mov eax, esp
mov dword [ebp - 0x68], esp
push str.qqdownload_config.xml
lea ecx, [ebp - 0x48]
push ecx
push eax
call fcn.0040dae0
add esp, 0xc
lea ecx, [esi + 0x1f4]
call fcn.0040c6b0
cmp dword [ebp - 0x30], 8
mov dword [ebp - 4], 0xffffffff
jb 0x475ce3
mov edx, dword [ebp - 0x44]
push edx
call fcn.0048c049
add esp, 4
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], edi
mov word [ebp - 0x44], di
mov ecx, esi
call fcn.00475020
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.0048c010
mov esp, ebp
pop ebp
ret
Function at 0x4779c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3bcc
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4e880c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 4], 0x4cf3e4
mov dword [esi + 8], 0x4cf5cc
lea eax, [esi + 0x10]
mov dword [esi], 0x4cf5e0
mov dword [esi + 4], 0x4cf5d0
mov dword [esi + 8], 0x4cf5cc
push eax
mov dword [esi + 0xc], 0x4cdf54
call edi
xor ebx, ebx
lea ecx, [esi + 0x34]
mov dword [ebp - 4], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call fcn.00441750
lea ecx, [esi + 0x1f4]
mov byte [ebp - 4], 1
call fcn.0040b5d0
mov dword [esi + 0x370], ebx
mov dword [esi + 0x374], ebx
mov dword [esi + 0x378], ebx
mov dword [esi + 0x37c], ebx
mov dword [esi + 0x380], 1
mov dword [esi + 0x388], ebx
mov dword [esi + 0x38c], ebx
mov dword [esi + 0x390], ebx
mov dword [esi + 0x394], ebx
mov word [esi + 0x398], bx
mov dword [esi + 0x39a], ebx
mov word [esi + 0x39e], bx
mov dword [esi + 0x3a0], ebx
mov byte [esi + 0x3a4], bl
mov dword [esi + 0x3a8], ebx
mov eax, 0xf
mov dword [esi + 0x3c4], eax
mov dword [esi + 0x3c0], ebx
mov byte [esi + 0x3b0], bl
mov dword [esi + 0x3e0], eax
mov dword [esi + 0x3dc], ebx
mov byte [esi + 0x3cc], bl
lea ecx, [esi + 0x3ec]
mov dword [esi + 0x3e4], 0x4cf428
push ecx
mov dword [esi + 0x3e8], 0x4cdf54
call edi
mov eax, 0xf
mov dword [esi + 0x41c], eax
mov dword [esi + 0x418], ebx
mov byte [esi + 0x408], bl
mov dword [esi + 0x420], 3
mov dword [esi + 0x43c], eax
mov dword [esi + 0x438], ebx
mov byte [esi + 0x428], bl
push 0x408
lea edi, [esi + 0x441]
push ebx
push edi
mov byte [esi + 0x440], bl
call fcn.0048c300
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov byte [esi + 0x849], bl
mov byte [esi + 0x84a], bl
add esp, 0xc
mov dword [esi + 0x850], ebx
mov dword [esi + 0x854], ebx
mov dword [esi + 0x858], ebx
mov byte [ebp - 4], 8
mov byte [esi + 0x85c], bl
mov dword [esi + 0x860], ebx
lea edi, [esi + 0x870]
mov ecx, edi
mov dword [esi + 0x864], ebx
mov dword [esi + 0x868], ebx
mov byte [esi + 0x86c], bl
call fcn.00422f80
mov dword [esi + 0x87c], ebx
mov dword [esi + 0x880], ebx
lea ecx, [esi + 0x888]
push edi
mov byte [ebp - 4], 0xa
mov dword [esi + 0x884], ebx
call fcn.00436a90
lea ecx, [esi + 0x8b0]
push edi
mov byte [ebp - 4], 0xb
call fcn.00436a90
lea ecx, [esi + 0x8d8]
push edi
mov byte [ebp - 4], 0xc
call fcn.00436a90
lea ecx, [esi + 0x900]
push edi
mov byte [ebp - 4], 0xd
call fcn.00436a90
push ebx
push 0x10
lea ecx, [esi + 0x384]
mov byte [ebp - 4], 0xe
call fcn.00410450
mov eax, esi
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 0x478670
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3d68
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4e880c]
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 esi, ecx
lea eax, [ebp - 0x64]
lea ebx, [esi + 0x3e4]
push eax
mov ecx, ebx
call fcn.004756e0
push eax
lea edi, [esi + 0x424]
lea ecx, [ebp - 0x48]
push edi
push ecx
mov dword [ebp - 4], 0
call fcn.00441210
add esp, 0xc
cmp dword [ebp - 0x4c], 0x10
jb 0x4786db
mov edx, dword [ebp - 0x60]
push edx
call fcn.0048c049
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov byte [ebp - 4], 3
call fcn.00454f60
add esp, 8
cmp dword [ebp - 0x14], 8
jb 0x47880c
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x478814
cmp word [eax], 0
je 0x478814
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x478814
test al, 0x10
jne 0x478814
lea ecx, [esi + 0x1f4]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x68], esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push edi
mov byte [ecx + 4], 0
call fcn.0040206e
lea edx, [ebp - 0x64]
push edx
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.004756e0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x6c], esp
push eax
push edi
push ecx
mov byte [ebp - 4], 5
call fcn.00441210
add esp, 0xc
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 6
call fcn.00441900
cmp dword [ebp - 0x4c], 0x10
mov bl, al
mov byte [ebp - 4], 3
jb 0x4787ab
mov edx, dword [ebp - 0x60]
push edx
call fcn.0048c049
add esp, 4
test bl, bl
je 0x478814
push 0
push 0x3e8
lea ecx, [ebp - 0x70]
lea edi, [esi + 0x8d8]
call fcn.00426fc0
push eax
mov ecx, edi
call fcn.00436a40
xor ecx, ecx
mov eax, 0x474ff0
mov ebx, 0x3e8
mov dword [ebp - 0x60], eax
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x50], ebx
mov ebx, dword [ebp - 0x60]
mov dword [eax], ebx
mov dword [eax + 4], ecx
lea edx, [ecx + 2]
mov byte [ebp - 0x74], cl
mov ecx, dword [ebp - 0x50]
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x74]
mov dword [eax + 0x14], ecx
mov ecx, edi
call fcn.00477c10
jmp 0x47881b
lea eax, [ebp - 0x28]
jmp 0x478714
mov ecx, esi
call fcn.00475020
cmp dword [ebp - 0x14], 8
jb 0x47882d
mov edx, dword [ebp - 0x28]
push edx
call fcn.0048c049
add esp, 4
xor eax, eax
cmp dword [ebp - 0x30], 0x10
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
jb 0x47884f
mov eax, dword [ebp - 0x44]
push eax
call fcn.0048c049
add esp, 4
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.0048c010
mov esp, ebp
pop ebp
ret
Function at 0x47c370
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4c441b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4e880c]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
push edi
mov eax, dword [0x4e880c]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov esi, dword [esp + 0x244]
mov ecx, esi
call fcn.0047bc60
push 1
push 0x2e
lea eax, [esp + 0x30]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x47c476
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47c3d7
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0040244b
mov eax, dword [esi + 0x14]
lea edi, [eax - 1]
cmp edi, eax
jbe 0x47c402
call fcn.0048c687
cmp dword [esi + 0x18], 8
jb 0x47c40d
mov eax, dword [esi + 4]
jmp 0x47c410
lea eax, [esi + 4]
cmp word [eax + edi*2], 0x5c
je 0x47c425
push 1
push 0x4caa50
mov ecx, esi
call fcn.0040d510
push 0xb
push str.TencentQQ_
mov ecx, esi
call fcn.0040d510
push str.UserDataInfo.ini
lea edx, [esp + 0x10]
push esi
push edx
call fcn.0040dae0
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov dword [esp + 0x248], 0
call fcn.0040216a
cmp dword [esp + 0x24], 8
jb 0x47c471
mov eax, dword [esp + 0x10]
push eax
call fcn.0048c049
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0048c010
add esp, 0x234
ret
Function at 0x47fd60
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47fdd6
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x47fda5
cmp eax, 2
jne 0x47fdc1
test esi, esi
mov eax, dword [esp + 0x14]
je 0x47fdd0
test eax, eax
je 0x47fdcb
test al, 1
jne 0x47fdc1
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x47fdd0
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x47ff60
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4e880c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
mov esi, ecx
call fcn.0048c300
add esp, 0xc
mov word [ebp - 0x20e], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 5
div ecx
push 0x103
lea ebx, [esi + 0x38]
push ebx
add edx, 0x61
mov word [ebp - 0x210], dx
lea edx, [ebp - 0x20c]
push edx
call fcn.004907a1
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47ffe0
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.0048f003
lea eax, [ebp - 0x20c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x480016
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
push ecx
lea edx, [ebp - 0x20c]
push str..tlg
push edx
call fcn.0048f003
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0xc
xor esi, esi
lea esp, [esp]
lea eax, [ebp - 0x20c]
push eax
call edi
lea ecx, [ebp - 0x20c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x480087
push ebx
call edi
test eax, eax
jne 0x480087
cmp esi, 2
jge 0x48007f
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 1
cmp esi, 3
jl 0x480050
push ebx
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048c010
mov esp, ebp
pop ebp
ret
Function at 0x480170
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push 0x2c
lea eax, [ebp - 0x2c]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x30], 0x30
call fcn.0048c300
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], str.TXLOGGER_BYCORETEAM_TencentDL
mov dword [ebp - 0x28], 0x480130
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x60]
push ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
je 0x4801d1
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
push 0
push edx
push 0
push 0xfffffffffffffffd
push 0x64
push 0x64
push 0
push 0
push 0
push str.loger_command_window
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [esi + 0x244], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x244]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4804d0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x258]
test eax, eax
je 0x4804f0
mov ecx, dword [esi + 0x25c]
sub ecx, eax
sar ecx, 2
jne 0x4804fc
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 0x253], 0
push ebx
push edi
jne 0x4805eb
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea ebx, [esi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x48057a
lea edx, [ebp - 0xc]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x480585
cmp dword [ebp - 8], 0
jg 0x48054c
cmp dword [ebp - 0xc], 0x1400000
jbe 0x480585
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0047ff60
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x480585
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
mov ecx, dword [esi + 0x258]
test ecx, ecx
je 0x4805e4
mov eax, dword [esi + 0x25c]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x4805e4
test ecx, ecx
je 0x4805c0
mov eax, dword [esi + 0x25c]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x4805c5
call fcn.0048c687
mov eax, dword [esi + 0x258]
mov eax, dword [eax + ebx*4]
mov edx, dword [eax]
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
add ebx, 1
jmp 0x480594
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp + 8]
xor edi, edi
mov ecx, dword [esi + 0x258]
test ecx, ecx
je 0x480667
mov eax, dword [esi + 0x25c]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x480667
test bl, bl
je 0x480637
test ecx, ecx
je 0x480620
mov eax, dword [esi + 0x25c]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x480625
call fcn.0048c687
mov eax, dword [esi + 0x258]
mov ecx, dword [eax + edi*4]
push ecx
call fcn.0048c37f
add esp, 4
mov ecx, dword [esi + 0x258]
test ecx, ecx
je 0x480650
mov eax, dword [esi + 0x25c]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x480655
call fcn.0048c687
mov edx, dword [esi + 0x258]
mov dword [edx + edi*4], 0
add edi, 1
jmp 0x4805f0
mov ebx, dword [esi + 0x25c]
cmp ecx, ebx
jbe 0x480676
call fcn.0048c687
mov edi, dword [esi + 0x258]
cmp edi, dword [esi + 0x25c]
jbe 0x480689
call fcn.0048c687
cmp edi, ebx
je 0x4806be
mov eax, dword [esi + 0x25c]
sub eax, ebx
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea edx, [ecx + edi]
mov dword [ebp + 8], edx
jle 0x4806b5
push ecx
push ebx
push ecx
push edi
call fcn.0048c29f
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esi + 0x25c], eax
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x480ac0
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4679
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4e880c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
call fcn.004812c0
lea eax, [esi + 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [esi], 0x4cfd24
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x258], ebx
mov dword [esi + 0x25c], ebx
mov dword [esi + 0x260], ebx
xor edi, edi
mov byte [esi + 0x251], 1
mov dword [esi + 0x240], ebx
mov dword [esi + 0x244], ebx
mov byte [esi + 0x250], 1
mov dword [esi + 0x24c], 5
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push str.SoftwareTencentTencentDLSettings
push reloc.WS2_32.dll_accept
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x480bf1
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
push 0x4e875c
lea edx, [ebp - 0x1c]
push edx
push ebx
push str.logLevel
push edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
lea eax, [ebx + 4]
jne 0x480b9e
cmp dword [ebp - 0x1c], eax
je 0x480ba3
mov dword [0x4e875c], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + 0x24c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push ebx
push str.LogCacheCount
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x480bde
cmp dword [ebp - 0x18], 4
jne 0x480bde
cmp dword [esi + 0x24c], 1
ja 0x480bde
mov byte [esi + 0x251], bl
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x480bf1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x14], edi
mov eax, dword [0x4e875c]
mov ecx, esi
mov dword [esi + 0x248], eax
mov byte [esi + 0x252], 1
mov byte [esi + 0x253], bl
call fcn.00480170
test eax, eax
jne 0x480c2e
push str.TXLog_SetupWindow_fasle__log
mov byte [esi + 0x250], bl
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [esi + 0x253], 1
jmp 0x480c35
mov ecx, esi
call fcn.00480790
cmp edi, ebx
je 0x480c40
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret