joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b880
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x20a
mov dword [ebp - 0x840], eax
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.004dcc10
add esp, 0xc
lea eax, [ebp - 0x424]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004dcc10
push 0x20a
lea eax, [ebp - 0x630]
push 0
push eax
call fcn.004dcc10
push 0x20a
lea eax, [ebp - 0x83c]
push 0
push eax
call fcn.004dcc10
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00489c50
xor edi, edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x848], edi
add esp, 0x34
mov dword [ebp - 0xc], ebx
mov esi, 1
mov dword [ebp - 0x844], esi
cmp ax, word [ebp - 0x218]
je 0x49b97c
lea eax, [ebp - 0x218]
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x848]
lea ecx, [ebp - 0x844]
call fcn.004989f0
add esp, 0xc
test al, al
je 0x49b97c
mov esi, dword [ebp - 0x844]
mov edi, dword [ebp - 0x848]
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x840]
test edx, edx
jne 0x49b98a
xor ecx, ecx
jmp 0x49b9a8
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x840], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49b995
sub ecx, dword [ebp - 0x840]
sar ecx, 1
push ecx
push edx
mov ecx, 0x54f134
call fcn.0044f440
sub esp, 0x14
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x424]
push eax
lea edx, [ebp - 0x630]
call fcn.0049b210
mov esi, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
add esp, 0x28
push fcn.0049b7e0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x840]
push eax
push 5
lea eax, [ebp - 0xc]
mov dword [ebp - 0x840], 0
push eax
push esi
mov dword [ebp - 0xc], 0x4c2c033
mov byte [ebp - 8], 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push eax
call ebx
mov eax, dword [0x54f148]
test eax, eax
je 0x49ba59
mov dword [eax + 0x1c], 0x2710
cmp word [0x5323dc], 0
je 0x49ba59
mov eax, dword [0x54f148]
push 0x5323dc
add eax, 0x55c
push 0x3c
push eax
call fcn.004e44a6
mov eax, dword [0x54f148]
add esp, 0xc
xor ecx, ecx
mov word [eax + 0x5d2], cx
push fcn.0049b7e0
call esi
lea eax, [ebp - 0x840]
mov dword [ebp - 0x840], 0
push eax
push 5
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x4c2c033
push eax
push esi
mov byte [ebp - 8], 0
call edi
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
Function at 0x49c240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x218], eax
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x49c3d1
test edi, edi
je 0x49c3d1
test ecx, ecx
je 0x49c3d1
test ebx, ebx
je 0x49c3d1
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0
push 0
push eax
call fcn.004dcc10
push 0xffffffffffffffff
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004f0211
push 0xffffffffffffffff
push 0x5329c0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004f2b28
push 0x103
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004f2b28
mov eax, dword [ebp - 0x210]
add esp, 0x3c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x49c309
push eax
call ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x49c3aa
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x49c3b0
lea ecx, [ebp - 0x214]
push ecx
push 0
lea ecx, [ebp - 0x21c]
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49c3aa
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp + 0x14]
jbe 0x49c372
mov dword [esi], eax
mov esi, 0x80028016
mov eax, dword [ebp - 0x210]
jmp 0x49c3b5
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x49c3b0
lea ecx, [ebp + 0x14]
push ecx
push dword [ebp - 0x218]
lea ecx, [ebp - 0x21c]
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49c3aa
mov eax, dword [ebp + 0x14]
mov dword [esi], eax
xor esi, esi
mov eax, dword [ebp - 0x210]
jmp 0x49c3b5
mov eax, dword [ebp - 0x210]
mov esi, 0x80004005
test eax, eax
je 0x49c3bc
push eax
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 0x14
Function at 0x49c3f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x214], eax
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x49c50c
test edi, edi
je 0x49c50c
test ecx, ecx
je 0x49c50c
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0
push 0
push eax
call fcn.004dcc10
push 0xffffffffffffffff
push 0x5358bc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004f0211
push 0xffffffffffffffff
push 0x5329c0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004f2b28
push 0x103
push str.QQDoctorQQDoctorComCfg
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004f2b28
add esp, 0x3c
lea eax, [ebp - 0x20c]
push 0
push eax
push ecx
lea ecx, [ebp - 0x210]
call fcn.0049c150
test eax, eax
je 0x49c4e1
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x49c4e7
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp - 0x214]
push 3
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x49c4e1
mov eax, dword [ebp - 0x210]
mov dword [ebx], esi
xor esi, esi
jmp 0x49c4ec
mov eax, dword [ebp - 0x210]
mov esi, 0x80004005
test eax, eax
je 0x49c4f7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
xor ecx, ebp
pop ebx
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 0x10

Function at 0x49d7d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50de28
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x54b144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x48]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
push 0
push 0x531c00
mov dword [esi + 0x60], 4
mov byte [esi + 0x6c], 0
mov byte [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.0044c030
mov dword [esi + 0x68], 0
mov eax, esi
mov dword [esi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a23c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e215
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.0044add0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov esi, dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
test esi, esi
je 0x4a24df
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x4a2441
nop dword [eax + eax]
cmp ecx, edx
je 0x4a24df
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x4a2430
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4a24df
cmp esi, ecx
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 0
cmovb ecx, esi
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.0044a750
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4a24b7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a24ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a25a7
push edx
push ecx
call fcn.004dafca
add esp, 8
movups xmm0, xmmword [ebp - 0x40]
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x30]
push eax
movq qword [ebp - 0x18], xmm0
call fcn.0044add0
call fcn.004a23c0
add esp, 0x18
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4a2509
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4a2509
or esi, 0xffffffff
jmp 0x4a250b
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4a2541
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a2537
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a25a7
push edx
push ecx
call fcn.004dafca
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x4a258b
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a2581
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a25a7
push edx
push ecx
call fcn.004dafca
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
call fcn.004e002c
int3
Function at 0x4a2a40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
push 0
push 0x5323dc
lea edi, [ebx + 0x28]
mov dword [ebp - 0x424], ebx
mov ecx, edi
mov dword [ebp - 0x41c], eax
call fcn.0044a750
push 0
add ebx, 0x40
push 0x5323dc
mov ecx, ebx
call fcn.0044a750
test esi, esi
je 0x4a2aad
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2a95
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
jmp 0x4a2bc1
push 0x412
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.004dcc10
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x2f
push dword [ebp - 0x41c]
call fcn.004dd4a7
mov esi, eax
add esp, 8
test esi, esi
je 0x4a2baa
push str.QMDownload
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
sub esp, 0x18
lea ecx, [ebp - 0x418]
mov edx, esp
lea eax, [ecx + 2]
mov dword [ebp - 0x420], eax
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2b30
sub ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0044a750
call fcn.004a23c0
add esp, 0x18
lea eax, [ebp - 0x418]
add esi, 2
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2b74
sub ecx, edx
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0044a750
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2b97
sub ecx, edx
sar ecx, 1
push ecx
push esi
jmp 0x4a2bbf
push 0
push 0x5323dc
mov ecx, edi
call fcn.0044a750
push 0
push 0x5323dc
mov ecx, ebx
call fcn.0044a750
push dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x424]
call fcn.004a25f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 8
Function at 0x4a36b0
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20a
push 0
push eax
mov esi, ecx
call fcn.004dcc10
push edi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004e44a6
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a3756
sub esp, 0x18
lea ecx, [ebp - 0x210]
mov edx, esp
lea ebx, [ecx + 2]
mov dword [edx], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], 7
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a3730
sub ecx, ebx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0044a750
call fcn.004a23c0
add esp, 0x18
add esi, 0x28
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4a3763
mov eax, dword [esi]
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp + 0xc], 0
mov edi, eax
je 0x4a3784
cmp dword [esi + 0x14], 8
jb 0x4a377d
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 8
Function at 0x4a41b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5084d0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x54b144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x40]
mov dword [edi], vtable.QQDectector2::CWinHttpFile.0
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x4a4222
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4a420b
mov dword [esi + 0x20], 0
call fcn.004a59e0
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call eax
mov ecx, dword [edi + 0x2c]
call fcn.004a40b0
mov dword [edi + 0x2c], 0
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4a4235
call fcn.004a59e0
mov dword [edi + 8], 0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4a4248
call fcn.004a59e0
mov dword [edi + 4], 0
mov eax, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4a425f
push eax
call ebx
mov dword [edi + 0x34], 0
mov eax, dword [edi + 0x30]
test eax, eax
je 0x4a4270
push eax
call ebx
mov dword [edi + 0x30], 0
mov eax, dword [edi + 0x38]
test eax, eax
je 0x4a4281
push eax
call ebx
mov dword [edi + 0x38], 0
cmp dword [edi + 0x3c], 0
je 0x4a42b3
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push 0x3a98
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x3c]
call ebx
mov dword [edi + 0x3c], 0
call esi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esi, [edi + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [edi + 0x20]
cmp ecx, 8
jb 0x4a42fa
mov eax, dword [edi + 0xc]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4a42f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a4326
mov eax, edx
push ecx
push eax
call fcn.004dafca
add esp, 8
xor eax, eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 7
mov word [edi + 0xc], ax
mov dword [edi], vtable.QQDectector2::CDownloadFile.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004e002c
int3
Function at 0x4a5230
Capabilities:
Check http status code
Check internet connectivity via wininet
Create http request
Get http content length
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x543428
push 0x4dd1e0
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x54b144]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
xor edi, edi
mov dword [ebp - 0x58], edi
xor esi, esi
mov dword [ebp - 0x5c], esi
movups xmm0, xmmword [0x53657c]
movups xmmword [ebp - 0x3c], xmm0
movups xmm0, xmmword [0x53658c]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 4
test edx, edx
jne 0x4a52b3
xor eax, eax
jmp 0x4a5408
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 4], esi
push 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test byte [ebp - 0x48], 0x20
je 0x4a52de
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x40]
jmp 0x4a5402
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x4a5308
mov ecx, edx
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a52f0
sub ecx, edi
sar ecx, 1
je 0x4a5308
mov eax, 3
jmp 0x4a530c
xor eax, eax
xor edx, edx
push 0
push 0
push edx
push eax
push str.Mozilla_5.0__compatible__MSIE_8.0__Windows_NT_6.1__QQPCMgr7.0_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x58], edi
test edi, edi
je 0x4a52cd
push 0
push 0x84000100
push 0xffffffffffffffff
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x64]
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [ebp - 0x5c], esi
test esi, esi
je 0x4a52cd
push 0x20a
push 0
lea eax, [ebp - 0x278]
push eax
call fcn.004dcc10
add esp, 0xc
mov dword [ebp - 0x44], 0x208
push 0
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x278]
push 0x2f
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x4c], 0
push 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a52cd
cmp dword [ebp - 0x4c], 0xc8
jne 0x4a52cd
push 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x20000005
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [ebp - 0x40]
test eax, eax
je 0x4a53cd
mov eax, dword [ebp - 0x54]
mov dword [ecx + 0x24], eax
mov eax, 1
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x4a5402
mov dword [ecx + 4], edi
mov dword [ecx + 8], esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 8
Function at 0x4a55a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x54f62c]
push ebx
movzx ebx, word [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, edx
test eax, eax
jne 0x4a5641
mov eax, dword [0x54f128]
test eax, eax
jne 0x4a561b
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004dcc10
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x54f128], eax
push str.WinHttpConnect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x54f62c], eax
test eax, eax
jne 0x4a5641
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
push 0
push ebx
push edi
push esi
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dafe6
mov esp, ebp
pop ebp
ret

Function at 0x4a5660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x54f638]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x4a5701
mov eax, dword [0x54f128]
test eax, eax
jne 0x4a56db
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004dcc10
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x54f128], eax
push str.WinHttpOpenRequest
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x54f638], eax
test eax, eax
jne 0x4a5701
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0
push str.HTTP_1.1
push edi
push 0x5364a0
push esi
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
Function at 0x4a5730
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x54f624]
push esi
mov esi, ecx
test eax, eax
jne 0x4a57c7
mov eax, dword [0x54f128]
test eax, eax
jne 0x4a57a3
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004dcc10
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x54f128], eax
push str.WinHttpSendRequest
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x54f624], eax
test eax, eax
jne 0x4a57c7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004dafe6
mov esp, ebp
pop ebp
ret

Function at 0x4a57f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x214], eax
mov esi, edx
mov eax, dword [0x54f640]
push edi
mov edi, ecx
test eax, eax
jne 0x4a58ab
mov eax, dword [0x54f128]
test eax, eax
jne 0x4a5885
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004dcc10
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x54f128], eax
push str.WinHttpQueryHeaders
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x54f640], eax
test eax, eax
jne 0x4a58ab
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x214]
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
push ebx
push esi
push edi
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dafe6
mov esp, ebp
pop ebp
ret