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

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1400c7f01
xor eax, eax
jmp 0x1400c7f25
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1400c7f2c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
lea r9, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x1400c7f6e
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret

Function at 0x1400c8080
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
jne 0x1400c80ab
call fcn.140010a4c
int3
test rbx, rbx
jne 0x1400c80b6
call fcn.140010a4c
int3
test r9, r9
jne 0x1400c80c1
call fcn.140010a4c
int3
and qword [r8], 0
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], r9
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400c8144
cmp dword [rsp + 0x48], 3
jne 0x1400c8144
test eax, eax
jne 0x1400c8144
cmp dword [rdi], eax
je 0x1400c8144
mov ecx, dword [rdi]
call fcn.1400108b0
lea r9, [rsp + 0x48]
xor r8d, r8d
mov qword [rbx], rax
mov rcx, qword [rbp + 8]
mov rdx, rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400c8138
cmp dword [rsp + 0x48], 3
jne 0x1400c8138
test eax, eax
jne 0x1400c8138
mov eax, 1
jmp 0x1400c8146
mov rcx, qword [rbx]
call fcn.1400108f4
and qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400c8250
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x1400d60f4
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1400d6159
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d616d
lea rdx, str.MoveFileTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400d616d
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rcx
mov rcx, rsi
mov rdx, rdi
mov dword [rsp + 0x20], 2
call rax
jmp 0x1400d616f
cmp dword [rcx + 8], 0
je 0x1400d616d
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x1400d616f
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400d6434
Capabilities:
Move file

Disassembly:
push rbx
sub rsp, 0x20
mov rax, r8
mov rbx, rcx
test r8, r8
je 0x1400d6455
mov r8, rdx
mov rdx, rcx
mov rcx, rax
call fcn.1400d60f4
jmp 0x1400d645b
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1400d646f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov ecx, eax
call fcn.14013d3f8
add rsp, 0x20
pop rbx
ret

Function at 0x1400d6478
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x1400d64ce
cmp qword [rdx], 0
je 0x1400d64c4
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d64d8
lea rdx, str.DeleteFileTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400d64ca
mov rdx, qword [rbx]
mov rcx, rdi
call rax
jmp 0x1400d64d4
cmp dword [rdx + 8], 0
jne 0x1400d64ce
xor eax, eax
jmp 0x1400d64d4
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400d64e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rdi
mov ecx, eax
call fcn.14013d3f8
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140115224
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
je 0x14011524d
mov rdi, qword [rdx + 0x10]
jmp 0x14011529e
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rbx + 8]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x14011526e
call fcn.140071214
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x140115288
call fcn.140071214
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x14011529e
call fcn.140071214
call fcn.1400792a4
cmp qword [rax + 0x68], 0
je 0x1401152b8
mov rdx, rdi
mov rcx, rbp
call fcn.1401138e4
mov rdi, rax
mov edx, esi
mov rcx, rdi
call fcn.140115064
mov rcx, qword [rbp + 0xe8]
mov rsi, rax
test rcx, rcx
je 0x1401152df
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xe8], 0
test rsi, rsi
je 0x1401152ee
mov rdi, rsi
mov qword [rbp + 0xe8], rsi
or dword [rbx + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401262b8
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rdx]
mov rbx, rdx
cmp dword [rcx - 0x10], 0
je 0x1401262ea
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401262ea
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.14011a74c
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14018eed4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14018ed44

