joyce8/EMBER2024-capa huggingface dataset:
Function at 0x498050
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd40
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0xd38], eax
xor bl, bl
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0xd3c], eax
xor esi, esi
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0xd40], eax
test bl, bl
jne 0x4982ea
push 0x200
lea eax, [ebp - 0x50c]
push 0
push eax
call fcn.004a83c0
add esp, 0xc
lea eax, [ebp - 0x50c]
push esi
push 0x4fa3f0
push 0xff
push eax
call fcn.004999e0
add esp, 0x10
lea eax, [ebp - 0x50c]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4982e0
push 0x800
xorps xmm0, xmm0
mov dword [ebp - 0xd34], 0
lea eax, [ebp - 0xd0c]
movq qword [ebp - 0xd30], xmm0
push 0
push eax
mov dword [ebp - 0xd28], 0
mov dword [ebp - 0xd30], 0
mov dword [ebp - 0xd2c], 0
call fcn.004a83c0
add esp, 0xc
lea eax, [ebp - 0xd34]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd0c]
push eax
push 0xc
lea eax, [ebp - 0xd30]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4982d3
push 0x100
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.004a83c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x100
push 0
push eax
call fcn.004a83c0
add esp, 0xc
lea eax, [ebp - 0x30c]
push 0x100
push 0
push eax
call fcn.004a83c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0xcfc]
lea eax, [ebp - 0xd0c]
push eax
call fcn.00498300
lea eax, [ebp - 0x30c]
push eax
push 0
push dword [ebp - 0xcf8]
lea eax, [ebp - 0xd0c]
push eax
call fcn.00498300
lea eax, [ebp - 0x10c]
push eax
push 1
push dword [ebp - 0xcf4]
lea eax, [ebp - 0xd0c]
push eax
call fcn.00498300
movsx eax, byte [ebp - 0x10c]
push eax
call fcn.004bb490
add esp, 4
test eax, eax
jne 0x49821b
movsx eax, byte [ebp - 0xf9]
push eax
call fcn.004bb490
add esp, 4
test eax, eax
je 0x4982d9
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xd24]
call fcn.004387d0
mov ecx, dword [ebp - 0xd38]
push eax
call fcn.0046f7a0
mov eax, dword [ebp - 0xd10]
cmp eax, 0x10
jb 0x498257
inc eax
lea ecx, [ebp - 0xd24]
push eax
push dword [ebp - 0xd24]
call fcn.00433760
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xd24]
call fcn.004387d0
mov ecx, dword [ebp - 0xd3c]
push eax
call fcn.0046f7a0
mov eax, dword [ebp - 0xd10]
cmp eax, 0x10
jb 0x498293
inc eax
lea ecx, [ebp - 0xd24]
push eax
push dword [ebp - 0xd24]
call fcn.00433760
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0xd24]
call fcn.004387d0
mov ecx, dword [ebp - 0xd40]
push eax
call fcn.0046f7a0
mov eax, dword [ebp - 0xd10]
cmp eax, 0x10
jb 0x4982cf
inc eax
lea ecx, [ebp - 0xd24]
push eax
push dword [ebp - 0xd24]
call fcn.00433760
mov bl, 1
jmp 0x4982d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 1
jl 0x498085
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a578d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x498490
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbba8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x4984d2
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
mov dword [ebp - 4], 0
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x4984f9
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 8], eax
mov byte [ebp - 4], 1
lea edi, [esi + 0x14]
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.004999b0
mov dword [edi], eax
mov byte [ebp - 4], 2
lea ebx, [esi + 0x1c]
mov dword [ebp - 0x14], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.004999b0
mov dword [ebx], eax
mov byte [ebp - 4], 3
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x498559
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 4
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x49857d
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 5
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x4985a1
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 6
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x4985c5
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 7
push eax
call fcn.004af30d
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, esi
mov dword [esi], eax
call fcn.00498a30
mov ecx, esi
call fcn.00498c00
push dword [esi + 0x24]
lea eax, [esi + 4]
mov ecx, esi
push eax
push edi
call fcn.00498e10
push dword [esi + 0x28]
lea eax, [esi + 8]
mov ecx, esi
push eax
push ebx
call fcn.00498e10
push edi
call fcn.004989c0
push ebx
mov dword [esi + 0xc], eax
call fcn.004989c0
mov dword [esi + 0x10], eax
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 0x498670
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7b00
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebx + 0x30]
or edi, 0xffffffff
sub edx, 0x10
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4986b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x2c]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4986cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x28]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4986e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x24]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498703
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x1c]
lea ecx, [ebx + 0x1c]
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00499910
push dword [ebx + 0x1c]
call fcn.004a5788
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x14]
add esp, 4
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00499910
push dword [ebx + 0x14]
call fcn.004a5788
mov edx, dword [ebx + 8]
add esp, 4
sub edx, 0x10
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498757
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 4]
sub edx, 0x10
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x49876f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x49a560
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20a
lea eax, [ebp - 0x430]
mov dword [ebp - 0x854], ecx
push 0
push eax
call fcn.004a83c0
add esp, 0xc
lea eax, [ebp - 0x430]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004a83c0
add esp, 0xc
lea eax, [ebp - 0x640]
push 0x20a
push 0
push eax
call fcn.004a83c0
add esp, 0xc
lea eax, [ebp - 0x850]
push 0x20a
push 0
push eax
call fcn.004a83c0
add esp, 0xc
lea eax, [ebp - 0x850]
lea edx, [ebp - 0x640]
lea ecx, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0048b790
xor edi, edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x85c], edi
add esp, 8
mov dword [ebp - 0xc], ebx
mov esi, 1
mov dword [ebp - 0x858], esi
cmp ax, word [ebp - 0x220]
je 0x49a660
lea eax, [ebp - 0x220]
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x85c]
lea ecx, [ebp - 0x858]
call fcn.00497c10
add esp, 0xc
test al, al
je 0x49a660
mov esi, dword [ebp - 0x858]
mov edi, dword [ebp - 0x85c]
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x854]
test edx, edx
jne 0x49a66e
xor ecx, ecx
jmp 0x49a693
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x854], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49a680
sub ecx, dword [ebp - 0x854]
sar ecx, 1
push ecx
push edx
mov ecx, 0x5154d8
call fcn.0041ccd0
sub esp, 0x14
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x430]
push eax
lea edx, [ebp - 0x640]
call fcn.00499f50
mov esi, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
add esp, 0x28
push fcn.0049a4c0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x854]
push eax
push 5
lea eax, [ebp - 0xc]
mov dword [ebp - 0x854], 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 [0x5153c8]
test eax, eax
je 0x49a712
mov dword [eax + 0x1c], 0x2710
push fcn.0049a4c0
call esi
lea eax, [ebp - 0x854]
mov dword [ebp - 0x854], 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.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x49b060
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x218], eax
push esi
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x49b17f
test edi, edi
je 0x49b17f
test ecx, ecx
je 0x49b17f
push 0x208
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 0
push 0
push eax
call fcn.004a83c0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0xffffffffffffffff
push str.QMConfig
push 0x104
push eax
call fcn.004b67be
push 0xffffffffffffffff
push str.0s
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004bca88
push 0x103
push str.QQDoctorQQDoctorComCfg
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004bca88
add esp, 0x30
lea eax, [ebp - 0x210]
push 0
push eax
push ecx
lea ecx, [ebp - 0x214]
call fcn.0049adb0
test eax, eax
je 0x49b154
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x49b15a
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp - 0x218]
push 3
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x49b154
mov eax, dword [ebp - 0x214]
mov dword [ebx], esi
xor esi, esi
jmp 0x49b15f
mov eax, dword [ebp - 0x214]
mov esi, 0x80004005
test eax, eax
je 0x49b16a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a578d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49c260
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbf23
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x511070]
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], vtable.TiXmlNode.0
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
cmp dword [esi + 0x34], 0x10
jb 0x49c2bf
mov eax, dword [esi + 0x20]
jmp 0x49c2c2
lea eax, [esi + 0x20]
mov byte [eax], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 1
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 eax, [esi + 0x40]
mov dword [esi], vtable.TiXmlElement.0
lea ecx, [eax + 0x14]
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0xffffffff
mov dword [eax + 0xc], 0
mov dword [eax], vtable.TiXmlAttribute.0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x49c333
mov ecx, dword [ecx]
mov byte [ecx], 0
lea ecx, [eax + 0x2c]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x49c34f
mov ecx, dword [ecx]
mov byte [ecx], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x48], eax
mov dword [eax + 0x44], eax
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
cmp byte [edi], 0
jne 0x49c37d
xor ecx, ecx
jmp 0x49c38b
mov ecx, edi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49c382
sub ecx, ebx
push ecx
push edi
lea ecx, [esi + 0x20]
call fcn.00438c00
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 4
Function at 0x4a00e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc296
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp + 8]
mov dword [ebp - 0x14], 7
push eax
mov dword [ebp - 0x18], 0
call fcn.00438df0
push 1
push ecx
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], 0x5c
call fcn.004490a0
cmp eax, 0xffffffff
je 0x4a01e5
push eax
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0044e1d0
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4a01a0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4a0183
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0044e210
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4a01b9
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00433600
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.00438df0
call fcn.004a00e0
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 0x4a020f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4a020f
or esi, 0xffffffff
jmp 0x4a0211
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4a0226
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00433600
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x4a024f
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00433600
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.004a578d
mov esp, ebp
pop ebp
ret

Function at 0x4a03d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004a83c0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4a043d
mov eax, dword [ebp - 0x114]
cmp eax, 6
jb 0x4a042a
jne 0x4a043d
cmp dword [ebp - 0x110], 0
jne 0x4a043d
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x4a0450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc320
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x44], ebx
cmp dword [ebx + 0x84], 0
mov esi, dword [ebp + 8]
je 0x4a0493
xor eax, eax
jmp 0x4a0667
cmp dword [ebx + 4], 0
je 0x4a048c
call fcn.004a03d0
push esi
test eax, eax
je 0x4a0553
lea ecx, [ebp - 0x40]
call fcn.00438600
push 8
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x40]
call fcn.0044e1d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x14]
lea ebx, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
cmp edi, 8
mov eax, dword [ebp - 0x18]
cmovae ecx, esi
mov dword [ebp - 0x48], fcn.004b5ae2
cmovae ebx, esi
lea edx, [ecx + eax*2]
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
cmovae ecx, esi
push ebx
call fcn.00455fc0
add esp, 8
lea ecx, [ebp - 0x28]
mov edx, str.https:__
call fcn.0045a350
test al, al
je 0x4a0523
push 7
push str.http:__
push 8
push 0
lea ecx, [ebp - 0x40]
call fcn.0044c590
mov ebx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
lea ecx, [ebx + 0x10]
cmp ecx, eax
je 0x4a053a
push 0xffffffffffffffff
push 0
push eax
call fcn.00438df0
lea ecx, [ebp - 0x28]
call fcn.004335b0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.004335b0
jmp 0x4a055b
lea ecx, [ebx + 0x10]
call fcn.00439260
cmp dword [ebx + 8], 0
jne 0x4a0572
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
test eax, eax
je 0x4a048c
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebx + 0x80]
test ecx, ecx
je 0x4a059e
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 0x80], 0
call fcn.004a13c0
test eax, eax
je 0x4a05bd
push 0x58
call fcn.004a57cf
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, eax
call fcn.004a2400
jmp 0x4a05f0
push 0x2c
call fcn.004a57cf
add esp, 4
mov dword [ebp - 0x44], eax
xor ecx, ecx
mov dword [eax], vtable.QQDectector2::CWininetFile.0
mov dword [eax + 0x20], 7
mov dword [eax + 0x1c], 0
mov word [eax + 0xc], cx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.STATIC
push 0
mov dword [ebx + 0x80], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x4a12e0
push 0xfffffffffffffffc
push eax
mov dword [ebx + 0x60], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x4c]
mov dword [ebx + 0x84], 1
push eax
push 0
push ebx
push 0x4a0a70
push 0
push 0
mov dword [ebp - 0x4c], 0
call fcn.004af800
mov ecx, eax
add esp, 0x18
mov dword [ebx + 0xc], ecx
test ecx, ecx
jne 0x4a0660
mov dword [ebx + 0x84], eax
xor eax, eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret 4
Function at 0x4a0940
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x412
mov dword [ebp - 0x41c], eax
mov ebx, edx
lea eax, [ebp - 0x418]
mov esi, ecx
push 0
push eax
call fcn.004a83c0
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x2f
push esi
call fcn.004a7ff1
mov edi, eax
add esp, 8
test edi, edi
je 0x4a0a33
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x418]
push str.QMDownload
push eax
call esi
sub esp, 0x18
lea eax, [ebp - 0x418]
mov ecx, esp
push eax
call fcn.00438600
call fcn.004a00e0
add esp, 0x18
lea eax, [ebp - 0x418]
add edi, 2
push edi
push eax
call esi
cmp word [ebp - 0x418], 0
jne 0x4a09e8
xor ecx, ecx
jmp 0x4a0a00
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a09f1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x418]
mov ecx, ebx
push eax
call fcn.00439160
cmp word [edi], 0
jne 0x4a0a1b
xor ecx, ecx
push ecx
push edi
jmp 0x4a0a48
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a0a20
sub ecx, edx
sar ecx, 1
push ecx
push edi
jmp 0x4a0a48
push 0
push 0x4ed230
mov ecx, ebx
call fcn.00439160
push 0
push 0x4ed230
mov ecx, dword [ebp - 0x41c]
call fcn.00439160
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a578d
mov esp, ebp
pop ebp
ret

Function at 0x4a1220
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20a
push 0
push eax
mov esi, ecx
call fcn.004a83c0
push edi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004af454
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 0x4a1299
sub esp, 0x18
lea eax, [ebp - 0x210]
mov ecx, esp
push eax
call fcn.00438600
call fcn.004a00e0
add esp, 0x18
add esi, 0x28
cmp dword [esi + 0x14], 8
jb 0x4a12a6
mov eax, dword [esi]
jmp 0x4a12a8
mov eax, esi
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp + 0xc], 0
mov edi, eax
je 0x4a12c9
cmp dword [esi + 0x14], 8
jb 0x4a12c2
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004a578d
mov esp, ebp
pop ebp
ret 8
Function at 0x4a13c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.004a83c0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4a1449
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x4a141e
mov eax, dword [ebp - 0x118]
cmp eax, 1
jne 0x4a1430
cmp word [ebp - 0xc], ax
jae 0x4a1449
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4a1449
cmp word [ebp - 0xc], 3
jae 0x4a1449
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret