joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100271f4
Capabilities:
Create directory
Delete file

Disassembly:
push 0xc
mov eax, 0x1007aa98
call fcn.1005ac4f
mov edi, dword [ebp + 8]
push edi
call fcn.10028921
mov eax, dword [0x1009d194]
mov ecx, 0x1009d194
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
xor ebx, ebx
push 0x100867c0
lea eax, [ebp + 8]
mov dword [ebp - 4], ebx
mov ecx, dword [edi + 0x10]
push eax
mov edx, 0x1007e340
call fcn.100246c7
mov byte [ebp - 4], 1
mov esi, dword [eax]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
push ebx
push str.supplyid
push eax
call dword [ecx + 0x18]
push eax
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.1000ee4f
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, 0xfffffff0
call fcn.10003475
lea esi, [ebp + 8]
call fcn.10009044
mov byte [ebp - 4], 2
call fcn.100255cb
push str.Download_
mov eax, esi
push eax
call fcn.10009207
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x100867f4
mov eax, esi
push eax
call fcn.10009207
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 0x1438
push esi
call fcn.100539ba
push esi
push ebx
push eax
mov dword [ebp - 0x14], eax
call fcn.100541d0
mov eax, dword [ebp - 0x14]
push 0xe0
mov dword [eax + 4], 2
call fcn.100539ba
add esp, 0x14
cmp eax, ebx
je 0x100272e4
mov esi, eax
call fcn.100255ee
mov dword [ebp - 0x10], eax
jmp 0x100272e7
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov dword [eax + 8], ebx
call fcn.1000922d
push dword [ebp + 8]
mov ebx, esi
lea esi, [ebx + 0x1c]
call fcn.1000922d
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x30]
call fcn.1002a34e
mov dword [eax], ebx
mov eax, dword [edi]
push edi
call dword [eax + 0x2c]
mov eax, edi
call fcn.10025a1d
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10003475
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10003475
xor eax, eax
call fcn.1005ad27
ret 4

Function at 0x10027340
Capabilities:
Create directory

Disassembly:
push 4
mov eax, 0x100754b9
call fcn.1005ac4f
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov eax, dword [eax]
sub eax, 0x10
call fcn.1000313b
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call fcn.100255cb
push str.Download_
push esi
call fcn.10009207
mov eax, dword [esi]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x1008680c
push esi
call fcn.10009207
mov edi, dword [ebp + 8]
add edi, 0x3c
mov eax, esi
call fcn.10002e8f
mov eax, esi
call fcn.1005ad27
ret 0xc
Function at 0x10027619
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, eax
mov eax, dword [ebx + 0x34]
mov eax, dword [eax]
add ebx, 0x30
push esi
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx + 4]
lea edi, [ebp - 0x14]
lea esi, [ebp - 0xc]
mov dword [ebp - 0x10], eax
call fcn.10023ec7
test al, al
jne 0x1002768a
mov edi, dword [ebp - 0xc]
test edi, edi
jne 0x10027656
call fcn.10053b4e
mov esi, dword [ebp - 8]
cmp esi, dword [edi + 4]
jne 0x10027663
call fcn.10053b4e
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10027672
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp + 8]
je 0x1002767c
lea esi, [ebp - 0xc]
call fcn.1002a710
jmp 0x10027635
add eax, 0x90
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp 0x1002768c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1002867a
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0x230
mov eax, 0x1007a5ac
call fcn.1005acb8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x238], eax
mov eax, dword [0x1009d194]
mov esi, ecx
mov edi, 0x1009d194
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x230]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
push str.KvNoCmdline
push eax
call dword [ecx + 0x20]
test eax, eax
je 0x100286f1
cmp dword [esi + 0x320], ebx
jne 0x100286f1
push 0x1007dc88
lea eax, [ebp - 0x224]
push eax
call fcn.100030a8
jmp 0x100287b4
push 0x208
lea eax, [ebp - 0x21e]
push ebx
push eax
mov word [ebp - 0x220], bx
call fcn.100541d0
add esp, 0xc
push ebx
push 0x26
lea eax, [ebp - 0x220]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Kingsoft
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [0x1009d194]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x228]
push dword [ebp - 0x238]
mov byte [ebp - 4], 1
push str._silence1handle_dsupply_dinstallpath__s_
push eax
call fcn.1000ee4f
add esp, 0x14
lea eax, [esi + 0x3a8]
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x228]
call fcn.1000d177
pop ecx
pop ecx
lea edi, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.10002e8f
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
call fcn.10003475
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
call fcn.10003475
lea edi, [esi + 0x328]
push edi
call fcn.10053c3b
test eax, eax
pop ecx
jne 0x100287ca
mov edi, str.Install
push edi
lea eax, [ebp - 0x22c]
push eax
call fcn.10002e48
mov eax, dword [ebp - 0x230]
mov byte [ebp - 4], 3
push dword [eax + 0x10]
add esi, 0x90
push dword [esi - 0x8c]
push dword [esi + 0x398]
push dword [ebp - 0x22c]
call fcn.1002a689
mov edx, esi
mov ecx, eax
call fcn.10021b47
cmp eax, ebx
mov edi, dword [ebp - 0x224]
je 0x10028840
push edi
mov esi, eax
call fcn.1002206d
test eax, eax
je 0x10028840
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
call fcn.10003475
lea eax, [edi - 0x10]
call fcn.10003475
mov eax, ebx
call fcn.1005ad3b
ret 0xc
push 9
pop ebx
jmp 0x10028820
Function at 0x10028845
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
add eax, 0x30
push ebx
mov ebx, dword [ecx]
push esi
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
add eax, 0x30
mov eax, dword [eax + 4]
lea edi, [ebp - 0x14]
lea esi, [ebp - 0xc]
mov dword [ebp - 0x10], eax
call fcn.10023ec7
test al, al
jne 0x10028917
mov esi, dword [ebp - 0xc]
test esi, esi
jne 0x1002888d
call fcn.10053b4e
cmp ebx, dword [esi + 4]
jne 0x10028897
call fcn.10053b4e
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x10028907
cmp dword [esi + 4], 0x186a0
je 0x10028907
lea edi, [esi + 0x90]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10028907
lea eax, [esi + 0x2a0]
push eax
push edi
call fcn.100160ad
test eax, eax
pop ecx
pop ecx
je 0x10028900
cmp dword [esi + 8], 1
je 0x10028907
cmp dword [esi + 0x324], 0
je 0x100288e9
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.10029f59
test eax, eax
je 0x10028907
and dword [esi + 0xc], 0
mov dword [esi + 0x42c], 0x64
mov dword [esi + 8], 8
jmp 0x10028907
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [ebp - 0xc]
call fcn.1002a710
mov ebx, dword [ebp - 8]
jmp 0x10028862
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 4

Function at 0x10028ca8
Capabilities:
Create directory
Delete file

Disassembly:
push 0x1c
mov eax, 0x10076000
call fcn.1005ac4f
mov eax, dword [0x1009d194]
mov ecx, 0x1009d194
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea esi, [ebp - 0x24]
call fcn.10009044
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10002e8f
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.10003475
mov esi, edi
call fcn.100255cb
push str.Download_
mov eax, edi
push eax
call fcn.10009207
mov edi, dword [ebp - 0x10]
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x20]
call fcn.10029c43
mov eax, esi
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.10002f4d
pop ecx
pop ecx
mov byte [ebp - 4], 3
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
lea eax, [ebp - 0x1c]
push str..tdl
push eax
lea ecx, [ebp - 0x14]
call fcn.1000d177
pop ecx
pop ecx
mov byte [ebp - 4], 4
push dword [ebp - 0x1c]
call esi
lea eax, [ebp - 0x28]
push str..xfd
push eax
lea ecx, [ebp - 0x14]
call fcn.1000d177
lea eax, [ebp - 0x18]
push str..xftp
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.1000d177
add esp, 0x10
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10003475
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.10003475
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10003475
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10003475
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10003475
lea eax, [edi - 0x10]
call fcn.10003475
xor eax, eax
inc eax
call fcn.1005ad27
ret 8
Function at 0x10028e63
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10077090
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x10098428]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x1c]
call fcn.1002579d
lea ecx, [esp + 0x18]
push str.qmdr
push ecx
xor ebx, ebx
mov ecx, eax
mov dword [esp + 0x50], ebx
call fcn.1000d177
pop ecx
pop ecx
mov byte [esp + 0x48], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.10003475
push ebx
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [esp + 0x14]
push 0x10086b24
push eax
lea ecx, [esp + 0x20]
call fcn.1000d177
mov byte [esp + 0x50], 3
mov ecx, dword [esp + 0x1c]
push 0x69
call fcn.10021a7b
add esp, 0xc
cmp eax, ebx
jne 0x10028f37
push dword [esp + 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10028f37
xor edi, edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.10003475
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.10003475
mov eax, edi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esp + 0x14]
lea eax, [esp + 0x24]
call fcn.1000188f
push eax
lea eax, [edi + 0xcc]
mov byte [esp + 0x4c], 4
call fcn.1002a565
push ebx
push 1
lea esi, [esp + 0x28]
mov byte [esp + 0x50], 3
call fcn.10001ef7
push dword [esp + 0x18]
lea eax, [esp + 0x24]
call fcn.1000188f
push eax
lea eax, [edi + 0xdc]
mov byte [esp + 0x4c], 5
call fcn.1002a565
push ebx
push 1
lea esi, [esp + 0x28]
mov byte [esp + 0x50], 3
call fcn.10001ef7
push dword [esp + 0x14]
lea eax, [esp + 0x24]
call fcn.1000188f
mov byte [esp + 0x48], 6
call fcn.1002eadf
lea edx, [esp + 0x20]
mov ecx, eax
call fcn.1002e524
push ebx
push 1
lea esi, [esp + 0x28]
mov edi, eax
call fcn.10001ef7
jmp 0x10028f0a
Function at 0x100291b3
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x10098428]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 0x14
mov eax, 0x10078210
call fcn.1005ac4f
xor esi, esi
push 0x208
lea eax, [ebp + 2]
push esi
push eax
mov dword [ebp - 0x14], esi
mov word [ebp], si
call fcn.100541d0
mov eax, dword [0x1009d194]
add esp, 0xc
mov ecx, 0x1009d194
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
push str.SoftwareTencentQQPCMgr
mov dword [ebp - 4], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1c], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100292a9
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push str.InstallDir
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100292a0
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100030a8
lea eax, [ebp - 0x18]
push str.QQRepair.exe
push eax
lea ecx, [ebp - 0x10]
call fcn.1000d177
pop ecx
pop ecx
mov byte [ebp - 4], 1
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10029295
mov ecx, dword [ebp - 0x18]
push str._ext1
call fcn.10015fc7
pop ecx
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10003475
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10003475
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 + 0x20c]
xor ecx, ebp
call fcn.10053c51
add ebp, 0x210
leave
ret 4
Function at 0x10029f59
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x224
mov eax, 0x1007a246
call fcn.1005acb8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x230], eax
push ebx
lea eax, [ebp - 0x224]
push eax
call fcn.10002e48
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x224]
push dword [eax - 0xc]
lea esi, [ebp - 0x224]
call fcn.10003376
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp - 0x224], 0
jne 0x10029fb5
xor eax, eax
jmp 0x10029fc1
push dword [ebp - 0x224]
call fcn.10053c3b
pop ecx
lea edx, [ebp - 0x224]
call fcn.1000332f
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.1000313b
lea edi, [eax + 0x10]
mov dword [ebp - 0x228], edi
push ebx
push dword [ebp - 0x22c]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x224]
call fcn.10029dbe
test eax, eax
jne 0x1002a01d
lea eax, [edi - 0x10]
call fcn.10003475
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.10003475
xor eax, eax
call fcn.1005ad3b
ret 8
push str.Info.ini
lea eax, [ebp - 0x224]
call fcn.10023c76
push dword [ebp - 0x224]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
jne 0x1002a05b
xor esi, esi
lea eax, [edi - 0x10]
call fcn.10003475
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.10003475
mov eax, esi
jmp 0x1002a015
and word [ebp - 0x220], 0
push 0x208
lea eax, [ebp - 0x21e]
push 0
push eax
call fcn.100541d0
add esp, 0xc
push dword [ebp - 0x224]
mov esi, 0x104
push esi
lea eax, [ebp - 0x220]
push eax
push str.setup.exe
push str.PacketExe
push str.setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
call fcn.10023c76
mov edi, dword [ebp - 0x228]
mov eax, dword [ebp - 0x230]
push edi
add eax, 0x90
push esi
push eax
call fcn.1005892e
add esp, 0xc
push edi
call ebx
mov esi, eax
jmp 0x1002a041

Function at 0x1002a0d9
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
add ebx, 0xcc
push edi
lea esi, [ebp - 0xc]
mov edi, ebx
call fcn.1002a531
jmp 0x1002a11e
lea esi, [ebp - 0xc]
call fcn.1002a75d
cmp dword [eax + 0x18], 8
jb 0x1002a10a
mov eax, dword [eax + 4]
jmp 0x1002a10d
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [ebp - 0xc]
call fcn.1002b3bd
mov edi, ebx
lea esi, [ebp - 0x14]
call fcn.1002a54b
mov edi, eax
lea esi, [ebp - 0xc]
call fcn.1002a77a
test al, al
jne 0x1002a0f7
mov eax, ebx
call fcn.1002a5c5
mov ebx, dword [ebp + 8]
add ebx, 0xdc
lea esi, [ebp - 0xc]
mov edi, ebx
call fcn.1002a531
jmp 0x1002a177
lea esi, [ebp - 0xc]
call fcn.1002a75d
cmp dword [eax + 0x18], 8
jb 0x1002a163
mov eax, dword [eax + 4]
jmp 0x1002a166
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea esi, [ebp - 0xc]
call fcn.1002b3bd
mov edi, ebx
lea esi, [ebp - 0x14]
call fcn.1002a54b
mov edi, eax
lea esi, [ebp - 0xc]
call fcn.1002a77a
test al, al
jne 0x1002a150
mov eax, ebx
call fcn.1002a5c5
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1002d9ec
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
je 0x1002dad4
test eax, eax
jle 0x1002dad4
push ebx
push esi
or esi, 0xffffffff
cmp eax, 8
mov ecx, 0xff
jl 0x1002dab4
push edi
mov edi, eax
shr edi, 3
mov ebx, edi
imul ebx, ebx, 0xfffffff8
add eax, ebx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10083e18]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10083e18]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10083e18]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10083e18]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10083e18]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10083e18]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10083e18]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10083e18]
inc edx
dec edi
jne 0x1002da1c
pop edi
test eax, eax
je 0x1002dacd
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10083e18]
inc edx
dec eax
jne 0x1002dab8
mov eax, esi
pop esi
not eax
pop ebx
ret
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 8], eax
jmp 0x1002db2d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*4]
push dword [ebp + eax - 0x18]
call esi
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp + ecx*4 - 0x18], eax
jl 0x1002db2a
push 0x10
xor eax, eax
pop ecx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x14]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x18]
sub eax, 0x61c88647
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0xc]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
dec ecx
jne 0x1002db4e
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret
Function at 0x1002f2d8
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x10098428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
xor ecx, ecx
cmp eax, ecx
push edi
je 0x1002f339
cmp dword [ebp + 0xc], ecx
jle 0x1002f339
cmp ebx, ecx
je 0x1002f339
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], ecx
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
call fcn.1002f3ef
pop ecx
lea edi, [ebp - 0x60]
call fcn.1002f496
mov al, 1
jmp 0x1002f33b
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10053c51
leave
ret

Function at 0x10037695
Capabilities:
Create thread

Disassembly:
push 0x14
mov eax, 0x1007a118
call fcn.1005ac4f
mov esi, ecx
push str.CDownload::Init__
push 3
call fcn.10039eab
xor edi, edi
cmp dword [esi + 0xc], edi
pop ecx
pop ecx
je 0x100376c0
xor eax, eax
inc eax
jmp 0x1003774a
cmp dword [esi + 0x64], edi
mov dword [esi + 0xb8], 0x5dc
jne 0x10037708
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x68], eax
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x6c], eax
call ebx
mov dword [esi + 0x70], eax
lea eax, [esi + 0x74]
push eax
push edi
push esi
push 0x10038e99
push edi
push edi
call fcn.100574ae
add esp, 0x18
mov dword [esi + 0x64], eax
lea eax, [esi + 0x8c]
mov dword [ebp - 0x14], eax
add eax, 4
push eax
mov dword [ebp - 0x18], vtable.QQDectector::fund::lock::scoped_lock_class_QQDectector::fund::lock::critical_section_.0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], edi
lea eax, [ebp - 0x20]
xor edi, edi
push eax
inc edi
lea eax, [esi + 0x78]
mov dword [ebp - 0x20], edi
call fcn.10039511
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea esi, [ebp - 0x18]
call fcn.10039759
mov eax, edi
call fcn.1005ad27
ret
Function at 0x100377cb
Capabilities:
Print debug messages
Terminate thread

Disassembly:
push 0x10
mov eax, 0x10075d98
call fcn.1005ac4f
push str.CDownload::Uninit__
push 3
call fcn.10039eab
pop ecx
lea eax, [edi + 0x8c]
mov dword [ebp - 0x10], eax
pop ecx
add eax, 4
push eax
mov dword [ebp - 0x14], vtable.QQDectector::fund::lock::scoped_lock_class_QQDectector::fund::lock::critical_section_.0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [edi + 0x78]
mov dword [ebp - 0x1c], 2
call fcn.10039511
push dword [edi + 0x70]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
call ebx
lea esi, [ebp - 0x14]
call fcn.10039759
push dword [edi + 0x68]
call ebx
push dword [edi + 0x70]
call ebx
cmp dword [edi + 0x64], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10037873
push 0x1388
push dword [edi + 0x6c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1003786a
push 0x3ff
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.Uninit::TerminateThread
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [edi + 0x64]
call esi
and dword [edi + 0x64], 0
push dword [edi + 0x70]
call esi
push dword [edi + 0x68]
call esi
push dword [edi + 0x6c]
call esi
call fcn.1005ad27
ret
Function at 0x1003832b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x10
mov eax, 0x10075d68
call fcn.1005ac4f
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 8]
cmp dword [edi + 0x1c], 8
jb 0x10038348
mov eax, dword [edi + 8]
jmp 0x1003834b
lea eax, [edi + 8]
movzx ecx, word [edi + 0x20]
push ecx
push eax
push dword [edi]
push str.CDownload::SetProxy__._nstProxyInfo.eProxyType___d_nstProxyInfo.strProxyIP___s_nstProxyInfo.usProxyPort___d
push 3
call fcn.10039eab
push 0x78
call fcn.100539ba
xor esi, esi
add esp, 0x18
cmp eax, esi
je 0x100383a2
mov dword [eax], esi
mov dword [eax + 0x18], esi
push 7
pop ecx
mov dword [eax + 0x1c], ecx
mov word [eax + 8], si
mov word [eax + 0x20], si
mov dword [eax + 0x38], esi
mov dword [eax + 0x3c], ecx
mov word [eax + 0x28], si
mov dword [eax + 0x54], esi
mov dword [eax + 0x58], ecx
mov word [eax + 0x44], si
mov dword [eax + 0x70], esi
mov dword [eax + 0x74], ecx
mov word [eax + 0x60], si
mov esi, eax
mov eax, dword [edi]
mov dword [esi], eax
push 0xffffffffffffffff
lea eax, [esi + 4]
push eax
xor ebx, ebx
lea eax, [edi + 4]
call fcn.10001d41
mov ax, word [edi + 0x20]
push 0xffffffffffffffff
lea ecx, [esi + 0x24]
mov word [esi + 0x20], ax
lea eax, [edi + 0x24]
push ecx
call fcn.10001d41
push 0xffffffffffffffff
lea ecx, [esi + 0x40]
lea eax, [edi + 0x40]
push ecx
call fcn.10001d41
push 0xffffffffffffffff
lea ecx, [esi + 0x5c]
lea eax, [edi + 0x5c]
push ecx
call fcn.10001d41
mov edi, dword [ebp - 0x10]
lea eax, [edi + 0x8c]
mov dword [ebp - 0x18], eax
add eax, 4
push eax
mov dword [ebp - 0x1c], vtable.QQDectector::fund::lock::scoped_lock_class_QQDectector::fund::lock::critical_section_.0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x78]
mov dword [ebp - 0x14], 9
mov dword [ebp - 0x10], esi
call fcn.10039511
push dword [edi + 0x70]
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea esi, [ebp - 0x1c]
call fcn.10039759
xor eax, eax
inc eax
call fcn.1005ad27
ret 4