joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403db0
Capabilities:
Enumerate process modules

Disassembly:
push 0xffffffffffffffff
push 0x4113eb
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x41b2ec]
xor eax, esp
mov dword [esp + 0x434], eax
push esi
push edi
mov eax, dword [0x41b2ec]
xor eax, esp
push eax
lea eax, [esp + 0x444]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
call fcn.00403ca0
push 0
push 8
mov dword [esp + 0x454], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x403ecd
cmp dword [esp + 0x10], 0
je 0x403ecd
push 0x424
lea eax, [esp + 0x20]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push edi
mov dword [esp + 0x20], 0x428
call sub.KERNEL32.dll_Module32FirstW
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403e71
lea ecx, [ecx]
mov edx, dword [esp + 0x34]
push str.TenioDllFreeMap
push edx
call esi
test eax, eax
je 0x403e62
call eax
lea eax, [esp + 0x18]
push eax
push edi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x403e50
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
call eax
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 1
call eax
lea ecx, [esp + 0x18]
push ecx
push edi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x403ec6
jmp 0x403ea0
mov edx, dword [esp + 0x34]
push str.TenioSetDllSafe
push edx
call esi
test eax, eax
je 0x403eb7
push 0
call eax
add esp, 4
lea eax, [esp + 0x18]
push eax
push edi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x403ea0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.0041005a
add esp, 0x444
ret
Function at 0x4040b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41145c
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x41b2ec]
xor eax, esp
mov dword [esp + 0x820], eax
mov eax, dword [0x41b2ec]
xor eax, esp
push eax
lea eax, [esp + 0x828]
mov dword fs:[0], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x2e]
push ecx
mov word [esp + 0x30], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4041ed
push 0x400
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x404140
lea eax, [esp + 0x24]
push 0x5c
push eax
call dword [sym.imp.MSVCR90.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x404140
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404147
sub eax, edx
sar eax, 1
je 0x4041ed
push 0x400
lea edx, [esp + 0x28]
push 0x413bac
push edx
call dword [sym.imp.MSVCR90.dll_wcsncat]
add esp, 0xc
test eax, eax
je 0x4041ed
push 0x413ba8
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x834], 0
call dword [sym.imp.MSVCP90.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 0x413ba8
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP90.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 1
push 0
push str._CreateResourceOnly
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 8]
mov dword [esp + 0x830], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
jmp 0x4041ef
xor eax, eax
mov ecx, dword [esp + 0x828]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.0041005a
add esp, 0x830
ret
Function at 0x404220
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xa10
mov eax, dword [0x41b2ec]
xor eax, esp
mov dword [esp + 0xa0c], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x216]
push ecx
mov word [esp + 0x218], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404345
push 0x400
lea edx, [esp + 0x210]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x404299
lea eax, [esp + 0x20c]
push 0x5c
push eax
call dword [sym.imp.MSVCR90.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x404299
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [esp + 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4042a3
sub eax, edx
sar eax, 1
je 0x404345
push 0x400
lea edx, [esp + 0x210]
push str.configOriginalCreateResource.ini
push edx
call dword [sym.imp.MSVCR90.dll_wcsncat]
add esp, 0xc
test eax, eax
je 0x404345
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 0x20c]
push edx
push 0x104
lea eax, [esp + 0xc]
push eax
push str.true
push str.Created
push str.CreateRes
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 4]
push str.false
push ecx
call dword [sym.imp.MSVCR90.dll__wcsicmp]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0xa0c]
xor ecx, esp
call fcn.0041005a
add esp, 0xa10
ret
mov ecx, dword [esp + 0xa0c]
xor ecx, esp
xor eax, eax
call fcn.0041005a
add esp, 0xa10
ret
Function at 0x404bf0
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xd0
mov eax, dword [0x41b2ec]
xor eax, ebp
mov dword [ebp + 0x64], eax
push ebx
mov ebx, dword [ebp + 0x70]
push esi
push edi
mov edi, dword [ebp + 0x78]
push 0x414e00
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.QQGame_timestamp_WinMain
mov dword [ebp - 0x68], eax
call esi
call fcn.00404810
call fcn.004043e0
call fcn.00404220
test eax, eax
je 0x404c4e
push str.createResource:_recordFileExits
call esi
call fcn.004040b0
lea ecx, [ebp - 0x64]
call fcn.004056d0
test edi, edi
je 0x404c98
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x404c79
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp + 0x7c]
push ecx
xor eax, eax
push edx
push eax
jmp 0x404ca2
lea eax, [esi + esi]
call fcn.00410100
mov eax, esp
push 0
push esi
push edi
push eax
call fcn.00404070
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp + 0x7c]
push ecx
push edx
push eax
jmp 0x404ca2
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp + 0x7c]
push eax
push ecx
push 0
push ebx
lea ecx, [ebp - 0x64]
call fcn.004064b0
lea ecx, [ebp - 0x64]
call fcn.004057a0
xor eax, eax
lea esp, [ebp - 0x74]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
call fcn.0041005a
add ebp, 0x68
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4059a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41b2ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
test eax, eax
je 0x405a03
push 0x413f44
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.MSVCR90.dll__wfopen_s]
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x405b71
push 2
push 0
push eax
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
test eax, eax
je 0x405a0a
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
xor eax, eax
jmp 0x405b76
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCR90.dll_ftell]
mov esi, eax
add esp, 4
cmp esi, 3
ja 0x405a2d
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
jmp 0x405b6e
push esi
call fcn.00406668
mov edi, eax
add esp, 4
test edi, edi
je 0x4059f6
mov edx, dword [ebp - 8]
push 0
push 0
push edx
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
test eax, eax
je 0x405a6b
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 8
xor eax, eax
jmp 0x405b76
mov ecx, dword [ebp - 8]
push ecx
push esi
push 1
push edi
call dword [sym.imp.MSVCR90.dll_fread]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
push esi
push edi
mov ecx, ebx
call fcn.004051a0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor ecx, ecx
lea ebx, [esi + esi + 1]
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406668
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x405acc
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
jmp 0x405b76
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
sub ecx, 0
je 0x405b40
sub ecx, 1
je 0x405af7
sub ecx, 1
jne 0x405b68
push 0xffffffffffffffff
lea ecx, [edi + 2]
push ecx
push ebx
push eax
call dword [sym.imp.MSVCR90.dll_wcsncpy_s]
add esp, 0x10
jmp 0x405b68
push 0xfde9
add esi, 0xfffffffd
push esi
lea edx, [edi + 3]
push edx
lea ecx, [ebp - 0x10c]
call fcn.004058f0
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push 0xffffffffffffffff
push eax
push ebx
push edx
call dword [sym.imp.MSVCR90.dll_wcsncpy_s]
mov eax, dword [ebp - 0x10c]
lea ecx, [ebp - 0x108]
add esp, 0x10
cmp eax, ecx
je 0x405b68
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
jmp 0x405b68
lea eax, [esi + esi + 2]
call fcn.00410100
mov eax, esp
push esi
push edi
inc esi
push esi
push eax
call fcn.00404d40
mov edx, dword [ebp + 0xc]
push 0xffffffffffffffff
push eax
mov eax, dword [edx]
push ebx
push eax
call dword [sym.imp.MSVCR90.dll_wcsncpy_s]
add esp, 0x20
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, 1
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041005a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406f81
Capabilities:
Print debug messages

Disassembly:
push 0x1c
mov eax, 0x4118dc
call fcn.00410514
cmp dword [ebp + 0x10], 1
jne 0x406fc6
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
call fcn.004105ec
ret
Function at 0x4070c5
Capabilities:
Get file version info

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x41b2ec]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 0x14
mov eax, 0x41191a
call fcn.00410514
mov ecx, dword [ebp + 0x234]
mov edi, dword [ebp + 0x230]
xor ebx, ebx
push ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jne 0x407127
push 0x414e00
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov eax, edi
jmp 0x407205
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push esi
mov dword [ebp - 4], 1
call fcn.00406668
push esi
mov edi, eax
push ebx
push edi
call sub.MSVCR90.dll_memset
mov ecx, dword [ebp - 0x10]
add esp, 0x10
push edi
push esi
push ebx
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4071db
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push str.VarFileInfoTranslation
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
call sub.VERSION.dll_VerQueryValueW
xor eax, eax
push 0x206
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push ebx
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x414400
lea eax, [ebp + 0x1c]
push 0x104
push eax
call dword [sym.imp.MSVCR90.dll__snwprintf]
add esp, 0x20
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x1c]
push eax
push edi
mov dword [ebp - 0x14], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4071db
cmp dword [ebp - 0x14], ebx
je 0x4071db
push dword [ebp - 0x14]
lea ecx, [ebp]
call dword [0x4131bc]
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
pop ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp]
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp]
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.0041005a
add ebp, 0x228
leave
ret
Function at 0x40c2eb
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x144
mov eax, dword [0x41b2ec]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push 0x118
xor ebx, ebx
lea eax, [ebp - 0xa4]
push ebx
push eax
call sub.MSVCR90.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x11c
call esi
test eax, eax
jne 0x40c351
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call esi
test eax, eax
je 0x40c466
push edi
push 8
pop ecx
push str.GetNativeSystemInfo
xor eax, eax
mov dword [ebp - 0xcc], ebx
lea edi, [ebp - 0xc8]
push str.kernel32.dll
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop edi
cmp eax, ebx
je 0x40c38c
lea ecx, [ebp - 0xcc]
push ecx
call eax
jmp 0x40c399
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x98], 2
jne 0x40c418
cmp dword [ebp - 0xa4], 4
ja 0x40c3af
push 5
jmp 0x40c415
cmp dword [ebp - 0xa4], 5
jne 0x40c3f1
cmp dword [ebp - 0xa0], ebx
jne 0x40c3c4
push 6
jmp 0x40c415
xor eax, eax
inc eax
cmp dword [ebp - 0xa0], eax
jne 0x40c3d3
push 7
jmp 0x40c415
cmp dword [ebp - 0xa0], 2
jne 0x40c413
cmp byte [ebp + 0x72], al
jne 0x40c3ed
push 9
pop eax
cmp word [ebp - 0xcc], ax
je 0x40c468
push 8
jmp 0x40c415
cmp dword [ebp - 0xa4], 6
jne 0x40c413
cmp dword [ebp - 0xa0], ebx
jne 0x40c406
push 0xa
jmp 0x40c415
cmp dword [ebp - 0xa0], 1
jne 0x40c413
push 0xb
jmp 0x40c415
push 0x14
pop eax
jmp 0x40c468
xor eax, eax
inc eax
cmp dword [ebp - 0x98], eax
jne 0x40c466
cmp dword [ebp - 0xa4], 4
jne 0x40c466
cmp dword [ebp - 0xa0], ebx
je 0x40c468
cmp dword [ebp - 0xa0], 0xa
jne 0x40c459
cmp word [ebp - 0x92], 0x41
je 0x40c455
cmp word [ebp - 0x92], 0x42
je 0x40c455
push 2
jmp 0x40c415
push 3
jmp 0x40c415
cmp dword [ebp - 0xa0], 0x5a
jne 0x40c466
push 4
jmp 0x40c415
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041005a
add ebp, 0x78
leave
ret

Function at 0x40c479
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [ebp + 8], eax
je 0x40c4cc
cmp dword [ebp + 0xc], eax
jle 0x40c4cc
and dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40c4ca
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x40c4ca
push str.TencentQQGame
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040fba7
add esp, 0xc
test eax, eax
je 0x40c4ca
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x40c599
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x40c5d1
push dword [ebp + 8]
call dword [sym.imp.MSVCR90.dll_wcslen]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCR90.dll__wcsnicmp]
add esp, 0x10
test eax, eax
je 0x40c5d1
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40c6d1
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41b2ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp ecx, 0xffffffff
je 0x40c715
xor edx, edx
cmp eax, edx
je 0x40c715
push edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x14]
push edx
push dword [eax + 4]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x40c717
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041005a
leave
ret

Function at 0x40cb10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
test esi, esi
je 0x40cba4
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jle 0x40cba3
call fcn.0040c2eb
cmp eax, 0xa
jl 0x40cb73
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40cb6f
push esi
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x40cb6f
push str.TencentQQGameDownload_
push edi
push esi
call fcn.0040fba7
add esp, 0xc
test eax, eax
je 0x40cb6f
xor eax, eax
inc eax
jmp 0x40cba3
xor eax, eax
jmp 0x40cba3
cmp dword [ebp + 0x10], 0
je 0x40cb94
push str.Download_
push dword [ebp + 0x10]
push 0x413670
push 0
push edi
push esi
call fcn.0040fe35
add esp, 0x18
jmp 0x40cba3
push edi
push esi
push str.Download_
call fcn.0040cae7
add esp, 0xc
pop edi
pop esi
pop ebp
ret

Function at 0x40e0dc
Capabilities:
Acquire debug privileges
Shutdown system
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x41b2ec]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x40e133
push 1
push str.SeDebugPrivilege
call fcn.0040e025
pop ecx
pop ecx
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041005a
leave
ret
Function at 0x40e325
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push dword [edi]
call sub.WS2_32.dll_ntohl
push dword [edi + 4]
mov esi, eax
call sub.WS2_32.dll_ntohl
mov ebx, dword [ebp + 0xc]
and dword [ebp + 8], 0
mov edi, eax
lea eax, [ebp - 0x10]
sub ebx, eax
mov eax, dword [ebp + 8]
lea eax, [ebx + eax*4]
push dword [ebp + eax - 0x10]
call sub.WS2_32.dll_ntohl
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
cmp dword [ebp + 8], 4
mov dword [ebp + ecx*4 - 0x10], eax
jl 0x40e350
push 0x10
xor eax, eax
pop ecx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0xc]
mov ebx, edi
shl ebx, 4
add ebx, dword [ebp - 0x10]
sub eax, 0x61c88647
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
add esi, edx
mov edx, esi
shr edx, 5
add edx, dword [ebp - 4]
mov ebx, esi
shl ebx, 4
add ebx, dword [ebp - 8]
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
dec ecx
jne 0x40e374
push esi
call sub.WS2_32.dll_htonl
mov esi, dword [ebp + 0x10]
push edi
mov dword [esi], eax
call sub.WS2_32.dll_htonl
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
leave
ret

Function at 0x40e3c7
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
call sub.WS2_32.dll_ntohl
push dword [esi + 4]
mov edi, eax
call sub.WS2_32.dll_ntohl
mov ebx, dword [ebp + 0xc]
and dword [ebp + 8], 0
mov esi, eax
lea eax, [ebp - 0x10]
sub ebx, eax
mov eax, dword [ebp + 8]
lea eax, [ebx + eax*4]
push dword [ebp + eax - 0x10]
call sub.WS2_32.dll_ntohl
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
cmp dword [ebp + 8], 4
mov dword [ebp + ecx*4 - 0x10], eax
jl 0x40e3f2
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 4]
mov ebx, edi
shl ebx, 4
add ebx, dword [ebp - 8]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
shr edx, 5
add edx, dword [ebp - 0xc]
mov ebx, esi
shl ebx, 4
add ebx, dword [ebp - 0x10]
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
sub edi, edx
add eax, 0x61c88647
dec ecx
jne 0x40e419
push edi
call sub.WS2_32.dll_htonl
mov edi, dword [ebp + 0x10]
push esi
mov dword [edi], eax
call sub.WS2_32.dll_htonl
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret