joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c90
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xf003f
push 0
push 0
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0xc], ebx
je 0x402dd9
push esi
push 0x124
push 0x4278d8
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x402ce1
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea eax, [ebp - 4]
push eax
push 0x24
lea ecx, [ebp - 0x30]
push ecx
push 0
push esi
call edi
test eax, eax
je 0x402dcb
mov eax, dword [ebp - 0x2c]
cmp eax, 1
je 0x402dcb
cmp eax, 3
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x402d79
jmp 0x402d20
mov eax, 0xcccccccd
mul dword [ebp - 0x18]
shr edx, 3
cmp edx, 0x3e8
jae 0x402d3a
mov edx, 0x3e8
jmp 0x402d47
cmp edx, 0x2710
jbe 0x402d47
mov edx, 0x2710
push edx
call ebx
lea edx, [ebp - 4]
push edx
push 0x24
lea eax, [ebp - 0x30]
push eax
push 0
push esi
call edi
test eax, eax
je 0x402dc8
cmp dword [ebp - 0x2c], 1
je 0x402dc8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
cmp eax, 0x2710
ja 0x402dc8
cmp dword [ebp - 0x2c], 3
je 0x402d20
lea ecx, [ebp - 0x30]
push ecx
push 0xc8
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x402dc8
cmp dword [ebp - 0x2c], 1
je 0x402dc8
mov edx, dword [ebp - 0x18]
push edx
call ebx
lea eax, [ebp - 4]
push eax
push 0x24
lea ecx, [ebp - 0x30]
push ecx
push 0
push esi
call edi
test eax, eax
je 0x402dc8
cmp dword [ebp - 0x2c], 1
je 0x402dc8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
cmp eax, 0x2710
ja 0x402dc8
cmp dword [ebp - 0x2c], 1
jne 0x402d93
mov ebx, dword [ebp - 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402de0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x432024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push 0x208
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402e85
cmp word [ebp - 0x210], si
je 0x402e85
push 0xffffffffffffffff
push str.Imm32.dll
lea edx, [ebp - 0x210]
push 0x104
push edx
call dword [sym.imp.MSVCR80.dll_wcsncat_s]
add esp, 0x10
test eax, eax
jne 0x402e85
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
je 0x402e85
push str.ImmDisableIME
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x402e85
push 0xffffffffffffffff
call eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f808
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041f808
mov esp, ebp
pop ebp
ret
Function at 0x4036b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4036c8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4036fc
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4036f8
cmp esi, eax
jae 0x4036fc
sub edi, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4036e8
cmp esi, eax
jb 0x403702
pop esi
xor eax, eax
pop edi
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x403860
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor cl, cl
cmp dword [ebp + 0xc], 0
je 0x40393e
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], 0
je 0x403967
push edi
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
add esi, 0xc
lea ebx, [ebx]
cmp dword [esi], 0
je 0x40392a
push 0x4ff
push 0x64
push 0
push esi
push 1
call edi
test eax, eax
je 0x403934
cmp eax, 0xffffffff
je 0x40392a
xor eax, eax
push 1
push eax
push eax
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x403907
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x1c], 0x12
jne 0x403907
mov dword [ebp + 0xc], 1
jmp 0x40390d
cmp dword [ebp + 0xc], 0
je 0x40391d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, 0x2710
ja 0x40392a
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
jne 0x4038a0
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40395f
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete al
mov esp, ebp
pop ebp
ret 8
mov al, cl
mov esp, ebp
pop ebp
ret 8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4043d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0x20019
push edi
push str.SOFTWARETencentQQPCMgr
push 0x80000002
mov esi, 1
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40443b
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x404449
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x10]
push ecx
push edi
push str.autostart
push eax
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40443b
cmp dword [ebp - 0xc], edi
jne 0x40443b
xor esi, esi
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x404449
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404460
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0xf003f
push edi
push str.SOFTWARETencentQQPCMgr
push 0x80000002
xor esi, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4044ca
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x4044e7
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x10]
push ecx
push edi
push str.QQPCMgr
push eax
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4044ca
cmp dword [ebp - 0xc], 1
jne 0x4044ca
lea esi, [edi + 1]
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x4044e7
push str.QQPCMgr
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4044f0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425411
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x432024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x40]
xor ebx, 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__::constructor_void_]
mov dword [ebp - 4], ebx
mov eax, dword [str.__regrun]
mov ecx, dword [0x427bf4]
mov edx, dword [0x427bf8]
mov dword [ebp - 0x24], eax
mov eax, dword [0x427bfc]
mov dword [ebp - 0x20], ecx
mov cx, word [0x427c00]
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 0x24]
lea esi, [ebp - 0xb0]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], cx
mov dword [ebp - 0x70], 7
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x68], str.QQPCTray.exe
call fcn.004026c0
mov byte [ebp - 4], 1
mov esi, 8
mov dword [ebp - 0x50], 7
cmp dword [eax + 0x18], esi
jb 0x40459b
mov eax, dword [eax + 4]
jmp 0x40459e
add eax, 4
push 0x433550
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x68]
push edx
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x94]
push str._01__2
push ecx
call fcn.0041e480
add esp, 0x18
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
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__]
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
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_]
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], bl
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_]
lea edx, [ebp - 0x44]
push edx
push 0x2001f
push ebx
push str.SOFTWAREMICROSOFTWINDOWSCURRENTVERSIONRUN
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x404642
mov ecx, dword [ebp - 0x44]
cmp ecx, ebx
je 0x404642
cmp dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x3c]
jae 0x404623
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x2c]
add edx, edx
push edx
push eax
push 1
push ebx
push str._QQPCTray
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
jne 0x404642
mov ebx, 1
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
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, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041f808
mov esp, ebp
pop ebp
ret
Function at 0x4046c0
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x432024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x43a]
push esi
push eax
xor edi, edi
mov dword [ebp - 0x440], esi
mov word [ebp - 0x43c], si
call sub.MSVCR80.dll_memset
push 0x206
lea ecx, [ebp - 0x232]
push esi
push ecx
mov dword [ebp - 0x444], 0x208
mov word [ebp - 0x234], si
call sub.MSVCR80.dll_memset
mov eax, 0x6e
push 0x29
mov ecx, 0x5c
mov word [ebp - 0x28], ax
mov word [ebp - 0x24], ax
mov eax, 0x6c
lea edx, [ebp - 0x234]
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push edx
mov word [ebp - 0x2c], cx
mov word [ebp - 0x2a], 0x55
mov word [ebp - 0x26], 0x69
mov word [ebp - 0x22], 0x73
mov word [ebp - 0x20], 0x74
mov word [ebp - 0x1e], 0x61
mov word [ebp - 0x1c], ax
mov word [ebp - 0x1a], ax
mov word [ebp - 0x18], cx
mov word [ebp - 0x16], 0x33
mov word [ebp - 0x14], 0x36
mov word [ebp - 0x12], 0x30
mov word [ebp - 0x10], 0x5b89
mov word [ebp - 0xe], 0x5168
mov word [ebp - 0xc], 0x536b
mov word [ebp - 0xa], 0x58eb
mov word [ebp - 8], si
call dword [sym.imp.MSVCR80.dll_wcsncpy]
lea eax, [ebp - 0x2c]
add esp, 0x24
lea edx, [eax + 2]
jmp 0x4047b0
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4047b0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x234]
push ecx
call dword [sym.imp.MSVCR80.dll_wcsncat]
add esp, 0xc
lea edx, [ebp - 0x440]
push edx
push 0x20019
push esi
lea eax, [ebp - 0x234]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404837
mov eax, dword [ebp - 0x440]
cmp eax, esi
je 0x404848
lea ecx, [ebp - 0x444]
push ecx
lea edx, [ebp - 0x43c]
push edx
push esi
push esi
push str.DisplayIcon
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404837
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404837
mov edi, 1
mov eax, dword [ebp - 0x440]
cmp eax, esi
je 0x404848
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0041f808
mov esp, ebp
pop ebp
ret
Function at 0x405380
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425bb1
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push esi
push edi
mov eax, dword [0x432024]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [0x4338bc]
test eax, eax
jne 0x4053ca
push str.QMGetAllAccessSecurityAttributesEx
call fcn.0041eb20
add esp, 4
test eax, eax
mov dword [0x4338bc], eax
je 0x4053d6
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
call eax
push str.Global_rtp_svc_shutdown_event
lea ecx, [esp + 0x3c]
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_wchar_t_const__]
mov dword [esp + 0x60], 0
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x4053fc
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004128b0
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], vtable.utils::CManualResetEvent.0
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 2
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_]
lea eax, [esp + 0x10]
push eax
call fcn.00412830
push str.Global_rtpsvc_instance_mutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
test edi, edi
jne 0x40545e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405474
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebx + 0x54]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x405495
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebx + 0x54]
push ecx
call esi
mov dword [ebx + 0x54], 0
push edi
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406b90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWARETencentQQPCMgr
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x406bc1
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push esi
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push 0
push str.RtpState
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4096d0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 2
push 0
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4096fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push ebx
push esi
push 0
push 0
push 0
push 0
push str.COM_Infrastructure
push eax
push 1
push 2
push pe_nt_image_headers32
push 0xf01ff
push str.QQPCMgr_RTP_Service
push str.QQPCRTP
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x409752
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call ebx
call fcn.00409800
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push 1
push esi
mov dword [ebp - 4], 0x4279e0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push esi
call ebx
mov esi, dword [ebp - 8]
push edi
call ebx
call fcn.00409800
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x409800
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
push edi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x20006
push esi
push 0x432160
push 0x80000002
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
call ebx
cmp eax, esi
jne 0x409890
mov edx, dword [ebp - 4]
mov dword [ebp - 8], esi
lea esi, [ebp - 8]
mov edi, edx
call fcn.004095b0
test eax, eax
mov esi, dword [ebp - 8]
jne 0x409876
push str.service
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push str.service
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x10], 1
test esi, esi
je 0x409881
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40988e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
xor esi, esi
lea edx, [ebp - 8]
push edx
push 0x20006
push esi
push 0x4321c8
push 0x80000002
mov dword [ebp - 8], esi
call ebx
cmp eax, esi
jne 0x40990b
xor eax, eax
cmp edi, esi
je 0x4098ba
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov edx, dword [ebp - 8]
mov edi, edx
jne 0x40990b
mov dword [ebp - 0xc], esi
lea esi, [ebp - 0xc]
call fcn.004095b0
test eax, eax
mov esi, dword [ebp - 0xc]
jne 0x4098fe
push str.service
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push str.service
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], 1
test esi, esi
je 0x409909
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
cmp dword [ebp - 0x10], esi
je 0x40991a
cmp dword [ebp - 0x14], esi
je 0x40991a
mov esi, 1
test edi, edi
je 0x409925
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409930
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 0x20006
xor esi, esi
push esi
push 0x432160
push 0x80000002
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x409979
mov esi, dword [ebp - 4]
push str.QQPCRTP
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test esi, esi
je 0x409979
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea ecx, [ebp - 8]
push ecx
push 0x20006
push 0
push 0x4321c8
push 0x80000002
mov dword [ebp - 8], 0
call edi
test eax, eax
jne 0x4099b9
test esi, esi
je 0x4099a6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov esi, dword [ebp - 8]
jne 0x4099b9
push str.QQPCRTP
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test esi, esi
je 0x4099c4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4099d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSet_servicesQQPCRTP
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4099fb
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push esi
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push str.RtpFlag
push eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, 2
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409b20
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push edi
push 0x20a
push 0
push 0x433298
mov dword [ebp - 4], 0
call sub.MSVCR80.dll_memset
push 0x104
push str.QQPCRTP
push 0x433298
call dword [sym.imp.MSVCR80.dll_wcsncpy]
add esp, 0x18
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
mov dword [ebp - 0xc], edi
jne 0x409b7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov esp, ebp
pop ebp
ret
push esi
push 0xf01ff
push str.QQPCRTP
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x409ba9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x409bc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x409c1c
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 8], 7
push 0x64
call edi
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
push esi
call ebx
test eax, eax
je 0x409c12
cmp dword [ebp - 0x24], 4
je 0x409c1b
mov eax, dword [ebp - 8]
sub eax, 1
test eax, eax
mov dword [ebp - 8], eax
jg 0x409bd7
jmp 0x409c1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x409ee0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x432024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, str.04CE0CB6_CDF3_4a4b_8B9D_292A455FAF5B
lea edi, [ebp - 0x20]
xor ebx, ebx
call fcn.00402760
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x409f0e
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x409f38
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409f31
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x20]
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 ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0041f808
mov esp, ebp
pop ebp
ret