joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004d00
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14006b9c0]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rbx, rcx
lea r8, str.SetNCQStatus
mov qword [rbp - 0x78], r8
lea rsi, str.ThpsrvLib.cpp
mov qword [rbp - 0x70], rsi
mov dword [rbp - 0x68], 0x5b9
lea r14, str.__SetNCQStatus_
mov qword [rbp - 0x60], r14
lea r15, [0x1400278f0]
mov qword [rbp - 0x58], r15
mov dword [rbp - 0x50], 3
lea rdx, str.ENTER__s
lea rcx, [rbp - 0x70]
call fcn.1400013f0
nop
mov dword [rsp + 0x58], 1
mov rdx, rbx
lea rcx, [rbp - 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edi, edi
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, edi
test eax, eax
setne bl
test ebx, ebx
jns 0x140004de7
mov dword [rsp + 0x68], 0x5c8
jmp 0x140004e27
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.NcqDisabled
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, edi
test eax, eax
setne bl
test ebx, ebx
jns 0x140004e4f
mov dword [rsp + 0x68], 0x5d3
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r15
mov dword [rbp - 0x80], edi
mov r8d, ebx
lea rdx, str.Error_Code:_0x_x
lea rcx, [rsp + 0x60]
call fcn.1400013f0
jmp 0x140004e67
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, edi
mov r8, qword [rbp - 0x78]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 0x70]
call fcn.1400013f0
mov eax, ebx
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14000b090
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140006470
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xba0]
sub rsp, 0xca0
mov rax, qword [0x14006b9c0]
xor rax, rsp
mov qword [rbp + 0xb90], rax
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x1400066bb
test rdx, rdx
je 0x1400066bb
mov qword [rsp + 0xcd0], rbx
mov dword [rsp + 0x54], 0
xor ebx, ebx
nop
lea rcx, [rbp + 0x770]
xor edx, edx
mov r8d, 0x208
mov dword [rsp + 0x50], 0x208
call fcn.14000b0c0
xor ecx, ecx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x50]
lea r8, [rbp + 0x770]
mov rcx, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc ebx
test eax, eax
jne 0x1400065c0
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x1400064c0
cmp eax, 2
jbe 0x140006549
cmp eax, 3
je 0x140006542
cmp eax, 4
je 0x14000653b
cmp eax, 0xb
jne 0x1400064c0
mov eax, 8
jmp 0x14000654e
mov eax, 4
jmp 0x14000654e
mov eax, 0x400
jmp 0x14000654e
mov eax, 0x800
lea rcx, [rsp + 0x70]
mov r8d, eax
xor edx, edx
mov dword [rsp + 0x50], eax
call fcn.14000b0c0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x54]
lea rdx, [rbp + 0x770]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400065c0
mov eax, dword [rsp + 0x50]
mov r9d, dword [rsp + 0x54]
lea rdx, [rbp + 0x770]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1400064c0
xor ebx, ebx
nop dword [rax]
nop word [rax + rax]
lea rcx, [rbp + 0x980]
xor edx, edx
mov r8d, 0x208
call fcn.14000b0c0
xor eax, eax
lea r9, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x980]
mov edx, ebx
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 0x208
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc ebx
test eax, eax
jne 0x1400066ac
lea rax, [rsp + 0x58]
lea rdx, [rbp + 0x980]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400065d0
xor ecx, ecx
lea rax, [rsp + 0x60]
lea rdx, [rbp + 0x980]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ecx
mov rcx, rsi
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400066ac
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call fcn.140006470
jmp 0x1400065d0
mov rbx, qword [rsp + 0xcd0]
mov eax, 1
jmp 0x1400066bd
xor eax, eax
mov rcx, qword [rbp + 0xb90]
xor rcx, rsp
call fcn.14000b090
add rsp, 0xca0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400073e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
lea rdx, str.SYSTEMCurrentControlSetServicesDSDHDDProtectService
xor ebx, ebx
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007466
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.TransferFlag
xor r8d, r8d
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140007466
cmp dword [rsp + 0x40], 1
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140007470
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
lea rax, [rsp + 0x70]
lea r9, [0x14001f530]
lea r8, [0x140007800]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x70], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140007525
mov qword [rsp + 0x60], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400074c5
movzx ebx, ax
or ebx, 0x80070000
lea rax, str.__InitRegMappingThread_
lea r9, [0x1400278f0]
lea rdx, str.RegGuard.cpp
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
mov r8d, 0x246
mov dword [rsp + 0x20], 0
call fcn.1400013d0
lea rdx, str.Error_Code:_0x_x
mov rcx, rax
mov r8d, ebx
call fcn.1400013f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x60]
test eax, eax
jle 0x140007527
movzx eax, ax
or eax, 0x80070000
add rsp, 0x68
ret
xor eax, eax
add rsp, 0x68
ret

Function at 0x140007530
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
lea rdx, str.SYSTEMCurrentControlSetServicesDSDHDDProtectService
xor ebx, ebx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400075b6
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.PreInstall
xor r8d, r8d
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400075b6
cmp dword [rsp + 0x40], 1
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140007a70
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [rsp + 0x50]
mov esi, ecx
xor ebx, ebx
lea rdx, str.SYSTEMCurrentControlSetServicesDSDHDDProtectService
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov edi, ebx
mov qword [rsp + 0x50], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007ae6
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea r9d, [rbx + 4]
lea rdx, str.DynabookRegDeployFlag
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], esi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rsi, qword [rsp + 0x58]
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140007b00
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [rsp + 0x50]
mov esi, ecx
xor ebx, ebx
lea rdx, str.SYSTEMCurrentControlSetServicesDSDHDDProtectService
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov edi, ebx
mov qword [rsp + 0x50], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007b76
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea r9d, [rbx + 4]
lea rdx, str.TransferFlag
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], esi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rsi, qword [rsp + 0x58]
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140007cd0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x68
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x140007d2a
lea rax, str.__RegConfigAccess::SetValue_
lea r9, [0x1400278f0]
lea rdx, str.C:UsersSCDDocumentsMyWorkProject__dynabookSystemDriverdynabookSystemModules_devCentennialRS5TosCommonLib_RS5includeRegConfig.h
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x30]
mov r8d, 0x15f
call fcn.1400013d0
lea rdx, str.Error_Code:_0x_x
mov r8d, 0x80070006
mov rcx, rax
call fcn.1400013f0
mov eax, 0x80070006
add rsp, 0x68
ret
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r9
mov r9d, r8d
xor r8d, r8d
mov qword [rsp + 0x70], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x140007dc4
mov qword [rsp + 0x60], rdi
jg 0x140007d59
mov edi, eax
jmp 0x140007d62
movzx edi, ax
or edi, 0x80070000
lea rax, str.__RegConfigAccess::SetValue_
lea r9, [0x1400278f0]
lea rdx, str.C:UsersSCDDocumentsMyWorkProject__dynabookSystemDriverdynabookSystemModules_devCentennialRS5TosCommonLib_RS5includeRegConfig.h
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
mov r8d, 0x163
mov dword [rsp + 0x20], 0
call fcn.1400013d0
lea rdx, str.Error_Code:_0x_x
mov rcx, rax
mov r8d, edi
call fcn.1400013f0
mov rdi, qword [rsp + 0x60]
test ebx, ebx
jle 0x140007db8
movzx ebx, bx
or ebx, 0x80070000
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x140007dd0
Capabilities:
Query service status

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x14006b9c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea rax, str.CheckPreviousServiceStatus
mov qword [rsp + 0x38], rax
lea rbp, str.__CheckPreviousServiceStatus_
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 3
lea r9, [0x1400278f0]
mov r8d, 0x51
lea rdx, str.Thpsvr.cpp
lea rcx, [rsp + 0x40]
call fcn.1400013d0
mov r8, qword [rsp + 0x38]
lea rdx, str.ENTER__s
lea rcx, [rsp + 0x40]
call fcn.1400013f0
nop
xor eax, eax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0xa8], eax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x140007ed1
mov edi, 0x80004003
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], eax
lea r9, [0x1400278f0]
lea r8d, [rax + 0x5a]
lea rdx, str.Thpsvr.cpp
lea rcx, [rsp + 0x68]
call fcn.1400013d0
mov rcx, rax
mov r8d, edi
lea rdx, str.Error_Code:_0x_x
call fcn.1400013f0
jmp 0x140008003
mov r8d, 0xf01ff
lea rdx, str.TOSSystemService
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x140007f4e
mov r8d, 0xf01ff
lea rdx, str.Thpsrv
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x140007f4e
mov edi, 0x80004003
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], eax
lea r9, [0x1400278f0]
lea r8d, [rax + 0x65]
lea rdx, str.Thpsvr.cpp
lea rcx, [rsp + 0x68]
call fcn.1400013d0
mov rcx, rax
mov r8d, edi
lea rdx, str.Error_Code:_0x_x
call fcn.1400013f0
jmp 0x140007ff9
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 3
lea r9, [0x1400278f0]
mov r8d, 0x66
lea rdx, str.Thpsvr.cpp
lea rcx, [rsp + 0x68]
call fcn.1400013d0
mov rcx, rax
lea r9, str.Thpsrv
lea r8, str.TOSSystemService
lea rdx, str.Previous_service___s_or__s__exist
call fcn.1400013f0
lea rdx, [rsp + 0x90]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140007fe9
mov edi, 0x80004005
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], eax
lea r9, [0x1400278f0]
lea r8d, [rax + 0x68]
lea rdx, str.Thpsvr.cpp
lea rcx, [rsp + 0x68]
call fcn.1400013d0
mov rcx, rax
mov r8d, edi
lea rdx, str.Error_Code:_0x_x
call fcn.1400013f0
jmp 0x140007feb
xor edi, edi
test rbx, rbx
je 0x140007ff9
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov r8, qword [rsp + 0x38]
lea rdx, str.LEAVE__s
lea rcx, [rsp + 0x40]
call fcn.1400013f0
mov eax, edi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14000b090
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140009080
Capabilities:
Query service status
Start service

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x14006b9c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea rax, str.StartModulesService
mov qword [rsp + 0x38], rax
lea rbp, str.__StartModulesService_
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 3
lea r9, [0x1400278f0]
mov r8d, 0xef
lea rdx, str.Thpsvr.cpp
lea rcx, [rsp + 0x40]
call fcn.1400013d0
mov r8, qword [rsp + 0x38]
lea rdx, str.ENTER__s
lea rcx, [rsp + 0x40]
call fcn.1400013f0
nop
xor eax, eax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0xa8], eax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x140009183
mov edi, 0x80004003
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], eax
lea r9, [0x1400278f0]
mov r8d, 0xf8
lea rdx, str.Thpsvr.cpp
lea rcx, [rsp + 0x68]
call fcn.1400013d0
mov rcx, rax
mov r8d, edi
lea rdx, str.Error_Code:_0x_x
call fcn.1400013f0
jmp 0x140009263
mov r8d, 0xf01ff
lea rdx, str.DSDHDDProtectService
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x1400091e1
mov edi, 0x80004003
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], eax
lea r9, [0x1400278f0]
mov r8d, 0xfb
lea rdx, str.Thpsvr.cpp
lea rcx, [rsp + 0x68]
call fcn.1400013d0
mov rcx, rax
mov r8d, edi
lea rdx, str.Error_Code:_0x_x
call fcn.1400013f0
jmp 0x140009259
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140009236
mov edi, 0x80004005
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], eax
lea r9, [0x1400278f0]
mov r8d, 0xfd
lea rdx, str.Thpsvr.cpp
lea rcx, [rsp + 0x68]
call fcn.1400013d0
mov rcx, rax
mov r8d, edi
lea rdx, str.Error_Code:_0x_x
call fcn.1400013f0
jmp 0x140009250
cmp dword [rsp + 0x94], 1
jne 0x14000924e
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
xor edi, edi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov r8, qword [rsp + 0x38]
lea rdx, str.LEAVE__s
lea rcx, [rsp + 0x40]
call fcn.1400013f0
mov eax, edi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14000b090
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140cc35a0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140cc35ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140cc35bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140cc35a5
lea eax, [rcx + 1]
jmp 0x140cc35cb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140cc35de
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140cc35c4
sub eax, 3
jb 0x140cc35fe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140cc364d
sar eax, 1
movsxd rbp, eax
jb 0x140cc3634
jmp 0x140cc360c
add ebx, ebx
jne 0x140cc360a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140cc3634
inc ecx
add ebx, ebx
jne 0x140cc361a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140cc3634
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140cc362d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140cc361c
add ecx, 2
jmp 0x140cc3639
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140cc3562
jmp 0x140cc35ad
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0xcc0000]
mov eax, dword [rdi]
or eax, eax
je 0x140cc36b9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xcd7198]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140cc365d
jns 0x140cc3692
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140cc369c
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140cc36b3
mov qword [rbx], rax
add rbx, 8
jmp 0x140cc367d
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140cc3711
sub rsp, 0xffffffffffffff80
jmp 0x14039846b
Function at 0x1400066f0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x140015040]
xor rax, rsp
mov qword [rsp + 0x90], rax
cmp qword [rcx + 0x18], 7
lea rax, str.runas
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x30], rax
lea rax, str.cmd.exe
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], rax
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x20], 0x70
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x24], 0x40
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
jbe 0x140006764
mov rcx, qword [rcx]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x50], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140006798
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14000bd10
add rsp, 0xa8
ret
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14000bd10
add rsp, 0xa8
ret

Function at 0x1400067c0
Capabilities:
Create process on windows
Self delete

Disassembly:
sub rsp, 0x718
mov rax, qword [0x140015040]
xor rax, rsp
mov qword [rsp + 0x700], rax
mov r8d, 0x104
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
mov dword [rsp + 0x50], 0x68
lea r8, [rsp + 0xe0]
lea rdx, str.cmd.exe__C_choice__C_Y__N__D_Y__T_2__Del___s_
lea rcx, [rsp + 0x2f0]
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
call fcn.140009840
lea rax, [rsp + 0xc0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x2f0]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400068a9
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_execute_command.
call fcn.140009630
lea rdx, [0x140009800]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rsp + 0x700]
xor rcx, rsp
call fcn.14000bd10
add rsp, 0x718
ret
Function at 0x140007960
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140015040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000798d
xor eax, eax
jmp 0x140007af9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400079c7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400079c7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140007af9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140007aec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140007a0a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140007a35
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140007af1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140007aa4
sub eax, 1
je 0x140007aa4
cmp eax, 2
jne 0x140007aec
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140007af1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140007ad2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140007aec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140007af1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000bd10
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret