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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x550144]
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 0x53656c
lea edi, [ebx + 0x28]
mov dword [ebp - 0x424], ebx
mov ecx, edi
mov dword [ebp - 0x41c], eax
call fcn.0044a760
push 0
add ebx, 0x40
push 0x53656c
mov ecx, ebx
call fcn.0044a760
test esi, esi
je 0x4a2ead
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2e95
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
jmp 0x4a2fc1
push 0x412
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.004e02e0
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.004e0b77
mov esi, eax
add esp, 8
test esi, esi
je 0x4a2faa
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 0x4a2f30
sub ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0044a760
call fcn.004a27c0
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 0x4a2f74
sub ecx, edx
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0044a760
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2f97
sub ecx, edx
sar ecx, 1
push ecx
push esi
jmp 0x4a2fbf
push 0
push 0x53656c
mov ecx, edi
call fcn.0044a760
push 0
push 0x53656c
mov ecx, ebx
call fcn.0044a760
push dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x424]
call fcn.004a29f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de51d
mov esp, ebp
pop ebp
ret 8
Function at 0x4a3ab0
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x550144]
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.004e02e0
push edi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004e7b74
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 0x4a3b56
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 0x4a3b30
sub ecx, ebx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0044a760
call fcn.004a27c0
add esp, 0x18
add esi, 0x28
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4a3b63
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 0x4a3b84
cmp dword [esi + 0x14], 8
jb 0x4a3b7d
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.004de51d
mov esp, ebp
pop ebp
ret 8
Function at 0x4a45b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50bbb0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x550144]
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 0x4a4622
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4a460b
mov dword [esi + 0x20], 0
call fcn.004a5df0
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call eax
mov ecx, dword [edi + 0x2c]
call fcn.004a44b0
mov dword [edi + 0x2c], 0
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4a4635
call fcn.004a5df0
mov dword [edi + 8], 0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4a4648
call fcn.004a5df0
mov dword [edi + 4], 0
mov eax, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4a465f
push eax
call ebx
mov dword [edi + 0x34], 0
mov eax, dword [edi + 0x30]
test eax, eax
je 0x4a4670
push eax
call ebx
mov dword [edi + 0x30], 0
mov eax, dword [edi + 0x38]
test eax, eax
je 0x4a4681
push eax
call ebx
mov dword [edi + 0x38], 0
cmp dword [edi + 0x3c], 0
je 0x4a46b3
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 0x4a46fa
mov eax, dword [edi + 0xc]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4a46f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a4726
mov eax, edx
push ecx
push eax
call fcn.004de50a
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.004e36fa
int3
Function at 0x4a5640
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 0x547658
push 0x4e08b0
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x550144]
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 [0x53a73c]
movups xmmword [ebp - 0x3c], xmm0
movups xmm0, xmmword [0x53a74c]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 4
test edx, edx
jne 0x4a56c3
xor eax, eax
jmp 0x4a5818
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 0x4a56ee
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x40]
jmp 0x4a5812
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x4a5718
mov ecx, edx
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5700
sub ecx, edi
sar ecx, 1
je 0x4a5718
mov eax, 3
jmp 0x4a571c
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 0x4a56dd
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 0x4a56dd
push 0x20a
push 0
lea eax, [ebp - 0x278]
push eax
call fcn.004e02e0
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 0x4a56dd
cmp dword [ebp - 0x4c], 0xc8
jne 0x4a56dd
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 0x4a57dd
mov eax, dword [ebp - 0x54]
mov dword [ecx + 0x24], eax
mov eax, 1
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x4a5812
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.004de51d
mov esp, ebp
pop ebp
ret 8
Function at 0x4a59b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x554630]
push ebx
movzx ebx, word [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, edx
test eax, eax
jne 0x4a5a51
mov eax, dword [0x554128]
test eax, eax
jne 0x4a5a2b
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004e02e0
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 [0x554128], eax
push str.WinHttpConnect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x554630], eax
test eax, eax
jne 0x4a5a51
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
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.004de51d
mov esp, ebp
pop ebp
ret

Function at 0x4a5a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x55463c]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x4a5b11
mov eax, dword [0x554128]
test eax, eax
jne 0x4a5aeb
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004e02e0
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 [0x554128], eax
push str.WinHttpOpenRequest
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x55463c], eax
test eax, eax
jne 0x4a5b11
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0
push str.HTTP_1.1
push edi
push 0x53a660
push esi
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de51d
mov esp, ebp
pop ebp
ret
Function at 0x4a5b40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x554628]
push esi
mov esi, ecx
test eax, eax
jne 0x4a5bd7
mov eax, dword [0x554128]
test eax, eax
jne 0x4a5bb3
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004e02e0
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 [0x554128], eax
push str.WinHttpSendRequest
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x554628], eax
test eax, eax
jne 0x4a5bd7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
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.004de51d
mov esp, ebp
pop ebp
ret

Function at 0x4a5c00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x550144]
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 [0x554644]
push edi
mov edi, ecx
test eax, eax
jne 0x4a5cbb
mov eax, dword [0x554128]
test eax, eax
jne 0x4a5c95
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004e02e0
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 [0x554128], eax
push str.WinHttpQueryHeaders
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x554644], eax
test eax, eax
jne 0x4a5cbb
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
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.004de51d
mov esp, ebp
pop ebp
ret
Function at 0x4a5cf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5476b8
push 0x4e08b0
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x550144]
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 edi, edx
mov esi, ecx
mov eax, dword [0x554624]
test eax, eax
jne 0x4a5d9f
mov eax, dword [0x554128]
test eax, eax
jne 0x4a5d8a
push 0x20a
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.004e02e0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x554128], eax
push str.WinHttpReadData
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x554624], eax
test eax, eax
je 0x4a5dc9
mov dword [ebp - 4], 0
push 0
push dword [ebp + 8]
push edi
push esi
call eax
jmp 0x4a5dbc
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0xfffffffe
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.004de51d
mov esp, ebp
pop ebp
ret

Function at 0x4a5df0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x554634]
push esi
mov esi, ecx
test eax, eax
jne 0x4a5e87
mov eax, dword [0x554128]
test eax, eax
jne 0x4a5e63
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004e02e0
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 [0x554128], eax
push str.WinHttpCloseHandle
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x554634], eax
test eax, eax
jne 0x4a5e87
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
push esi
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004de51d
mov esp, ebp
pop ebp
ret
Function at 0x4a5ea0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5476d8
push 0x4e08b0
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x550144]
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 esi, ecx
mov eax, dword [0x554640]
test eax, eax
jne 0x4a5f4d
mov eax, dword [0x554128]
test eax, eax
jne 0x4a5f38
push 0x20a
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.004e02e0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x554128], eax
push str.WinHttpOpen
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x554640], eax
test eax, eax
je 0x4a5f7b
mov dword [ebp - 4], 0
push 0x10000000
push 0
push 0
push 1
push esi
call eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x4a5f7d
xor eax, eax
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.004de51d
mov esp, ebp
pop ebp
ret

Function at 0x4a5fa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x55461c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
push edi
mov edi, ecx
test eax, eax
jne 0x4a6040
mov eax, dword [0x554128]
test eax, eax
jne 0x4a601a
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004e02e0
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 [0x554128], eax
push str.WinHttpSetOption
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x55461c], eax
test eax, eax
jne 0x4a6040
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de51d
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
push ebx
push esi
push edi
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de51d
mov esp, ebp
pop ebp
ret
Function at 0x4a7060
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511bab
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.004a7210
lea ecx, [edi + 4]
call fcn.004a7220
lea ecx, [edi + 0x18]
mov dword [edi], vtable.C7zExtractImpl.0
mov dword [edi + 4], vtable.C7zExtractImpl.1.0
call fcn.0047d1f0
lea ecx, [edi + 0x1c]
mov dword [ebp - 4], 0
call fcn.0047d1f0
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 1
call fcn.004a6f90
mov dword [edi + 8], 0
mov eax, edi
mov dword [edi + 0xc], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x2c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a90a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511f2d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x14]
call fcn.0047d1f0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
push str.crc.dat
call fcn.004a9d00
test eax, eax
jne 0x4a90f8
xor esi, esi
jmp 0x4a9184
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push eax
push 0x20
push str.qqpcmgr_pkg_crc_file
push esi
call ebx
lea eax, [ebp - 0x10]
add edi, 0x24
push eax
mov ecx, edi
call fcn.004aab80
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.004aaca0
push eax
lea ecx, [ebp - 0x10]
call fcn.004a7470
test al, al
je 0x4a9178
lea ecx, [ebp - 0x10]
call fcn.004a74f0
mov ecx, dword [eax]
call fcn.0044a620
push 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push esi
call ebx
lea ecx, [ebp - 0x10]
call fcn.004a7550
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.004aaca0
push eax
lea ecx, [ebp - 0x10]
call fcn.004a7470
test al, al
jne 0x4a9137
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
lea ecx, [ebp - 0x14]
call fcn.0044c080
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aa1a0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51219d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x10]
call fcn.0047d1f0
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0
push esi
push dword [edi]
lea eax, [ebp - 0x10]
push str._s.bad_u
push eax
call fcn.0048cfa0
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0044c0a0
push eax
mov ecx, edi
call fcn.0044c0a0
push eax
call fcn.004e7b47
add esp, 8
test eax, eax
je 0x4aa224
call ebx
cmp eax, 0xb7
jne 0x4aa220
inc esi
cmp esi, 0xa
jl 0x4aa1e0
xor esi, esi
jmp 0x4aa234
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0048d300
mov esi, 1
lea ecx, [ebp - 0x10]
call fcn.0044c080
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ab140
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
push edi
mov dword [esi + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [esi + 0xc]
call fcn.0044c0a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4ab1ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4ab1be
cmp eax, 0x20
je 0x4ab1be
cmp eax, 2
je 0x4ab1ae
cmp eax, 3
je 0x4ab1ae
mov dword [esi + 0x1c], 0x6c
mov eax, dword [esi + 0x1c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x1c], 0x6b
mov eax, dword [esi + 0x1c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x1c], 0x67
mov eax, dword [esi + 0x1c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [esi + 0x14]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
je 0x4ab1f7
push edi
mov dword [esi + 0x1c], 0x64
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x1c]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004dbe00
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push dword [esi + 0x14]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ab234
mov edx, dword [ebp - 4]
cmp edx, dword [esi + 0x14]
jne 0x4ab234
mov ecx, ebx
call fcn.00401400
cmp eax, dword [esi + 0x10]
je 0x4ab23b
mov dword [esi + 0x1c], 0x65
jmp 0x4ab23b
mov dword [esi + 0x1c], 0x6a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4ab24f
push ebx
call fcn.004de518
add esp, 4
mov eax, dword [esi + 0x1c]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret