joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424080
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.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x424108
lea ecx, [ebp - 8]
push ecx
push esi
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp - 4]
push str.Path
push eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4240e2
sub eax, edx
sar eax, 1
je 0x42410a
cmp word [esi + eax*2 - 2], 0x5c
je 0x42410a
mov edx, 0x5c
mov word [esi + eax*2], dx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x424c60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
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 0x424c7d
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x424cb4
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x424cb0
lea ecx, [ecx]
cmp esi, eax
jae 0x424cb4
sub edi, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x424ca0
cmp esi, eax
jb 0x424cbb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4256c0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b71d8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4e9688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x20000000
push 0
push 0
mov byte [ebp - 0xd], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x42580d
push 0x20000012
push str.QHProtected
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x4257f4
push str.Global2F756C90_7BF1_46e0_9FEC_7FFE3C4DB01F__
push 0
push 1
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
xor eax, eax
test esi, esi
setne al
push 0
push 0
push ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov edi, eax
test edi, edi
je 0x42576e
cmp dword [ebp - 0x18], 0
je 0x42576e
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x425793
cmp eax, 0x420
je 0x425793
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4257f4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4257f4
push str._safemonWscReg.exe
lea ecx, [ebp - 0x18]
push 0x4f169c
push ecx
call fcn.00411090
mov edx, dword [ebp + 8]
mov eax, dword [eax]
push edx
push eax
call fcn.00425520
add esp, 0x14
test eax, eax
mov eax, dword [ebp - 0x18]
sete bl
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4257db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
test bl, bl
jne 0x4257e6
mov byte [ebp - 0xd], 1
test esi, esi
je 0x4257f1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ecx
call esi
test ebx, ebx
je 0x425807
push ebx
call esi
cmp byte [ebp - 0xd], 0
jne 0x42583e
cmp dword [ebp + 0xc], 0
jne 0x42583e
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 8]
push 1
push edx
call fcn.004256c0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4259c0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
jne 0x4259e2
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 4
push str.wscsvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
jne 0x425a07
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, 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
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x18], 4
jne 0x425a31
mov bl, 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x425a50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b57cb
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
test edi, edi
je 0x425b66
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00497780
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x425add
push str.wbemcomn.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x425add
lea ecx, [ebp - 0x218]
push ecx
call fcn.00423950
push 0
push 0
push 0
push 3
push 4
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
je 0x425b00
cmp eax, 0x80010119
jne 0x425b66
lea ebx, [esi + 4]
push ebx
push 0x4c06dc
push 5
push 0
push 0x4c352c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x425b66
cmp dword [ebx], 0
je 0x425b66
push edi
lea ecx, [ebp - 0x21c]
call fcn.00423700
mov dword [ebp - 4], 0
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.00425b90
mov edx, dword [ebp - 0x21c]
push edx
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jl 0x425b66
cmp dword [esi], 0
je 0x425b62
cmp dword [ebx], 0
je 0x425b62
mov eax, 1
jmp 0x425b68
xor eax, eax
jmp 0x425b68
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
Function at 0x4262b0
Capabilities:
Check if file exists
Check os version
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bcd70
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e9688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x14], esi
mov eax, dword [0x4f37dc]
cmp eax, esi
jne 0x426303
push 0x4f37d8
mov dword [0x4f37d8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x4f37dc]
cmp eax, 6
ja 0x42631b
jne 0x4263e2
cmp dword [0x4f37e0], 2
jb 0x4263e2
lea edi, [ebp - 0x10]
call fcn.004261d0
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
jne 0x426373
push ebx
mov ecx, 0x4c4348
call fcn.00424e40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42635f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.temp_
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00411090
mov eax, dword [eax]
add esp, 0xc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4263b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.temp_
lea ecx, [ebp - 0x10]
push ecx
push ebx
call fcn.00411090
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x426353
mov edx, dword [0x4ef36c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ef36c
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.00411350
push 1
push 0x23
mov esi, eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x426426
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.360Safe
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00492d63
add esp, 8
test eax, eax
jl 0x4264ab
cmp eax, dword [esi - 8]
jg 0x4264ab
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x426467
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x4cd228
lea edx, [ebp - 0x10]
push edx
call fcn.00414740
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
mov eax, esi
call fcn.00425150
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42635f
mov ecx, dword [esi]
push esi
jmp 0x426358
push 0x80070057
call fcn.004251c0
int3
Function at 0x426e50
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
cmp eax, 1
jne 0x426e64
mov esi, str.EnableAvira
jmp 0x426e7a
cmp eax, 3
jne 0x426e70
mov esi, str.EnableKP
jmp 0x426e7a
cmp eax, 2
jne 0x426ed9
mov esi, str.EnableBD
lea eax, [ebp - 4]
push eax
push 2
push edi
push str.Software360TotalSecuritydeepscan
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 4]
cmp eax, edi
je 0x426eb1
cmp ecx, edi
jne 0x426eb1
cmp eax, 2
jne 0x426ed1
mov edi, 1
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, edi
je 0x426ec2
cmp eax, 2
jne 0x426ec7
mov edi, 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x426ef0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, ecx
push esi
call edi
test eax, eax
jne 0x426f81
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00497780
push esi
push str._s.bak
lea ecx, [ebp - 0x20c]
push 0x208
push ecx
call fcn.00424b40
add esp, 0x1c
lea edx, [ebp - 0x20c]
push edx
call edi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x426f7c
push 4
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
call fcn.00426fa0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00491281
mov esp, ebp
pop ebp
ret

Function at 0x426fa0
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x4f37c8]
test eax, eax
jne 0x426fb3
call fcn.004232d0
mov dword [0x4f37c8], eax
mov eax, dword [eax + 0x140]
cmp eax, 2
jne 0x426fd3
mov eax, dword [0x4f37c8]
mov ecx, dword [eax + 0x140]
cmp ecx, 2
jne 0x426fd3
mov eax, dword [eax + 0x50]
jmp 0x426fd5
xor eax, eax
push esi
test eax, eax
je 0x426fdd
call eax
ret
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret
Function at 0x4271a0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
test eax, eax
je 0x4272bf
xor ecx, ecx
cmp cx, word [eax]
je 0x4272bf
cmp dword [ebp + 8], ecx
je 0x4272bf
push ecx
push 0x80
push 4
push ecx
push 7
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4272bf
push 0
push esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edx, edx
test eax, eax
sete dl
mov dword [esp + 0xc], 0
mov edi, edx
cmp eax, 0x10
jb 0x4272c8
add eax, 0xfffffff0
xor edx, edx
mov ecx, 0x30
div ecx
test edx, edx
jne 0x4272cc
xor eax, eax
push eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push 0x10
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], 0x54535653
jne 0x4272cc
cmp dword [esp + 0x1c], 1
jne 0x4272cc
test edi, edi
je 0x4272de
xor eax, eax
push eax
push eax
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], 0x54535653
mov dword [esp + 0x2c], 1
call ebx
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x10
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4272b6
cmp dword [esp + 0xc], 0x10
je 0x4272eb
lea eax, [esp + 0x10]
call fcn.00427110
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jbe 0x42726a
push 0
push 0
push 0
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x42726e
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp + 8]
push 0
lea eax, [esp + 0x10]
push eax
push 0x30
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4272b6
cmp dword [esp + 0xc], 0x30
jne 0x4272b6
lea eax, [esp + 0x10]
call fcn.00427110
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4273b0
Capabilities:
Copy file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
test eax, eax
je 0x42746c
xor ecx, ecx
cmp cx, word [eax]
je 0x42746c
test ebx, ebx
je 0x42746c
xor edx, edx
cmp dx, word [ebx]
je 0x42746c
cmp dword [ebp + 0xc], ecx
je 0x42746c
push edi
xor edi, edi
cmp dword [ebp + 0x10], ecx
je 0x427402
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x427463
push 0
lea eax, [ebp - 4]
push eax
push 2
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 4], edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov dword [ebp - 8], 0xfeff
call edi
mov eax, dword [ebp + 0xc]
push 0
lea edx, [ebp - 4]
push edx
lea ecx, [eax + eax]
push ecx
push ebx
push esi
mov dword [ebp - 4], 0
call edi
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x427480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 0
push esi
je 0x4274b2
cmp dword [eax + 0x18], 8
jb 0x427492
mov esi, dword [eax + 4]
jmp 0x427495
lea esi, [eax + 4]
test esi, esi
je 0x4274b2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4274b6
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x4274ba
xor eax, eax
pop esi
ret
test al, 0x10
je 0x4274b2
mov eax, 1
pop esi
ret

Function at 0x427620
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4276e4
push edi
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x61c]
push str.__s_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4276e3
push esi
push 0
push 0
push 0x4c4348
push 0
push 0x4cdad0
lea eax, [ebp - 0x61c]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x4cdad8
push str.QHActiveDefense
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
je 0x4276d2
lea ecx, [ebp - 0x620]
push ecx
push 1
push esi
mov dword [ebp - 0x620], 0x4cdad8
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x4276e2
push esi
call edi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
Function at 0x428670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bea5b
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x4e9688]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
push esi
push edi
mov eax, dword [0x4e9688]
xor eax, esp
push eax
lea eax, [esp + 0x468]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x470], esi
cmp eax, esi
jne 0x4286fc
push ebx
push str.Software360TotalSecurity_srvtpi_s
lea edx, [esp + 0x54]
call fcn.0042b7a0
add esp, 8
lea edx, [esp + 0x14]
push edx
push 1
push esi
lea eax, [esp + 0x58]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
jmp 0x428706
lea ecx, [esp + 0x14]
push ecx
push 1
push esi
push ebx
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x42882b
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x50]
push ecx
push esi
push str.StartType
push edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x5c], 0x104
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x24]
cmp eax, 2
ja 0x428820
cmp eax, esi
je 0x428820
cmp dword [ebp + 0x14], esi
jne 0x428789
cmp eax, 2
jne 0x428789
lea esi, [esp + 0x18]
call fcn.00401a30
jmp 0x42882b
push str.DelayLoad
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
call fcn.00423870
test eax, eax
je 0x4287af
mov eax, dword [esp + 0x40]
cmp eax, esi
je 0x4287af
mov eax, dword [eax + 0x10]
mov dword [esp + 0x20], eax
push str.ImagePath
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
push ecx
lea edi, [esp + 0x4c]
lea esi, [esp + 0x25c]
call fcn.004237f0
test eax, eax
jne 0x42877b
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, esi
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x3c]
push edx
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
call fcn.00428aa0
lea esi, [esp + 0x18]
mov edi, eax
call fcn.00401a30
mov eax, edi
jmp 0x42882d
cmp edi, esi
je 0x42882b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x468]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.00491281
mov esp, ebp
pop ebp
ret 0x10
Function at 0x428860
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bedab
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
lea edx, [ebp - 0x220]
push edx
push 8
push esi
push str.Software360TotalSecurity_srvtpi
mov dword [ebp - 4], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x220], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4289d6
mov ebx, dword [ebp - 0x220]
xor edi, edi
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x224], edi
lea eax, [ebp - 0x240]
push eax
push esi
push esi
push esi
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x21c]
push edx
push edi
push ebx
mov dword [ebp - 0x234], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4289cb
mov eax, dword [esi + 0x4eb4a0]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00491c26
add esp, 8
test eax, eax
je 0x4289b6
add esi, 4
cmp esi, 4
jb 0x428922
xor ebx, ebx
xor edi, edi
xor esi, esi
mov edi, edi
mov edx, dword [esi + 0x4eb3c4]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.00491c26
add esp, 8
test eax, eax
je 0x428975
add esi, 0x14
inc edi
cmp esi, 0x3c
jb 0x428950
jmp 0x42898c
mov ecx, dword [ebp - 0x228]
lea ebx, [edi + edi*4]
mov dword [ecx + edi*4], 1
lea ebx, [ebx*4 + 0x4eb3c4]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x238]
push 0
lea edx, [ebp - 0x21c]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.00428670
mov ebx, dword [ebp - 0x220]
mov edi, dword [ebp - 0x224]
inc edi
xor esi, esi
cmp edi, 0x200
mov dword [ebp - 0x224], edi
jl 0x4288f0
cmp ebx, esi
je 0x4289d6
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret 4