joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100501e0
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x1011150c]
sub esp, 0x114
test eax, eax
jne 0x10050310
push 0x114
push eax
lea eax, [esp + 8]
push eax
call fcn.1008e420
add esp, 0xc
mov dword [esp], 0x114
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x100502ec
call fcn.10050160
test eax, eax
je 0x1005023e
mov eax, 9
mov dword [0x1011150c], eax
add esp, 0x114
ret
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x1005028c
mov eax, dword [esp + 8]
test eax, eax
jne 0x10050260
mov eax, 2
mov dword [0x1011150c], eax
add esp, 0x114
ret
cmp eax, 1
jne 0x10050276
mov eax, 3
mov dword [0x1011150c], eax
add esp, 0x114
ret
cmp eax, 2
jne 0x100502db
mov eax, 4
mov dword [0x1011150c], eax
add esp, 0x114
ret
cmp eax, 6
jne 0x100502db
mov eax, dword [esp + 8]
test eax, eax
jne 0x100502aa
mov eax, 5
mov dword [0x1011150c], eax
add esp, 0x114
ret
cmp eax, 1
jne 0x100502c0
mov eax, 6
mov dword [0x1011150c], eax
add esp, 0x114
ret
cmp eax, 2
je 0x100502ca
cmp eax, 3
jne 0x100502db
mov eax, 7
mov dword [0x1011150c], eax
add esp, 0x114
ret
mov eax, 0x14
mov dword [0x1011150c], eax
add esp, 0x114
ret
cmp eax, 1
jne 0x1005030b
cmp dword [esp + 4], 4
jne 0x100502db
cmp dword [esp + 8], 0
jne 0x100502db
mov dword [0x1011150c], eax
add esp, 0x114
ret
mov eax, dword [0x1011150c]
add esp, 0x114
ret

Function at 0x10052ce0
Capabilities:
Log keystrokes via polling

Disassembly:
mov edx, dword [esp + 4]
push edi
mov edi, ecx
cmp edx, 9
jne 0x10052d5a
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
push ecx
mov ecx, dword [edi + 4]
call fcn.10052970
test eax, eax
jne 0x10052d56
push ebx
mov ebx, dword [edi + 4]
push esi
mov esi, dword [ebx + 0x5c]
test esi, esi
je 0x10052d4b
mov ecx, dword [esi + 0x18]
mov eax, ecx
shr eax, 2
not eax
test al, 1
jne 0x10052d44
mov eax, dword [esi]
and ecx, 0xfffffffb
mov dword [esi + 0x18], ecx
mov ecx, esi
push 0
call dword [eax + 0x5c]
test byte [esi + 0x18], 0x80
je 0x10052d44
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x10052d44
mov ecx, dword [ecx]
lea eax, [esi + 4]
push 0
push eax
call fcn.10057c30
mov dword [ebx + 0x5c], 0
push ecx
mov ecx, dword [edi + 4]
call fcn.10052970
pop esi
pop ebx
pop edi
ret 8
mov ecx, dword [edi + 4]
pop edi
mov dword [esp + 4], edx
mov eax, dword [ecx]
jmp dword [eax + 0x34]

Function at 0x10056d70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
push dword [0x10110da8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x10056dba
push 8
call fcn.1008b26a
mov dword [esp + 4], eax
add esp, 4
mov dword [esp], eax
mov dword [eax], 0
mov dword [eax + 4], 0
lea eax, [esp]
push eax
call fcn.100572f0
push dword [esp]
push dword [0x10110da8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esp]
pop ecx
ret
Function at 0x1005a0d0
Capabilities:
Set global application hook

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1005a113
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x1005a18c
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x1005a18c
push 0x50
push ecx
push eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop esi
ret 0x10
cmp dword [0x10110c7c], 0
jne 0x1005a18c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x1005a141
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x1005a141
push 0x50
push eax
push ecx
push dword [esp + 0x18]
push dword [esp + 0x18]
jmp 0x1005a14b
push 0x53
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push 0
mov ecx, esi
call fcn.10057c30
cmp dword [esi + 0x88], 0
mov dword [0x10110c7c], esi
jne 0x1005a18c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x1005a040
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 0x88], eax
pop esi
ret 0x10

Function at 0x1005a910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [esp + 0x14], 1
jb 0x1005aa01
mov ecx, dword [esi]
test ecx, ecx
je 0x1005a92f
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], edi
mov ecx, dword [0x10111534]
test ecx, ecx
jne 0x1005a948
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, eax
mov dword [0x10111534], ecx
movzx eax, word [esp + 0xc]
push ebp
push str.IMAGE
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
jne 0x1005a967
pop ebp
pop edi
pop esi
ret 0xc
push ebx
push ebp
push dword [0x10111534]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x1005a98b
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
ret 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1005a9ac
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop ebp
mov eax, edi
pop edi
pop esi
ret 0xc
push ebp
push dword [0x10111534]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
mov edx, eax
call fcn.1005a760
mov dword [esi], eax
test eax, eax
je 0x1005a9f1
mov ecx, eax
call fcn.10050100
mov ecx, dword [esi]
mov dword [esi + 0x10], eax
call fcn.10050130
mov dword [esi + 0x14], eax
mov edi, 1
mov eax, dword [esp + 0x1c]
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop ebp
mov eax, edi
pop edi
pop esi
ret 0xc
pop edi
xor eax, eax
pop esi
ret 0xc
Function at 0x1005c330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100c24f8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
push str.QQPCDownload.dll
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x100f8d74
mov edi, eax
push 0x100f551c
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x1005c389
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1005c374
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1005c374
push ebx
push edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 0xc], eax
test eax, eax
je 0x1005c374
xorps xmm0, xmm0
mov dword [ebp - 0x20], vtable.minilib::CMemFile.0
movups xmmword [ebp - 0x1c], xmm0
push eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push dword [esi + 8]
call fcn.1005d680
mov ecx, dword [esi + 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.1005c110
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [esi + 0x14], 1
call fcn.1005d5b0
mov ecx, dword [ebp - 0xc]
mov eax, 1
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1005d1b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x40
push ebx
mov ebx, edx
mov eax, ecx
mov dword [esp + 0xc], eax
test ebx, ebx
jne 0x1005d1c7
xor eax, eax
pop ebx
add esp, 0x40
ret
push edi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
jne 0x1005d1db
pop edi
pop ebx
add esp, 0x40
ret
mov eax, dword [esp + 0x58]
xorps xmm0, xmm0
push ebp
mov ebp, dword [esp + 0x58]
push 0
movups xmmword [esp + 0x28], xmm0
push 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x30]
movq qword [esp + 0x54], xmm0
push eax
push edi
movups xmmword [esp + 0x4c], xmm0
mov dword [esp + 0x38], 0x28
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], 0x200001
mov dword [esp + 0x48], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x1005d24e
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x40
ret
push esi
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x60]
mov esi, ebp
imul esi, edx
mov dword [esp + 0x1c], eax
sub esi, 1
mov ecx, esi
js 0x1005d280
nop dword [eax + eax]
mov eax, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x1000001
sub ecx, 1
jns 0x1005d270
push 3
push 0
push 0
push edx
push ebp
push ebx
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
test esi, esi
js 0x1005d2d7
nop dword [eax + eax]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + esi*4]
cmp ecx, 0x1000001
jne 0x1005d2b8
mov dword [eax + esi*4], 0
jmp 0x1005d2d2
cmp ecx, 1
jne 0x1005d2c6
mov dword [eax + esi*4], 0
jmp 0x1005d2d2
cmp byte [eax + esi*4 + 3], 0
jne 0x1005d2d2
mov byte [eax + esi*4 + 3], 0xff
sub esi, 1
jns 0x1005d2a0
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], 0x1ff0000
push dword [esp + 0x10]
push eax
push ebp
push 0
push 0
push edi
push eax
push ebp
push dword [esp + 0x78]
push dword [esp + 0x78]
push dword [esp + 0x40]
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push dword [esp + 0x1c]
mov esi, eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x40
ret
Function at 0x1006a7e8
Capabilities:
Check if file exists
Create directory
Query environment variable
Query or enumerate registry value

Disassembly:
push 0x21c
mov eax, 0x100c2994
call fcn.1008bbf4
mov dword [ebp - 0x228], 0x101119e4
xor esi, esi
xor eax, eax
mov dword [ebp - 4], esi
mov dword [0x101119e4], 0x100f926c
mov dword [0x10111a04], 7
mov dword [0x10111a00], esi
mov word [0x101119f0], ax
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
inc ebx
mov byte [ebp - 4], bl
push esi
push eax
mov dword [0x101119e8], esi
mov dword [0x101119ec], esi
call fcn.1008e420
add esp, 0xc
mov dword [ebp - 0x21c], esi
push 4
pop eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
push str.EnableLogToView
push str.SOFTWARETencentQMDownload
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1006a8a5
mov eax, dword [0x101119e8]
cmp dword [ebp - 0x21c], ebx
cmove eax, ebx
mov dword [0x101119e8], eax
push 0x103
lea eax, [ebp - 0x218]
push eax
push str._APPDATA_TencentQMDownload_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1006a8e0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1006a8e0
push esi
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x218]
push eax
call fcn.10001a38
pop ecx
push eax
lea eax, [ebp - 0x218]
mov edi, 0x101119f0
push eax
mov ecx, edi
call fcn.10001dcf
mov esi, str.DownloadErrLogFile.log
push esi
call fcn.10001a38
pop ecx
push eax
push esi
mov ecx, edi
call fcn.1000574b
mov eax, 0x101119e4
call fcn.1008bb9e
ret
Function at 0x1006a955
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x1010c070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x800
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.1008e420
add esp, 0xc
cmp dword [esi + 8], ebx
jne 0x1006a9bf
lea eax, [esi + 0xc]
cmp dword [eax + 0x14], 8
jb 0x1006a997
mov eax, dword [eax]
push ebx
push 0x20
push 2
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
test eax, eax
je 0x1006aaa8
cmp eax, 0xffffffff
je 0x1006aaa8
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x1006aaa8
cmp eax, 0x100000
ja 0x1006aaa8
cmp dword [esi + 4], ebx
jne 0x1006aa38
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x806]
push edi
push eax
movzx eax, word [ebp - 0x808]
push eax
movzx eax, word [ebp - 0x80a]
push eax
movzx eax, word [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__5u___02u:_02u:_02u._03u_:__s
push 0x7fd
mov edi, 0x800
lea eax, [ebp - 0x804]
push edi
push eax
call fcn.1006a7b7
add esp, 0x28
jmp 0x1006aa5f
push 0x7fd
push edi
mov edi, 0x800
lea eax, [ebp - 0x804]
push edi
push eax
call fcn.100a0616
lea eax, [ebp - 0x804]
push eax
call fcn.100a0630
add esp, 0x14
cmp eax, 3
jle 0x1006aaa8
mov word [ebp + eax - 0x804], 0xa0d
add eax, 2
mov dword [ebp - 0x818], ebx
cmp eax, edi
jae 0x1006aabb
mov byte [ebp + eax - 0x804], bl
lea eax, [ebp - 0x818]
push ebx
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.100a0630
pop ecx
push eax
lea eax, [ebp - 0x804]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008aeea
mov esp, ebp
pop ebp
ret 4
call fcn.1008b3c9
int3
Function at 0x1006c75e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x1006c769
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x1006c825
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ea370]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ea370]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ea370]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ea370]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ea370]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ea370]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ea370]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ea370]
sub edi, 1
jne 0x1006c77e
pop edi
test esi, esi
je 0x1006c841
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ea370]
inc edx
sub esi, 1
jne 0x1006c829
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x1006c848
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x100ea370]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ea370]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x1006cf8b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
mov edi, ebx
mov edx, ecx
imul edi, dword [ebp + 8]
cmp byte [esi], 0
je 0x1006cfc1
push 0
lea eax, [ebp + 8]
push eax
push edi
push edx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1006cfbc
mov byte [esi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x1006cff7
xor eax, eax
mov ecx, edi
add ecx, dword [esi + 0x28]
adc eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x24]
jl 0x1006cfdd
jg 0x1006cfd7
cmp ecx, dword [esi + 0x20]
jbe 0x1006cfdd
mov edi, dword [esi + 0x20]
sub edi, dword [esi + 0x28]
mov ecx, dword [esi + 0x1c]
add ecx, dword [esi + 0x28]
push edi
push ecx
push edx
call fcn.1008dea0
add esp, 0xc
mov eax, edi
add dword [esi + 0x28], edi
adc dword [esi + 0x2c], 0
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
Function at 0x1006dbf8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x1006dc85
cmp dword [esi + 4], 0xffffffff
jne 0x1006dc85
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.100a0914
pop ecx
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x1006dc54
cmp eax, 0x2f
je 0x1006dc54
push edi
call fcn.100a0914
pop ecx
mov ecx, 0x103
sub ecx, eax
push ecx
push 0x100d2cf8
push edi
call fcn.100a09ec
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.1006ce39
pop ecx
pop ecx
test eax, eax
jne 0x1006dc6c
mov eax, dword [ebp - 4]
jmp 0x1006dc8a
mov ecx, eax
call fcn.1006d22e
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x1006dc8a
mov eax, 0x1000000
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1006e247
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1010c070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x1006e279
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1006e279
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x1006e344
push esi
mov esi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x1006e296
cmp ax, 0x5c
jne 0x1006e298
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x1006e28a
cmp esi, ebx
je 0x1006e2e0
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.1008dea0
add esp, 0xc
cmp esi, 0x208
jae 0x1006e354
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, edi
mov word [ebp + esi - 0x414], ax
call fcn.1006e247
xor eax, eax
mov esi, 0x103
mov word [ebp - 0x20c], ax
test edi, edi
je 0x1006e303
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10095fa0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.100a0914
sub esi, eax
lea eax, [ebp - 0x20c]
push esi
push ebx
push eax
call fcn.100a09ec
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
cmp eax, 0xffffffff
jne 0x1006e344
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1008aeea
mov esp, ebp
pop ebp
ret
call fcn.1008b3c9
int3
Function at 0x1006f1c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi + 0x14], 0
je 0x1006f1ee
call edi
mov ecx, dword [esi + 0x14]
sub eax, ecx
cmp eax, 0x2932e00
ja 0x1006f1ee
call fcn.10074ec0
test eax, eax
je 0x1006f1ee
pop edi
xor eax, eax
pop esi
ret 4
call edi
lea ecx, [esi + 4]
mov dword [esi + 0x14], eax
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
ret 4

Function at 0x1006fbd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x1006fc05
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1006fbf5
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
push dword [esi + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x1006fc40
push 0
push 0
call fcn.100968b3
xor ecx, ecx
mov dword [esi + 4], eax
add esp, 0x18
test eax, eax
setne cl
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100712e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x1010c070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x84]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push 0x80
push eax
push 0x100d2e02
push str.config1
push str.Profile
call edi
xor ecx, ecx
mov al, byte [ebp + ecx - 0x84]
inc ecx
cmp al, 0x30
jl 0x10071332
cmp al, 0x39
jle 0x10071344
cmp al, 0x61
jl 0x1007133a
cmp al, 0x66
jle 0x10071344
sub al, 0x41
cmp al, 5
ja 0x10071441
cmp ecx, 0x20
jl 0x10071322
xor eax, eax
cmp byte [ebp + ecx - 0x84], al
sete al
test eax, eax
je 0x10071441
cmp byte [ebp - 0x84], 0
jne 0x1007136a
xor ecx, ecx
jmp 0x1007137c
lea ecx, [ebp - 0x84]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10071373
sub ecx, edx
push ecx
lea eax, [ebp - 0x84]
mov ecx, ebx
push eax
call fcn.10005844
push esi
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0x100d2e02
push str.config2
push str.Profile
call edi
cmp byte [ebp - 0x84], 0
jne 0x100713b6
xor ecx, ecx
jmp 0x100713c9
lea ecx, [ebp - 0x84]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100713c0
sub ecx, edx
push ecx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebx + 0x48]
call fcn.10005844
push esi
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0x100d2e02
push str.config3
push str.Profile
call edi
cmp byte [ebp - 0x84], 0
jne 0x10071404
xor ecx, ecx
jmp 0x10071419
lea ecx, [ebp - 0x84]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10071410
sub ecx, edx
push ecx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebx + 0x18]
call fcn.10005844
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008aeea
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008aeea
mov esp, ebp
pop ebp
ret 8

Function at 0x100748f0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1010c070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.1008e420
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.TencentDeskUpdate
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10096511
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
add esp, 0xc
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x1007497d
xor ecx, ecx
jmp 0x10074995
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10074986
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.10001dcf
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1008aeea
mov esp, ebp
pop ebp
ret
Function at 0x10074a90
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1010c070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.1008e420
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.TencentDeskUpdate
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10096511
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
add esp, 0xc
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x10074b1d
xor ecx, ecx
jmp 0x10074b35
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10074b26
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.10001dcf
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1008aeea
mov esp, ebp
pop ebp
ret