joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018bb0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x5b0]
sub rsp, 0x6b0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x6e0], rbx
mov rax, qword [0x1400aa008]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
mov esi, r9d
mov edi, r8d
mov r14, rdx
mov qword [rsp + 0x50], rdx
xor ebx, ebx
mov dword [rsp + 0x40], ebx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x180]
call fcn.140052580
lea r8d, [rbx + 1]
lea rdx, str.Property_u
lea rcx, [rbp + 0x180]
call fcn.1400123e0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x390]
call fcn.140052580
lea r8, [rbp + 0x390]
mov edx, esi
mov ecx, edi
call fcn.14007b2d0
mov edi, ebx
mov r15d, ebx
mov qword [r14 + 0x18], 7
mov qword [r14 + 0x10], rbx
cmp qword [r14 + 0x18], 8
jb 0x140018c69
mov rax, qword [r14]
jmp 0x140018c6c
mov rax, r14
mov word [rax], bx
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x390]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140018d45
mov rdi, rbx
mov r15d, ebx
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [rbp + 0x180]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x140018d26
mov r15d, dword [rsp + 0x30]
mov ecx, r15d
call fcn.1400307e0
mov rdi, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [rbp + 0x180]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x140018d4d
test rdi, rdi
je 0x140018d45
mov rcx, rdi
call fcn.1400307d8
mov rdi, rbx
test esi, esi
jne 0x140018dfa
test rdi, rdi
je 0x140018dfa
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x70]
call fcn.140052580
mov r8d, r15d
mov ecx, 0x103
cmp r15d, ecx
cmova r8d, ecx
mov rdx, rdi
lea rcx, [rbp + 0x70]
call fcn.140050ed0
mov eax, r15d
cmp rax, 0x104
jae 0x140018df4
mov byte [rbp + rax + 0x70], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov r8d, 3
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.14000d770
nop
mov rdx, qword [rsp + 0x60]
cmp word [rdx], 0
je 0x140018dca
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140018dc0
mov r8, rbx
mov rcx, r14
call fcn.140011d80
nop
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x140018dea
call fcn.14005392c
mov rcx, rdi
call fcn.1400307d8
jmp 0x140018dfa
call fcn.1400308f0
int3
mov rax, r14
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.140030090
mov rbx, qword [rsp + 0x6e0]
add rsp, 0x6b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001bd70
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x7c], 0
mov rbx, rcx
jne 0x14001bfd0
cmp qword [rcx + 0x80], 0
jne 0x14001bda1
lea rcx, str.HeadTrackerLib.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx + 0x80], rax
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x14001bfc6
lea rdx, str.HeadTrackerInit
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x80]
lea rdx, str.HeadTrackerStart
mov qword [rbx + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x80]
lea rdx, str.HeadTrackerStop
mov qword [rbx + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x80]
lea rdx, str.HeadTrackerGetTrackingStatus
mov qword [rbx + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x80]
lea rdx, str.HeadTrackerDisplaySingleFrame
mov qword [rbx + 0xa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x80]
lea rdx, str.HeadTrackerRelease
mov qword [rbx + 0xa8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x80]
lea rdx, str.HeadTrackerGetImagePtr
mov qword [rbx + 0xb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x80]
lea rdx, str.HeadTrackerSetActiveVideoCaptureDevice
mov qword [rbx + 0xb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x80]
lea rdx, str.HeadTrackerSetPauseTracking
mov qword [rbx + 0xc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x80]
lea rdx, str.HeadTrackerSetVerboseDisplay
mov qword [rbx + 0xc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x80]
lea rdx, str.HeadTrackerSetSearchTimeConsts
mov qword [rbx + 0xd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x80]
lea rdx, str.HeadTrackerSetOutputImageParams
mov qword [rbx + 0xd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x80]
lea rdx, str.HeadTrackerProcessFrame
mov qword [rbx + 0xe0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x80]
lea rdx, str.HeadTrackerResetModel
mov qword [rbx + 0xe8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [rbx + 0x88], 0
mov qword [rbx + 0xf0], rax
je 0x14001bfc1
cmp qword [rbx + 0x90], 0
je 0x14001bfc1
cmp qword [rbx + 0x98], 0
je 0x14001bfc1
cmp qword [rbx + 0xa0], 0
je 0x14001bfc1
cmp qword [rbx + 0xa8], 0
je 0x14001bfc1
cmp qword [rbx + 0xb0], 0
je 0x14001bfc1
cmp qword [rbx + 0xb8], 0
je 0x14001bfc1
cmp qword [rbx + 0xc0], 0
je 0x14001bfc1
cmp qword [rbx + 0xc8], 0
je 0x14001bfc1
cmp qword [rbx + 0xd0], 0
je 0x14001bfc1
cmp qword [rbx + 0xd8], 0
je 0x14001bfc1
cmp qword [rbx + 0xe0], 0
je 0x14001bfc1
cmp qword [rbx + 0xe8], 0
je 0x14001bfc1
test rax, rax
je 0x14001bfc1
mov eax, 1
mov byte [rbx + 0x7c], al
add rsp, 0x20
pop rbx
ret
xor eax, eax
mov byte [rbx + 0x7c], al
movzx eax, byte [rbx + 0x7c]
add rsp, 0x20
pop rbx
ret
movzx eax, byte [rcx + 0x7c]
add rsp, 0x20
pop rbx
ret
Function at 0x14001dfa0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rax, qword [0x1400aa008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor bl, bl
mov qword [rsp + 0x20], 0
cmp qword [rcx + 0x10], 0
je 0x14001e071
cmp qword [rcx + 0x18], 0x10
jb 0x14001dff2
mov rdx, qword [rcx]
jmp 0x14001dff5
mov rdx, rdi
lea r8, [0x140091098]
lea rcx, [rsp + 0x20]
call fcn.140061dd0
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14001e071
xor edx, edx
lea r8d, [rdx + 2]
call fcn.140061bbc
mov rcx, qword [rsp + 0x20]
call fcn.140061850
movsxd rbp, eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.140061bbc
test ebp, ebp
jle 0x14001e066
mov rbx, rbp
mov rdx, rbp
mov rcx, rsi
call fcn.14001e6c0
mov r9, qword [rsp + 0x20]
mov r8d, 1
mov rdx, rbp
mov rcx, qword [rsi]
call fcn.1400620a8
cmp rax, 1
sete bl
mov rcx, qword [rsp + 0x20]
call fcn.1400618dc
nop
mov rcx, rdi
call fcn.1400037e0
movzx eax, bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140030090
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x140024170
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
xor ebx, ebx
mov rsi, r9
mov rbp, r8
mov edi, 0x80004005
mov rcx, 0xffffffff80000002
test r8, r8
jne 0x1400241af
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
jmp 0x140024246
lea rax, [rsp + 0x80]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test rsi, rsi
jne 0x140024202
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140024246
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x140024239
cmp qword [rsp + 0x60], rbx
je 0x140024246
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x60]
mov r9d, 1
xor r8d, r8d
mov rdx, rbp
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x70]
test edi, edi
mov rsi, qword [rsp + 0x78]
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140024270
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r14, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
xor r15d, r15d
mov dword [rax - 0x38], r15d
mov rdx, qword [rsp + 0x90]
call fcn.140006f10
mov ebp, 1
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400243e5
mov dword [rsp + 0x98], r15d
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [rsp + 0x98]
test edx, edx
je 0x1400243da
jns 0x140024336
mov ecx, 0x80070057
call fcn.140003260
int3
mov rax, qword [rsi]
sub ebp, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edx
or ebp, eax
jge 0x14002434d
mov rcx, rsi
call fcn.140007280
mov rbx, qword [rsi]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140024380
test rax, rax
je 0x14002439d
mov eax, dword [rsp + 0x98]
dec eax
mov word [rbx + rax*2], r15w
mov rcx, qword [rsi]
test rcx, rcx
jne 0x1400243aa
mov eax, r15d
jmp 0x1400243b7
movsxd rdx, dword [rcx - 0xc]
call fcn.140057cfc
test eax, eax
js 0x1400243cf
mov rcx, qword [rsi]
cmp eax, dword [rcx - 0xc]
jg 0x1400243cf
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rsi]
mov word [rax + rcx*2], r15w
jmp 0x1400243da
mov ecx, 0x80070057
call fcn.140003260
int3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rsi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140024410
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x50
xor ebx, ebx
mov rsi, r8
mov edi, 0x80004005
test r8, r8
jne 0x14002443d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
jmp 0x1400244b1
lea rax, [rsp + 0x80]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400244b1
lea rax, [rsp + 0x78]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x68]
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x1400244d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov rbx, r8
mov dword [rsp + 0x68], r9d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14002454d
lea rax, [rsp + 0x70]
mov dword [rsp + 0x70], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x68]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x68]
add rsp, 0x40
pop rbx
ret
Function at 0x140024560
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov r14, r9
mov r12, r8
mov edi, 0x80004005
xor r13d, r13d
mov qword [r11 - 0x40], r13
lea rax, [r11 + 0x28]
mov qword [r11 - 0x58], rax
lea rax, [r11 - 0x40]
mov qword [r11 - 0x60], rax
mov qword [r11 - 0x68], r13
mov dword [rsp + 0x28], 0x2001f
mov dword [r11 - 0x78], r13d
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp qword [rsp + 0x58], r13
je 0x140024738
call fcn.140003500
mov rcx, rax
test rax, rax
jne 0x1400245e2
mov ecx, edi
call fcn.140003260
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov rsi, r13
mov rax, qword [r14 + 8]
mov r15d, 1
test rax, rax
je 0x140024694
cmp r13, rax
jae 0x140024689
mov rax, qword [r14]
mov rdx, qword [rax + rsi*8]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.14000df60
mov rbx, qword [rsp + 0x50]
mov ebp, dword [rbx - 0x10]
lea edi, [rbp + 1]
test edi, edi
js 0x14002467e
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140024650
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140007280
mov rbx, qword [rsp + 0x50]
mov word [rbx + rbp*2], r13w
cmp edi, dword [rbx - 0xc]
jg 0x140024673
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], r13w
inc rsi
mov rax, qword [r14 + 8]
cmp rsi, rax
jb 0x14002460c
jmp 0x140024694
mov ecx, 0x80070057
call fcn.140003260
int3
mov ecx, 0x80070057
call fcn.140003260
int3
mov ecx, 0x80070057
call fcn.140003260
int3
mov esi, dword [rbx - 0x10]
lea edi, [rsi + 1]
test edi, edi
jns 0x1400246a9
mov ecx, 0x80070057
call fcn.140003260
int3
sub r15d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, r15d
jge 0x1400246c8
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140007280
mov rbx, qword [rsp + 0x50]
mov word [rbx + rsi*2], r13w
cmp edi, dword [rbx - 0xc]
jg 0x14002472d
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], r13w
mov eax, dword [rbx - 0x10]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 7
xor r8d, r8d
mov rdx, r12
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140024738
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
jmp 0x140024738
mov ecx, 0x80070057
call fcn.140003260
nop
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140024ac0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov rsi, r8
mov rbx, rdx
mov rbp, rcx
xor r14d, r14d
mov dword [rax - 0x34], r14d
call fcn.140003500
mov rcx, rax
test rax, rax
jne 0x140024b07
mov ecx, 0x80004005
call fcn.140003260
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov edi, 1
mov dword [rsp + 0x34], edi
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140024c07
mov dword [rsp + 0x30], r14d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [rsp + 0x30]
test edx, edx
je 0x140024c07
jns 0x140024b68
mov ecx, 0x80070057
call fcn.140003260
int3
mov rax, qword [rbx]
sub edi, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edx
or edi, eax
jge 0x140024b7f
mov rcx, rbx
call fcn.140007280
mov rdi, qword [rbx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x140024bb0
test rax, rax
je 0x140024bca
mov eax, dword [rsp + 0x30]
dec eax
mov word [rdi + rax*2], r14w
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140024bd7
mov eax, r14d
jmp 0x140024be4
movsxd rdx, dword [rcx - 0xc]
call fcn.140057cfc
test eax, eax
js 0x140024bfc
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140024bfc
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], r14w
jmp 0x140024c07
mov ecx, 0x80070057
call fcn.140003260
int3
mov rax, rbx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret

Function at 0x140024c90
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 8]
xor ebx, ebx
test rcx, rcx
je 0x140024cc9
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
lea r9d, [rbx + 4]
mov qword [rsp + 0x20], rax
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 0x140024d40
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov ebp, r9d
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp qword [rcx + 8], rbx
je 0x140024da8
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rdi + 8]
mov r9d, ebx
test ebp, ebp
mov rdx, r14
setne r9b
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
inc r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140025bf0
Capabilities:
Create service
Persist via windows service

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x4a0
mov rax, qword [0x1400aa008]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rbp, r8
lea rcx, [rsp + 0x280]
mov rdi, rdx
mov r8d, 0x208
xor edx, edx
xor ebx, ebx
call fcn.140052580
mov r8d, 0x104
lea rdx, [rsp + 0x280]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140025d81
cmp word [rsp + 0x280], bx
je 0x140025d81
xor edx, edx
mov qword [rsp + 0x4c0], rsi
mov r8d, 0x204
mov dword [rsp + 0x70], 0x22
lea rcx, [rsp + 0x74]
call fcn.140052580
lea r8, [rsp + 0x280]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.140053218
lea r8, [0x140091904]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.140053218
xor edx, edx
lea r8d, [rbx + 3]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.OpenSCManager_failed.
mov rdx, rsi
mov r9d, eax
call fcn.140024dd0
test rsi, rsi
je 0x140025d5c
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rbx
lea r9d, [rbx + 4]
mov qword [rsp + 0x50], rbx
mov r8, rbp
mov qword [rsp + 0x48], rbx
mov rdx, rdi
mov qword [rsp + 0x40], rbx
mov rcx, rsi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.CreateService_failed.
mov rdx, rdi
mov r9d, eax
call fcn.140024dd0
test rdi, rdi
je 0x140025d53
mov rcx, rdi
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x4c0]
mov eax, ebx
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140030090
add rsp, 0x4a0
pop rdi
pop rbp
pop rbx
ret
mov eax, ebx
jmp 0x140025d66
Function at 0x140025d90
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x1400aa008]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbp, rdx
mov r14d, 1
xor ebx, ebx
mov r8d, r14d
xor edx, edx
xor ecx, ecx
mov esi, ebx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r15, [0x14008a330]
test rdi, rdi
jne 0x140025e36
mov r9d, eax
lea r8, str.OpenSCManager_failed.
lea rdx, str._s._Error_Code___d.
lea rcx, [rsp + 0x40]
call fcn.1400262a0
lea rax, [rsp + 0x40]
mov r9d, r14d
mov qword [rsp + 0x30], rax
lea r8, [0x1400abd38]
mov qword [rsp + 0x28], r15
lea edx, [rbx + 0x31]
lea rcx, str.s:p4clientconsumermainrel3consumerplatform_vista_sharedGenericService.h
mov qword [rsp + 0x20], rbx
call fcn.140005e30
jmp 0x140025e4b
mov r8d, 0x10
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
jne 0x140025ea0
mov r9d, eax
lea r8, str.OpenService_failed.
lea rdx, str._s._Error_Code___d.
lea rcx, [rsp + 0x40]
call fcn.1400262a0
lea rax, [rsp + 0x40]
mov r9d, r14d
mov qword [rsp + 0x30], rax
lea r8, [0x1400abd38]
mov qword [rsp + 0x28], r15
lea edx, [rsi + 0x31]
lea rcx, str.s:p4clientconsumermainrel3consumerplatform_vista_sharedGenericService.h
mov qword [rsp + 0x20], rbx
call fcn.140005e30
jmp 0x140025ebd
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
mov rcx, rsi
cmovne ebx, r14d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x140025ecb
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140030090
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret