joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a2f00
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 0x53637c
lea edi, [ebx + 0x28]
mov dword [ebp - 0x424], ebx
mov ecx, edi
mov dword [ebp - 0x41c], eax
call fcn.0044a770
push 0
add ebx, 0x40
push 0x53637c
mov ecx, ebx
call fcn.0044a770
test esi, esi
je 0x4a2f6d
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2f55
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
jmp 0x4a3081
push 0x412
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.004dfec0
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.004e0757
mov esi, eax
add esp, 8
test esi, esi
je 0x4a306a
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 0x4a2ff0
sub ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0044a770
call fcn.004a2880
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 0x4a3034
sub ecx, edx
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0044a770
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a3057
sub ecx, edx
sar ecx, 1
push ecx
push esi
jmp 0x4a307f
push 0
push 0x53637c
mov ecx, edi
call fcn.0044a770
push 0
push 0x53637c
mov ecx, ebx
call fcn.0044a770
push dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x424]
call fcn.004a2ab0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de0fd
mov esp, ebp
pop ebp
ret 8
Function at 0x4a3b70
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.004dfec0
push edi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004e7754
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 0x4a3c16
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 0x4a3bf0
sub ecx, ebx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0044a770
call fcn.004a2880
add esp, 0x18
add esi, 0x28
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4a3c23
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 0x4a3c44
cmp dword [esi + 0x14], 8
jb 0x4a3c3d
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.004de0fd
mov esp, ebp
pop ebp
ret 8
Function at 0x4a4670
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b790
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 0x4a46e2
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4a46cb
mov dword [esi + 0x20], 0
call fcn.004a5ea0
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call eax
mov ecx, dword [edi + 0x2c]
call fcn.004a4570
mov dword [edi + 0x2c], 0
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4a46f5
call fcn.004a5ea0
mov dword [edi + 8], 0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4a4708
call fcn.004a5ea0
mov dword [edi + 4], 0
mov eax, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4a471f
push eax
call ebx
mov dword [edi + 0x34], 0
mov eax, dword [edi + 0x30]
test eax, eax
je 0x4a4730
push eax
call ebx
mov dword [edi + 0x30], 0
mov eax, dword [edi + 0x38]
test eax, eax
je 0x4a4741
push eax
call ebx
mov dword [edi + 0x38], 0
cmp dword [edi + 0x3c], 0
je 0x4a4773
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 0x4a47ba
mov eax, dword [edi + 0xc]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4a47b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a47e6
mov eax, edx
push ecx
push eax
call fcn.004de0ea
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.004e32da
int3
Function at 0x4a56f0
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 0x547458
push 0x4e0490
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 [0x53a53c]
movups xmmword [ebp - 0x3c], xmm0
movups xmm0, xmmword [0x53a54c]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 4
test edx, edx
jne 0x4a5773
xor eax, eax
jmp 0x4a58c8
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 0x4a579e
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x40]
jmp 0x4a58c2
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x4a57c8
mov ecx, edx
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a57b0
sub ecx, edi
sar ecx, 1
je 0x4a57c8
mov eax, 3
jmp 0x4a57cc
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 0x4a578d
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 0x4a578d
push 0x20a
push 0
lea eax, [ebp - 0x278]
push eax
call fcn.004dfec0
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 0x4a578d
cmp dword [ebp - 0x4c], 0xc8
jne 0x4a578d
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 0x4a588d
mov eax, dword [ebp - 0x54]
mov dword [ecx + 0x24], eax
mov eax, 1
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x4a58c2
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.004de0fd
mov esp, ebp
pop ebp
ret 8
Function at 0x4a5a60
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 0x4a5b01
mov eax, dword [0x554128]
test eax, eax
jne 0x4a5adb
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004dfec0
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 0x4a5b01
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
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.004de0fd
mov esp, ebp
pop ebp
ret

Function at 0x4a5b20
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 0x4a5bc1
mov eax, dword [0x554128]
test eax, eax
jne 0x4a5b9b
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004dfec0
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 0x4a5bc1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0
push str.HTTP_1.1
push edi
push 0x53a460
push esi
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
Function at 0x4a5bf0
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 0x4a5c87
mov eax, dword [0x554128]
test eax, eax
jne 0x4a5c63
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004dfec0
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 0x4a5c87
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
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.004de0fd
mov esp, ebp
pop ebp
ret

Function at 0x4a5cb0
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 0x4a5d6b
mov eax, dword [0x554128]
test eax, eax
jne 0x4a5d45
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004dfec0
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 0x4a5d6b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
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.004de0fd
mov esp, ebp
pop ebp
ret
Function at 0x4a5da0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5474b8
push 0x4e0490
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 0x4a5e4f
mov eax, dword [0x554128]
test eax, eax
jne 0x4a5e3a
push 0x20a
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.004dfec0
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 0x4a5e79
mov dword [ebp - 4], 0
push 0
push dword [ebp + 8]
push edi
push esi
call eax
jmp 0x4a5e6c
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.004de0fd
mov esp, ebp
pop ebp
ret

Function at 0x4a5ea0
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 0x4a5f37
mov eax, dword [0x554128]
test eax, eax
jne 0x4a5f13
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004dfec0
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 0x4a5f37
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
push esi
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
Function at 0x4a5f50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5474d8
push 0x4e0490
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 0x4a5ffd
mov eax, dword [0x554128]
test eax, eax
jne 0x4a5fe8
push 0x20a
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.004dfec0
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 0x4a602b
mov dword [ebp - 4], 0
push 0x10000000
push 0
push 0
push 1
push esi
call eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x4a602d
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.004de0fd
mov esp, ebp
pop ebp
ret

Function at 0x4a6050
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 0x4a60f0
mov eax, dword [0x554128]
test eax, eax
jne 0x4a60ca
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004dfec0
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 0x4a60f0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
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.004de0fd
mov esp, ebp
pop ebp
ret
Function at 0x4a7110
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51178b
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.004a72c0
lea ecx, [edi + 4]
call fcn.004a72d0
lea ecx, [edi + 0x18]
mov dword [edi], vtable.C7zExtractImpl.0
mov dword [edi + 4], vtable.C7zExtractImpl.1.0
call fcn.0047d240
lea ecx, [edi + 0x1c]
mov dword [ebp - 4], 0
call fcn.0047d240
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 1
call fcn.004a7040
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 0x4a9150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511b0d
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.0047d240
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.004a9dc0
test eax, eax
jne 0x4a91a8
xor esi, esi
jmp 0x4a9234
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.004aac40
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.004aad60
push eax
lea ecx, [ebp - 0x10]
call fcn.004a7520
test al, al
je 0x4a9228
lea ecx, [ebp - 0x10]
call fcn.004a75a0
mov ecx, dword [eax]
call fcn.0044a630
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.004a7600
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.004aad60
push eax
lea ecx, [ebp - 0x10]
call fcn.004a7520
test al, al
jne 0x4a91e7
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 0x4aa260
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511d7d
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.0047d240
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.0048d020
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0044c0a0
push eax
mov ecx, edi
call fcn.0044c0a0
push eax
call fcn.004e7727
add esp, 8
test eax, eax
je 0x4aa2e4
call ebx
cmp eax, 0xb7
jne 0x4aa2e0
inc esi
cmp esi, 0xa
jl 0x4aa2a0
xor esi, esi
jmp 0x4aa2f4
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0048d380
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 0x4ab200
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 0x4ab28e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4ab27e
cmp eax, 0x20
je 0x4ab27e
cmp eax, 2
je 0x4ab26e
cmp eax, 3
je 0x4ab26e
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 0x4ab2b7
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.004db9e0
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 0x4ab2f4
mov edx, dword [ebp - 4]
cmp edx, dword [esi + 0x14]
jne 0x4ab2f4
mov ecx, ebx
call fcn.00401400
cmp eax, dword [esi + 0x10]
je 0x4ab2fb
mov dword [esi + 0x1c], 0x65
jmp 0x4ab2fb
mov dword [esi + 0x1c], 0x6a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4ab30f
push ebx
call fcn.004de0f8
add esp, 4
mov eax, dword [esi + 0x1c]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret