joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ee0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
jne 0x407f07
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 1
jne 0x407f1e
mov dword [edi], 3
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
push str.simple
push ecx
call fcn.0043ebaf
add esp, 8
test eax, eax
jne 0x407f44
mov dword [edi], 4
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
push edx
call fcn.0043ed26
add esp, 4
test eax, eax
jne 0x407f8f
push ebx
lea eax, [ebp - 8]
push eax
push 0xd5
push str.R:TempViewMiscSetup3BackupDownloaderBackupDownload.cpp
mov edx, 0x45a7a8
mov ebx, 0x45aafc
mov edi, 3
mov ecx, str._anonymous_namespace::ParseCmdLine
mov dword [ebp - 8], 0x45aac8
call fcn.00407520
add esp, 0xc
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 2
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jle 0x407fbf
mov edx, dword [esi + 8]
push str.silent
push edx
call fcn.0043ebaf
add esp, 8
neg eax
sbb eax, eax
add eax, 2
mov dword [edi], eax
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi], 1
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407fd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x2001f
xor esi, esi
push esi
push str.SoftwareTencentTodayDo
push closesocket
mov dword [ebp - 8], 0
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408026
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.RunTaskQQ
push esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [ebp - 8]
test esi, esi
je 0x408034
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408040
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x468100]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
mov eax, str.SoftwareTencentTodayDo
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00407350
test eax, eax
jne 0x4080d9
push esi
push edi
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x14]
movzx eax, word [ebp - 0x12]
imul edx, edx, 0x64
movzx ecx, word [ebp - 0xe]
mov edi, dword [ebp - 0x20]
add edx, eax
imul edx, edx, 0x64
add edx, ecx
push 4
mov dword [ebp - 0x24], edx
lea edx, [ebp - 0x24]
push edx
push 4
push 0
push str.RunTaskQQ
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
test edi, edi
je 0x4080c6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4080e7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret
Function at 0x408100
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x468100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x4690e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4690e4
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push eax
push 0x45aba4
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00408ba0
add esp, 8
lea ecx, [ebp - 0x24]
push ecx
mov eax, str.SoftwareTencentReport
mov dword [ebp - 0x10], ebx
call fcn.00407350
test eax, eax
jne 0x40820d
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
push ebx
push edi
push esi
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x10]
push 4
lea edx, [ebp - 0x18]
push edx
push 4
push ebx
inc eax
push edi
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, ebx
je 0x4081c9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x24], esi
lea eax, [edi - 0x10]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x4081f6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40822f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x40823d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408260
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4545db
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x468100]
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
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx esi, word [ebp - 0x228]
movzx ecx, word [ebp - 0x226]
imul esi, esi, 0x64
movzx edx, word [ebp - 0x222]
add esi, ecx
imul esi, esi, 0x64
add esi, edx
call fcn.00407fd0
xor ecx, ecx
cmp eax, esi
setne cl
xor ebx, ebx
mov eax, ecx
cmp eax, ebx
je 0x4083e3
call fcn.00408040
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
lea edx, [ebp - 0x22c]
push edx
push 0x20019
push ebx
push str.SoftwareTencentQQBrowser
mov dword [ebp - 4], ebx
push closesocket
mov dword [ebp - 0x22c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4083e3
mov eax, dword [ebp - 0x22c]
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x218], cx
call fcn.00442420
add esp, 0xc
push 0x45ac28
lea eax, [ebp - 0x224]
push eax
lea edi, [ebp - 0x230]
lea esi, [ebp - 0x218]
mov dword [ebp - 0x230], 0x104
call fcn.004073d0
test eax, eax
jne 0x4083d2
cmp word [ebp - 0x218], bx
je 0x4083d2
mov ecx, esi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4083d2
push ebx
push ebx
push str._host__tasks__fromqq
mov edx, esi
push edx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x4083c5
push 0x80054c6
call fcn.00408100
add esp, 4
lea esi, [ebp - 0x224]
call fcn.00407320
call fcn.00407300
lea eax, [ebx + 1]
jmp 0x4083e5
push 0x80054c7
call fcn.00408100
add esp, 4
mov eax, dword [ebp - 0x22c]
cmp eax, ebx
je 0x4083e3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
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.0043e1c4
mov esp, ebp
pop ebp
ret
Function at 0x409e50
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
mov eax, dword [0x468100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
push 2
mov dword [ebp - 0x488], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor ecx, ecx
push 0x40
push ecx
lea edx, [ebp - 0x46]
mov edi, eax
push edx
mov dword [ebp - 0x484], edi
mov word [ebp - 0x48], cx
call fcn.00442420
xor esi, esi
add esp, 0xc
mov dword [ebp - 0x480], esi
cmp edi, 0xffffffff
je 0x409fc6
test edi, edi
je 0x409fc6
push 0x22c
lea eax, [ebp - 0x47c]
push esi
push eax
call fcn.00442420
add esp, 0xc
lea ecx, [ebp - 0x47c]
push ecx
push edi
mov dword [ebp - 0x47c], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x409fbf
push ebx
mov ebx, dword [sym.imp.USER32.dll_CharUpperW]
lea ebx, [ebx]
lea edx, [ebp - 0x458]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
test esi, esi
je 0x409f90
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x24e]
push ecx
mov word [ebp - 0x250], ax
call fcn.00442420
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x250]
push 0x103
push edx
call fcn.0043f272
add esp, 0x1c
lea eax, [ebp - 0x250]
push eax
call ebx
lea eax, [ebp - 0x250]
lea edx, [eax + 2]
jmp 0x409f50
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409f50
sub eax, edx
lea ecx, [ebp - 0x48]
sar eax, 1
push ecx
lea edi, [eax + eax]
lea ecx, [ebp - 0x250]
call fcn.00409fe0
test al, al
je 0x409f8a
mov edx, dword [ebp - 0x488]
push edx
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x409fa8
mov edi, dword [ebp - 0x484]
lea ecx, [ebp - 0x47c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x409ef0
jmp 0x409fb8
mov edi, dword [ebp - 0x484]
mov dword [ebp - 0x480], 1
mov esi, dword [ebp - 0x480]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret 4

Function at 0x40a0b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x468100]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
jle 0x40a124
test esi, esi
je 0x40a124
push 0x5c
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.00442420
push edi
xor eax, eax
lea ecx, [ebp - 0x60]
push ebx
push ecx
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 8], eax
call fcn.0041e740
lea edx, [ebp - 0x60]
push edx
push esi
call fcn.0041ea90
add esp, 0x20
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret
Function at 0x40a140
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x468100]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push edi
mov edi, ecx
cmp esi, eax
je 0x40a26a
push ebx
push str.IsWow64Process
push 0x45af60
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x40a19a
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
mov edx, dword [ebp - 0x214]
neg edx
sbb edx, edx
lea ecx, [ebp - 0x218]
push ecx
and edx, 0x200
add edx, 0x20019
push edx
push 0
push edi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop ebx
test eax, eax
jne 0x40a26a
mov edi, dword [ebp - 0x218]
test edi, edi
je 0x40a26a
push 0x20a
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00442420
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push str.InstallDir
push edi
mov dword [ebp - 0x214], 0x20b
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a25d
push 0xffffffffffffffff
lea ecx, [ebp - 0x210]
push ecx
push 0x103
push esi
call fcn.0043f272
mov edx, dword [ebp - 0x218]
add esp, 0x10
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret
Function at 0x40a6a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45450b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x468100]
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 0x1ae
xor ebx, ebx
lea eax, [ebp - 0x1c0]
push ebx
mov ecx, 0x17
mov esi, str.GlobalB07C25FC_871E_485D_A97B_CB3A4A0B9D37
lea edi, [ebp - 0x21c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00442420
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [0x4690e4]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4690e4
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
push esi
lea ecx, [ebp - 0x21c]
push ecx
push str._s_M_d
lea edi, [ebp - 0x220]
mov dword [ebp - 4], ebx
call fcn.00408ba0
mov edi, dword [ebp - 0x220]
add esp, 0xc
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
jne 0x40a756
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40a76b
mov ebx, 1
test esi, esi
je 0x40a76b
cmp esi, 0xffffffff
je 0x40a76b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a78e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
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.0043e1c4
mov esp, ebp
pop ebp
ret

Function at 0x40c240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x468100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push edi
lea edi, [ebp - 0x14]
xor edx, edx
bswap ecx
bswap eax
sub esi, edi
jmp 0x40c270
lea edi, [esi + edx*4]
mov edi, dword [ebp + edi - 0x14]
bswap edi
mov dword [ebp + edx*4 - 0x14], edi
inc edx
cmp edx, 4
jl 0x40c270
mov edx, 0xfd1228e0
mov dword [ebp - 0x18], 0x20
nop
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 8]
mov edi, ecx
shl edi, 4
add edi, dword [ebp - 0xc]
xor esi, edi
lea edi, [edx + ecx]
xor esi, edi
sub eax, esi
mov esi, eax
shr esi, 5
add esi, dword [ebp - 0x10]
mov edi, eax
shl edi, 4
add edi, dword [ebp - 0x14]
xor esi, edi
lea edi, [edx + eax]
xor esi, edi
sub ecx, esi
sub edx, 0x57e89147
dec dword [ebp - 0x18]
jne 0x40c290
mov edx, dword [ebp - 0x1c]
bswap ecx
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
bswap eax
pop edi
xor ecx, ebp
mov dword [edx + 4], eax
pop esi
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret
Function at 0x40ca30
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4544b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x468100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x5c]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x40cb18
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40cb18
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x5c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dword [edi + 0x48], 0
jne 0x40ca91
cmp dword [edi + 0x4c], 0
je 0x40cb10
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
push eax
mov ecx, 0x45b124
call fcn.004086c0
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x34]
push ecx
sub eax, 0x10
mov dword [ebp - 0x14], esp
mov ebx, esp
call fcn.00408970
add eax, 0x10
mov dword [ebx], eax
or esi, 0xffffffff
mov dword [ebp - 4], esi
call fcn.0041f750
add esp, 8
test eax, eax
je 0x40cb10
mov eax, dword [edi + 0x54]
push ecx
sub eax, 0x10
mov dword [ebp - 0x14], esp
mov ebx, esp
call fcn.00408970
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 1
mov eax, dword [edi + 0x34]
push ecx
sub eax, 0x10
mov dword [ebp - 0x10], esp
mov ebx, esp
call fcn.00408970
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x54]
mov ecx, edi
mov dword [ebp - 4], esi
call edx
lea esi, [edi + 0x5c]
call fcn.00408810
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
test eax, eax
je 0x40cb78
cmp dword [edi + 0x48], 0
jne 0x40cb31
cmp dword [edi + 0x4c], 0
je 0x40cb55
mov eax, dword [edi]
mov edx, dword [eax + 0x5c]
mov ecx, edi
call edx
test eax, eax
je 0x40cb55
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x34]
push 0
push eax
push ecx
mov esi, edi
call fcn.0040ccf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cc10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455108
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x468100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40cc5c
xor esi, esi
push esi
mov dword [edi + 4], 2
push str._fT
mov ecx, 0x131
jmp 0x40ccaf
push ecx
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.004086c0
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x34]
push ecx
sub eax, 0x10
mov dword [ebp + 8], esp
mov esi, esp
call fcn.00408970
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
call fcn.0041f750
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cca4
mov dword [edi + 4], 3
push esi
push 0x45b2a8
mov ecx, 0x13b
push str.CInstallObjectAgent::CheckDownloadFile
mov ebx, 0x45b178
mov edi, 3
mov edx, str.r:_tempviewmisc_setup3_backupdownloaderinstallobjectInstallObject.h
call fcn.0040e5f0
mov eax, esi
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ccf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00442420
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], 0x540
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40cd49
mov eax, dword [ebp - 4]
test eax, eax
je 0x40cd3e
mov dword [esi + 0x44], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x1c]
cmp eax, 0x20
ja case.0x40cd58.1
movzx edx, byte [eax + 0x40cde8]
jmp dword [edx*4 + 0x40cdc8]
mov dword [esi + 4], 1
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
mov dword [esi + 4], 2
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
mov dword [esi + 4], 6
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
mov dword [esi + 4], 4
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
mov dword [esi + 4], 7
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
mov dword [esi + 4], 8
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
mov dword [esi + 4], 5
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d1b0
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 0x40d253
push ebx
push esi
call fcn.0043e1b9
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40d252
push ebx
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40d249
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 0x45b4a4
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40d249
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 0x45b4a8
push 0x208
push 0x104
push ecx
call fcn.0043f212
add esp, 0x20
push ebx
call fcn.0043f601
add esp, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d750
Capabilities:
Check os version
Get common file path

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

Function at 0x40dfa0
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 [0x468100]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0040cea0
test eax, eax
jne 0x40dfcc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e1c4
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.00442420
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 0x40e0d0
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 0x40e0d0
cmp dword [ebp - 0x808], 1
jne 0x40e0d0
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e070
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x806], 0x5c
je 0x40e09d
push 0x45bfa8
push 0x400
lea ecx, [ebp - 0x804]
push ecx
jmp 0x40e0ae
push str.QQGame.exe
push 0x400
lea edx, [ebp - 0x804]
push edx
call fcn.0043f60c
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e0d0
test al, 0x10
je 0x40dfbc
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret

Function at 0x40ece0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x468100]
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.00442420
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 0x40ed82
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 0x40ed82
mov eax, 0x36
cmp ax, word [ebp - 0x804]
mov eax, 0x45c880
je 0x40ed87
mov eax, str.http:__dldl.qq.com_dl_qq
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret