joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f896
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
mov dword [esi], ebx
call edi
lea ecx, [ebp + 8]
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push eax
push esi
push 0x48e629
push eax
push eax
mov dword [ebp + 8], eax
call fcn.004ba979
add esp, 0x18
mov dword [ebp - 8], eax
test eax, eax
jne 0x48f8d5
xor al, al
jmp 0x48f90e
add ebx, 2
imul ebx, ebx, 0x3e8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x48f8fc
call edi
sub eax, dword [ebp - 4]
mov dword [esi + 8], 0xfffffffd
mov dword [esi + 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esi + 8], 1
setge al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x49291f
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x224], ecx
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
push edi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], ecx
cmp esi, ebx
je 0x492aec
cmp eax, ebx
je 0x492aec
cmp ecx, ebx
je 0x492aec
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x218], 1
call fcn.004b47e0
mov eax, dword [ebp + 0x18]
push esi
push str.SOFTWARE360SafeLiveUpupdatecfg
add eax, eax
push 0x4f9538
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.004bbedd
add esp, 0x20
lea eax, [ebp - 0x210]
push eax
push 0x20219
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
jne 0x492a3a
cmp dword [ebp - 0x210], ebx
je 0x492a2f
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
push ebx
push dword [ebp - 0x21c]
push dword [ebp - 0x210]
call esi
push dword [ebp - 0x210]
mov dword [ebp - 0x22c], eax
call edi
cmp dword [ebp - 0x22c], ebx
jne 0x492a3a
mov eax, dword [ebp - 0x214]
jmp 0x492aee
cmp byte [ebp + 0x1c], bl
je 0x492aec
lea eax, [ebp - 0x210]
push eax
push 0x20219
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x492aec
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push str.Path
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x214], 0x206
call esi
push dword [ebp - 0x210]
call edi
push 0xe
push 0x5047ac
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004bcd29
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0x220]
push dword [ebp - 0x224]
push dword [ebp - 0x21c]
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x492aee
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b48bf
leave
ret
Function at 0x492afd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor eax, eax
push esi
push edi
cmp dword [ebp + 8], eax
je 0x492bea
cmp dword [ebp + 0xc], eax
je 0x492bea
cmp dword [ebp + 0x10], eax
je 0x492bea
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 4]
push ecx
mov edi, 0x20206
push edi
push eax
push str.SOFTWARE360SafeLiveUpupdatecfg
mov ebx, 0x80000002
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
call esi
test eax, eax
je 0x492b7d
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push edi
push 0
push str.SOFTWARE360SafeLiveUp
push ebx
call esi
test eax, eax
jne 0x492b7d
lea eax, [ebp - 4]
push eax
push str.updatecfg
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x492bea
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call esi
mov esi, eax
cmp esi, ebx
je 0x492baa
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
cmp dword [ebp - 8], ebx
je 0x492bd8
push dword [ebp + 0x10]
call fcn.004b5ec7
pop ecx
add eax, eax
push eax
push dword [ebp + 0x10]
push 1
push ebx
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
jmp 0x492bec
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x492da9
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x224], eax
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call fcn.004b47e0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x20
mov dword [ebp - 0x21c], 0x104
mov dword [ebp - 0x220], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x492f01
push 1
push str.SeTakeOwnershipPrivilege
push dword [ebp - 0x210]
call fcn.00492c97
add esp, 0xc
test eax, eax
je 0x492f01
push 1
push str.SeRestorePrivilege
push dword [ebp - 0x210]
call fcn.00492c97
add esp, 0xc
test eax, eax
je 0x492f01
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
lea eax, [ebp - 0x214]
push eax
push esi
push ebx
push esi
call edi
test eax, eax
jne 0x492e8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x492f00
push dword [ebp - 0x214]
call fcn.004b19c0
pop ecx
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x214]
push ecx
push eax
push ebx
push esi
mov dword [ebp - 0x218], eax
call edi
test eax, eax
je 0x492eec
push esi
push esi
push esi
push dword [ebp - 0x218]
xor edi, edi
inc edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
jne 0x492eec
mov dword [ebp - 0x220], edi
cmp dword [ebp - 0x218], esi
je 0x492f00
push dword [ebp - 0x218]
call fcn.004b5ee1
pop ecx
pop edi
cmp dword [ebp - 0x210], esi
pop esi
pop ebx
je 0x492f17
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
xor ecx, ebp
call fcn.004b48bf
leave
ret 0xc

Function at 0x492f50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push edi
mov dword [ebp - 0xc], ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push str.PendingFileRenameOperations
mov ebx, 0x504a10
push ebx
mov edi, 0x80000002
push edi
call esi
test eax, eax
je 0x492f8e
xor al, al
jmp 0x492fe5
cmp dword [ebp - 8], 7
jne 0x492f8a
mov eax, dword [ebp - 4]
test eax, eax
jne 0x492f9f
mov al, 1
jmp 0x492fe5
push 0x541444
xor ecx, ecx
push 2
shr eax, 1
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b6290
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
test eax, eax
je 0x492f8a
mov edx, dword [ebp - 4]
shr edx, 1
mov dword [ecx + 4], edx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push str.PendingFileRenameOperations
push ebx
push edi
call esi
neg eax
sbb al, al
inc al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x492fea
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x4930ba
push 0x104
push esi
call fcn.004b6a1a
add eax, 0xfffffffc
pop ecx
pop ecx
cmp eax, 0xff
ja 0x4930ba
mov eax, dword [0x50248c]
mov dword [ebp - 0xc], eax
mov eax, dword [0x502490]
mov dword [ebp - 8], eax
mov ax, word [esi]
mov word [ebp - 0xc], ax
push dword [ebp - 0xc]
call fcn.004a488d
pop ecx
cmp eax, 1
je 0x49304d
push 0x70
jmp 0x4930bc
push edi
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
pop edi
test eax, eax
je 0x493094
cmp dword [ebp - 0x10], ebx
ja 0x493094
jb 0x493090
cmp dword [ebp - 0x14], 0x11e1a300
ja 0x493094
push 0x6f
jmp 0x4930bc
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4930b6
push esi
call fcn.0049ebcb
pop ecx
test al, al
je 0x4930b6
xor eax, eax
jmp 0x4930bd
push 0x6c
jmp 0x4930bc
push 0x65
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b48bf
leave
ret
Function at 0x4931a4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push 0
mov ebx, 0x80
push ebx
push 3
push 0
push 1
mov edi, 0x80000000
push edi
push dword [ebp + 8]
call esi
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x4931db
xor eax, eax
jmp 0x493323
push 0
push eax
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4931f3
mov byte [ebp + 0xb], 1
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0xb], 0
jne 0x493218
push 0
push ebx
push 3
push 0
push 1
push edi
push dword [ebp + 0xc]
call esi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x493218
mov byte [ebp + 0xb], 1
xor eax, eax
cmp byte [ebp + 0xb], al
jne 0x493231
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x493231
mov byte [ebp + 0xb], 1
cmp dword [ebp - 0x14], eax
je 0x49323a
mov byte [ebp + 0xb], 1
and dword [ebp + 0xc], 0
cmp byte [ebp + 0xb], 0
jne 0x493305
mov edi, 0x541444
push edi
mov esi, 0x100000
push esi
call fcn.004b6290
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x493274
push edi
push esi
call fcn.004b6290
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x49327a
mov byte [ebp + 0xb], 1
jmp 0x4932e9
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x4932df
push ebx
lea eax, [ebp + 8]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
push dword [ebp - 4]
call edi
test eax, eax
je 0x4932df
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x4932df
cmp dword [ebp + 8], ebx
je 0x4932df
cmp eax, dword [ebp + 8]
jne 0x4932df
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.004b315e
add esp, 0xc
test eax, eax
jne 0x4932df
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x14]
jb 0x493283
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
setne byte [ebp + 0xb]
cmp dword [ebp - 8], ebx
je 0x4932f7
push dword [ebp - 8]
call fcn.004b5ee1
pop ecx
cmp dword [ebp + 0xc], ebx
je 0x493305
push dword [ebp + 0xc]
call fcn.004b5ee1
pop ecx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 4], 0xffffffff
je 0x49331b
push dword [ebp - 4]
call esi
xor eax, eax
cmp byte [ebp + 0xb], al
sete al
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x49339e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4933cd
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
jmp 0x4933cf
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x493a03
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
push edi
xor edi, edi
cmp ecx, edi
jne 0x493a18
xor eax, eax
jmp 0x493a5c
mov eax, dword [esi + 4]
lea edx, [ebp + 8]
push edx
mov edx, dword [esi + 0xc]
or edx, 0x20019
push edx
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x493a5a
mov esi, dword [esi + 8]
push edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x493a51
xor edi, edi
inc edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x493a9c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test esi, esi
je 0x493b02
push esi
call fcn.004b5ec7
pop ecx
test eax, eax
je 0x493b02
push esi
push 0x101
lea eax, [ebp - 0x208]
push eax
call fcn.0040b640
push dword [ebp + 0x10]
lea eax, [ebp - 0x208]
push eax
push 2
push 1
push edi
mov ecx, ebx
call fcn.004935a1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b48bf
leave
ret 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0x20c], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x493adb
jmp 0x493af1
Function at 0x493b26
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0x10
mov eax, 0x4e62c4
call fcn.004b53ae
xor ebx, ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
push ecx
movzx ecx, word [ebp + 0xc]
mov eax, esp
mov dword [eax], ecx
mov dword [ebp - 0x14], esp
push ecx
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp + 0xc], esp
call fcn.00467e58
cmp al, bl
je 0x493c3c
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
call edi
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [0x541380]
mov dword [ebp + 0xc], eax
call esi
push eax
push dword [ebp + 0xc]
call fcn.00428ce0
pop ecx
pop ecx
test eax, eax
jne 0x493bd2
push dword [ebp - 0x18]
push dword [0x541380]
call esi
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.00428bb0
add esp, 0xc
test eax, eax
jne 0x493bd2
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00467e9a
mov al, bl
call fcn.004b5486
ret
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x493bbe
push dword [ebp - 0x18]
mov dword [ebp + 8], ebx
push dword [0x541380]
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
call edi
push ebx
lea ecx, [ebp + 8]
push ecx
push dword [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x493c33
push dword [ebp - 0x18]
push dword [0x541380]
call esi
cmp eax, dword [ebp + 8]
jne 0x493c33
mov byte [ebp - 0xd], 1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 0xd]
jmp 0x493bbe
Function at 0x493c9a
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
and dword [ebp - 0x258], 0
push 0x11
pop ecx
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov word [ebp - 0x254], ax
lea eax, [ebp - 0x4c]
push eax
movsw word es:[edi], word [esi]
mov esi, 0x208
push esi
lea eax, [ebp - 0x254]
push eax
call fcn.0043e503
push ebx
push esi
lea eax, [ebp - 0x254]
push eax
call fcn.0043e503
lea eax, [ebp - 0x25c]
push eax
push 0x20007
push 0
lea eax, [ebp - 0x254]
push eax
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x493dc4
push str.QHActiveDefense
push ebx
call fcn.004b58df
pop ecx
pop ecx
test eax, eax
jne 0x493d41
push str.LaunchProtected
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x258]
push 4
pop ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x268]
push eax
mov edi, str.DeleteFlag
push edi
lea eax, [ebp - 0x254]
push eax
push esi
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x268], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x493dc0
push edi
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
je 0x493dc0
push ebx
lea eax, [ebp - 0x258]
push eax
push ebx
push edi
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov al, 1
jmp 0x493dc6
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b48bf
leave
ret
Function at 0x493dd5
Capabilities:
Start service

Disassembly:
push 0x1c
mov eax, 0x4e62ff
call fcn.004b53ae
mov dword [ebp - 0x1c], ecx
push 0x20000000
xor edi, edi
push edi
push edi
mov byte [ebp - 0xd], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp eax, edi
je 0x493ef4
push 0x20000012
push str.QHProtected
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x493edf
mov dword [ebp - 0x14], edi
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push str.Global6B975C4C_B187_4194_B04A_B414FD8D91C3__
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov esi, dword [sym.imp.ADVAPI32.dll_StartServiceW]
cmp eax, edi
setne cl
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x20], str.install
mov dword [ebp - 0x24], ecx
call esi
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x84]
cmp eax, edi
jne 0x493ebd
cmp ecx, 0x420
jne 0x493ed3
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 3
push str.GlobalF0D6272E_5BAD_4ecf_980E_05D3D9EA697E__
push edi
push 2
lea ecx, [ebp - 0x1c]
call fcn.0046eeea
test eax, eax
je 0x493ea2
push 0x4e20
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x18]
call esi
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.004618fb
cmp esi, edi
je 0x493ed3
cmp dword [ebp - 0x24], edi
je 0x493ed0
push 0xea60
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 0xd], bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004618fb
push dword [ebp - 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
cmp dword [ebp - 0x18], edi
je 0x493ef4
push dword [ebp - 0x18]
call esi
mov al, byte [ebp - 0xd]
call fcn.004b5486
ret
Function at 0x493efd
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push 0x6c0
mov eax, 0x4e631a
call fcn.004b544d
mov esi, dword [ebp + 8]
mov dword [ebp - 0x688], esi
xor ebx, ebx
mov dword [ebp - 0x684], ebx
call fcn.0046a40c
test eax, eax
je 0x49401c
xor eax, eax
mov word [ebp - 0x244], ax
push 0x206
push ebx
lea eax, [ebp - 0x242]
push eax
call fcn.004b47e0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x244]
push eax
push str._windir__system32_regsvr32.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
mov word [ebp - 0x67c], ax
push 0x436
push ebx
lea eax, [ebp - 0x67a]
push eax
call fcn.004b47e0
add esp, 0xc
push esi
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x67c]
cmp dword [ebp + 0xc], ebx
je 0x493f97
push str.__s___s___s_
jmp 0x493f9c
push str.__s___s__u___s_
push 0x438
push eax
call fcn.00411380
add esp, 0x14
mov dword [ebp - 0x28], ebx
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
push ebx
lea eax, [ebp - 0x6c8]
push eax
call fcn.004b47e0
add esp, 0xc
mov dword [ebp - 0x6cc], 0x44
xor eax, eax
mov word [ebp - 0x69c], ax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6cc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x67c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x684], eax
cmp eax, ebx
je 0x4940ac
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x28]
call esi
jmp 0x4940ac
mov esi, str.DllRegisterServer
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 5
pop ecx
mov esi, str.DllUnregisterServer
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x28]
cmp dword [ebp + 0xc], ebx
jne 0x494042
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x680], ebx
mov dword [ebp - 4], ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
jl 0x4940de
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 8
push ebx
push dword [ebp - 0x688]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x680], esi
cmp esi, ebx
je 0x4940a6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4940a6
call eax
test eax, eax
jl 0x494099
mov dword [ebp - 0x684], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x680], ebx
call dword [sym.imp.ole32.dll_OleUninitialize]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x684]
jmp 0x4940e0
xor eax, eax
call fcn.004b54a9
ret