joyce8/EMBER2024-capa huggingface dataset:
Function at 0x65140280
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
lea eax, [esp]
push eax
push 1
push 0
push ecx
push SysStringLen
mov dword [esp + 0x18], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x651402de
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
lea edx, [esp + 4]
push edx
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x651402de
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 0xc
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 0xc
ret

Function at 0x651402f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
lea eax, [esp]
push eax
push 1
push 0
push ecx
push SysStringLen
mov dword [esp + 0x18], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6514034c
mov eax, dword [esp + 0x18]
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6514034c
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 0xc
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 0xc
ret
Function at 0x65140e10
Capabilities:
Get file version info
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65151ee0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6516c6d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [edi]
mov edx, dword [eax + 4]
call edx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x65140f88
push esi
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
mov dword [ebp - 0x18], eax
je 0x65140f88
mov ecx, dword [ebp - 0x20]
push eax
push esi
push ecx
push ebx
mov dword [ebp - 4], 0
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x65140e97
push 0x65164c40
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], eax
call sub.MSVCR80.dll__CxxThrowException
mov esi, dword [ebp - 0x18]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0x6515e110
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x65140ec9
cmp dword [ebp + 8], 0x34
jne 0x65140ec9
mov edx, dword [ebp - 0x14]
push 0x34
push edx
lea eax, [edi + 4]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x14]
push edx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call esi
mov ecx, dword [ebp - 0x14]
movzx edx, ax
mov eax, ecx
lea esp, [esp]
mov ebx, dword [ebp + 8]
add ebx, ecx
cmp eax, ebx
jae 0x65140f03
cmp word [eax], dx
je 0x65140f51
add eax, 4
jmp 0x65140ef0
push 1
lea eax, [ebp - 0x1c]
push eax
call esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
push eax
push ecx
push edx
mov ecx, edi
call fcn.65140da0
test eax, eax
jne 0x65140f51
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x1c]
push eax
push 0
push ecx
push edx
mov ecx, edi
call fcn.65140da0
test eax, eax
jne 0x65140f51
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x1c]
push eax
push 9
push ecx
push edx
mov ecx, edi
call fcn.65140da0
mov eax, dword [ebp - 0x18]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
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
xor eax, eax
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 0x65143090
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
mov eax, dword [0x6516c6d0]
xor eax, esp
mov dword [esp + 0x118], eax
push ebp
push esi
mov esi, dword [esp + 0x128]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push SysStringLen
mov ebp, 3
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
call edi
test eax, eax
jne 0x65143225
push esi
push str._sConnection
lea ecx, [esp + 0x28]
push 0x103
push ecx
call fcn.65142d00
mov ecx, dword [esp + 0x2c]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
lea eax, [esp + 0x2c]
push eax
push ecx
call edi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x6514321e
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, 4
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.MediaSubType
push edx
call esi
test eax, eax
jne 0x65143217
push 0x104
push eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x103
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push str.PnpInstanceID
push ecx
call esi
test eax, eax
jne 0x65143217
mov ebp, 1
cmp dword [esp + 0xc], ebp
jne 0x65143207
mov esi, dword [sym.imp.MSVCR80.dll_strncmp]
push 3
lea edx, [esp + 0x24]
push 0x6515e2ac
push edx
call esi
add esp, 0xc
test eax, eax
jne 0x651431e5
xor ebp, ebp
jmp 0x65143217
cmp dword [esp + 0xc], ebp
jne 0x65143207
push 3
lea eax, [esp + 0x24]
push 0x6515e330
push eax
call esi
add esp, 0xc
test eax, eax
je 0x65143207
mov ebp, 2
jmp 0x65143217
xor ecx, ecx
cmp dword [esp + 0xc], 2
setne cl
lea ecx, [ecx + ecx + 1]
mov ebp, ecx
mov edx, dword [esp + 0x10]
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
call edi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.6514af96
add esp, 0x11c
ret
Function at 0x65143760
Capabilities:
Query service configuration

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebp, ebp
cmp esi, ebp
je 0x6514385d
mov ebx, dword [esp + 0x18]
cmp dword [ebx], ebp
jne 0x6514385d
push edi
push 0x80000000
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x10], edi
jne 0x651437a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [esi], eax
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x18]
push 0x80000000
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebp
jne 0x651437dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x20]
push edi
mov dword [ecx], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea edx, [esp + 0x1c]
push edx
push ebp
push ebp
push esi
mov dword [esp + 0x2c], ebp
call edi
mov ebp, eax
test ebp, ebp
jne 0x65143841
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x65143820
mov eax, dword [esp + 0x1c]
push eax
call fcn.6514af0c
mov edx, dword [esp + 0x20]
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
push esi
mov dword [ebx], eax
call edi
mov ebp, eax
test ebp, ebp
jne 0x65143841
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebx]
test eax, eax
je 0x65143841
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebx], ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret 0xc
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc

Function at 0x65143930
Capabilities:
Check os version

Disassembly:
sub esp, 0x108
mov eax, dword [0x6516c6d0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [esi + 4], 0
jne 0x65143a15
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jb 0x65143995
push 0x6515e4b8
push str..Global_s
push 0x104
lea ecx, [esp + 0x10]
push ecx
jmp 0x651439a9
push str.TSKSP
push str.._s
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.MSVCR80.dll__snprintf]
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x651439f9
push eax
mov dword [esi], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.6514af96
add esp, 0x108
ret 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 5
je 0x65143a0e
call edi
cmp eax, 0x1f
jne 0x65143a14
mov dword [esi], 1
pop edi
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.6514af96
add esp, 0x108
ret 4
Function at 0x65143e20
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x65152289
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6516c6d0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov edi, dword [esp + 0x58]
xor ebp, ebp
cmp edi, ebp
jne 0x65143e58
xor eax, eax
jmp 0x65143fb2
mov ebx, dword [esp + 0x60]
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
push ecx
mov ecx, ebx
call fcn.651452d0
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x5c]
cmp eax, ebp
jle 0x65143fad
mov dword [esp + 0x58], eax
mov edi, edi
mov edx, dword [edi + 4]
mov esi, dword [edi]
xor eax, eax
sub edx, 1
mov ecx, eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
je 0x65143ee2
sub edx, 1
je 0x65143ece
sub edx, 2
jne 0x65143f04
push 4
call fcn.6514af0c
mov ecx, 4
mov dword [esp + 0x18], ecx
jmp 0x65143ef9
push 0x104
call fcn.6514af0c
mov dword [esp + 0x18], 2
jmp 0x65143ef4
push 0x104
call fcn.6514af0c
mov dword [esp + 0x18], 1
mov ecx, 0x104
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
push ecx
push ebp
push eax
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov dword [esp + 0x28], edx
lea edx, [esp + 0x1c]
push edx
push ebp
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebp
je 0x65143f50
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x65143f50
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x18], ebp
push esi
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
mov dword [esp + 0x50], ebp
call fcn.651459a0
mov edx, dword [esp + 0x24]
mov dword [eax + 0x10], edx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], ecx
mov edx, dword [esp + 0x1c]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x28]
mov dword [eax], edx
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
add edi, 8
sub dword [esp + 0x58], 1
jne 0x65143e90
mov eax, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x10
Function at 0x65145b60
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x31c
mov eax, dword [0x6516c6d0]
xor eax, esp
mov dword [esp + 0x318], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x32c]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x1d]
push ebx
push eax
mov dword [esp + 0x1c], edi
xor esi, esi
mov byte [esp + 0x24], bl
call sub.MSVCR80.dll_memset
push 0x103
lea ecx, [esp + 0x231]
push ebx
push ecx
mov byte [esp + 0x238], bl
call sub.MSVCR80.dll_memset
push 0x103
lea edx, [esp + 0x139]
push ebx
push edx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x140], bl
call sub.MSVCR80.dll_memset
add esp, 0x24
push 1
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x65145d11
lea eax, [esp + 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x65145d11
push ebp
push 0x104
lea ecx, [esp + 0x20]
push edi
push ecx
call dword [sym.imp.MSVCR80.dll__mbsnbcpy]
mov ebp, dword [sym.imp.MSVCR80.dll__mbsstr]
lea edx, [esp + 0x28]
push 0x6515e4f0
push edx
call ebp
add esp, 0x14
cmp eax, ebx
jne 0x65145c3a
mov dword [esp + 0x10], 1
lea eax, [esp + 0x1c]
jmp 0x65145c53
add eax, 2
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
cmp dl, bl
jne 0x65145c42
sub ecx, esi
je 0x65145d0a
add eax, 1
push 0x6515e4f4
push eax
call ebp
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x65145cf1
mov edi, dword [sym.imp.MSVCR80.dll__snprintf]
cmp dword [esp + 0x10], ebx
lea eax, [esp + 0x1c]
mov byte [esi], bl
push eax
je 0x65145c9f
lea ecx, [esp + 0x228]
push ecx
push 0x6515e4f8
lea edx, [esp + 0x12c]
push 0x104
push edx
call edi
add esp, 0x14
jmp 0x65145cb6
push 0x6515e500
lea ecx, [esp + 0x128]
push 0x104
push ecx
call edi
add esp, 0x10
push ebx
lea edx, [esp + 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x65145cd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x65145d2b
mov byte [esi], 0x5c
push 0x6515e504
add esi, 1
push esi
call ebp
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x65145c71
mov edi, dword [esp + 0x14]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x65145d0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x65145d2b
mov eax, 1
jmp 0x65145d2d
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.6514af96
add esp, 0x31c
ret
xor eax, eax
mov ecx, dword [esp + 0x328]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.6514af96
add esp, 0x31c
ret
Function at 0x65145e10
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x6516c6d0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push edi
push 0x103
xor edi, edi
lea eax, [esp + 0xd]
push edi
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x103
lea ecx, [esp + 0xc]
push ecx
push str._APPDATA_TencentQQDoctor_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edx, [esp + 8]
push edx
call fcn.65145b60
add esp, 4
test eax, eax
je 0x65145e9b
push 0x103
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.MSVCR80.dll__mbsnbcpy]
add esp, 0xc
lea eax, [edi + 1]
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.6514af96
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.6514af96
add esp, 0x108
ret

Function at 0x65145ec0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x6516c6d0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push edi
push 0x103
xor edi, edi
lea eax, [esp + 0xd]
push edi
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x103
lea ecx, [esp + 0xc]
push ecx
push 0x6515e524
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edx, [esp + 8]
push edx
call fcn.65145b60
add esp, 4
test eax, eax
je 0x65145f4b
push 0x103
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.MSVCR80.dll__mbsnbcpy]
add esp, 0xc
lea eax, [edi + 1]
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.6514af96
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.6514af96
add esp, 0x108
ret

Function at 0x65145fb0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x6516c6d0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
mov edi, dword [esp + 0x114]
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov esi, 0x80004005
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push str.Global0866A22D_7233_42e1_9EFB_6EDE8A9AC6ED
push 0
call fcn.65145d50
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [edi + 0xc], eax
jne 0x65146010
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x6514606e
lea ecx, [esp + 8]
push ebx
push ecx
call fcn.65145e10
mov ebx, dword [sym.imp.MSVCR80.dll__mbsnbcat]
push 0x104
lea edx, [esp + 0x14]
push str.QQDRCfg.dat
push edx
call ebx
push 0x104
lea esi, [edi + 0x14]
push 0
push esi
call sub.MSVCR80.dll_memset
push esi
call fcn.65145ec0
add esp, 0x20
test eax, eax
je 0x6514605f
push 0x104
push 0x6515e5bc
push esi
call ebx
add esp, 0xc
mov dword [edi + 0x118], 1
xor eax, eax
pop ebx
jmp 0x65146070
mov eax, esi
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.6514af96
add esp, 0x108
ret 8
Function at 0x651464b0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x65146517
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x651464f3
cmp eax, 2
jne 0x65146506
test esi, esi
mov eax, dword [esp + 0x14]
je 0x65146513
test eax, eax
je 0x65146510
cmp byte [eax + esi - 1], 0
je 0x65146513
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x65146720
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x65152395
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6516c6d0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CSafeboxConfig.0
xor eax, eax
lea ecx, [esi + 0x34]
mov dword [esp + 0x14], eax
mov dword [esi + 0x30], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esi + 0x18]
mov dword [esp + 0x14], 0xffffffff
call fcn.6514a1e0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x651467a0
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x31c
mov eax, dword [0x6516c6d0]
xor eax, esp
mov dword [esp + 0x318], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x32c]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x1d]
push ebx
push eax
mov dword [esp + 0x1c], edi
xor esi, esi
mov byte [esp + 0x24], bl
call sub.MSVCR80.dll_memset
push 0x103
lea ecx, [esp + 0x231]
push ebx
push ecx
mov byte [esp + 0x238], bl
call sub.MSVCR80.dll_memset
push 0x103
lea edx, [esp + 0x139]
push ebx
push edx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x140], bl
call sub.MSVCR80.dll_memset
add esp, 0x24
push 1
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x65146951
lea eax, [esp + 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x65146951
push ebp
push 0x104
lea ecx, [esp + 0x20]
push edi
push ecx
call dword [sym.imp.MSVCR80.dll__mbsnbcpy]
mov ebp, dword [sym.imp.MSVCR80.dll__mbsstr]
lea edx, [esp + 0x28]
push 0x6515e70c
push edx
call ebp
add esp, 0x14
cmp eax, ebx
jne 0x6514687a
mov dword [esp + 0x10], 1
lea eax, [esp + 0x1c]
jmp 0x65146893
add eax, 2
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
cmp dl, bl
jne 0x65146882
sub ecx, esi
je 0x6514694a
add eax, 1
push 0x6515e710
push eax
call ebp
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x65146931
mov edi, dword [sym.imp.MSVCR80.dll__snprintf]
cmp dword [esp + 0x10], ebx
lea eax, [esp + 0x1c]
mov byte [esi], bl
push eax
je 0x651468df
lea ecx, [esp + 0x228]
push ecx
push str._s_s
lea edx, [esp + 0x12c]
push 0x104
push edx
call edi
add esp, 0x14
jmp 0x651468f6
push 0x6515e71c
lea ecx, [esp + 0x128]
push 0x104
push ecx
call edi
add esp, 0x10
push ebx
lea edx, [esp + 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x65146916
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x6514696b
mov byte [esi], 0x5c
push 0x6515e720
add esi, 1
push esi
call ebp
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x651468b1
mov edi, dword [esp + 0x14]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x6514694a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x6514696b
mov eax, 1
jmp 0x6514696d
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.6514af96
add esp, 0x31c
ret
xor eax, eax
mov ecx, dword [esp + 0x328]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.6514af96
add esp, 0x31c
ret
Function at 0x65146990
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x6516c6d0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push edi
push 0x103
xor edi, edi
lea eax, [esp + 0xd]
push edi
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x103
lea ecx, [esp + 0xc]
push ecx
push str._ALLUSERSPROFILE_Application_DataTencentQQPCMgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edx, [esp + 8]
push edx
call fcn.651467a0
add esp, 4
test eax, eax
je 0x65146a1b
push 0x103
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.MSVCR80.dll__mbsnbcpy]
add esp, 0xc
lea eax, [edi + 1]
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.6514af96
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.6514af96
add esp, 0x108
ret

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

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 1
push 0x80000000
push eax
xor esi, esi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x65146d3f
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x65146d2a
cmp edi, 0xffffffff
je 0x65146d2a
push edi
call fcn.6514af0c
mov esi, eax
add esp, 4
test esi, esi
je 0x65146d2a
push edi
push ebp
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x65146d2a
cmp dword [esp + 0x10], edi
jne 0x65146d2a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
push edi
push esi
push 0x26
push 0x6515e81c
call fcn.65149260
add esp, 0x18
test eax, eax
jne 0x65146d31
mov ecx, dword [esp + 0x1c]
push edi
push esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
mov ebp, 1
jmp 0x65146d31
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop edi
je 0x65146d3f
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret 8