joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a8c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, eax
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x40a963
push ebx
push esi
call fcn.0043b629
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40a962
push ebx
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40a959
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x45812c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40a959
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xc]
xor edx, edx
mov esi, 0x10000
div esi
push edx
push eax
mov eax, dword [ecx + 8]
xor edx, edx
mov ecx, esi
div ecx
mov ecx, dword [ebp + 8]
movzx edx, dl
push edx
movzx eax, al
push eax
push 0x458130
push 0x208
push 0x104
push ecx
call fcn.0043c8a7
add esp, 0x20
push ebx
call fcn.0043c87e
add esp, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ae60
Capabilities:
Check os version
Get common file path

Disassembly:
mov byte [ecx + 8], 1
jmp fcn.0040a970

Function at 0x40b6b0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0040a540
test eax, eax
jne 0x40b6dc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b634
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x802]
push ecx
mov word [ebp - 0x804], ax
call fcn.0043f7e0
add esp, 0xc
lea edx, [ebp - 0x80c]
push edx
push 0x20019
push 0
push str.SOFTWARETencentQQGameSYS
push closesocket
mov dword [ebp - 0x810], 0x800
mov dword [ebp - 0x808], 0
mov dword [ebp - 0x80c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b7e0
lea eax, [ebp - 0x810]
push eax
mov eax, dword [ebp - 0x80c]
lea ecx, [ebp - 0x804]
push ecx
lea edx, [ebp - 0x808]
push edx
push 0
push str.HallDirectory
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b7e0
cmp dword [ebp - 0x808], 1
jne 0x40b7e0
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b780
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x806], 0x5c
je 0x40b7ad
push 0x458c30
push 0x400
lea ecx, [ebp - 0x804]
push ecx
jmp 0x40b7be
push str.QQGame.exe
push 0x400
lea edx, [ebp - 0x804]
push edx
call fcn.0043c8f2
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b7e0
test al, 0x10
je 0x40b6cc
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0043b634
mov esp, ebp
pop ebp
ret

Function at 0x40c2c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x802]
push ecx
mov word [ebp - 0x804], ax
call fcn.0043f7e0
add esp, 0xc
lea edx, [ebp - 0x808]
push edx
push 0x20019
push 0
push str.SoftwareMicrosoftInternet_Explorer
push closesocket
mov dword [ebp - 0x80c], 0x800
mov dword [ebp - 0x808], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c362
mov edx, dword [ebp - 0x808]
lea eax, [ebp - 0x80c]
push eax
lea ecx, [ebp - 0x804]
push ecx
push 0
push 0
push str.version
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c362
mov eax, 0x36
cmp ax, word [ebp - 0x804]
mov eax, 0x459408
je 0x40c367
mov eax, str.http:__dldl.qq.com_dl_qq
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b634
mov esp, ebp
pop ebp
ret
Function at 0x40c5c0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*4]
sub ecx, eax
neg ecx
add ecx, ecx
lea edx, [ecx + ecx]
mov ecx, 0xc
sub ecx, edx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 1]
push ecx
xor esi, esi
call fcn.0043bdae
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x40c619
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 2
jle 0x40c6a2
lea edx, [edi - 3]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea eax, [edx*4]
sub eax, edx
neg eax
add edi, eax
mov dword [ebp - 4], edx
mov dword [ebp + 8], edi
movzx eax, byte [ebx]
movzx edi, byte [ebx + 1]
mov edx, eax
shr edx, 2
movzx edx, byte [edx + 0x4661c0]
mov byte [ecx + esi], dl
and eax, 3
add eax, eax
mov edx, edi
shr edx, 4
movzx eax, byte [edx + eax*8 + 0x4661c0]
mov byte [ecx + esi + 1], al
movzx eax, byte [ebx + 2]
mov edx, eax
shr edx, 6
and edi, 0xf
movzx edx, byte [edx + edi*4 + 0x4661c0]
and eax, 0x3f
movzx eax, byte [eax + 0x4661c0]
mov byte [ecx + esi + 2], dl
mov byte [ecx + esi + 3], al
add esi, 4
add ebx, 3
dec dword [ebp - 4]
jne 0x40c642
mov edi, dword [ebp + 8]
test edi, edi
je 0x40c702
movzx edi, byte [ebx]
mov edx, edi
shr edx, 2
mov al, byte [edx + 0x4661c0]
and edi, 3
cmp dword [ebp + 8], 1
mov byte [ecx + esi], al
jle 0x40c6eb
movzx eax, byte [ebx + 1]
mov edx, eax
shr edx, 4
add edi, edi
mov dl, byte [edx + edi*8 + 0x4661c0]
and eax, 0xf
mov al, byte [eax*4 + 0x4661c0]
mov byte [ecx + esi + 1], dl
mov byte [ecx + esi + 2], al
mov byte [ecx + esi + 3], 0x3d
jmp 0x40c6ff
shl edi, 4
mov dl, byte [edi + 0x4661c0]
mov byte [ecx + esi + 1], dl
mov word [ecx + esi + 2], 0x3d3d
add esi, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40c70b
mov dword [eax], esi
pop edi
mov byte [ecx + esi], 0
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cc30
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x400
mov edi, ecx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ebx
call fcn.0043b629
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40ccbe
push 0x5c
lea ecx, [ebp - 0x60]
push ebx
push ecx
call fcn.0043f7e0
add esp, 0xc
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push edi
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ccd1
push esi
call fcn.0043c87e
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b634
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [ebp - 0x64]
push edx
push 0x400
push esi
push edi
call ebx
test eax, eax
je 0x40cd18
lea esp, [esp]
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x40cd18
push eax
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.0041bdd0
add esp, 0xc
push 0
lea ecx, [ebp - 0x64]
push ecx
push 0x400
push esi
push edi
call ebx
test eax, eax
jne 0x40ccf0
push 0x400
push 0
push esi
call fcn.0043f7e0
lea edx, [ebp - 0x60]
push edx
push esi
call fcn.0041c120
movzx eax, byte [esi + 0xf]
movzx ecx, byte [esi + 0xe]
movzx edx, byte [esi + 0xd]
push eax
movzx eax, byte [esi + 0xc]
push ecx
movzx ecx, byte [esi + 0xb]
push edx
movzx edx, byte [esi + 0xa]
push eax
movzx eax, byte [esi + 9]
push ecx
movzx ecx, byte [esi + 8]
push edx
movzx edx, byte [esi + 7]
push eax
movzx eax, byte [esi + 6]
push ecx
movzx ecx, byte [esi + 5]
push edx
movzx edx, byte [esi + 4]
push eax
movzx eax, byte [esi + 3]
push ecx
movzx ecx, byte [esi + 2]
push edx
movzx edx, byte [esi + 1]
push eax
movzx eax, byte [esi]
push ecx
mov ecx, dword [ebp - 0x68]
push edx
push eax
push str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
push 0x23
push ecx
call fcn.0043cb93
add esp, 0x60
push esi
call fcn.0043c87e
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0043b634
mov esp, ebp
pop ebp
ret
Function at 0x40d970
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x208
lea ecx, [ebp - 0x20e]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
mov word [ebp - 0x210], ax
call fcn.0043f7e0
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
push 0x20019
push ebx
push str.SOFTWARETencentQQPCMgr
push closesocket
mov dword [ebp - 0x228], 0x104
xor esi, esi
mov dword [ebp - 0x214], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40da50
mov eax, dword [ebp - 0x214]
push edi
push str.InstallDir
lea ecx, [ebp - 0x224]
push ecx
lea edi, [ebp - 0x228]
lea esi, [ebp - 0x210]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], ebx
call fcn.004073d0
pop edi
test eax, eax
jne 0x40da3d
push str.QQPCMgr.exe
mov edx, esi
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [ebx + 1]
test eax, eax
jne 0x40da3f
mov esi, ebx
mov eax, dword [ebp - 0x214]
cmp eax, ebx
je 0x40da50
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b634
mov esp, ebp
pop ebp
ret
Function at 0x410d60
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
push edi
mov edi, ecx
mov ecx, dword [edi]
push ecx
mov dword [ebp - 0x1c], eax
call ebx
mov edx, dword [edi + 4]
push edx
mov esi, eax
call ebx
mov edi, eax
xor ebx, ebx
mov eax, dword [ebx + str.37k_IF__y_d]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + ebx - 0x14], eax
add ebx, 4
cmp ebx, 0x10
jl 0x410d92
xor eax, eax
mov dword [ebp - 0x18], 0x10
mov ecx, edi
shr ecx, 5
add ecx, dword [ebp - 0x10]
mov edx, edi
shl edx, 4
add edx, dword [ebp - 0x14]
sub eax, 0x61c88647
xor ecx, edx
lea edx, [eax + edi]
xor ecx, edx
add esi, ecx
mov ecx, esi
shr ecx, 5
add ecx, dword [ebp - 8]
mov edx, esi
shl edx, 4
add edx, dword [ebp - 0xc]
xor ecx, edx
lea edx, [eax + esi]
xor ecx, edx
add edi, ecx
dec dword [ebp - 0x18]
jne 0x410db4
push esi
mov esi, dword [sym.imp.WS2_32.dll_htonl]
call esi
mov ebx, dword [ebp - 0x1c]
push edi
mov dword [ebx], eax
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [ebx + 4], eax
xor ecx, ebp
pop ebx
call fcn.0043b634
mov esp, ebp
pop ebp
ret

Function at 0x410e20
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov ecx, dword [esi]
push edi
push ecx
mov dword [ebp - 0x1c], eax
call ebx
mov edx, dword [esi + 4]
push edx
mov edi, eax
call ebx
mov esi, eax
xor ebx, ebx
mov eax, dword [ebx + str.37k_IF__y_d]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + ebx - 0x14], eax
add ebx, 4
cmp ebx, 0x10
jl 0x410e52
mov eax, 0xe3779b90
mov dword [ebp - 0x18], 0x10
mov ecx, edi
shr ecx, 5
add ecx, dword [ebp - 8]
mov edx, edi
shl edx, 4
add edx, dword [ebp - 0xc]
xor ecx, edx
lea edx, [eax + edi]
xor ecx, edx
sub esi, ecx
mov ecx, esi
shr ecx, 5
add ecx, dword [ebp - 0x10]
mov edx, esi
shl edx, 4
add edx, dword [ebp - 0x14]
xor ecx, edx
lea edx, [eax + esi]
xor ecx, edx
sub edi, ecx
add eax, 0x61c88647
dec dword [ebp - 0x18]
jne 0x410e77
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov ebx, dword [ebp - 0x1c]
push esi
mov dword [ebx], eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [ebx + 4], eax
xor ecx, ebp
pop ebx
call fcn.0043b634
mov esp, ebp
pop ebp
ret
Function at 0x4114c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
push ebx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
push 0x5c
push eax
mov byte [esi + 0x20], al
lea eax, [ebp - 0x60]
push eax
mov ebx, ecx
call fcn.0043f7e0
xor eax, eax
add esp, 0xc
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
jb 0x41153b
mov ebx, dword [ebx]
push eax
lea ecx, [ebp - 0x60]
push ebx
push ecx
call fcn.0041bdd0
lea edx, [ebp - 0x60]
push edx
push edi
call fcn.0041c120
add esp, 0x14
xor ebx, ebx
mov dword [ebp - 0x64], esi
movzx eax, byte [edi + ebx]
mov ecx, dword [ebp - 0x64]
push eax
push 0x459b50
push 2
push 3
push ecx
call fcn.0043cbb1
add dword [ebp - 0x64], 2
inc ebx
add esp, 0x14
cmp ebx, 0x10
jb 0x411558
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov byte [esi + 0x20], 0
pop ebx
call fcn.0043b634
mov esp, ebp
pop ebp
ret
Function at 0x411ed0
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452300
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x465100]
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
push 0
lea edi, [ebp - 0x48]
mov byte [ebp - 0x299], 0
call fcn.00412130
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x411f24
mov eax, edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 1
push closesocket
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x41202a
push 1
lea edi, [ebp - 0x2c]
call fcn.00412130
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x48]
mov edi, 8
cmp dword [ebp - 0x34], edi
jae 0x411f68
lea eax, [ebp - 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x298]
push ecx
push eax
call esi
cmp eax, 0xffffffff
je 0x411f86
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x411fdd
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x411f91
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x298]
push edx
push eax
call esi
cmp eax, 0xffffffff
je 0x411fdd
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x411fb2
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x411fbd
lea eax, [ebp - 0x2c]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x411fdd
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x411fd6
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x411fe8
lea eax, [ebp - 0x2c]
push 0
push 0
push 3
push 0
push 1
push closesocket
push eax
call ebx
mov byte [ebp - 4], 0
mov esi, eax
cmp dword [ebp - 0x18], edi
jb 0x412011
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0043bc47
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
cmp esi, 0xffffffff
je 0x412077
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
jb 0x412068
push 0
lea edx, [ebp - 0x2a0]
push edx
push 0x10
push section..QMGuid
push esi
mov dword [ebp - 0x2a0], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412068
cmp dword [ebp - 0x2a0], 0x10
mov bl, 1
je 0x41206e
mov bl, byte [ebp - 0x299]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412079
mov bl, cl
cmp dword [ebp - 0x34], 8
jb 0x41208b
mov eax, dword [ebp - 0x48]
push eax
call fcn.0043bc47
add esp, 4
mov al, bl
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.0043b634
mov esp, ebp
pop ebp
ret
Function at 0x412130
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4522bd
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
mov esi, 7
xor eax, eax
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov dword [ebp - 0x240], edi
mov word [edi], ax
push 0x208
lea ecx, [ebp - 0x21c]
push ebx
mov dword [ebp - 4], ebx
push ecx
mov dword [ebp - 0x23c], 1
call fcn.0043f7e0
movzx edx, byte [ebp + 8]
add esp, 0xc
neg edx
sbb edx, edx
push 1
and edx, 0xfffffff7
add edx, 0x23
push edx
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41226f
xor ecx, ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4121e2
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
lea esi, [ebp - 0x238]
call fcn.004017a0
mov edx, esi
push ebx
push edx
or eax, 0xffffffff
mov esi, edi
mov dword [ebp - 4], 1
call fcn.00401470
mov byte [ebp - 4], bl
cmp dword [ebp - 0x224], 8
jb 0x412233
mov eax, dword [ebp - 0x238]
push eax
call fcn.0043bc47
add esp, 4
mov ecx, edi
cmp byte [ebp + 8], bl
je 0x412243
push 0x13
mov eax, str.TencentDeskUpdate
jmp 0x41224a
push 0x10
mov eax, str.TencentDesktop
call fcn.00401560
mov ecx, edi
call fcn.00412290
test al, al
jne 0x412261
mov ecx, edi
call fcn.004123c0
push 0xa
mov eax, str.Global.db
mov ecx, edi
call fcn.00401560
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043b634
mov esp, ebp
pop ebp
ret
Function at 0x414410
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4515fb
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x465100]
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 eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], esi
push 0x410
lea edx, [ebp - 0x422]
xor ecx, ecx
push esi
mov dword [ebp - 4], esi
push edx
mov word [ebp - 0x424], cx
call fcn.0043f7e0
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
push 0x20019
push esi
push str.SOFTWARETencentQQ2009
push closesocket
mov dword [ebp - 0x428], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4144eb
mov ebx, dword [ebp - 0x428]
push str.Install
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x430], esi
push ecx
lea edi, [ebp - 0x428]
lea esi, [ebp - 0x424]
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x428], 0x208
call fcn.004073d0
test eax, eax
je 0x4144ef
test ebx, ebx
je 0x4144eb
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x414560
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x414504
push ebx
call edi
xor ebx, ebx
mov dword [ebp - 0x434], ebx
lea edx, [ebp - 0x424]
push edx
mov dword [ebp - 0x430], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41452a
test ebx, ebx
je 0x414526
push ebx
call edi
xor eax, eax
jmp 0x414560
lea eax, [ebp - 0x424]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414533
mov esi, dword [ebp - 0x438]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x424]
call fcn.004017a0
test ebx, ebx
je 0x41455b
push ebx
call edi
mov eax, 1
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.0043b634
mov esp, ebp
pop ebp
ret
Function at 0x414630
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x400
mov edi, ecx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ebx
call fcn.0043b629
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4146be
push 0x5c
lea ecx, [ebp - 0x60]
push ebx
push ecx
call fcn.0043f7e0
add esp, 0xc
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push edi
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4146d1
push esi
call fcn.0043c87e
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b634
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [ebp - 0x64]
push edx
push 0x400
push esi
push edi
call ebx
test eax, eax
je 0x414718
lea esp, [esp]
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x414718
push eax
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.0041bdd0
add esp, 0xc
push 0
lea ecx, [ebp - 0x64]
push ecx
push 0x400
push esi
push edi
call ebx
test eax, eax
jne 0x4146f0
push 0x400
push 0
push esi
call fcn.0043f7e0
lea edx, [ebp - 0x60]
push edx
push esi
call fcn.0041c120
movzx eax, byte [esi + 0xf]
movzx ecx, byte [esi + 0xe]
movzx edx, byte [esi + 0xd]
push eax
movzx eax, byte [esi + 0xc]
push ecx
movzx ecx, byte [esi + 0xb]
push edx
movzx edx, byte [esi + 0xa]
push eax
movzx eax, byte [esi + 9]
push ecx
movzx ecx, byte [esi + 8]
push edx
movzx edx, byte [esi + 7]
push eax
movzx eax, byte [esi + 6]
push ecx
movzx ecx, byte [esi + 5]
push edx
movzx edx, byte [esi + 4]
push eax
movzx eax, byte [esi + 3]
push ecx
movzx ecx, byte [esi + 2]
push edx
movzx edx, byte [esi + 1]
push eax
movzx eax, byte [esi]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp - 0x68]
push eax
push str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
push ecx
push edx
call fcn.0043cb93
add esp, 0x60
push esi
call fcn.0043c87e
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0043b634
mov esp, ebp
pop ebp
ret