Function at 0x14019330f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140256ac0]
jne 0x14018baaa
rol rcx, 0x10
test cx, 0xffff
jne 0x14018baa6
repz ret
ror rcx, 0x10
jmp 0x140193268
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140264ce0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140264dd8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1401932ed
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140264ce0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14019330f
mov rax, qword [rsp + 0x88]
mov qword [0x140264dd8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140264d78], rax
mov rax, qword [0x140264dd8]
mov qword [0x140264c50], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140264d60], rax
mov dword [0x140264c40], 0xc0000409
mov dword [0x140264c44], 1
mov rax, qword [0x140256ac0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140256ac8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140264cd8], eax
mov ecx, 1
call fcn.14019dad8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, str._L_
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140264cd8], 0
jne 0x140193396
mov ecx, 1
call fcn.14019dad8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14019e0d4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140256ac0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1401934e4
xor ebx, ebx
cmp qword [0x140265cd0], rbx
mov rdi, rax
jne 0x14019e1e7
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14019e2be
lea rdx, [0x140210420]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14019e2be
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x140210410]
mov rcx, rsi
mov qword [0x140265cd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1402103f8]
mov rcx, rsi
mov qword [0x140265cd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140265ce0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140265cf0], rax
test rax, rax
je 0x14019e1de
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140265ce8], rax
jmp 0x14019e1ee
mov rax, qword [0x140265ce8]
jmp 0x14019e1f5
mov rax, qword [0x140265ce8]
mov r11, qword [0x140265cf0]
cmp rax, rdi
je 0x14019e25c
cmp r11, rdi
je 0x14019e25c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140265cf0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14019e25c
test rax, rax
je 0x14019e25c
call rsi
test rax, rax
je 0x14019e256
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14019e256
test byte [rsp + 0x40], 1
jne 0x14019e25c
bts ebp, 0x15
jmp 0x14019e29c
mov rcx, qword [0x140265cd8]
cmp rcx, rdi
je 0x14019e29c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14019e29c
call rax
mov rbx, rax
test rax, rax
je 0x14019e29c
mov rcx, qword [0x140265ce0]
cmp rcx, rdi
je 0x14019e29c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14019e29c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140265cd0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14019e2be
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14019e2c0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14018ba90
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002680
Capabilities:
Print debug messages

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rax, qword [0x14005d030]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor edi, edi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], di
test edx, edx
jne 0x1400026e1
lea r8d, [rdi + 7]
lea rdx, str._Error_
lea rcx, [rsp + 0x30]
call fcn.1400151b0
mov r8d, 0x10
lea rdx, [0x14004c130]
lea rcx, [rsp + 0x30]
call fcn.1400151b0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140002705
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x30]
call fcn.1400151b0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
cmp rcx, rdx
jae 0x140002743
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 8
cmovae rax, qword [rsp + 0x30]
mov dword [rax + rcx*2], 0xa
jmp 0x140002753
mov r9d, 0xa
lea rcx, [rsp + 0x30]
call fcn.140015950
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400027a9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400027a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000281e
call fcn.140024800
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], di
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400027f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400027f2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002824
mov rcx, r8
call fcn.140024800
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400247e0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
call fcn.14002bf94
nop
call fcn.14002bf94
int3
Function at 0x140002830
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14005d030]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov r8d, 0x10
lea rdx, str._ApoController:
lea rcx, [rsp + 0x30]
call fcn.140015230
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140002899
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x30]
call fcn.140015230
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
cmp rcx, rdx
jae 0x1400028d6
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], 0xa
jmp 0x1400028e3
mov r9b, 0xa
lea rcx, [rsp + 0x30]
call fcn.140015e50
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140002934
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000292f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400029a7
call fcn.140024800
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140002981
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000297c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400029ad
mov rcx, r8
call fcn.140024800
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400247e0
add rsp, 0x60
pop rbx
ret
call fcn.14002bf94
nop
call fcn.14002bf94
int3
Function at 0x140013110
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x90
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
xor edi, edi
mov ebx, edi
mov dword [rsp + 0x60], edi
mov qword [r11 - 0x30], rdi
mov qword [r11 + 0x10], rdi
lea rax, [r11 + 8]
mov qword [r11 - 0x58], rax
lea rax, [r11 + 0x10]
mov qword [r11 - 0x60], rax
mov qword [r11 - 0x68], rdi
mov dword [rsp + 0x28], 0x6011f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareDTSAPO4x
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001326e
mov rbx, qword [rsp + 0xa8]
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x60], 0x100
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xa0]
lea r9d, [rdi + 4]
xor r8d, r8d
lea rdx, str.DTSProductType
mov rcx, rbx
mov qword [rsp + 0x20], rax
cmp byte [0x140060398], r8b
je 0x14001320e
mov dword [rsp + 0xa0], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x88], rdi
lea r8d, [rdi + 0x47]
lea rdx, str.ApoControllerSystem::SetDTSProductType:_DAP_Product_Type_is_registered_
lea rcx, [rsp + 0x70]
call fcn.140015710
lea edx, [rdi + 1]
lea rcx, [rsp + 0x70]
call fcn.140002680
jmp 0x14001325d
mov dword [rsp + 0xa0], 2
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x88], rdi
mov r8d, 0x4f
lea rdx, str.ApoControllerSystem::SetDTSProductType:_DTS:X_Ultra_Product_Type_is_registered_
lea rcx, [rsp + 0x70]
call fcn.140015710
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.140002680
test rbx, rbx
je 0x14001326e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rdi
test rbx, rbx
je 0x14001327d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret
Function at 0x14001e860
Capabilities:
Create pipe

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov r14, rcx
xor esi, esi
lea ecx, [rsi + 0x38]
call fcn.140024808
mov rbx, rax
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_DeviceWatcherUtility::EventListener_struct_DeviceWatcherUtility::DeviceEventPayload__.0
mov qword [rbx], rax
lea rdi, [rbx + 0x10]
mov qword [rsp + 0x90], rdi
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
lea rcx, [rdi + 0x10]
mov qword [rcx], rsi
lea rdx, [rdi + 0x18]
mov qword [rdx], rsi
mov byte [rdi + 0x20], sil
mov dword [rdi + 0x24], 2
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x14001e9a1
mov qword [r14], rdi
mov qword [r14 + 8], rbx
test rdi, rdi
je 0x14001e98d
mov rax, qword [rdi + 8]
test rax, rax
je 0x14001e90e
cmp dword [rax + 8], esi
jne 0x14001e98d
lock inc dword [rbx + 8]
mov rbx, qword [r14 + 8]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
test rbx, rbx
je 0x14001e930
mov rax, rdi
mov rdx, rbx
lock inc dword [rbx + 0xc]
jmp 0x14001e93a
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov qword [rdi], rax
mov rcx, qword [rdi + 8]
mov qword [rdi + 8], rdx
mov edi, 0xffffffff
test rcx, rcx
je 0x14001e961
mov eax, edi
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x14001e961
mov rax, qword [rcx]
call qword [rax + 8]
test rbx, rbx
je 0x14001e98d
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14001e98d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14001e98d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rax, r14
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea rax, str.DtsService::EventMechanism::Error_creating_pipe_for_event_mechanism:
add rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002260
lea rdx, [0x14005b890]
lea rcx, [rsp + 0x40]
call fcn.140027268
int3
Function at 0x14001f620
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
sub rsp, 0x2a8
mov rax, qword [0x14005d030]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r8d, 0x104
lea rdx, [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14001f67f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetModuleFileName_failed_w_err_0x_08lx_n
call fcn.140019450
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400247e0
add rsp, 0x2a8
ret
xor edx, edx
mov qword [rsp + 0x2b0], rbx
xor ecx, ecx
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14001f6b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.140019450
jmp 0x14001f84f
xor ecx, ecx
mov qword [rsp + 0x2b8], rbp
mov qword [rsp + 0x60], rcx
lea rax, [0x14004bda8]
mov qword [rsp + 0x58], rcx
lea r8, [0x140051188]
mov qword [rsp + 0x50], rax
lea rdx, [0x1400511b0]
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rcx
lea r9d, [rcx + 4]
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rbp, rax
test rax, rax
jne 0x14001f74a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateService_failed_w_err_0x_08lx_n
call fcn.140019450
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14001f847
lea rdx, [0x1400511b0]
mov qword [rsp + 0x2a0], rdi
lea rcx, str._s_is_installed._n
call fcn.140019450
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14001f79f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed___d__n
call fcn.14001f5c0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14001f836
mov r8d, 2
mov qword [rsp + 0x2c0], rsi
lea rdx, [0x1400511b0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x14001f7db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed___d__n
call fcn.14001f5c0
jmp 0x14001f81c
lea rax, [0x140051130]
mov edx, 1
lea r8, [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
lea rdx, str.Service_description_updated_successfully._n
lea rcx, str.ChangeServiceConfig2_failed_n
cmovne rcx, rdx
call fcn.14001f5c0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x2c0]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x2a0]
mov rbp, qword [rsp + 0x2b8]
mov rbx, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400247e0
add rsp, 0x2a8
ret