joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49346d
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a8]
sub esp, 0x428
mov eax, dword [0x50f130]
xor eax, ebp
mov dword [ebp + 0x3a4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x206
push esi
lea eax, [ebp - 0x6a]
mov ebx, ecx
push edi
push eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
mov word [ebp - 0x6c], di
call fcn.004be320
push esi
lea eax, [ebp + 0x19e]
push edi
push eax
mov word [ebp + 0x19c], di
call fcn.004be320
add esi, 2
add esp, 0x18
cmp ebx, edi
mov dword [ebp - 0x78], esi
je 0x49363c
push esi
push edi
push ebx
call fcn.004be320
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
mov dword [ebp - 0x7c], 1
push dword [ebp - 0x7c]
lea edx, [ebp - 0x6c]
push str.SOFTWARETencentPlatForm_Type_List_d
call fcn.00409640
pop ecx
pop ecx
lea eax, [ebp - 0x70]
push eax
push 1
push edi
lea eax, [ebp - 0x6c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x493597
cmp dword [ebp - 0x70], edi
je 0x493597
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x19c]
push eax
push edi
push edi
push str.TypePath
push dword [ebp - 0x70]
mov dword [ebp - 0x78], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x493589
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x493560
push str.BinQQ.exe
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x493589
lea eax, [ebp + 0x19c]
push eax
push dword [ebp - 0x80]
mov dword [ebp - 0x74], 1
call fcn.004daba9
pop ecx
pop ecx
cmp dword [ebp - 0x70], edi
je 0x49359a
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x70], edi
inc dword [ebp - 0x7c]
cmp dword [ebp - 0x7c], 5
jle 0x4934ea
cmp dword [ebp - 0x74], edi
jne 0x493637
lea eax, [ebp - 0x70]
push eax
push 1
push edi
push str.SOFTWARETencentQQ2009
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
cmp eax, edi
jne 0x493629
cmp dword [ebp - 0x70], edi
je 0x4935ee
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x19c]
push eax
push edi
push edi
push str.Install
push dword [ebp - 0x70]
mov dword [ebp - 0x78], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x493629
push str.BinQQ.exe
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x493629
lea eax, [ebp + 0x19c]
push eax
push dword [ebp - 0x80]
mov dword [ebp - 0x74], 1
call fcn.004daba9
pop ecx
pop ecx
cmp dword [ebp - 0x70], edi
je 0x493637
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x74]
jmp 0x49363e
xor eax, eax
mov ecx, dword [ebp + 0x3a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b84de
add ebp, 0x3a8
leave
ret
Function at 0x4941d6
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x50f130]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [edi + 0x14], 0
push ebx
push esi
mov ebx, ecx
jne 0x4941fa
xor al, al
jmp 0x494322
push dword [ebx + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4941f3
xor esi, esi
push 0x206
lea eax, [ebp - 0x20e]
push esi
push eax
mov byte [ebp - 0x211], 0
mov word [ebp - 0x210], si
call fcn.004be320
push 0xa
lea eax, [ebp - 0x210]
push eax
push dword [edi]
call fcn.004dac13
add esp, 0x18
push dword [ebx]
lea eax, [ebp - 0x210]
push esi
push str.FailCount
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
lea esi, [ebp - 0x210]
mov edx, ebx
mov dword [ebp - 0x218], eax
call fcn.00493039
push 0
mov ebx, eax
call fcn.004ba201
lea esi, [edi + 0x24]
push esi
mov ecx, 0x4f6fc8
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], edx
call fcn.00401550
test al, al
pop ecx
pop ecx
je 0x4942ba
mov eax, dword [ebp - 0x218]
cmp dword [edi + 0x1c], eax
jg 0x494330
mov eax, dword [edi + 0x20]
imul eax, eax, 0x15180
cdq
push 0
add eax, ebx
pop ecx
adc edx, ecx
cmp dword [ebp - 0x21c], edx
jg 0x494330
jl 0x4942f8
jmp 0x4942f0
push esi
mov ecx, 0x4f6fcc
call fcn.00401550
test al, al
pop ecx
je 0x494301
mov eax, dword [ebp - 0x218]
cmp dword [edi + 0x1c], eax
jle 0x4942f8
mov eax, dword [edi + 0x20]
imul eax, eax, 0x15180
cdq
push 0
add eax, ebx
pop ecx
adc edx, ecx
cmp dword [ebp - 0x21c], edx
jl 0x4942f8
jg 0x494330
cmp dword [ebp - 0x220], eax
ja 0x494330
mov byte [ebp - 0x211], 1
jmp 0x49431c
mov eax, dword [edi + 0x1c]
cmp eax, 0xffffffff
je 0x49429d
cmp dword [edi + 0x20], 0xffffffff
jne 0x49431c
cmp eax, dword [ebp - 0x218]
setle byte [ebp - 0x211]
mov al, byte [ebp - 0x211]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b84de
leave
ret
mov byte [ebp - 0x211], 0
jmp 0x49431c

Function at 0x494339
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x50f130]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x20c], 0
push ebx
push esi
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
mov esi, ecx
call fcn.004be320
push 0xa
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.004dac13
add esp, 0x18
push dword [esi]
lea eax, [ebp - 0x20c]
push 0
push str.FailCount
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
inc eax
add esi, 4
push eax
lea ebx, [ebp - 0x20c]
call fcn.0049309c
push 0
call fcn.004ba201
pop ecx
push eax
mov dword [ebp - 0x210], edx
call fcn.004930ed
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b84de
leave
ret 4
Function at 0x494896
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, eax
mov eax, ebx
cdq
push 3
pop ecx
idiv ecx
mov eax, ebx
xor esi, esi
sub eax, edx
lea eax, [eax*4 + 0xc]
cdq
idiv ecx
inc eax
push eax
call fcn.004b8cf0
pop ecx
mov ecx, eax
test ecx, ecx
je 0x4949a7
cmp ebx, 2
jle 0x494940
lea eax, [ebx - 3]
xor edx, edx
push 3
pop ebx
div ebx
inc eax
mov dword [ebp - 4], eax
imul eax, eax, 0xfffffffd
add dword [ebp + 8], eax
movzx edx, byte [edi]
mov eax, edx
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
movzx eax, byte [edi + 1]
and edx, 3
shl edx, 4
mov ebx, eax
shr ebx, 4
mov dl, byte [ebx + edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc esi
mov byte [ecx + esi], dl
movzx edx, byte [edi + 2]
and eax, 0xf
mov ebx, edx
shr ebx, 6
mov al, byte [ebx + eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc esi
mov byte [ecx + esi], al
and edx, 0x3f
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc esi
mov byte [ecx + esi], al
inc esi
add edi, 3
dec dword [ebp - 4]
jne 0x4948e5
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x494998
movzx eax, byte [edi]
mov edx, eax
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 3
mov byte [ecx + esi], dl
inc esi
shl eax, 4
cmp ebx, 1
jle 0x494984
movzx edx, byte [edi + 1]
mov edi, edx
shr edi, 4
mov al, byte [edi + eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
inc esi
and edx, 0xf
mov al, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
jmp 0x494992
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
inc esi
mov byte [ecx + esi], 0x3d
inc esi
mov byte [ecx + esi], 0x3d
inc esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4949a1
mov dword [eax], esi
mov byte [ecx + esi], 0
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x495c61
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push 0x30
mov eax, 0x4e5d35
call fcn.004bea3c
lea ecx, [ebp - 0x30]
call fcn.0048fcec
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0049681a
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00416ce0
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x28], edi
jne 0x495cc8
lea ecx, [ebp - 0x14]
call fcn.00416ce0
xor eax, eax
call fcn.004beb14
ret 4
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x3c], eax
jne 0x495ce4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x495cb6
mov ecx, dword [ebp - 0x38]
add eax, 1
mov ebx, eax
adc ecx, esi
push ebx
mov dword [ebp - 0x20], ecx
call fcn.004b74d1
mov edi, eax
cmp edi, esi
pop ecx
jne 0x495d0a
lea ecx, [ebp - 0x14]
call fcn.00416ce0
mov eax, esi
jmp 0x495cc0
push ebx
push esi
push edi
call fcn.004be320
add esp, 0xc
push esi
lea eax, [ebp - 0x2c]
push eax
push ebx
push edi
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x20]
push ecx
push eax
push edi
mov dword [ebp - 0x20], eax
call fcn.004949ac
add esp, 0xc
push edi
mov ebx, eax
call fcn.004b88f2
pop ecx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
mov dword [ebp - 0x18], esi
je 0x495dbe
mov edi, dword [ebp - 0x20]
add edi, edi
push edi
call fcn.004b74d1
cmp eax, esi
pop ecx
mov dword [ebp - 0x28], eax
je 0x495db3
push edi
push esi
push eax
call fcn.004be320
mov edx, dword [ebp - 0x20]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
dec edi
dec edi
mov ecx, ebx
mov dword [ebp - 0x18], edi
call fcn.004a915e
push ebx
mov dword [ebp - 0x18], eax
call fcn.004b89a6
add esp, 0xc
xor ebx, ebx
cmp dword [ebp - 0x18], esi
je 0x495daa
push dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
call fcn.00495dcf
mov dword [ebp - 0x18], eax
push dword [ebp - 0x28]
call fcn.004b88f2
pop ecx
cmp ebx, esi
je 0x495dbe
push ebx
call fcn.004b89a6
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x18]
jmp 0x495cfe
Function at 0x4960f2
Capabilities:
Delete file

Disassembly:
push 0x458
mov eax, 0x4e5cb2
call fcn.004beaa5
mov eax, dword [ebp + 8]
mov dword [ecx + 0x1c], eax
mov dword [ebp - 0x464], ecx
mov ecx, dword [ecx + 0x14]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x368]
xor ebx, ebx
push eax
mov dword [ebp - 0x45c], ebx
call fcn.004936a0
pop ecx
mov dword [ebp - 4], ebx
xor eax, eax
cmp dword [ebp - 0x350], 0x10
push 7
mov byte [ebp - 0x34], bl
pop ecx
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x364]
jae 0x496150
lea eax, [ebp - 0x364]
push 0x20
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004bf380
add esp, 0xc
push 0x103
lea eax, [ebp - 0x13b]
push ebx
push eax
mov byte [ebp - 0x13c], bl
call fcn.004be320
add esp, 0xc
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x34]
push eax
lea ebx, [ebp - 0x450]
mov dword [ebp - 0x450], 0x104
call fcn.004a8f8f
mov eax, ebx
push eax
push dword [ebp - 0x450]
lea eax, [ebp - 0x13c]
call fcn.00494896
add esp, 0x10
test eax, eax
mov dword [ebp - 0x460], eax
jne 0x4961d2
xor esi, esi
lea ecx, [ebp - 0x368]
call fcn.00401680
mov eax, esi
call fcn.004beb28
ret 4
call fcn.004945ee
mov edi, eax
neg edi
sbb edi, edi
lea esi, [ebp - 0x450]
neg edi
call fcn.00416d00
mov ecx, dword [ebp - 0x460]
lea eax, [ebp - 0x454]
push eax
mov byte [ebp - 4], 1
call fcn.0049727a
mov ebx, dword [ebp - 0x464]
mov byte [ebp - 4], 2
mov eax, dword [eax]
push edi
push eax
push dword [ebx + 8]
mov edi, esi
push str.http:__c.pc.qq.com_fcgi_bin_xmldownurlquery_id_dguid_sdm_d
call fcn.00406040
add esp, 0x10
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 1
call fcn.00416ce0
lea ecx, [ebp - 0x454]
call fcn.0048fcec
push eax
lea eax, [ebp - 0x458]
push eax
push ebx
mov byte [ebp - 4], 3
call fcn.0049681a
lea ecx, [ebp - 0x454]
call fcn.00416ce0
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [ebp - 0x44c]
call fcn.0049443d
mov eax, esi
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x450]
push eax
call fcn.004024a0
mov edx, dword [ebp - 0x458]
lea eax, [ebp - 0x430]
push eax
call fcn.004024a0
and word [ebp - 0x34c], 0
push 0x208
lea eax, [ebp - 0x34a]
push 0
push eax
call fcn.004be320
add esp, 0xc
push dword [ebp - 0x458]
lea eax, [ebp - 0x34c]
push eax
call fcn.004daba9
pop ecx
pop ecx
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
sub esp, 0x1c
lea edx, [ebp - 0x34c]
mov eax, esp
mov dword [ebp - 0x454], esp
call fcn.004036c0
call fcn.0048fe0b
mov ecx, dword [ebx + 0x48]
add esp, 0x1c
test ecx, ecx
je 0x496325
mov eax, dword [ecx]
lea esi, [ebx + 0x20]
push esi
lea edx, [ebp - 0x44c]
push edx
call dword [eax + 4]
push esi
add ebx, 0x54
mov dword [ebp - 0x45c], eax
call fcn.004a4968
and dword [eax], 0
push dword [ebp - 0x460]
call fcn.004b89a6
pop ecx
lea edi, [ebp - 0x44c]
call fcn.0049635d
lea ecx, [ebp - 0x458]
call fcn.00416ce0
lea ecx, [ebp - 0x450]
call fcn.00416ce0
mov esi, dword [ebp - 0x45c]
jmp 0x4961bd
Function at 0x496392
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x20fc]
mov eax, 0x217c
call fcn.004d5b10
mov eax, dword [0x50f130]
xor eax, ebp
mov dword [ebp + 0x20f8], eax
mov eax, dword [ebp + 0x2104]
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x4963e3
xor eax, eax
jmp 0x4964a7
push esi
push edi
xor eax, eax
mov byte [ebp + 0x20e8], bl
lea edi, [ebp + 0x20e9]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea esi, [ebp - 0x80]
stosb byte es:[edi], al
call fcn.004a83f6
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, 0x2000
jmp 0x49641c
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x80]
call fcn.004a8b40
push ebx
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
call esi
cmp dword [ebp - 0x1c], ebx
jne 0x49640e
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x20e8]
push eax
lea esi, [ebp - 0x80]
call fcn.004a8d4b
push 0xfe
lea eax, [ebp + 0x1fea]
push ebx
push eax
mov word [ebp + 0x1fe8], bx
call fcn.004be320
add esp, 0x10
lea esi, [ebp + 0x1fe8]
movzx eax, byte [ebp + ebx + 0x20e8]
push eax
push str._.2x
push 3
push esi
call fcn.004b946c
add esp, 0x10
add esi, 4
inc ebx
cmp ebx, 0x10
jb 0x49646d
push dword [ebp - 0x24]
lea eax, [ebp + 0x1fe8]
push eax
call fcn.004b9e54
pop ecx
pop ecx
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
mov ecx, dword [ebp + 0x20f8]
xor ecx, ebp
pop ebx
call fcn.004b84de
add ebp, 0x20fc
leave
ret 4
Function at 0x4964bf
Capabilities:
Delete file

Disassembly:
push 0x31c
mov eax, 0x4e5c48
call fcn.004beaa5
mov esi, ecx
xor ebx, ebx
push 0x208
lea eax, [ebp - 0x21e]
push ebx
push eax
mov edi, edx
mov word [ebp - 0x220], bx
call fcn.004be320
add esp, 0xc
push dword [edi + 0x2c]
lea eax, [ebp - 0x220]
push eax
call fcn.004daba9
pop ecx
pop ecx
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
sub esp, 0x1c
lea edx, [ebp - 0x220]
mov eax, esp
mov dword [ebp - 0x324], esp
call fcn.004036c0
call fcn.0048fe0b
mov eax, dword [edi + 0x14]
mov dword [edi + 0x1c], esi
mov dword [eax + 4], esi
mov eax, dword [edi + 0x14]
add esp, 0x1c
lea esi, [ebp - 0x320]
mov dword [ebp - 0x324], ebx
mov dword [eax + 8], ebx
call fcn.0049443d
mov dword [ebp - 4], ebx
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [edi + 0x24]
mov eax, esi
push eax
call fcn.004024a0
mov edx, dword [edi + 0x2c]
lea eax, [ebp - 0x304]
push eax
call fcn.004024a0
cmp dword [edi + 0x4c], ebx
jne 0x4965b5
mov ecx, dword [edi + 0x48]
cmp ecx, ebx
je 0x49665f
mov eax, dword [ecx]
lea esi, [edi + 0x20]
push esi
lea edx, [ebp - 0x320]
push edx
call dword [eax + 4]
push esi
lea ebx, [edi + 0x54]
mov dword [ebp - 0x324], eax
call fcn.004a4968
xor edi, edi
jmp 0x49663c
cmp dword [edi + 0x50], ebx
jne 0x496613
lea eax, [ebp - 0x328]
push 0x515b44
push eax
mov ebx, str.dlcore.dll
call fcn.00413810
pop ecx
pop ecx
mov byte [ebp - 4], 1
mov edx, dword [eax]
lea eax, [ebp - 0x23c]
call fcn.004036c0
lea ecx, [ebp - 0x328]
mov byte [ebp - 4], 3
call fcn.00416ce0
push dword [edi + 4]
lea esi, [ebp - 0x23c]
push dword [edi + 0x14]
call fcn.004a5e24
pop ecx
pop ecx
mov dword [edi + 0x50], eax
mov byte [ebp - 4], 0
call fcn.00416cb0
xor ebx, ebx
mov ecx, dword [edi + 0x50]
cmp ecx, ebx
je 0x49665f
mov eax, dword [ecx]
lea esi, [edi + 0x20]
push esi
lea edx, [ebp - 0x320]
push edx
call dword [eax + 4]
push esi
lea ebx, [edi + 0x54]
mov dword [ebp - 0x324], eax
call fcn.004a4968
xor edi, edi
inc edi
mov dword [eax], edi
call fcn.00492549
mov esi, 0x515a40
push esi
mov dword [eax + 0x10], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [0x515ae0], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edi, [ebp - 0x320]
call fcn.0049635d
mov eax, dword [ebp - 0x324]
call fcn.004beb28
ret
Function at 0x496a0a
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x50f130]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0049259b
mov esi, eax
cmp dword [esi], 0xffffffff
jne 0x496a36
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
cmp eax, esi
je 0x496a49
mov edi, dword [eax + 8]
jmp 0x496a4b
xor edi, edi
cmp edi, esi
je 0x496b2d
mov eax, dword [ebp + 8]
mov dword [edi + 8], eax
call fcn.0049376d
push 0x208
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x216]
push esi
push eax
mov word [ebp - 0x218], si
call fcn.004be320
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x218]
push str.QQPCDownloader_PropData__d
push eax
call fcn.004b8a64
mov eax, dword [edi + 4]
add esp, 0xc
push eax
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetPropW]
push 1
push 1
add ebx, 0x74
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
jne 0x496ac9
mov eax, edi
call fcn.004937ab
jmp 0x496b2d
cmp dword [edi + 0x18], esi
jne 0x496ad6
call fcn.00492572
mov dword [edi + 0x18], eax
push dword [edi + 4]
mov ecx, dword [edi + 0x18]
call fcn.004960f2
cmp dword [ebp - 0x21c], esi
je 0x496b2d
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x496b1d
cmp dword [ebp - 0x230], 0x20
je 0x496b1d
cmp dword [ebp - 0x230], 0xd
je 0x496b1d
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push esi
lea eax, [ebp - 0x238]
push eax
call edi
test eax, eax
jne 0x496af1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b84de
leave
ret 4

Function at 0x496b3e
Capabilities:
Delete file

Disassembly:
push 0xec
mov eax, 0x4defb5
call fcn.004beaa5
mov ebx, ecx
xor edi, edi
lea esi, [ebp - 0xf4]
mov dword [ebx + 0x4c], edi
mov dword [ebp - 0xf8], edi
call fcn.0049443d
mov dword [ebp - 4], edi
push dword [ebx + 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebx + 0x24]
mov eax, esi
push eax
call fcn.004024a0
mov edx, dword [ebx + 0x2c]
lea eax, [ebp - 0xd8]
push eax
call fcn.004024a0
mov ecx, dword [ebx + 0x48]
cmp ecx, edi
je 0x496bd7
mov eax, dword [ecx]
lea esi, [ebx + 0x20]
push esi
lea edx, [ebp - 0xf4]
push edx
call dword [eax + 4]
push esi
add ebx, 0x54
mov dword [ebp - 0xf8], eax
call fcn.004a4968
mov dword [eax], edi
call fcn.00492549
push 2
pop edi
mov esi, 0x515a40
push esi
mov dword [eax + 0x10], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [0x515ae0], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edi, [ebp - 0xf4]
call fcn.0049635d
mov eax, dword [ebp - 0xf8]
call fcn.004beb28
ret
Function at 0x49c3a4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x49c3af
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x49c461
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4ebe40]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4ebe40]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4ebe40]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4ebe40]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4ebe40]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4ebe40]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4ebe40]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4ebe40]
inc ecx
sub eax, 8
dec edi
jne 0x49c3c6
pop edi
test eax, eax
je 0x49c47a
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4ebe40]
inc ecx
dec eax
jne 0x49c465
mov eax, esi
pop ebx
not eax
pop esi
ret

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

Disassembly:
mov eax, dword [ecx]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x4ebe40]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4ebe40]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x49cb30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x49cb60
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x49cb5b
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x49cb98
xor eax, eax
mov ecx, edi
add ecx, dword [esi + 0x28]
adc eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x24]
jl 0x49cb7c
jg 0x49cb76
cmp ecx, dword [esi + 0x20]
jbe 0x49cb7c
mov edi, dword [esi + 0x20]
sub edi, dword [esi + 0x28]
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x28]
push edi
push eax
push dword [ebp + 8]
call fcn.004bf380
add esp, 0xc
add dword [esi + 0x28], edi
mov eax, edi
adc dword [esi + 0x2c], 0
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret