joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c9eb
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
xor ecx, ecx
cmp dword [esi + edi*4 + 4], ecx
jne 0x44ca3c
mov eax, dword [esi + edi*4 + 0xdc]
push ebx
push ecx
push ecx
push ecx
push 6
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x44ca3b
push dword [ebx + 0xa]
lea ecx, [ebx + 0xe]
push dword [ebp + 8]
push 0
push 0
push ecx
push dword [esi]
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push ebx
mov dword [esi + edi*4 + 4], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop ebx
mov eax, dword [esi + edi*4 + 4]
pop edi
pop esi
pop ebp
ret 4

Function at 0x44ca46
Capabilities:
Read file via mapping

Disassembly:
push 0x10
mov eax, 0x5c2b24
call fcn.005429dc
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push ecx
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.0044cbfa
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1c]
call fcn.00455d75
mov edi, dword [ebp - 0x1c]
test eax, eax
je 0x44cb0e
mov esi, ebx
lea ebx, [edi + 4]
mov edi, dword [ebp + 0xc]
cmp dword [ebx], 0
je 0x44caff
xor eax, eax
push eax
push dword [ebx]
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp + 8], eax
test eax, eax
jne 0x44caab
and dword [edi + esi*4], 0
jmp 0x44caff
xor ecx, ecx
push ecx
push ecx
push ecx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x44cacc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x44caa5
mov edx, dword [ebx - 4]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebx]
mov ecx, dword [ebx + 8]
push eax
call fcn.004618b7
add esp, 0xc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [edi + esi*4], 0
je 0x44caf9
push dword [edi + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov dword [edi + esi*4], eax
inc esi
add ebx, 0x10
cmp esi, 0x36
jl 0x44ca88
mov edi, dword [ebp - 0x1c]
xor ebx, ebx
inc ebx
test edi, edi
je 0x44cb46
cmp edi, dword [ebp - 0x18]
je 0x44cb35
lea esi, [edi + 0xc]
cmp dword [esi], 0
je 0x44cb2a
push dword [esi]
call fcn.0054204a
and dword [esi], 0
pop ecx
add esi, 0x10
lea eax, [esi - 0xc]
cmp eax, dword [ebp - 0x18]
jne 0x44cb1a
mov ecx, dword [ebp - 0x14]
sub ecx, edi
and ecx, 0xfffffff0
push ecx
push edi
call fcn.00404013
pop ecx
pop ecx
mov eax, ebx
call fcn.005429aa
ret 8
Function at 0x44fde4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor esi, esi
test edi, edi
je 0x44fe41
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44fe41
push 0x250
lea eax, [ebp - 0x254]
push esi
push eax
call fcn.00548bf0
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x44fe41
mov esi, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00542347
leave
ret

Function at 0x4505d6
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0x10
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x450614
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x78
neg eax
sbb eax, eax
inc eax
jmp 0x45067d
push esi
lea eax, [ebp - 0x34]
xor esi, esi
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x450638
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x45067c
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 1
push eax
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ecx
push eax
push esi
push dword [ebp - 0x28]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x450671
xor esi, esi
inc esi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00542347
leave
ret
Function at 0x450689
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 8], ebx
test esi, esi
jne 0x4506a2
xor eax, eax
jmp 0x450757
cmp byte [0x6337c8], 0
jne 0x4506b7
call fcn.004505d6
mov byte [0x6337c8], 1
push edi
push esi
push 0
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x4506e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push edi
push ebx
push esi
push eax
push 0xc
pop edx
push 0x6e
pop ecx
call fcn.004ca3a0
add esp, 0x14
xor eax, eax
jmp 0x450756
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x45071b
cmp dword [ebp - 4], 0x103
je 0x45071b
push ecx
push 0
push ebx
push esi
push dword [ebp - 4]
push 0xf
pop edx
push 0x6e
pop ecx
call fcn.004ca3a0
add esp, 0x14
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, eax
test ebx, ebx
jne 0x450745
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push ebx
push dword [ebp - 8]
push esi
push eax
push 0xd
pop edx
push 0x6e
pop ecx
call fcn.004ca3a0
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x45075b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x45086c
test esi, esi
je 0x45086c
lea eax, [ebp - 0x4bc]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x450864
xor eax, eax
mov dword [ebp - 0x4c0], eax
cmp word [ebp - 0x4bc], ax
je 0x450864
lea ebx, [ebp - 0x4bc]
mov dword [ebp - 0x4c4], eax
push 0x600570
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x45083a
push 0x600578
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x45083a
mov ax, word [ebx]
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x4c4]
push 0x64
mov ax, word [ebp + eax - 0x4ba]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x45086c
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea eax, [ebp - 0xd4]
push ebx
push eax
push edi
call fcn.00579d77
add esp, 0xc
test eax, eax
je 0x45087d
mov eax, dword [ebp - 0x4c0]
lea ebx, [ebp - 0x4bc]
add eax, 4
mov dword [ebp - 0x4c0], eax
add eax, eax
add ebx, eax
mov dword [ebp - 0x4c4], eax
xor eax, eax
cmp word [ebx], ax
jne 0x4507c0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00542347
leave
ret
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [edi + ebx*2]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
inc eax
jmp 0x45086e
Function at 0x450898
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
push esi
push edi
test ebx, ebx
je 0x450917
push ecx
xor esi, esi
xor eax, eax
push esi
push 0x400
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x450917
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00548bf0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x45090c
mov edx, ebx
lea ecx, [ebp - 0x20c]
call fcn.0045075b
test eax, eax
je 0x45090c
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x450919
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00542347
leave
ret

Function at 0x450f24
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
mov eax, edx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
call fcn.00450928
pop ecx
test eax, eax
je 0x45104d
push edi
mov eax, ebx
inc ebx
mov dword [ebp - 0x14], ebx
cmp eax, 0x12c
jg 0x45104c
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x45102a
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], esi
jb 0x450f78
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp byte [0x6337c8], 0
jne 0x450f8d
call fcn.004505d6
mov byte [0x6337c8], 1
push ebx
push 0
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x450fbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push edi
push dword [ebp - 4]
push ebx
push eax
push 0xc
pop edx
push 0x6e
pop ecx
call fcn.004ca3a0
add esp, 0x14
jmp 0x45102a
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x450ff2
cmp dword [ebp - 8], 0x103
je 0x450ff2
push ecx
push 0
push dword [ebp - 4]
push ebx
push dword [ebp - 8]
push 0xf
pop edx
push 0x6e
pop ecx
call fcn.004ca3a0
add esp, 0x14
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x45101b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push 0
push dword [ebp - 4]
push ebx
push eax
push 0xd
pop edx
push 0x6e
pop ecx
call fcn.004ca3a0
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.00450928
mov ebx, dword [ebp - 0x14]
pop ecx
test eax, eax
jne 0x450f4e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x451e5f
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x451e7f
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x451f29
cmp dword [esi + 0x10], 0
je 0x451f29
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x451ea2
mov eax, dword [esi]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x451eac
mov ecx, dword [edi]
push ebx
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
test ebx, ebx
jne 0x451f24
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x451f24
push str..new
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0044a2d9
add esp, 0xc
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
cmp dword [edi + 0x14], 8
jb 0x451eed
mov edi, dword [edi]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
test ebx, ebx
je 0x451f1c
cmp dword [esi + 0x14], 8
jb 0x451f05
mov esi, dword [esi]
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 5
cmovae eax, dword [ebp - 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, eax
lea ecx, [ebp - 0x1c]
call fcn.00403f80
mov eax, ebx
pop ebx
jmp 0x451f2b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00542347
leave
ret

Function at 0x451fff
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x45201f
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x452030
inc eax
jmp 0x4520cb
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00548bf0
add esp, 0xc
mov edi, esi
cmp dword [esi + 0x14], 8
jb 0x452052
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
push str._s._x.old
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040bb95
add esp, 0x14
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x45207d
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x20c]
push 1
push ecx
push eax
call edi
mov ebx, eax
test ebx, ebx
je 0x4520a4
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
call edi
jmp 0x4520c7
cmp dword [esi + 0x14], 8
jb 0x4520ac
mov esi, dword [esi]
push ecx
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10
pop edx
push 0x79
pop ecx
call fcn.004ca3a0
add esp, 0x14
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00542347
leave
ret
Function at 0x4527e7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x208
mov esi, ecx
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x210], esi
push eax
mov dword [ebp - 0x210], esi
call fcn.00548bf0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x45284c
push str.TencentQQBrowser
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00567315
add esp, 0xc
and dword [esi], 0
xor eax, eax
and dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00409240
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00542347
leave
ret

Function at 0x452e46
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], 0x44
push 0
push eax
mov ebx, edx
mov esi, ecx
call fcn.00548bf0
xor eax, eax
lea edi, [ebp - 0x10]
mov word [ebp - 0x24], ax
add esp, 0xc
stosd dword es:[edi], eax
xor ecx, ecx
inc ecx
mov dword [ebp - 0x28], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
xor eax, eax
push eax
push eax
push eax
push ecx
push eax
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x452ebd
test ebx, ebx
je 0x452ea8
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
inc eax
jmp 0x452ebf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45518f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x62a3b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x455277
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x455277
push 0x50
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00548bf0
movzx eax, byte [ebp - 0x25d]
push eax
movzx eax, byte [ebp - 0x25e]
push eax
movzx eax, byte [ebp - 0x25f]
push eax
movzx eax, byte [ebp - 0x260]
push eax
movzx eax, byte [ebp - 0x261]
push eax
movzx eax, byte [ebp - 0x262]
push eax
movzx eax, byte [ebp - 0x263]
push eax
movzx eax, byte [ebp - 0x264]
push eax
movzx eax, word [ebp - 0x266]
push eax
movzx eax, word [ebp - 0x268]
push eax
push dword [ebp - 0x26c]
lea eax, [ebp - 0x54]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push 0x28
push eax
call fcn.004550b6
add esp, 0x44
lea eax, [ebp - 0x25c]
push 0x208
push 0
push eax
call fcn.00548bf0
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor eax, eax
inc eax
jmp 0x455279
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00542347
leave
ret
Function at 0x456125
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 0x14], 0
and dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x456ab6
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x62a3b4]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor esi, esi
mov dword [esp + 0x20], ecx
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x456c7d
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x456c76
cmp edi, 0x400000
jae 0x456b5d
push edi
call fcn.00542041
pop ecx
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
push ecx
push edi
push eax
push ebx
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x456b51
cmp dword [esp + 0x14], edi
jne 0x456b51
push dword [esp + 0x20]
push edi
push esi
call fcn.00456a14
add esp, 0xc
push esi
call fcn.0054204a
pop ecx
jmp 0x456c76
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, eax
mov dword [esp + 0x24], edx
cmp edx, 0xffffffff
je 0x456c7d
mov eax, edi
lea ecx, [esp + 0x28]
shr eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, esi
mov dword [esp + 0x10], eax
call fcn.00456125
mov dword [esp + 0x14], esi
cmp dword [esp + 0x1c], eax
jbe 0x456bf2
push 0x10000
push eax
push esi
push 4
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x18], eax
test eax, eax
je 0x456c6c
push 0x10000
mov edx, eax
lea ecx, [esp + 0x2c]
call fcn.00456149
pop ecx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 0x10000
mov edx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x1c]
jb 0x456b9b
test di, di
je 0x456c29
push esi
push dword [esp + 0x14]
push esi
push 4
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x18], eax
test eax, eax
je 0x456c6c
sub edi, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push edi
mov edx, eax
call fcn.00456149
pop ecx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
lea edi, [esp + 0x84]
stosd dword es:[edi], eax
lea edx, [esp + 0x28]
lea ecx, [esp + 0x84]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004561e5
mov edi, dword [esp + 0x20]
movzx eax, byte [esp + esi + 0x84]
push eax
push 0x600a50
push 3
push edi
call fcn.0040bb95
add esp, 0x10
add edi, 4
inc esi
cmp esi, 0x10
jl 0x456c4a
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00542347
mov esp, ebp
pop ebp
ret
Function at 0x456dfe
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get program files directory

Disassembly:
push 0x270
mov eax, 0x5c36f6
call fcn.00542a0f
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x264], edi
xor esi, esi
mov dword [ebp - 0x27c], edi
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x268], esi
mov dword [ebp - 4], 1
call fcn.0040b03f
lea eax, [ebp - 0x278]
mov dword [ebp - 0x274], 1
push eax
push 0xf023f
push esi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x20019
push str.SOFTWARETencentQQ2009
push dword [ebp - 0x278]
lea ecx, [ebp - 0x270]
call fcn.0044a590
test eax, eax
jne 0x456f12
mov eax, 0x15e
mov ecx, edi
push eax
mov dword [ebp - 0x264], eax
call fcn.0040c261
push 0x15e
mov ecx, edi
mov esi, eax
call fcn.0040c2d2
lea eax, [ebp - 0x264]
push eax
push esi
push str.Install
lea ecx, [ebp - 0x270]
call fcn.0044a4ca
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040c2fd
mov eax, dword [edi]
xor esi, esi
cmp dword [eax - 0xc], esi
je 0x456f12
push 1
lea eax, [ebp - 0x264]
mov ecx, edi
push eax
call fcn.0041e95d
mov edx, 0x5fb124
mov ecx, dword [eax]
call fcn.0041f004
mov ecx, dword [ebp - 0x264]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.0040c134
test esi, esi
je 0x456f10
push 0x5fb124
mov ecx, edi
call fcn.0041f6b6
xor esi, esi
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jne 0x456f79
push 0x104
mov ecx, edi
call fcn.0040c261
push 0x104
mov ecx, edi
mov esi, eax
call fcn.0040c2d2
push esi
xor esi, esi
push esi
push esi
push 0x26
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040c2fd
push str.TencentQQ_
mov ecx, edi
call fcn.0041f6b6
lea eax, [ebp - 0x260]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
test eax, eax
je 0x456f72
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x456f79
mov ecx, edi
call fcn.0041f71c
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jne 0x456fb4
push ebx
mov ecx, edi
call fcn.0041f8db
push 0x5fb124
mov ecx, edi
call fcn.0041f6b6
push str..._QQ.exe
mov ecx, edi
call fcn.0041f6b6
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x456fb4
mov ecx, edi
call fcn.0041f71c
cmp dword [ebp - 0x270], 0
je 0x456fc9
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.005429be
ret