joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ac51
Capabilities:
Connect to http server

Disassembly:
push 0x10
mov eax, 0x41b45e
call fcn.00419f9e
mov eax, dword [0x428220]
mov ecx, 0x428220
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x10]
xor esi, esi
push eax
mov dword [ebp - 4], esi
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
lea ebx, [ebp - 0x10]
call fcn.0040a60a
test eax, eax
jne 0x40aca0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004016a7
xor eax, eax
call fcn.0041a076
ret 0xc
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push esi
push esi
push 3
push esi
push esi
push dword [ebp + 0x10]
push ebx
push dword [eax]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, esi
mov dword [edi], eax
jne 0x40acc3
lea eax, [ebx - 0x10]
jmp 0x40ac91
push esi
push esi
lea ecx, [ebp - 0x1c]
push ecx
push esi
push str.HTTP_1.1
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], str.text_
push str.POST
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jne 0x40ad07
push dword [edi]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [edi], esi
lea eax, [ebx - 0x10]
call fcn.004016a7
mov eax, esi
jmp 0x40ac98
xor esi, esi
inc esi
jmp 0x40acfb
Function at 0x40bd52
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push 0x418
mov eax, 0x41b290
call fcn.0041a007
lea eax, [ebp - 0x418]
mov ebx, ecx
push eax
mov ecx, str.http:__qqhelper.qq.com:8080_site_media_QQTroubleShoot.exe
mov edi, edx
call fcn.00409276
lea eax, [ebp - 0x424]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.0040ea75
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x414]
mov dword [esp], str.QQTroubleShoot.exe
push ecx
mov ecx, eax
call fcn.00404728
pop ecx
pop ecx
mov byte [ebp - 4], 2
call fcn.00404596
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
call fcn.004016a7
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
call fcn.004016a7
mov edi, dword [edi]
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40bea3
push esi
push SysReAllocString
push esi
push esi
push dword [ebp - 0x418]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, esi
mov dword [ebp - 0x414], eax
je 0x40bea3
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [ebp - 0x41c]
push ecx
push 0x3ff
lea ecx, [ebp - 0x410]
push ecx
push eax
jmp 0x40be7e
cmp dword [ebp - 0x41c], esi
je 0x40beb9
push esi
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x41c]
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40be90
mov eax, dword [ebp - 0x41c]
cmp eax, dword [ebp - 0x420]
jne 0x40be90
lea eax, [ebp - 0x41c]
push eax
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x414]
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x420], esi
call ebx
test eax, eax
jne 0x40be2b
push dword [ebp - 0x414]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x418]
add eax, 0xfffffff0
call fcn.004016a7
xor eax, eax
call fcn.0041a08a
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x414]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x418]
add eax, 0xfffffff0
call fcn.004016a7
xor eax, eax
inc eax
jmp 0x40beb3
Function at 0x40c9b0
Capabilities:
Read .ini file

Disassembly:
push 0x444
mov eax, 0x41ac36
call fcn.0041a007
xor edi, edi
push 0x422
lea eax, [ebp - 0x436]
push edi
push eax
mov word [ebp - 0x438], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x212
lea eax, [ebp - 0x438]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.bugreport.ini
lea eax, [ebp - 0x438]
push 0x5c
push eax
call dword [sym.imp.MSVCR80.dll_wcsrchr]
pop ecx
inc eax
pop ecx
inc eax
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy]
push 0x8000
call fcn.0041956e
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x438]
push eax
push 0x4000
push ebx
push str.STRINGTABLE
mov dword [ebp - 0x444], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x40cb25
cmp word [ebx], di
je 0x40cb25
lea eax, [ebp - 0x43c]
push eax
mov ecx, ebx
call fcn.0040453a
lea eax, [ebp - 0x43c]
mov dword [ebp - 4], edi
call fcn.00408134
push 0x421d8c
xor ecx, ecx
lea esi, [ebp - 0x43c]
call fcn.0040f17c
mov esi, eax
cmp esi, 0xffffffff
je 0x40caf8
mov eax, dword [ebp - 0x43c]
mov ecx, dword [eax - 0xc]
lea eax, [ebp - 0x448]
sub ecx, esi
push eax
dec ecx
lea eax, [ebp - 0x43c]
call fcn.0040f1b0
mov dword [ebp - 0x44c], eax
mov ecx, esi
lea edx, [ebp - 0x440]
lea eax, [ebp - 0x43c]
mov byte [ebp - 4], 1
call fcn.0040f200
push 0x428674
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040485b
mov edi, eax
mov eax, dword [ebp - 0x44c]
call fcn.00404596
mov eax, dword [ebp - 0x440]
add eax, 0xfffffff0
call fcn.004016a7
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
call fcn.004016a7
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x43c]
add eax, 0xfffffff0
call fcn.004016a7
push ebx
call dword [sym.imp.MSVCR80.dll_wcslen]
lea ebx, [ebx + eax*2 + 2]
cmp word [ebx], di
pop ecx
jne 0x40ca4d
mov ebx, dword [ebp - 0x444]
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
xor eax, eax
pop ecx
inc eax
call fcn.0041a08a
ret
Function at 0x40d06a
Capabilities:
Get file version info
Read file on windows

Disassembly:
push 0x184
mov eax, 0x41ab8f
call fcn.0041a007
xor edi, edi
mov ebx, edx
cmp ebx, edi
mov esi, ecx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x54], edi
je 0x40d235
cmp word [ebx], di
je 0x40d235
push edi
push edi
push 3
push edi
push 3
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x54], eax
je 0x40d235
mov eax, dword [0x428220]
mov esi, 0x428220
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], edi
mov eax, dword [0x428220]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x60], eax
push edi
push ebx
mov byte [ebp - 4], 1
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x40d155
push esi
call fcn.0041956e
pop ecx
push eax
push esi
push edi
push ebx
mov dword [ebp - 0x68], eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40d14c
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0x420fb4
push dword [ebp - 0x68]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40d14c
mov eax, dword [ebp - 0x6c]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
lea eax, [ebp - 0x58]
push str._d._d._d._d
push eax
call fcn.0040556c
add esp, 0x18
push dword [ebp - 0x68]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
mov ebx, dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 0x5c]
push eax
push 0x40
lea eax, [ebp - 0x50]
push eax
push ebx
call esi
test eax, eax
je 0x40d202
cmp dword [ebp - 0x5c], 0x40
jne 0x40d202
push edi
push edi
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x5c]
push eax
mov edi, 0xf8
push edi
lea eax, [ebp - 0x190]
push eax
push ebx
call esi
test eax, eax
je 0x40d202
cmp dword [ebp - 0x5c], edi
jne 0x40d202
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.MSVCR80.dll__gmtime32]
push 9
pop ecx
mov esi, eax
lea edi, [ebp - 0x94]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x94]
mov eax, dword [ebp - 0x84]
push dword [ebp - 0x90]
inc eax
push dword [ebp - 0x8c]
push dword [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x80]
add eax, 0x76c
push eax
lea eax, [ebp - 0x60]
push str.__04d__02d__02d__02d:_02d:_02d_GMT
push eax
call fcn.0040556c
add esp, 0x24
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x64]
lea ecx, [ebp - 0x58]
call fcn.004046d7
mov eax, dword [ebp - 0x60]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004016a7
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff0
call fcn.004016a7
mov eax, dword [ebp - 0x64]
jmp 0x40d242
push esi
mov ecx, 0x4211c8
call fcn.0040453a
mov eax, esi
call fcn.0041a08a
ret
Function at 0x40d248
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x40d2be
cmp dword [ebp + 8], edi
je 0x40d2be
push str.MiniDumpWriteDump
push str.dbghelp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, edi
je 0x40d2be
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d2be
push edi
push edi
push dword [ebp + 8]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40d2c0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40d2c5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x428024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0040ef12
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x70]
push ecx
push 0x20019
xor esi, esi
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff0
call fcn.004016a7
cmp edi, esi
jne 0x40d3c9
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push str.FullDump
push dword [ebp - 0x70]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], 4
call edi
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x74], 4
jne 0x40d3b2
cmp dword [ebp - 0x6c], ebx
jne 0x40d3b2
push 0x62
lea eax, [ebp - 0x66]
push esi
push eax
mov word [ebp - 0x68], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push str.HASH
push dword [ebp - 0x70]
mov dword [ebp - 0x84], 0x64
mov dword [ebp - 0x80], ebx
call edi
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x7c]
mov word [ebp - 6], si
call fcn.00404ab2
test eax, eax
jne 0x40d3b2
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40d3ce
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x74], 4
jne 0x40d3c9
cmp dword [ebp - 0x6c], 2
mov eax, ebx
je 0x40d3ce
mov eax, dword [0x42866c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419580
leave
ret
Function at 0x40d5e1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040ef12
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
mov eax, dword [ebp - 0xc]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.004016a7
test bl, bl
pop ebx
je 0x40d66e
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.bUseInterMod
push dword [ebp - 4]
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 4
jne 0x40d66e
xor eax, eax
inc eax
cmp dword [ebp - 0xc], eax
jne 0x40d66e
mov dword [0x42866c], eax
leave
ret

Function at 0x40d670
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x428024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [ebp - 0x214], ebx
mov word [ebp - 0x20c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40d6e0
push str.C:_temp_
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
cmp word [ebp + eax*2 - 0x20e], 0x5c
pop ecx
je 0x40d70b
mov word [ebp + eax*2 - 0x20c], 0x5c
mov word [ebp + eax*2 - 0x20a], bx
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
lea eax, [ebp - 0x20c]
push eax
call esi
push str.Tencent_
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push eax
call esi
push dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.0040453a
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419580
leave
ret
Function at 0x40d761
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1090
call fcn.0041a0f0
mov eax, dword [0x428024]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x1028], 0
push ebx
mov dword [ebp - 0x1020], eax
push esi
push edi
xor eax, eax
mov byte [ebp - 0x18], 0
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, ecx
lea esi, [ebp - 0x108c]
mov dword [ebp - 0x1024], ebx
stosb byte es:[edi], al
call fcn.00417adb
push 0x421f20
push ebx
call dword [sym.imp.MSVCR80.dll__wfopen]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x40d7fd
mov esi, dword [sym.imp.MSVCR80.dll_fread]
mov edi, 0x1000
jmp 0x40d7df
lea ecx, [ebp - 0x101c]
lea edx, [ebp - 0x108c]
call fcn.00418225
push ebx
push edi
lea eax, [ebp - 0x101c]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
jne 0x40d7ce
push ebx
call dword [sym.imp.MSVCR80.dll_fclose]
pop ecx
jmp 0x40d81c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x1024]
push str.GetModuleHashStr_open_file___s__fail_errno__lu_
push 0x41d5c4
call fcn.00411e0e
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
lea esi, [ebp - 0x108c]
call fcn.00418430
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1020]
call fcn.0040d852
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x1020]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419580
leave
ret
Function at 0x40e299
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 5
push 0xffffffffffffffff
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x40e2ff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x40e2d9
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x40e2f2
push 0x103
push dword [ebp - 4]
push esi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
and word [esi + 0x206], 0
push dword [ebp - 4]
call sub.WTSAPI32.dll_WTSFreeMemory
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x40e4a1
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
jne 0x40e4b8
xor eax, eax
jmp 0x40e509
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esi]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 8], edi
je 0x40e506
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 4]
push eax
push 3
push 0x422874
push edi
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x40e50d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call fcn.00411959
mov edi, dword [ebp - 0xc]
mov eax, dword [edi - 0xc]
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x40e548
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
call fcn.004016a7
mov eax, ebx
jmp 0x40e508
xor ebx, ebx
inc ebx
jmp 0x40e533
Function at 0x40e54d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
push esi
xor esi, esi
cmp dword [eax - 0xc], esi
push edi
jne 0x40e569
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push esi
push esi
push 3
push esi
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e5a0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.add_zip._open_file_fail_err___lu_____s_
push 0x41d5c4
call fcn.00411e0e
add esp, 0x10
jmp 0x40e562
lea eax, [ebp - 8]
push eax
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [0x42866c], esi
mov dword [ebp - 0xc], eax
jne 0x40e5e2
cmp dword [ebp - 8], esi
jne 0x40e5c5
cmp eax, 0x500000
jbe 0x40e5e2
push dword [ebx]
push str.add_zip._file_size_over_5M____s_
push 0x41d5c4
call fcn.00411e0e
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e562
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x40e5d9
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e616
push ebx
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov eax, esi
jmp 0x40e564
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
jbe 0x40e64e
push dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
push ebx
call fcn.004107a3
test al, al
je 0x40e64e
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.add_zip_success.___s_
push 0x41d5c4
call fcn.00411e0e
add esp, 0xc
xor esi, esi
inc esi
jmp 0x40e607

Function at 0x40e92c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40e93d
xor eax, eax
xor edx, edx
jmp 0x40e98c
push edi
push esi
push esi
push 3
push esi
push 3
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e960
xor eax, eax
xor edx, edx
jmp 0x40e98b
push ebx
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push esi
push esi
push dword [ebp + 8]
call fcn.0041a0b0
xor ecx, ecx
add eax, ebx
adc edx, ecx
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x40e98f
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
call fcn.0040ef12
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 4]
push ecx
mov edi, 0xf003f
push edi
xor ebx, ebx
push ebx
push eax
mov esi, SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004016a7
cmp dword [ebp - 0xc], ebx
je 0x40ea15
cmp dword [ebp + 8], ebx
je 0x40ea6d
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
call fcn.0040ef12
mov eax, dword [eax]
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push edi
push ebx
push ebx
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004016a7
cmp esi, ebx
je 0x40ea15
xor eax, eax
jmp 0x40ea70
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp + 8]
push eax
push 4
push ebx
push str.FullDump
push dword [ebp - 4]
call esi
cmp dword [ebp + 8], ebx
je 0x40ea56
cmp dword [ebp + 8], 2
je 0x40ea56
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push ebx
push str.HASH
push dword [ebp - 4]
call esi
jmp 0x40ea64
push str.HASH
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ea75
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x428024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x214], 0
and word [ebp - 0x20c], 0
push esi
push edi
push 0x206
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20a]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x20e], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, 0x420fb4
je 0x40eafd
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
push str.TencentQQMiscQQTroubleShoot
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40eb3c
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40eb3c
push dword [ebp - 0x210]
call fcn.0040d670
pop ecx
jmp 0x40eb57
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
push dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.0040453a
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
xor ecx, ebp
pop esi
call fcn.00419580
leave
ret
Function at 0x40ebf9
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x644
mov eax, 0x41aa6d
call fcn.0041a007
mov eax, dword [ebp + 8]
mov dword [ebp - 0x644], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
jne 0x40ec21
xor eax, eax
jmp 0x40ed3b
push eax
lea eax, [ebp - 0x640]
push eax
call fcn.0040ef12
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x634]
push ecx
push 0x20019
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov eax, dword [ebp - 0x640]
add eax, 0xfffffff0
call fcn.004016a7
cmp edi, esi
jne 0x40ec1a
push 0x618
lea eax, [ebp - 0x62e]
push esi
push eax
mov word [ebp - 0x630], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x648]
push eax
push esi
push str.ExtRptFile
push dword [ebp - 0x634]
mov dword [ebp - 0x648], 1
mov dword [ebp - 0x64c], 0x30c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x40eccb
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ec1a
lea eax, [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x630]
call fcn.0040453a
lea eax, [ebp - 0x638]
push eax
mov ecx, 0x421144
mov dword [ebp - 4], esi
call fcn.0040453a
mov ecx, dword [ebp - 0x644]
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x63c]
push eax
mov byte [ebp - 4], 1
call fcn.00411b3f
pop ecx
pop ecx
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x638]
add eax, 0xfffffff0
call fcn.004016a7
mov eax, dword [ebp - 0x63c]
add eax, 0xfffffff0
call fcn.004016a7
xor eax, eax
inc eax
call fcn.0041a08a
ret