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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov qword [rbp - 0x79], 0xfffffffffffffffe
mov rax, qword [0x14023c048]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rdx
mov qword [rbp - 0x31], rdx
xor sil, sil
mov rcx, qword [rcx + 8]
xor r14d, r14d
test rcx, rcx
je 0x14002a4c4
cmp qword [rdx + 0x18], 8
jb 0x14002a3cd
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
mov qword [rbp - 0x21], r14
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x19], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 9], xmm1
movdqa xmmword [rbp + 7], xmm0
mov qword [rbp - 0x39], r14
mov r8, r14
lea rdx, vtable.std::_Func_impl_no_alloc_int____cdecl___struct_SC_HANDLE______ptr64___int__struct_SC_HANDLE______ptr64_.0
cmp qword [sym.imp.ADVAPI32.dll_CloseServiceHandle], r14
je 0x14002a421
mov qword [rbp - 0x71], rdx
mov rax, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rbp - 0x69], rax
lea rax, [rbp - 0x71]
mov qword [rbp - 0x39], rax
lea r8, [rbp - 0x71]
mov rcx, rdi
mov qword [rbp - 0x29], rcx
mov rax, r14
mov qword [rbp + 0x17], rax
test r8, r8
je 0x14002a466
mov qword [rbp - 0x21], rdx
mov rax, qword [r8 + 8]
mov qword [rbp - 0x19], rax
lea rax, [rbp - 0x21]
mov qword [rbp + 0x17], rax
lea rdx, [rbp - 0x71]
cmp r8, rdx
je 0x14002a466
mov edx, 0x10
mov rcx, r8
call fcn.140148ec0
mov rax, qword [rbp + 0x17]
mov rcx, qword [rbp - 0x29]
test rdi, rdi
je 0x14002a487
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
setne sil
mov rax, qword [rbp + 0x17]
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14002a4a8
test rax, rax
je 0x14002a52d
mov rax, qword [rax + 8]
call qword [case.0x140024b66.0]
nop
mov qword [rbp - 0x29], r14
mov rax, qword [rbp + 0x17]
test rax, rax
je 0x14002a4c4
lea rcx, [rbp - 0x21]
cmp rax, rcx
je 0x14002a4c4
mov edx, 0x10
mov rcx, rax
call fcn.140148ec0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14002a4ff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14002a4fa
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002a533
mov rcx, r8
call fcn.140148ec0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
movzx eax, sil
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140149290
add rsp, 0xd0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140126d20
nop
call fcn.14016ae5c
int3
Function at 0x14002a9a0
Capabilities:
Query service status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xf8
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14023c048]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, r8
mov rbx, rdx
mov qword [rbp - 0x61], rdx
xor r14b, r14b
mov dword [r8], 0xffffffff
mov rcx, qword [rcx + 8]
xor r15d, r15d
test rcx, rcx
je 0x14002ab0a
cmp qword [rdx + 0x18], 8
jb 0x14002a9fa
mov rdx, qword [rdx]
mov r8d, r9d
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
mov qword [rbp - 0x51], r15
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x49], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x39], xmm1
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x69], r15
mov rcx, r15
lea rdx, vtable.std::_Func_impl_no_alloc_int____cdecl___struct_SC_HANDLE______ptr64___int__struct_SC_HANDLE______ptr64_.0
cmp qword [sym.imp.ADVAPI32.dll_CloseServiceHandle], r15
je 0x14002aa55
mov qword [rsp + 0x28], rdx
mov rax, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x28]
mov qword [rbp - 0x69], rax
lea rcx, [rsp + 0x28]
mov qword [rbp - 0x59], rdi
mov rax, r15
mov qword [rbp - 0x19], rax
test rcx, rcx
je 0x14002aa91
mov qword [rbp - 0x51], rdx
mov rax, qword [rcx + 8]
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x51]
mov qword [rbp - 0x19], rax
lea rdx, [rsp + 0x28]
cmp rcx, rdx
je 0x14002aa91
mov edx, 0x10
call fcn.140148ec0
mov rax, qword [rbp - 0x19]
test rdi, rdi
je 0x14002aac7
xor eax, eax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
mov dword [rbp + 0xf], eax
lea rdx, [rbp - 9]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
setne r14b
test eax, eax
je 0x14002aac3
mov eax, dword [rbp - 5]
mov dword [rsi], eax
mov rax, qword [rbp - 0x19]
cmp qword [rbp - 0x59], 0
je 0x14002aaee
test rax, rax
je 0x14002ab75
mov rcx, qword [rbp - 0x59]
mov rax, qword [rax + 8]
call qword [case.0x140024b66.0]
nop
mov qword [rbp - 0x59], r15
mov rax, qword [rbp - 0x19]
test rax, rax
je 0x14002ab0a
lea rcx, [rbp - 0x51]
cmp rax, rcx
je 0x14002ab0a
mov edx, 0x10
mov rcx, rax
call fcn.140148ec0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14002ab45
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14002ab40
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002ab7b
mov rcx, r8
call fcn.140148ec0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
movzx eax, r14b
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140149290
add rsp, 0xf8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140126d20
nop
call fcn.14016ae5c
int3
Function at 0x14002ab90
Capabilities:
Query service status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xe8
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14023c048]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x38], rdx
xor r14b, r14b
xor r15d, r15d
mov dword [r8], r15d
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14002ad0d
cmp qword [rdx + 0x18], 8
jb 0x14002abe7
mov rdx, qword [rdx]
mov r8d, r9d
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
mov qword [rbp - 0x71], r15
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x69], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x59], xmm1
movdqa xmmword [rbp - 0x49], xmm0
mov qword [rbp + 0xf], r15
mov rcx, r15
lea rdx, vtable.std::_Func_impl_no_alloc_int____cdecl___struct_SC_HANDLE______ptr64___int__struct_SC_HANDLE______ptr64_.0
cmp qword [sym.imp.ADVAPI32.dll_CloseServiceHandle], r15
je 0x14002ac3e
mov qword [rbp - 0x29], rdx
mov rax, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rbp - 0x21], rax
lea rax, [rbp - 0x29]
mov qword [rbp + 0xf], rax
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x79], rdi
mov rax, r15
mov qword [rbp - 0x39], rax
test rcx, rcx
je 0x14002ac79
mov qword [rbp - 0x71], rdx
mov rax, qword [rcx + 8]
mov qword [rbp - 0x69], rax
lea rax, [rbp - 0x71]
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 0x29]
cmp rcx, rdx
je 0x14002ac79
mov edx, 0x10
call fcn.140148ec0
mov rax, qword [rbp - 0x39]
test rdi, rdi
je 0x14002acca
xor eax, eax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
mov dword [rbp - 9], eax
mov dword [rsp + 0x38], r15d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp - 0x29]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
setne r14b
test eax, eax
je 0x14002acc6
mov eax, dword [rbp - 0xd]
mov dword [rsi], eax
mov rax, qword [rbp - 0x39]
cmp qword [rbp - 0x79], 0
je 0x14002acf1
test rax, rax
je 0x14002ad78
mov rcx, qword [rbp - 0x79]
mov rax, qword [rax + 8]
call qword [case.0x140024b66.0]
nop
mov qword [rbp - 0x79], r15
mov rax, qword [rbp - 0x39]
test rax, rax
je 0x14002ad0d
lea rcx, [rbp - 0x71]
cmp rax, rcx
je 0x14002ad0d
mov edx, 0x10
mov rcx, rax
call fcn.140148ec0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14002ad48
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14002ad43
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002ad7e
mov rcx, r8
call fcn.140148ec0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
movzx eax, r14b
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140149290
add rsp, 0xe8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140126d20
nop
call fcn.14016ae5c
int3
Function at 0x14002b6a0
Capabilities:
Access the windows event log

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov rax, qword [0x14023c048]
xor rax, rsp
mov qword [rbp], rax
mov r12d, r9d
movzx r15d, r8w
movzx r14d, dx
mov rbx, rcx
mov rdx, qword [rbp + 0x70]
xor sil, sil
cmp qword [rdx + 0x18], 8
jb 0x14002b6ec
mov rdx, qword [rdx]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x14002b839
cmp qword [rbx + 0x18], 8
jb 0x14002b70a
mov rbx, qword [rbx]
mov qword [rbp - 0x58], rbx
xor ebx, ebx
mov qword [rbp - 0x48], rbx
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x30], xmm1
movdqa xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x78], rbx
mov ecx, ebx
cmp qword [sym.imp.ADVAPI32.dll_DeregisterEventSource], rbx
je 0x14002b75e
lea rax, vtable.std::_Func_impl_no_alloc_int____cdecl___void____ptr64___int__void____ptr64_.0
mov qword [rsp + 0x50], rax
mov rax, qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x78], rax
lea rcx, [rsp + 0x50]
lea rax, [rsp + 0x50]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x50], rdi
lea rax, [rbp - 0x48]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x10], rbx
test rcx, rcx
je 0x14002b794
mov rax, qword [rcx]
lea rdx, [rbp - 0x48]
mov rax, qword [rax]
call qword [case.0x140024b66.0]
mov qword [rbp - 0x10], rax
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14002b7b1
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x140024b66.0]
mov ecx, 1
mov qword [rsp + 0x40], rbx
lea rax, [rbp - 0x58]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
mov word [rsp + 0x28], cx
mov qword [rsp + 0x20], rbx
mov r9d, r12d
movzx r8d, r15w
movzx edx, r14w
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
cmp eax, 1
sete sil
mov rax, qword [rbp - 0x50]
test rax, rax
je 0x14002b818
mov qword [rbp - 0x60], rax
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14002b85b
mov rax, qword [rcx]
lea rdx, [rbp - 0x60]
mov rax, qword [rax + 0x10]
call qword [case.0x140024b66.0]
mov qword [rbp - 0x50], rbx
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14002b839
mov rax, qword [rcx]
lea rdx, [rbp - 0x48]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x140024b66.0]
nop
movzx eax, sil
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140149290
add rsp, 0x110
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140126d20
nop
int3
Function at 0x14002b920
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0xe8
mov rax, qword [0x14023c048]
xor rax, rsp
mov qword [rsp + 0xd0], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0xb0
call fcn.140167e60
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov r8d, 0xb0
lea ecx, [r9 + 0x50]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x14002b9ae
mov rax, qword [rsp + 0x80]
add rax, qword [rsp + 0x78]
add rax, qword [rsp + 0x70]
add rax, qword [rsp + 0x68]
add rax, qword [rsp + 0x60]
add rax, qword [rsp + 0x58]
add rax, qword [rsp + 0x50]
add rax, qword [rsp + 0x48]
shl rax, 0xc
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140149290
add rsp, 0xe8
ret
xor eax, eax
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140149290
add rsp, 0xe8
ret
Function at 0x140030820
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov rax, qword [0x14023c048]
xor rax, rsp
mov qword [rbp - 8], rax
mov r15, r9
mov rsi, r8
xor eax, eax
mov qword [rbp - 0x18], rax
xor r12d, r12d
mov qword [rbp - 0x20], r12
mov dword [rbp - 0x18], r12d
mov qword [rbp - 0x10], r12
cmp qword [rdx + 0x18], 8
jb 0x140030870
mov rdx, qword [rdx]
movzx r9d, byte [rbp + 0x60]
shl r9d, 9
add r9d, 0x20019
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x20]
call fcn.140032cd0
mov edi, eax
test eax, eax
jne 0x1400309f2
mov qword [rbp - 0x40], r12
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
mov eax, r12d
mov dword [rbp - 0x48], eax
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x1400308f4
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400308c1
mov rdx, qword [rsi]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x28]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
cmp eax, 0xea
mov eax, dword [rbp - 0x48]
je 0x1400308f4
test ecx, ecx
cmovne eax, r12d
mov dword [rbp - 0x48], eax
mov edx, eax
lea r8, [rbp - 0x40]
lea rcx, [rbp - 0x40]
call fcn.14002bef0
mov rax, qword [rbp - 0x38]
mov r14, qword [rbp - 0x40]
sub rax, r14
cmp qword [rsi + 0x18], 8
jb 0x140030918
mov rsi, qword [rsi]
add eax, eax
mov dword [rbp - 0x48], eax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x28]
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1400309a5
mov eax, dword [rbp - 0x28]
dec eax
cmp eax, 1
jbe 0x140030955
mov edi, SafeArrayDestroy
jmp 0x1400309a5
test r14, r14
je 0x14003097c
mov eax, dword [rbp - 0x48]
test eax, eax
je 0x140030978
test al, 1
jne 0x140030971
shr rax, 1
cmp word [r14 + rax*2 - 2], 0
je 0x14003097c
mov edi, SafeArrayDestroy
jmp 0x1400309a5
mov word [r14], r12w
mov edi, r12d
mov rcx, qword [rbp - 0x40]
cmp qword [rbp - 0x38], rcx
je 0x1400309a9
mov r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], r12w
jne 0x140030990
mov rdx, rcx
mov rcx, r15
call fcn.14001f5f0
mov rcx, qword [rbp - 0x40]
test rbx, rbx
je 0x1400309be
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r12
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1400309f6
mov rdx, qword [rbp - 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400309eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030a24
call fcn.140148ec0
jmp 0x1400309f6
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x140030a04
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140149290
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14016ae5c
nop
int3
Function at 0x140030d90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x14023c048]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ebp, ebp
mov rsi, r9
cmp qword [rdx + 0x18], 8
mov rbx, r8
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x48], rbp
jb 0x140030dc9
mov rdx, qword [rdx]
movzx r9d, byte [rsp + 0xb0]
mov r8, rdx
shl r9d, 9
mov rdx, rcx
add r9d, 0x20019
lea rcx, [rsp + 0x38]
call fcn.140032cd0
mov edi, eax
test eax, eax
jne 0x140030e54
cmp qword [rbx + 0x18], 8
jb 0x140030dfd
mov rbx, qword [rbx]
mov rdi, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov rcx, rdi
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rsp + 0x30], 4
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140030e42
cmp dword [rsp + 0x34], 4
mov ebx, ebp
mov eax, SafeArrayDestroy
cmovne ebx, eax
test rdi, rdi
je 0x140030e50
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140030e66
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140030e66
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140149290
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140030e80
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x14023c048]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebp, ebp
mov dword [rsp + 0x30], r9d
cmp qword [rdx + 0x18], 8
mov esi, r9d
mov rdi, r8
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rbp
jb 0x140030ebe
mov rdx, qword [rdx]
movzx r9d, byte [rsp + 0xb0]
mov r8, rdx
shl r9d, 9
mov rdx, rcx
add r9d, 0x20019
lea rcx, [rsp + 0x40]
call fcn.140032cd0
mov ebx, eax
test eax, eax
jne 0x140030f46
cmp qword [rdi + 0x18], 8
jb 0x140030ef2
mov rdi, qword [rdi]
lea rax, [rsp + 0x34]
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
mov rdx, rdi
lea rax, [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140030f3c
cmp dword [rsp + 0x38], 4
mov ebx, ebp
mov eax, SafeArrayDestroy
cmovne ebx, eax
test rdi, rdi
je 0x140030f56
mov rcx, rdi
jmp 0x140030f50
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140030f56
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
test ebx, ebx
cmovne eax, esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140149290
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400310d0
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14023c048]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, r8
xor sil, sil
xor r8d, r8d
mov edi, r9d
cmp qword [rdx + 0x18], 8
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x58], r8
jb 0x14003110c
mov rdx, qword [rdx]
movzx eax, byte [rsp + 0xb0]
xor r9d, r9d
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], r8
shl eax, 9
add eax, 0x20006
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r8d
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.140032b30
test eax, eax
jne 0x1400311a1
cmp qword [rbx + 0x18], 8
jb 0x140031150
mov rbx, qword [rbx]
mov dword [rsp + 0x40], edi
lea rax, [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r9d, 4
mov rcx, rdi
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, sil
mov ecx, 1
test eax, eax
cmove ebx, ecx
test rdi, rdi
je 0x14003119c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
jmp 0x1400311b5
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400311b1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, sil
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140149290
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400311d0
Capabilities:
Set registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x68
mov rax, qword [0x14023c048]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, r8
mov rbx, r9
xor r8d, r8d
cmp qword [rdx + 0x18], 8
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x50], r8
jb 0x140031208
mov rdx, qword [rdx]
movzx eax, byte [rsp + 0xa0]
xor r9d, r9d
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], r8
shl eax, 9
add eax, 0x20006
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r8d
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.140032b30
test eax, eax
jne 0x1400312c0
cmp qword [rbx + 0x18], 8
jb 0x14003124c
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x140031256
mov rdi, qword [rdi]
test rbx, rbx
jne 0x140031260
lea eax, [rbx + 0xd]
jmp 0x1400312a3
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140031270
mov rcx, qword [rsp + 0x40]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
cmp qword [rsp + 0x40], 0
je 0x1400312bb
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
jmp 0x1400312d2
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400312d0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140149290
add rsp, 0x68
pop rdi
pop rbx
ret
Function at 0x140032790
Capabilities:
Delete registry key

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
test rdi, rdi
je 0x140032856
mov rbx, qword [rcx]
cmp qword [rdi], 0
je 0x140032822
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop
test rax, rax
je 0x140032841
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
test rax, rax
je 0x140032841
mov qword [rsp + 0x28], 0
mov rdx, qword [rdi]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [case.0x140024b66.0]
nop
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
cmp dword [rdi + 8], 0
je 0x140032841
mov rcx, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
cmp byte [0x1402572d0], 0
jne 0x1400328a3
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop
test rax, rax
je 0x140032893
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
mov qword [0x1402572c8], rax
mov byte [0x1402572d0], 1
jmp 0x1400328aa
mov rax, qword [0x1402572c8]
mov byte [0x1402572d0], 1
jmp 0x1400328aa
mov rax, qword [0x1402572c8]
mov rdx, rsi
mov rcx, qword [rbx]
test rax, rax
je 0x14003282b
xor r9d, r9d
mov r8d, dword [rbx + 8]
call qword [case.0x140024b66.0]
nop
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret