joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407b13
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x42c
lea ebp, [esp - 4]
mov eax, dword [0x44e620]
xor eax, ebp
mov dword [ebp + 0x42c], eax
push 4
mov eax, 0x43777f
call fcn.0041f559
mov eax, dword [ebp + 0x438]
push 7
xor edi, edi
test byte [0x44fa18], 1
mov dword [ebp - 0x10], eax
pop ebx
mov esi, 0x44f9fc
jne 0x407b73
or dword [0x44fa18], 1
push edi
mov ecx, esi
mov dword [0x44fa14], ebx
call fcn.00407290
push 0x439290
call fcn.00420846
pop ecx
cmp dword [0x44fa10], edi
je 0x407bad
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
push edi
push esi
call fcn.004076c8
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x42c]
xor ecx, ebp
call fcn.0041f54a
add ebp, 0x430
leave
ret
push edi
lea ecx, [ebp]
mov dword [ebp + 0x18], ebx
call fcn.00407290
mov ebx, 0x206
push ebx
lea eax, [ebp + 0x1e]
push edi
push eax
mov dword [ebp - 4], edi
mov word [ebp + 0x1c], di
call fcn.0041f640
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
push edi
push edi
push 0x801a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x407c91
push ebx
lea eax, [ebp + 0x226]
push edi
push eax
mov word [ebp + 0x224], di
call fcn.0041f640
push str.MMInstallCache_
lea eax, [ebp + 0x1c]
push eax
push str._sTencent_s
push 0xffffffffffffffff
lea eax, [ebp + 0x224]
push 0x104
push eax
call fcn.0041fd17
add esp, 0x24
lea eax, [ebp + 0x224]
push eax
lea ecx, [ebp]
call fcn.004078d9
lea eax, [ebp + 0x224]
push eax
call fcn.00404589
test eax, eax
pop ecx
jne 0x407c5f
lea eax, [ebp + 0x224]
push eax
call fcn.00407a52
test eax, eax
pop ecx
jne 0x407c5f
lea ecx, [ebp]
call fcn.00407876
push 0xffffffffffffffff
push edi
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.004076c8
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
push edi
lea eax, [ebp]
push eax
call fcn.004076c8
xor esi, esi
inc esi
push edi
push 1
lea ecx, [ebp]
call fcn.0040735a
mov eax, esi
jmp 0x407b8a
xor esi, esi
jmp 0x407c7f
Function at 0x40804c
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push ebx
push esi
push str.DownlaodFile:_szUrl___s____szFileName___s__
call fcn.00407c95
xor edi, edi
add esp, 0xc
cmp esi, edi
je 0x408149
push esi
call fcn.0041ed7c
test eax, eax
pop ecx
je 0x408149
cmp ebx, edi
jne 0x408097
push str.DownlaodFile_INVALID_FILENAME
call fcn.00407c95
pop ecx
push 0xfffffffffffffffe
pop eax
jmp 0x408157
push esi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
call fcn.00406d61
test eax, eax
je 0x4080cd
mov esi, dword [ebp + 0x10]
cmp esi, edi
jbe 0x4080cd
lea eax, [esi + esi]
push eax
push edi
push ebx
call fcn.0041f640
add esp, 0xc
push dword [ebp + 0x14]
push edi
push esi
push ebx
push dword [ebp + 8]
push edi
call sub.urlmon.dll_URLDownloadToCacheFileW
jmp 0x408107
push ebx
call fcn.0041ed7c
test eax, eax
pop ecx
je 0x408084
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.00406dd2
test eax, eax
pop ecx
je 0x4080f9
push str.DownlaodFile_FILE_ALLREADY_EXIST
call fcn.00407c95
pop ecx
push 0xfffffffffffffffb
jmp 0x408091
push dword [ebp + 0x14]
push edi
push ebx
push dword [ebp + 8]
push edi
call sub.urlmon.dll_URLDownloadToFileW
cmp eax, edi
je 0x40811d
push str.DownlaodFile_DOWNLOAD_FILE_FAILED
call fcn.00407c95
pop ecx
push 0xfffffffffffffffc
jmp 0x408091
push ebx
call fcn.00406dd2
test eax, eax
pop ecx
jne 0x40813a
push str.DownlaodFile_FILE_NOT_EXIST
call fcn.00407c95
pop ecx
push 0xfffffffffffffffa
jmp 0x408091
push str.DownlaodFile_S_OK
call fcn.00407c95
xor eax, eax
inc eax
jmp 0x408156
push str.DownlaodFile_INVALID_URL
call fcn.00407c95
or eax, 0xffffffff
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40815c
Capabilities:
Write file on windows

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x44e620]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 0x164
mov eax, 0x437828
call fcn.0041f58c
mov eax, dword [ebp + 0x130]
mov esi, dword [ebp + 0x12c]
push eax
lea ecx, [ebp - 0x170]
mov dword [ebp - 0x1c], eax
call fcn.0040733a
push dword [eax]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00407a52
lea eax, [ebp - 0x16c]
cmp dword [ebp - 0x170], eax
pop ecx
je 0x4081c5
push dword [ebp - 0x170]
call fcn.0041e8cf
pop ecx
push esi
mov dword [ebp - 4], 1
or edi, 0xffffffff
call fcn.004012c0
mov esi, eax
cmp esi, ebx
pop ecx
je 0x408307
push esi
call fcn.00401820
jmp 0x4082f5
push 0x4c
lea eax, [ebp - 0x68]
push ebx
push eax
mov dword [ebp - 0x6c], ebx
call fcn.0041f640
push 0x103
lea eax, [ebp + 0x1d]
push ebx
push eax
mov byte [ebp + 0x1c], bl
call fcn.0041f640
push ebx
push ebx
push ebx
push ebx
push 0x104
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
call fcn.004017e0
add esp, 0x38
test eax, eax
jne 0x4082ef
push dword [ebp - 0x50]
call fcn.0041d1c2
mov edi, eax
cmp edi, ebx
pop ecx
mov dword [ebp - 0x18], edi
je 0x4082ef
push dword [ebp - 0x50]
push ebx
push edi
call fcn.0041f640
push esi
call fcn.00401ac0
add esp, 0x10
test eax, eax
jne 0x4082e6
push dword [ebp - 0x50]
push edi
push esi
call fcn.00401bd0
mov edi, eax
add esp, 0xc
cmp edi, ebx
jle 0x4082df
push dword [ebp - 0x1c]
lea ecx, [ebp]
mov dword [ebp - 0x14], ebx
call fcn.00405f45
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00407a22
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x40829c
lea eax, [ebp + 4]
push 0x43c25c
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0042092f
add esp, 0xc
test eax, eax
jne 0x4082d0
cmp dword [ebp - 0x14], ebx
je 0x4082d0
push dword [ebp - 0x14]
push edi
push 1
push dword [ebp - 0x18]
call fcn.004202f2
push dword [ebp - 0x14]
call fcn.00420117
add esp, 0x14
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.004052ac
push esi
call fcn.00401d90
pop ecx
push dword [ebp - 0x18]
call fcn.0041f61b
pop ecx
push esi
call fcn.00401870
mov edi, eax
cmp edi, ebx
pop ecx
je 0x4081eb
push esi
call fcn.00401440
pop ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.0041f54a
add ebp, 0x124
leave
ret
Function at 0x408341
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
sub esp, 0x660
lea ebp, [esp - 4]
mov eax, dword [0x44e620]
xor eax, ebp
mov dword [ebp + 0x660], eax
push 0xc
mov eax, 0x43785b
call fcn.0041f559
mov eax, dword [ebp + 0x66c]
mov ebx, dword [ebp + 0x670]
mov edi, 0x103
push edi
push eax
mov dword [ebp - 0x18], eax
lea esi, [edi + 1]
lea eax, [ebp + 0x250]
push esi
push eax
mov dword [ebp - 0x10], 1
call fcn.00420549
push ebx
lea eax, [ebp + 0x250]
push esi
push eax
call fcn.004204cf
add esp, 0x1c
lea eax, [ebp]
push eax
lea eax, [ebp + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4083c2
xor eax, eax
jmp 0x4084aa
lea ecx, [ebp - 0x14]
call fcn.004158e0
and dword [ebp - 4], 0
lea eax, [ebp + 0x2c]
push eax
push 0x43bf40
call fcn.0042049d
test eax, eax
pop ecx
pop ecx
je 0x408441
lea eax, [ebp + 0x2c]
push eax
push 0x43bf38
call fcn.0042049d
test eax, eax
pop ecx
pop ecx
je 0x408441
push edi
push dword [ebp - 0x18]
lea eax, [ebp + 0x458]
push esi
push eax
call fcn.00420549
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x458]
push esi
push eax
call fcn.004204cf
add esp, 0x1c
lea eax, [ebp + 0x458]
push eax
lea ecx, [ebp - 0x14]
call fcn.004158f0
test eax, eax
je 0x408456
lea eax, [ebp + 0x458]
push eax
lea ecx, [ebp - 0x14]
call fcn.00415a3a
test eax, eax
je 0x408456
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4083ce
jmp 0x40846d
lea eax, [ebp + 0x458]
push eax
push str._VerifyAllFileSignature_Illegal_Module:__s__
call fcn.00407c95
and dword [ebp - 0x10], 0
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0x12
je 0x408492
push esi
push str._VerifyAllFileSignature_FindNextFile_error._Error_is__u._n
call fcn.00407c95
and dword [ebp - 0x10], 0
pop ecx
pop ecx
xor eax, eax
cmp dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
setne al
or dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.004158e9
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x660]
xor ecx, ebp
call fcn.0041f54a
add ebp, 0x664
leave
ret

Function at 0x4088ad
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x408903
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x408919
push 0x80004005
call fcn.004047db
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40891c
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8
Function at 0x408f5b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x44e620]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.00407103
mov edi, eax
cmp edi, esi
je 0x408fc3
lea ecx, [ebp - 0x70]
call fcn.004070ec
mov eax, edi
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f54a
add ebp, 0x198
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x408fdb
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00408f5b
cmp eax, esi
jne 0x40900e
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x408fcb
lea ecx, [ebp - 0x70]
call fcn.004070ec
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.004070ec
mov eax, esi
jmp 0x408fa9
Function at 0x40bdc5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, dword [ebx]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
je 0x40be50
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 8]
push ecx
push edi
lea ecx, [ebp - 4]
push ecx
push edi
push dword [ebp + 8]
push eax
call esi
cmp dword [ebp - 4], 1
je 0x40be03
cmp dword [ebp - 4], 2
jne 0x40be4f
mov ecx, dword [ebp + 0xc]
call fcn.00404e0d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
shr eax, 1
inc eax
push eax
call fcn.00405685
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 8]
push dword [ebx]
call esi
test eax, eax
jne 0x40be4f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
shr eax, 1
mov word [ecx + eax*2], di
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
call fcn.00404e51
mov dword [ebp - 0xc], 1
pop esi
mov eax, dword [ebp - 0xc]
pop edi
pop ebx
leave
ret 8

Function at 0x40c653
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x437bcb
call fcn.0041f559
xor edi, edi
mov dword [ebp - 0x18], edi
mov ecx, dword [ebp + 8]
mov esi, 0x450200
push esi
mov dword [ebp - 4], edi
call fcn.00404fd7
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], 1
call fcn.00404fd7
lea eax, [ebp - 0x10]
push eax
push str.SOFTWARETencentqqlive
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, edi
jne 0x40c6e8
lea eax, [ebp - 0x14]
push eax
push 0x43c90c
lea ecx, [ebp - 0x10]
call fcn.0040bdc5
test eax, eax
je 0x40c6e8
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], edi
je 0x40c6e8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c6e8
lea eax, [ebp - 0x14]
push eax
call fcn.0040c5cf
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00405e66
cmp dword [ebp - 0x10], edi
je 0x40c6f6
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov dword [ebp - 0x10], edi
call fcn.00404981
mov eax, dword [ebp + 8]
call fcn.0041f5f8
ret
Function at 0x40da20
Capabilities:
Create process on windows

Disassembly:
push 0x4c
mov eax, 0x437dcb
call fcn.0041f559
lea ecx, [ebp - 0x10]
call fcn.004158e0
mov edi, dword [ebp + 0xc]
xor esi, esi
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.004158f0
test eax, eax
je 0x40db64
push edi
lea ecx, [ebp - 0x10]
call fcn.00415a3a
test eax, eax
je 0x40db64
push 0x3c
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.0041f640
add esp, 0xc
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], 0x40
mov dword [ebp - 0x50], esi
call fcn.00406d61
test eax, eax
mov dword [ebp - 0x4c], str.runas
jne 0x40da95
mov dword [ebp - 0x4c], str.open
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], eax
xor edi, edi
lea eax, [ebp - 0x58]
inc edi
push eax
mov dword [ebp - 0x40], 0x43beb0
mov dword [ebp - 0x3c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, edi
je 0x40dacd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004158e9
mov eax, esi
call fcn.0041f5f8
ret
push str.Launch_Setup_successed_
call fcn.00407c95
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
pop ecx
push 0xffffffffffffffff
mov dword [ebp - 0x18], eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 2
jae 0x40db47
mov eax, dword [ebp + eax*4 - 0x1c]
cmp eax, dword [ebp - 0x20]
jne 0x40db58
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp eax, edi
jne 0x40db38
cmp dword [ebp - 0x14], esi
jne 0x40db38
push str.Setup_successed_
call fcn.00407c95
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], esi
mov esi, edi
jmp 0x40dab9
push dword [ebp - 0x14]
push str.Setup_exit_with__d_
call fcn.00407c95
pop ecx
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], esi
jmp 0x40dab9
push str.User_Cancle_the_Web_Page_
call fcn.00407c95
jmp 0x40db46
push edi
push 0x43f4c8
call fcn.00407c95
pop ecx
pop ecx
jmp 0x40dab9
Function at 0x40dc06
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 8], ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40dc73
push dword [esi + 0x10]
push str.__d_CInstallHelper::UnInit_DL_thread_is_running_
call fcn.00407c95
pop ecx
pop ecx
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [esi + 0x18]
call fcn.0041399e
push 0xbb8
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40dc6b
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 0x10]
push str.__d_Failed_to_wait_for_the_end_of_the_DL_thread_
call fcn.00407c95
pop ecx
pop ecx
push dword [esi + 8]
call edi
mov dword [esi + 8], ebx
lea ecx, [esi + 0x18]
call fcn.00413392
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x40dc88
push eax
call edi
mov dword [esi + 0x14], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x40dcc1
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40dcc1
push dword [esi + 0x10]
push str.__d_CInstallHelper::UnInit_DestroyWindow
call fcn.00407c95
pop ecx
pop ecx
push ebx
push 0xffffffffffffffeb
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x10], ebx
cmp dword [esi + 0xc], ebx
je 0x40dcd6
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x40dcd6
mov dword [esi + 0xc], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebx
ret
Function at 0x40e6fb
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x2a4
lea ebp, [esp - 4]
mov eax, dword [0x44e620]
xor eax, ebp
mov dword [ebp + 0x2a4], eax
push 0x10
mov eax, 0x437f2b
call fcn.0041f559
mov eax, dword [ebp + 0x2cc]
mov ecx, dword [ebp + 0x2d0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
push ecx
push eax
xor edi, edi
push str.SaveP2PConfig_App:_s_Url:_s_
mov dword [ebp - 4], edi
call fcn.00407c95
push str.program.ini
lea eax, [ebp + 0x2b0]
push eax
lea eax, [ebp]
push eax
call fcn.0040e1da
mov eax, dword [ebp + 4]
add esp, 0x18
cmp dword [ebp + 0x18], 8
jae 0x40e766
lea eax, [ebp + 4]
push eax
push edi
push 0x43ff40
mov esi, str.program
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x10], eax
xor eax, eax
inc eax
cmp dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov ebx, str.pro_d
jb 0x40e81e
push 0x3e
lea eax, [ebp + 0x266]
push edi
push eax
mov word [ebp + 0x264], di
call fcn.0041f640
push 0x206
lea eax, [ebp + 0x1e]
push edi
push eax
mov word [ebp + 0x1c], di
call fcn.0041f640
push dword [ebp - 0x14]
lea eax, [ebp + 0x264]
push ebx
push 0xffffffffffffffff
push 0x20
push eax
call fcn.0041fd17
mov eax, dword [ebp + 4]
add esp, 0x2c
cmp dword [ebp + 0x18], 8
jae 0x40e7dc
lea eax, [ebp + 4]
push eax
push 0x104
lea eax, [ebp + 0x1c]
push eax
push 0x43beb0
lea eax, [ebp + 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [ebp - 0x18]
lea eax, [ebp + 0x1c]
push eax
call fcn.0041f972
test eax, eax
pop ecx
pop ecx
je 0x40e8b3
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jbe 0x40e790
inc dword [ebp - 0x10]
push 0x3e
lea eax, [ebp + 0x266]
push edi
push eax
mov word [ebp + 0x264], di
call fcn.0041f640
push 0x3e
lea eax, [ebp + 0x226]
push edi
push eax
mov word [ebp + 0x224], di
call fcn.0041f640
push 0xa
push 0x20
lea eax, [ebp + 0x264]
push eax
push dword [ebp - 0x10]
call fcn.004227b3
push dword [ebp - 0x10]
lea eax, [ebp + 0x224]
push ebx
push 0xffffffffffffffff
push 0x20
push eax
call fcn.0041fd17
mov eax, dword [ebp + 4]
add esp, 0x3c
cmp dword [ebp + 0x18], 8
jae 0x40e883
lea eax, [ebp + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
lea eax, [ebp + 0x264]
push eax
push 0x43ff40
push esi
call ebx
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40e8a5
lea eax, [ebp + 4]
push eax
push dword [ebp - 0x18]
lea eax, [ebp + 0x224]
push eax
push esi
call ebx
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40e8bf
lea eax, [ebp + 4]
push eax
push dword [ebp - 0x1c]
push str.lasturl
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push edi
push 1
lea ecx, [ebp]
call fcn.0040735a
push edi
push 1
lea ecx, [ebp + 0x2b0]
call fcn.0040735a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2a4]
xor ecx, ebp
call fcn.0041f54a
add ebp, 0x2a8
leave
ret
Function at 0x40f060
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
push str.DownloadSetup
mov esi, ecx
call fcn.00407c95
mov eax, dword [esi + 8]
xor edi, edi
cmp eax, edi
pop ecx
je 0x40f09a
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], edi
push ebx
lea ebx, [esi + 0xc]
mov eax, dword [ebx]
cmp eax, edi
je 0x40f0ac
mov dword [ebx], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp word [ebp + 0x18], 9
jne 0x40f149
cmp dword [ebp + 0x20], edi
je 0x40f149
push dword [ebp + 0x20]
mov ecx, ebx
call fcn.0040e135
cmp dword [ebx], edi
je 0x40f149
push 0x2c
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.0041f640
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 0xc
push edi
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x28], 0x40dff9
call ebx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 8], str.QQLiveInstaller
call dword [sym.imp.USER32.dll_RegisterClassExW]
push edi
push edi
call ebx
push eax
push edi
push edi
mov eax, SysReAllocStringLen
push eax
push eax
push eax
push eax
push eax
push 0x43beb0
push str.QQLiveInstaller
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp eax, edi
mov dword [esi + 0x10], eax
je 0x40f13b
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x14], eax
push 0x10
call fcn.0041e976
cmp eax, edi
pop ecx
je 0x40f15e
mov dword [eax], edi
mov dword [eax + 8], edi
mov ebx, eax
jmp 0x40f160
xor ebx, ebx
push dword [ebp + 8]
mov ecx, ebx
call fcn.00404db6
mov eax, dword [ebp + 0x10]
push dword [ebp + 0x14]
lea ecx, [ebx + 8]
mov dword [ebx + 4], eax
call fcn.00404db6
mov dword [ebx + 0xc], esi
call dword [0x44e5e4]
push edi
push edi
push ebx
push 0x40e90d
push edi
push edi
call fcn.004228d7
add esp, 0x18
cmp eax, edi
mov dword [esi + 8], eax
pop ebx
jne 0x40f1bb
push 0x43beb0
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040dcda
push dword [esi + 0x10]
push str.__d__beginthreadex_faild
call fcn.00407c95
pop ecx
pop ecx
pop edi
xor eax, eax
pop esi
leave
ret 0x20

Function at 0x40fb98
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x30], eax
jne 0x40fbb4
xor eax, eax
jmp 0x40fbdb
push ebx
lea eax, [esp + 0xc]
push eax
push edi
push esi
push 0x40f8cd
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, edi
jne 0x40fbd8
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
pop ecx
ret