joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492614
Capabilities:
Delete registry key

Disassembly:
push 0xc
mov eax, 0x4e2afd
call fcn.004be9c5
and dword [ebp - 0x14], 0
call fcn.00491d74
test eax, eax
jne 0x492632
call fcn.00491df1
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0x2001f
push 0
push 0x4ef7d8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x492688
lea esi, [ebp - 0x14]
call fcn.0041bc00
test eax, eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
jne 0x492688
push str.SOFTWARETencentQQPCMgrDownloader
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
call fcn.0041bc00
call fcn.0041bc00
xor eax, eax
test edi, edi
sete al
jmp 0x492697
lea esi, [ebp - 0x14]
call fcn.0041bc00
call fcn.0041bc00
xor eax, eax
call fcn.004bea48
ret

Function at 0x492786
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x50f130]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push esi
xor ebx, ebx
test byte [0x516194], 1
mov esi, ecx
push edi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], ebx
mov edi, 0x5160b0
jne 0x4927d8
or dword [0x516194], 1
mov esi, edi
call fcn.004016f0
push 0x4e6dc7
call fcn.004b9593
mov esi, dword [ebp - 0x80]
pop ecx
mov eax, dword [0x5160b0]
cmp dword [eax - 0xc], ebx
jne 0x49286e
push 0x20a
lea eax, [ebp - 0x76]
push ebx
push eax
mov word [ebp - 0x78], bx
call fcn.004be240
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x78]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x78]
call fcn.00404a50
mov edx, dword [0x5160b0]
mov eax, dword [edx - 0xc]
cmp eax, ebx
jle 0x49286e
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x49289a
cmp ecx, eax
jg 0x49289a
cmp word [edx + ecx*2], 0x5c
je 0x492839
push 0x5c
call fcn.0043d4d0
mov edx, str.TencentQQPCMgr_
call fcn.004139a0
push dword [0x5160b0]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49286e
mov edx, dword [0x5160b0]
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x7c], esp
call fcn.00403710
call fcn.0048f078
add esp, 0x1c
mov eax, dword [0x5160b0]
add eax, 0xfffffff0
call fcn.004012e0
mov ecx, dword [ebp + 0x194]
add eax, 0x10
mov dword [esi], eax
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b83ee
add ebp, 0x198
leave
ret
push 0x80070057
call fcn.00401350
int3
Function at 0x493035
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x50f130]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
test byte [0x5160ac], 1
mov dword [ebp - 0x214], edi
mov esi, 0x5160a8
jne 0x493077
or dword [0x5160ac], 1
call fcn.004016f0
push 0x4e6e28
call fcn.004b9593
pop ecx
mov eax, dword [0x5160a8]
cmp dword [eax - 0xc], edi
jne 0x4930bc
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.004be240
add esp, 0xc
push 1
push 0x25
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x210]
mov edi, esi
call fcn.00404a50
mov eax, dword [0x5160a8]
add eax, 0xfffffff0
call fcn.004012e0
mov ecx, dword [ebp - 4]
add eax, 0x10
pop edi
mov dword [ebx], eax
xor ecx, ebp
mov eax, ebx
pop esi
call fcn.004b83ee
leave
ret

Function at 0x4930de
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x50f130]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
test byte [0x5160a4], 1
mov dword [ebp - 0x214], edi
mov esi, 0x5160a0
jne 0x493120
or dword [0x5160a4], 1
call fcn.004016f0
push 0x4e6e32
call fcn.004b9593
pop ecx
mov eax, dword [0x5160a0]
cmp dword [eax - 0xc], edi
jne 0x493165
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.004be240
add esp, 0xc
push 1
push 0x24
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x210]
mov edi, esi
call fcn.00404a50
mov eax, dword [0x5160a0]
add eax, 0xfffffff0
call fcn.004012e0
mov ecx, dword [ebp - 4]
add eax, 0x10
pop edi
mov dword [ebx], eax
xor ecx, ebp
mov eax, ebx
pop esi
call fcn.004b83ee
leave
ret
Function at 0x493a22
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.004b8c00
pop ecx
mov ecx, eax
test ecx, ecx
je 0x493b33
cmp ebx, 2
jle 0x493acc
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 0x493a71
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x493b24
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 0x493b10
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 0x493b1e
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 0x493b2d
mov dword [eax], esi
mov byte [ecx + esi], 0
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x494ded
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push 0x30
mov eax, 0x4e5bd0
call fcn.004be95c
lea ecx, [ebp - 0x30]
call fcn.00492786
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
call fcn.004959a6
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004016d0
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 0x494e54
lea ecx, [ebp - 0x14]
call fcn.004016d0
xor eax, eax
call fcn.004bea34
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 0x494e70
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x494e42
mov ecx, dword [ebp - 0x38]
add eax, 1
mov ebx, eax
adc ecx, esi
push ebx
mov dword [ebp - 0x20], ecx
call fcn.004b73e1
mov edi, eax
cmp edi, esi
pop ecx
jne 0x494e96
lea ecx, [ebp - 0x14]
call fcn.004016d0
mov eax, esi
jmp 0x494e4c
push ebx
push esi
push edi
call fcn.004be240
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.00493b38
add esp, 0xc
push edi
mov ebx, eax
call fcn.004b8802
pop ecx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
mov dword [ebp - 0x18], esi
je 0x494f4a
mov edi, dword [ebp - 0x20]
add edi, edi
push edi
call fcn.004b73e1
cmp eax, esi
pop ecx
mov dword [ebp - 0x28], eax
je 0x494f3f
push edi
push esi
push eax
call fcn.004be240
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.004a8f7d
push ebx
mov dword [ebp - 0x18], eax
call fcn.004b88b6
add esp, 0xc
xor ebx, ebx
cmp dword [ebp - 0x18], esi
je 0x494f36
push dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
call fcn.00494f5b
mov dword [ebp - 0x18], eax
push dword [ebp - 0x28]
call fcn.004b8802
pop ecx
cmp ebx, esi
je 0x494f4a
push ebx
call fcn.004b88b6
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x18]
jmp 0x494e8a
Function at 0x49527e
Capabilities:
Delete file

Disassembly:
push 0x458
mov eax, 0x4e519e
call fcn.004be9c5
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.00499e49
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 0x4952dc
lea eax, [ebp - 0x364]
push 0x20
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004bf2a0
add esp, 0xc
push 0x103
lea eax, [ebp - 0x13b]
push ebx
push eax
mov byte [ebp - 0x13c], bl
call fcn.004be240
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.004a8dae
mov eax, ebx
push eax
push dword [ebp - 0x450]
lea eax, [ebp - 0x13c]
call fcn.00493a22
add esp, 0x10
test eax, eax
mov dword [ebp - 0x460], eax
jne 0x49535e
xor esi, esi
lea ecx, [ebp - 0x368]
call fcn.004016a0
mov eax, esi
call fcn.004bea48
ret 4
call fcn.0049377f
mov edi, eax
neg edi
sbb edi, edi
lea esi, [ebp - 0x450]
neg edi
call fcn.004016f0
mov ecx, dword [ebp - 0x460]
lea eax, [ebp - 0x454]
push eax
mov byte [ebp - 4], 1
call fcn.00496406
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.00406130
add esp, 0x10
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 1
call fcn.004016d0
lea ecx, [ebp - 0x454]
call fcn.00492786
push eax
lea eax, [ebp - 0x458]
push eax
push ebx
mov byte [ebp - 4], 3
call fcn.004959a6
lea ecx, [ebp - 0x454]
call fcn.004016d0
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [ebp - 0x44c]
call fcn.004934df
mov eax, esi
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x450]
push eax
call fcn.00402500
mov edx, dword [ebp - 0x458]
lea eax, [ebp - 0x430]
push eax
call fcn.00402500
and word [ebp - 0x34c], 0
push 0x208
lea eax, [ebp - 0x34a]
push 0
push eax
call fcn.004be240
add esp, 0xc
push dword [ebp - 0x458]
lea eax, [ebp - 0x34c]
push eax
call fcn.004daab9
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.00403710
call fcn.0048f078
mov ecx, dword [ebx + 0x48]
add esp, 0x1c
test ecx, ecx
je 0x4954b1
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.004a4ba9
and dword [eax], 0
push dword [ebp - 0x460]
call fcn.004b88b6
pop ecx
lea edi, [ebp - 0x44c]
call fcn.004954e9
lea ecx, [ebp - 0x458]
call fcn.004016d0
lea ecx, [ebp - 0x450]
call fcn.004016d0
mov esi, dword [ebp - 0x45c]
jmp 0x495349
Function at 0x49551e
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x20fc]
mov eax, 0x217c
call fcn.004d5a20
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 0x49556f
xor eax, eax
jmp 0x495633
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.004a8215
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, 0x2000
jmp 0x4955a8
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x80]
call fcn.004a895f
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 0x49559a
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x20e8]
push eax
lea esi, [ebp - 0x80]
call fcn.004a8b6a
push 0xfe
lea eax, [ebp + 0x1fea]
push ebx
push eax
mov word [ebp + 0x1fe8], bx
call fcn.004be240
add esp, 0x10
lea esi, [ebp + 0x1fe8]
movzx eax, byte [ebp + ebx + 0x20e8]
push eax
push str._.2x
push 3
push esi
call fcn.004b937c
add esp, 0x10
add esi, 4
inc ebx
cmp ebx, 0x10
jb 0x4955f9
push dword [ebp - 0x24]
lea eax, [ebp + 0x1fe8]
push eax
call fcn.004b9d0f
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.004b83ee
add ebp, 0x20fc
leave
ret 4
Function at 0x49564b
Capabilities:
Delete file

Disassembly:
push 0x31c
mov eax, 0x4e5b4d
call fcn.004be9c5
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.004be240
add esp, 0xc
push dword [edi + 0x2c]
lea eax, [ebp - 0x220]
push eax
call fcn.004daab9
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.00403710
call fcn.0048f078
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.004934df
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.00402500
mov edx, dword [edi + 0x2c]
lea eax, [ebp - 0x304]
push eax
call fcn.00402500
cmp dword [edi + 0x4c], ebx
jne 0x495741
mov ecx, dword [edi + 0x48]
cmp ecx, ebx
je 0x4957eb
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.004a4ba9
xor edi, edi
jmp 0x4957c8
cmp dword [edi + 0x50], ebx
jne 0x49579f
lea eax, [ebp - 0x328]
push 0x515b64
push eax
mov ebx, str.dlcore.dll
call fcn.00413a60
pop ecx
pop ecx
mov byte [ebp - 4], 1
mov edx, dword [eax]
lea eax, [ebp - 0x23c]
call fcn.00403710
lea ecx, [ebp - 0x328]
mov byte [ebp - 4], 3
call fcn.004016d0
push dword [edi + 4]
lea esi, [ebp - 0x23c]
push dword [edi + 0x14]
call fcn.004a5dc8
pop ecx
pop ecx
mov dword [edi + 0x50], eax
mov byte [ebp - 4], 0
call fcn.0040c0b0
xor ebx, ebx
mov ecx, dword [edi + 0x50]
cmp ecx, ebx
je 0x4957eb
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.004a4ba9
xor edi, edi
inc edi
mov dword [eax], edi
call fcn.0048ef9f
mov esi, 0x515a60
push esi
mov dword [eax + 0x10], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [0x515b00], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edi, [ebp - 0x320]
call fcn.004954e9
mov eax, dword [ebp - 0x324]
call fcn.004bea48
ret
Function at 0x495b96
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.0048eff1
mov esi, eax
cmp dword [esi], 0xffffffff
jne 0x495bc2
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 0x495bd5
mov edi, dword [eax + 8]
jmp 0x495bd7
xor edi, edi
cmp edi, esi
je 0x495cb9
mov eax, dword [ebp + 8]
mov dword [edi + 8], eax
call fcn.00499f16
push 0x208
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x216]
push esi
push eax
mov word [ebp - 0x218], si
call fcn.004be240
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.004b8974
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 0x495c55
mov eax, edi
call fcn.00499f54
jmp 0x495cb9
cmp dword [edi + 0x18], esi
jne 0x495c62
call fcn.0048efc8
mov dword [edi + 0x18], eax
push dword [edi + 4]
mov ecx, dword [edi + 0x18]
call fcn.0049527e
cmp dword [ebp - 0x21c], esi
je 0x495cb9
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x495ca9
cmp dword [ebp - 0x230], 0x20
je 0x495ca9
cmp dword [ebp - 0x230], 0xd
je 0x495ca9
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 0x495c7d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b83ee
leave
ret 4

Function at 0x495cca
Capabilities:
Delete file

Disassembly:
push 0xec
mov eax, 0x4ded50
call fcn.004be9c5
mov ebx, ecx
xor edi, edi
lea esi, [ebp - 0xf4]
mov dword [ebx + 0x4c], edi
mov dword [ebp - 0xf8], edi
call fcn.004934df
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.00402500
mov edx, dword [ebx + 0x2c]
lea eax, [ebp - 0xd8]
push eax
call fcn.00402500
mov ecx, dword [ebx + 0x48]
cmp ecx, edi
je 0x495d63
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.004a4ba9
mov dword [eax], edi
call fcn.0048ef9f
push 2
pop edi
mov esi, 0x515a60
push esi
mov dword [eax + 0x10], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [0x515b00], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edi, [ebp - 0xf4]
call fcn.004954e9
mov eax, dword [ebp - 0xf8]
call fcn.004bea48
ret
Function at 0x49a955
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 0x49a979
xor al, al
jmp 0x49aaa1
push dword [ebx + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49a972
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.004be240
push 0xa
lea eax, [ebp - 0x210]
push eax
push dword [edi]
call fcn.004dab23
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.00490e53
push 0
mov ebx, eax
call fcn.004ba0bc
lea esi, [edi + 0x24]
push esi
mov ecx, 0x4f74f4
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], edx
call fcn.00401570
test al, al
pop ecx
pop ecx
je 0x49aa39
mov eax, dword [ebp - 0x218]
cmp dword [edi + 0x1c], eax
jg 0x49aaaf
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 0x49aaaf
jl 0x49aa77
jmp 0x49aa6f
push esi
mov ecx, 0x4f74f8
call fcn.00401570
test al, al
pop ecx
je 0x49aa80
mov eax, dword [ebp - 0x218]
cmp dword [edi + 0x1c], eax
jle 0x49aa77
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 0x49aa77
jg 0x49aaaf
cmp dword [ebp - 0x220], eax
ja 0x49aaaf
mov byte [ebp - 0x211], 1
jmp 0x49aa9b
mov eax, dword [edi + 0x1c]
cmp eax, 0xffffffff
je 0x49aa1c
cmp dword [edi + 0x20], 0xffffffff
jne 0x49aa9b
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.004b83ee
leave
ret
mov byte [ebp - 0x211], 0
jmp 0x49aa9b

Function at 0x49aab8
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.004be240
push 0xa
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.004dab23
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.00490eb6
push 0
call fcn.004ba0bc
pop ecx
push eax
mov dword [ebp - 0x210], edx
call fcn.00490f07
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b83ee
leave
ret 4
Function at 0x49c379
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x49c384
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x49c436
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 0x49c39b
pop edi
test eax, eax
je 0x49c44f
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4ebe40]
inc ecx
dec eax
jne 0x49c43a
mov eax, esi
pop ebx
not eax
pop esi
ret

Function at 0x49c456
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 0x49cb05
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 0x49cb35
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 0x49cb30
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x49cb6d
xor eax, eax
mov ecx, edi
add ecx, dword [esi + 0x28]
adc eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x24]
jl 0x49cb51
jg 0x49cb4b
cmp ecx, dword [esi + 0x20]
jbe 0x49cb51
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.004bf2a0
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