joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403bdc
Capabilities:
Check if file exists

Disassembly:
push 0x3c
mov eax, 0x41cad2
call fcn.00417909
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00403e16
mov esi, eax
test esi, esi
je 0x403cb0
cmp dword [ebp - 0x18], 0
je 0x403cb0
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
call fcn.00408825
push eax
mov byte [ebp - 4], 1
call fcn.00402eec
mov ecx, eax
add ecx, 0x10
call dword [0x41d254]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x403c4a
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
test esi, esi
jne 0x403c67
call fcn.0041ab80
test al, al
je 0x403ccd
push str._IsCallerlegal__PathFileExists_failed
jmp 0x403cbe
cmp dword [ebp - 0x14], 8
mov edi, dword [ebp - 0x28]
jae 0x403c73
lea edi, [ebp - 0x28]
mov eax, dword [0x42d1c0]
xor esi, esi
test eax, eax
jne 0x403c92
push str.QMVerifyTXFileSignT
call fcn.0040ee70
test eax, eax
pop ecx
mov dword [0x42d1c0], eax
je 0x403c97
push edi
call eax
mov esi, eax
test esi, esi
jne 0x403cab
call fcn.0041ab80
test al, al
je 0x403ccd
push str._IsCallerlegal__QMVerifyTXFileSignT_return_false
jmp 0x403cbe
xor esi, esi
inc esi
jmp 0x403ccd
call fcn.0041ab80
test al, al
je 0x403ccd
push str._IsCallerlegal__GetParentFilePath_failed
push 0xb
push str.D:jenkins_Trunkworkspace10.6Patch_SourceJobqqpcmgr_projBlueRayFTSafeAppQMBlueScreenFixerQMBlueScreenFixer.cpp
call fcn.0041ad40
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
call fcn.00417953
ret

Function at 0x403ce2
Capabilities:
Check mutex on windows

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.GlobalE5FF4815_EBB0_4ef0_97D7_0D4F67BD4CD5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403d1c
mov eax, dword [esi]
test eax, eax
je 0x403d18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x403d1f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x42c4fc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403d79
cmp dword [ebp - 0x114], 6
ja 0x403d77
jne 0x403d79
cmp dword [ebp - 0x110], 3
jb 0x403d79
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416e92
leave
ret
Function at 0x40408e
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, eax
xor eax, eax
cmp dword [esi + 0x14], eax
je 0x4040d3
push esi
lea ecx, [edi + 4]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
cmp dword [esi + 0x18], 8
jb 0x4040ad
mov esi, dword [esi + 4]
jmp 0x4040b0
add esi, 4
push esi
mov esi, 0xffff
push esi
push str.ItemCount
push str.RestoreFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, esi
jne 0x4040cd
xor eax, eax
mov dword [edi + 0x20], eax
xor eax, eax
inc eax
pop esi
ret
Function at 0x405aa2
Capabilities:
Check if file exists

Disassembly:
push 0x2c
mov eax, 0x41ca59
call fcn.00417909
lea ecx, [ebp - 0x2c]
xor esi, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], esi
mov byte [ebp - 0x30], 0
call fcn.0040a088
mov ebx, eax
cmp ebx, 1
jne 0x405ae4
lea eax, [ebp - 0x30]
push eax
call fcn.0040a1d8
cmp eax, esi
pop ecx
mov dword [ebp - 0x34], eax
je 0x405bb4
call fcn.00405c79
lea edi, [ebp - 0x2c]
call fcn.00405bc9
mov esi, eax
test esi, esi
je 0x405ba1
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x405b07
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405b1a
xor esi, esi
inc esi
jmp 0x405ba1
cmp dword [ebp - 0x14], 8
mov esi, dword [ebp - 0x28]
jae 0x405b26
lea esi, [ebp - 0x28]
call fcn.0040ec90
test eax, eax
jge 0x405b50
call fcn.0041ab80
test al, al
je 0x405b4c
push str._ClearBackupFile__FilePath_is_invalid_
push 0x18
push str.D:jenkins_Trunkworkspace10.6Patch_SourceJobqqpcmgr_projBlueRayFTSafeAppQMBlueScreenFixerQMOperateFile.cpp
call fcn.0041af50
add esp, 0xc
xor esi, esi
jmp 0x405ba1
cmp dword [ebp - 0x14], 8
mov edi, dword [ebp - 0x28]
jae 0x405b5c
lea edi, [ebp - 0x28]
mov eax, dword [0x42d1cc]
xor esi, esi
test eax, eax
jne 0x405b7b
push str.QMDeleteDirWithSelf
call fcn.0040ee70
test eax, eax
pop ecx
mov dword [0x42d1cc], eax
je 0x405b80
push edi
call eax
mov esi, eax
test esi, esi
jne 0x405ba1
call fcn.0041ab80
test al, al
je 0x405ba1
push str._ClearBackupFile__QMDeleteDirWithSelf_failed_
push 0x18
push str.D:jenkins_Trunkworkspace10.6Patch_SourceJobqqpcmgr_projBlueRayFTSafeAppQMBlueScreenFixerQMOperateFile.cpp
call fcn.0041af50
add esp, 0xc
test ebx, ebx
je 0x405bb4
cmp dword [ebp - 0x34], 0
je 0x405bb4
push dword [ebp - 0x30]
call fcn.0040a210
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
call fcn.00417953
ret
Function at 0x405bc9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42c4fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
xor ebx, ebx
mov word [ebp - 0x20c], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x405c69
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push esi
mov esi, 0x4221f4
push esi
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x405c69
push ecx
inc eax
push eax
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::erase_unsigned_int__unsigned_int_]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push str.QMBackup
mov ecx, edi
call dword [0x41d224]
push esi
mov ecx, edi
call dword [0x41d224]
inc ebx
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00416e92
leave
ret
Function at 0x405c79
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x41c3b9
call fcn.00417909
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
and dword [ebp - 4], 0
lea ebx, [ebp - 0x2c]
call fcn.0040a0c8
mov esi, eax
test esi, esi
je 0x405cd7
cmp dword [ebp - 0x18], 0
je 0x405cd7
push 0x4221f4
mov ecx, ebx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
push str.TSBSFixBakFileList.xml
mov ecx, ebx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x405ccc
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
jmp 0x405cf4
call fcn.0041ab80
test al, al
je 0x405cf4
push str._InitOperateFile__QMGetInstallDirEx_return_failed
push 0xb
push str.D:jenkins_Trunkworkspace10.6Patch_SourceJobqqpcmgr_projBlueRayFTSafeAppQMBlueScreenFixerQMOperateFile.cpp
call fcn.0041ad40
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
call fcn.00417953
ret
Function at 0x407514
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
xor esi, esi
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push esi
push eax
call sub.MSVCR80.dll_memset
xor edi, edi
inc edi
add esp, 0xc
cmp dword [ebx + 0x18], 8
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x28], si
jb 0x407557
mov ebx, dword [ebx + 4]
jmp 0x40755a
add ebx, 4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push edi
push esi
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
cmp ebx, esi
je 0x40758a
push 0xea60
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40758a
mov ebx, edi
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40759d
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0xc], esi
je 0x4075a7
push dword [ebp - 0xc]
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4078fe
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x42c4fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x21c], eax
xor eax, eax
push 0x206
push eax
mov dword [ebp - 0x214], eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ebx, [ebp - 0x20c]
mov eax, ebx
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
test esi, esi
je 0x407a01
cmp esi, edi
jae 0x407a01
and dword [ebp - 0x210], 0
shr esi, 2
test esi, esi
mov dword [ebp - 0x218], esi
mov edi, str.D:jenkins_Trunkworkspace10.6Patch_SourceJobqqpcmgr_projBlueRayFTSafeAppQMBlueScreenFixerQMOperateSystemOpt.cpp
jle 0x4079c1
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
call fcn.0041ab80
test al, al
je 0x4079a5
push esi
push ebx
push str._GetBootDrive__Driver:_s__DriveType:_d
push 0xb
push edi
call fcn.0041ad40
add esp, 0x14
cmp esi, 3
je 0x4079c1
add ebx, 8
inc dword [ebp - 0x210]
mov eax, dword [ebp - 0x210]
cmp eax, dword [ebp - 0x218]
jl 0x407981
push ebx
call dword [sym.imp.MSVCR80.dll_wcslen]
test eax, eax
pop ecx
jne 0x4079e8
call fcn.0041ab80
test al, al
je 0x407a26
push str._GetBootDrive__no_fixed_drive
push 0xb
push edi
call fcn.0041ad40
add esp, 0xc
jmp 0x407a26
mov ecx, dword [ebp - 0x21c]
push ebx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov dword [ebp - 0x214], 1
jmp 0x407a26
call fcn.0041ab80
test al, al
je 0x407a26
lea eax, [ebp - 0x20c]
push eax
push esi
push str._GetBootDrive__GetLogicalDriveStrings_return_failed_dwLen_d__wsDrives_s
push 0xb
push str.D:jenkins_Trunkworkspace10.6Patch_SourceJobqqpcmgr_projBlueRayFTSafeAppQMBlueScreenFixerQMOperateSystemOpt.cpp
call fcn.0041ad40
add esp, 0x14
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416e92
leave
ret 4
Function at 0x40a0c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x42c4fc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
push 0x400
lea eax, [ebp - 0x612]
push edi
push eax
mov dword [ebp - 0x61c], edi
mov dword [ebp - 0x618], edi
mov word [ebp - 0x614], di
call sub.MSVCR80.dll_memset
push 0x208
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 0x620], 0x200
mov word [ebp - 0x210], di
call sub.MSVCR80.dll_memset
add esp, 0x18
mov ecx, ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::clear_void_]
call fcn.0040a088
neg eax
sbb eax, eax
and eax, 0x200
lea ecx, [ebp - 0x618]
push ecx
inc eax
push eax
push edi
push str.SOFTWARETencentQQPCMgr
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a1c5
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x614]
push eax
push edi
push edi
push str.InstallDir
push dword [ebp - 0x618]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a1b9
push 0xffffffffffffffff
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x210]
push 0x105
push eax
mov dword [ebp - 0x61c], 1
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push dword [ebp - 0x618]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x61c]
xor ecx, ebp
pop edi
call fcn.00416e92
leave
ret

Function at 0x40a4bb
Capabilities:
Delete file

Disassembly:
cmp dword [0x42c834], 0
je 0x40a50e
push esi
push edi
mov edi, 0x103
push edi
mov esi, 0x42c838
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strrchr]
test eax, eax
pop ecx
pop ecx
je 0x40a50c
push esi
mov byte [eax + 1], 0
call sub.MSVCR80.dll_strlen
sub edi, eax
push edi
push str.TSVulEngine.log
push esi
call dword [sym.imp.MSVCR80.dll_strncat]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
ret
Function at 0x40a6e5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 1
push esi
push str.SOFTWARETencentQQPCMgrVulEngine
push 0x80000002
xor ebx, ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a747
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.DoLog
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a747
cmp dword [ebp - 8], 4
jne 0x40a747
cmp dword [ebp - 0xc], esi
setne bl
cmp dword [ebp - 4], esi
je 0x40a755
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x40ac60
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
push 0x24
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
call sub.MSVCR80.dll_memset
add esp, 0xc
push str.IsWow64Process
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, str.kernel32.dll
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
mov dword [ebp - 0xc], eax
je 0x40acd0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0xc]
test eax, eax
je 0x40acd0
cmp dword [ebp - 4], 0
je 0x40acd0
push str.GetNativeSystemInfo
push ebx
call esi
push eax
call edi
test eax, eax
je 0x40ace0
push dword [ebp + 8]
call eax
jmp 0x40acd9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40b240
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push str.GlobalFA6FBBB1_8C8E_43b1_B8EC_35573A94C231
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x40b267
xor eax, eax
jmp 0x40b2b4
push 0
push 0
push 0
push 6
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x40b2a3
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax], 0
xor eax, eax
jmp 0x40b2b4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx + 8], eax
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40b460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x30], 0
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x31], 0
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
push str.SOFTWARETencentQQPCMgr
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40b4fc
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push str.EnableLogToView
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40b4f2
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x40b4e3
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x30], 1
mov edx, dword [ebp - 0xc]
and edx, 2
je 0x40b4f2
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x31], 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x40b530
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov dword [ebp - 0x214], ecx
mov eax, dword [ebp - 0x214]
mov dword [eax], 0
mov dword [ebp - 4], 0
mov word [ebp - 0x210], 0
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x103
lea edx, [ebp - 0x210]
push edx
push str._APPDATA_TencentQQPCMgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40b5a1
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40b5e7
lea ecx, [ebp - 0x210]
push ecx
push 0x103
mov edx, dword [ebp - 0x214]
add edx, 4
push edx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
push 0xffffffffffffffff
push str.ErrLogFile.log
push 0x104
mov eax, dword [ebp - 0x214]
add eax, 4
push eax
call dword [sym.imp.MSVCR80.dll_wcsncat_s]
add esp, 0x10
jmp 0x40b609
push 0x103
push str.C:ErrLogFile.log
push 0x103
mov ecx, dword [ebp - 0x214]
add ecx, 4
push ecx
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
add esp, 0x10
mov eax, dword [ebp - 0x214]
mov esp, ebp
pop ebp
ret
Function at 0x40b620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov word [ebp - 0x1b], ax
mov byte [ebp - 0x19], al
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 2]
push edx
movzx eax, word [ebp - 4]
push eax
movzx ecx, word [ebp - 6]
push ecx
movzx edx, word [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__4d___02d:_02d:_02d._03d_
push 0xffffffffffffffff
push 0x20
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR80.dll__snprintf_s]
add esp, 0x24
mov dword [ebp - 0x18], eax
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret

Function at 0x40b6b0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x4c], ecx
cmp dword [ebp + 8], 0
jne 0x40b6c4
jmp 0x40b7c6
mov eax, dword [ebp - 0x4c]
cmp dword [eax], 0
jne 0x40b701
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
mov ecx, dword [ebp - 0x4c]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x4c]
mov dword [edx], eax
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
cmp dword [eax], 0
setne cl
test ecx, ecx
jne 0x40b701
jmp 0x40b7c6
mov dword [ebp - 8], 0
push 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x40b728
cmp dword [ebp - 8], 0x2000000
jbe 0x40b72d
jmp 0x40b7c6
mov dword [ebp - 0x10], 0
push 2
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x4c]
call fcn.0040b620
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
add edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x50]
mov cl, byte [eax]
mov byte [ebp - 0x55], cl
add dword [ebp - 0x50], 1
cmp byte [ebp - 0x55], 0
jne 0x40b766
mov edx, dword [ebp - 0x50]
sub edx, dword [ebp - 0x54]
mov dword [ebp - 0x5c], edx
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dx, word [0x425bd4]
mov word [ebp - 0xc], dx
mov al, byte [0x425bd6]
mov byte [ebp - 0xa], al
push 0
lea ecx, [ebp - 4]
push ecx
push 2
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret 4