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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xd0
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov rax, qword [0x140122f00]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rdi, r8
mov r15d, edx
mov rsi, rcx
mov r14, qword [rbp + 0x7f]
xor r12d, r12d
mov qword [rbp - 0x71], r12
mov rcx, r14
call fcn.140049108
mov ecx, 0x8000
call fcn.140097b58
mov rbx, rax
mov qword [rbp - 0x59], rax
test rax, rax
jne 0x140066def
lea edi, [rax + 0xe]
jmp 0x140066fa3
cmp qword [rbp - 0x71], r12
je 0x140066e24
lea rdx, str.Attempting_to_assign_an_already_valid_handle.
lea rcx, [rbp - 0x11]
call fcn.140005a2c
nop
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x51]
call fcn.140005278
lea rdx, [0x140118428]
lea rcx, [rbp - 0x51]
call sub.msvcrt.dll__CxxThrowException
nop
cmp qword [rdi + 0x18], 8
jb 0x140066e2e
mov rdi, qword [rdi]
mov edx, r15d
mov rcx, rsi
call fcn.140066aac
mov rcx, rax
lea rax, [rbp - 0x71]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x140066fa3
mov esi, r12d
mov dword [rbp - 0x69], 0x4000
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x140066f74
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea rax, [rbp - 0x65]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x69]
mov r8, rbx
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test eax, eax
jne 0x140066f54
cmp dword [rbp - 0x65], 1
jne 0x140066f38
mov qword [rbp + 7], 7
mov qword [rbp - 1], r12
mov word [rbp - 0x11], r12w
cmp word [rbx], r12w
jne 0x140066ecf
mov r8, r12
jmp 0x140066edd
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], r12w
jne 0x140066ed3
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.140005c18
nop
mov r15, qword [r14]
lea r9, [rbp - 0x11]
mov r8, qword [r15 + 8]
mov rdx, r15
call fcn.14006ccdc
mov rdx, qword [r14 + 8]
movabs rcx, 0x555555555555554
sub rcx, rdx
cmp rcx, 1
jb 0x140066f47
lea rcx, [rdx + 1]
mov qword [r14 + 8], rcx
mov qword [r15 + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
cmp qword [rbp + 7], 8
jb 0x140066f38
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
inc esi
cmp esi, 0x1000
jae 0x140066fa3
jmp 0x140066e64
lea rcx, str.list_T__too_long
call fcn.140096d3c
nop
cmp eax, 0x103
jne 0x140066f6a
mov edi, 2
cmp qword [r14 + 8], r12
cmova edi, r12d
jmp 0x140066fa3
mov rcx, r14
call fcn.140049108
jmp 0x140066fa3
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rbp - 0x11]
call fcn.140005a2c
nop
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x51]
call fcn.140005278
lea rdx, [0x140118428]
lea rcx, [rbp - 0x51]
call sub.msvcrt.dll__CxxThrowException
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop
lea rcx, [rbp - 0x71]
call fcn.140005984
mov eax, edi
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1400b3bf0
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400679b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x50
mov rcx, qword [rsp + 0x90]
mov rbx, r8
mov rdi, rdx
xor ebp, ebp
xor r8d, r8d
mov qword [rax - 0x28], rbp
lea rdx, [0x1400d2100]
mov r14, r9
call fcn.140005c18
mov rsi, qword [rsp + 0x98]
mov dword [rsi], ebp
cmp qword [rbx + 0x18], 8
jb 0x140067a02
mov rbx, qword [rbx]
mov rcx, qword [rdi]
lea rax, [rsp + 0x40]
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov dword [rsi], eax
sete dil
test dil, dil
je 0x140067af1
mov eax, 0x104
or r12, 0xffffffffffffffff
mov dword [rsp + 0x98], eax
mov ecx, eax
mov eax, 2
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.140097b58
cmp qword [r14 + 0x18], 8
mov rbx, rax
jb 0x140067a67
mov r8, qword [r14]
jmp 0x140067a6a
mov r8, r14
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], rax
xor edx, edx
mov qword [rsp + 0x28], rbx
mov r9d, 0xffff
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov dword [rsi], eax
test eax, eax
jne 0x140067ac3
cmp word [rbx], bp
jne 0x140067aa4
mov r8, rbp
jmp 0x140067ab1
mov r8, r12
inc r8
cmp word [rbx + r8*2], bp
jne 0x140067aa7
mov rcx, qword [rsp + 0x90]
mov rdx, rbx
call fcn.140005c18
jmp 0x140067acf
cmp eax, 0xea
movzx edi, dil
cmovne edi, ebp
test rbx, rbx
je 0x140067add
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
cmp dword [rsi], 0xea
jne 0x140067af1
mov eax, dword [rsp + 0x98]
jmp 0x140067a42
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140067b01
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x50]
mov al, dil
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
Function at 0x140067b30
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x60
mov rsi, qword [rsp + 0x98]
mov rdi, r9
and qword [rax - 0x18], 0
mov rbx, r8
mov r14, rdx
and dword [rsi], 0
cmp qword [r8 + 0x18], 8
jb 0x140067b6a
mov rdx, qword [r8]
jmp 0x140067b6d
mov rdx, rbx
mov rcx, qword [r14]
lea rax, [rsp + 0x50]
mov r9d, 0x20106
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsi], eax
cmp eax, 2
jne 0x140067bda
cmp qword [rbx + 0x18], 8
jb 0x140067b9a
mov rbx, qword [rbx]
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov rcx, qword [r14]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
and qword [rsp + 0x30], 0
mov rdx, rbx
mov dword [rsp + 0x28], 0x2011b
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov dword [rsi], eax
sete bl
test bl, bl
je 0x140067c22
mov rcx, qword [rsp + 0x90]
cmp qword [rcx + 0x18], 8
mov rax, qword [rcx + 0x10]
jb 0x140067bf0
mov rcx, qword [rcx]
cmp qword [rdi + 0x18], 8
jb 0x140067bfa
mov rdi, qword [rdi]
add eax, eax
mov r9d, 1
mov dword [rsp + 0x28], eax
mov r8, rdi
mov qword [rsp + 0x20], rcx
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
mov dword [rsi], eax
sete bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140067c32
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x60]
mov al, bl
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
Function at 0x140067c60
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x50
mov rcx, qword [rsp + 0x90]
mov rbx, r8
mov rdi, rdx
xor ebp, ebp
xor r8d, r8d
mov qword [rax - 0x28], rbp
lea rdx, [0x1400d2100]
mov r15, r9
call fcn.140005c18
mov r14, qword [rsp + 0x98]
mov dword [r14], ebp
cmp qword [rbx + 0x18], 8
jb 0x140067cb8
mov rbx, qword [rbx]
mov rcx, qword [rdi]
lea rax, [rsp + 0x40]
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov dword [r14], eax
sete dil
test dil, dil
je 0x140067dba
neg byte [rsp + 0xa0]
mov eax, 0x104
mov dword [rsp + 0x98], eax
sbb esi, esi
and esi, 0xf0000000
or r13, 0xffffffffffffffff
mov ecx, eax
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.140097b58
cmp qword [r15 + 0x18], 8
mov rbx, rax
jb 0x140067d2d
mov r8, qword [r15]
jmp 0x140067d30
mov r8, r15
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], rax
lea r9d, [rsi + 0x1000ffff]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov dword [r14], eax
test eax, eax
jne 0x140067d8b
cmp word [rbx], bp
jne 0x140067d6c
mov r8, rbp
jmp 0x140067d79
mov r8, r13
inc r8
cmp word [rbx + r8*2], bp
jne 0x140067d6f
mov rcx, qword [rsp + 0x90]
mov rdx, rbx
call fcn.140005c18
jmp 0x140067d97
cmp eax, 0xea
movzx edi, dil
cmovne edi, ebp
test rbx, rbx
je 0x140067da5
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
cmp dword [r14], 0xea
jne 0x140067dba
mov eax, dword [rsp + 0x98]
jmp 0x140067d08
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140067dca
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x50]
mov al, dil
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
Function at 0x140067e00
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x60
mov rsi, qword [rsp + 0x98]
mov rdi, r9
and qword [rax - 0x18], 0
mov rbx, r8
mov r14, rdx
and dword [rsi], 0
cmp qword [r8 + 0x18], 8
jb 0x140067e3a
mov rdx, qword [r8]
jmp 0x140067e3d
mov rdx, rbx
mov rcx, qword [r14]
lea rax, [rsp + 0x50]
mov r9d, 0x20106
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsi], eax
cmp eax, 2
jne 0x140067eaa
cmp qword [rbx + 0x18], 8
jb 0x140067e6a
mov rbx, qword [rbx]
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov rcx, qword [r14]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
and qword [rsp + 0x30], 0
mov rdx, rbx
mov dword [rsp + 0x28], 0x2011b
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov dword [rsi], eax
sete bl
test bl, bl
je 0x140067ef2
mov rcx, qword [rsp + 0x90]
cmp qword [rcx + 0x18], 8
mov rax, qword [rcx + 0x10]
jb 0x140067ec0
mov rcx, qword [rcx]
cmp qword [rdi + 0x18], 8
jb 0x140067eca
mov rdi, qword [rdi]
add eax, eax
mov r9d, 2
mov dword [rsp + 0x28], eax
mov r8, rdi
mov qword [rsp + 0x20], rcx
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
mov dword [rsi], eax
sete bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140067f02
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x60]
mov al, bl
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret

Function at 0x140067f30
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push r14
sub rsp, 0x50
mov rsi, qword [rsp + 0x80]
mov rbx, r9
mov r14, qword [rsp + 0x88]
mov rax, r8
and qword [r11 - 0x18], 0
mov r10, rdx
and dword [rsi], 0
and dword [r14], 0
cmp qword [r8 + 0x18], 8
jb 0x140067f74
mov rax, qword [r8]
lea rcx, [rsp + 0x40]
mov r9d, 0x20119
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [r10]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov dword [r14], eax
sete dil
test dil, dil
je 0x140068003
cmp qword [rbx + 0x18], 8
mov dword [rsp + 0x80], 4
jb 0x140067fb6
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov r9d, 0x18
lea rax, [rsp + 0x88]
mov r8, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
mov dword [r14], eax
sete dil
test dil, dil
je 0x140068003
mov ecx, dword [rsp + 0x88]
mov dword [rsi], ecx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140068013
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov al, dil
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop r14
ret
Function at 0x140068040
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x60
mov rsi, qword [rsp + 0x98]
mov rdi, r9
and qword [rax - 0x18], 0
mov rbx, r8
mov r14, rdx
and dword [rsi], 0
cmp qword [r8 + 0x18], 8
jb 0x14006807a
mov rdx, qword [r8]
jmp 0x14006807d
mov rdx, rbx
mov rcx, qword [r14]
lea rax, [rsp + 0x50]
mov r9d, 0x20106
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsi], eax
cmp eax, 2
jne 0x1400680ea
cmp qword [rbx + 0x18], 8
jb 0x1400680aa
mov rbx, qword [rbx]
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov rcx, qword [r14]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
and qword [rsp + 0x30], 0
mov rdx, rbx
mov dword [rsp + 0x28], 0x2011b
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov dword [rsi], eax
sete bl
test bl, bl
je 0x140068123
cmp qword [rdi + 0x18], 8
jb 0x1400680f4
mov rdi, qword [rdi]
mov rax, qword [rsp + 0x90]
mov r9d, 4
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov dword [rsp + 0x28], r9d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
mov dword [rsi], eax
sete bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140068133
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x60]
mov al, bl
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret

Function at 0x140068160
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, qword [rsp + 0x70]
mov rbx, r9
and qword [rsp + 0x30], 0
mov rax, r8
mov r10, rdx
mov dil, 1
and dword [rsi], 0
cmp qword [r8 + 0x18], 8
jb 0x140068193
mov rax, qword [r8]
lea rcx, [rsp + 0x30]
mov r9d, 0x20106
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [r10]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsi], eax
cmp eax, 2
je 0x1400681dc
cmp qword [rbx + 0x18], 8
jb 0x1400681c3
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
mov dword [rsi], eax
sete dil
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400681ec
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x50]
mov al, dil
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140068210
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push r14
sub rsp, 0x50
mov rsi, qword [rsp + 0x80]
mov rbx, r9
mov r14, qword [rsp + 0x88]
mov rax, r8
and qword [r11 - 0x18], 0
mov r10, rdx
and qword [rsi], 0
and dword [r14], 0
cmp qword [r8 + 0x18], 8
jb 0x140068255
mov rax, qword [r8]
lea rcx, [rsp + 0x40]
mov r9d, 0x20119
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [r10]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov dword [r14], eax
sete dil
test dil, dil
je 0x1400682e6
cmp qword [rbx + 0x18], 8
mov dword [rsp + 0x80], 8
jb 0x140068297
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov r9d, 0x48
lea rax, [rsp + 0x88]
mov r8, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
mov dword [r14], eax
sete dil
test dil, dil
je 0x1400682e6
mov rcx, qword [rsp + 0x88]
mov qword [rsi], rcx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400682f6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov al, dil
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop r14
ret

Function at 0x140068320
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x60
mov rsi, qword [rsp + 0x98]
mov rdi, r9
and qword [rax - 0x18], 0
mov rbx, r8
mov r14, rdx
and dword [rsi], 0
cmp qword [r8 + 0x18], 8
jb 0x14006835a
mov rdx, qword [r8]
jmp 0x14006835d
mov rdx, rbx
mov rcx, qword [r14]
lea rax, [rsp + 0x50]
mov r9d, 0x20106
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsi], eax
cmp eax, 2
jne 0x1400683ca
cmp qword [rbx + 0x18], 8
jb 0x14006838a
mov rbx, qword [rbx]
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov rcx, qword [r14]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
and qword [rsp + 0x30], 0
mov rdx, rbx
mov dword [rsp + 0x28], 0x2011b
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov dword [rsi], eax
sete bl
test bl, bl
je 0x140068406
cmp qword [rdi + 0x18], 8
jb 0x1400683d4
mov rdi, qword [rdi]
mov rax, qword [rsp + 0x90]
mov r9d, 0xb
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov dword [rsp + 0x28], 8
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
mov dword [rsi], eax
sete bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140068416
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x60]
mov al, bl
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
Function at 0x140068440
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0x90
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x140122f00]
xor rax, rsp
mov qword [rbp + 7], rax
mov rsi, r9
mov rdi, r8
mov r14, rdx
mov r12, qword [rbp + 0x77]
mov r15, qword [rbp + 0x7f]
xor r13d, r13d
mov qword [rbp - 0x31], r13
mov rcx, r12
call fcn.140049108
mov dword [r15], r13d
mov ebx, r13d
mov qword [rbp - 0x29], rbx
mov dword [rbp - 0x39], 0x4000
cmp qword [rdi + 0x18], 8
jb 0x1400684ae
mov rdi, qword [rdi]
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [r15], eax
test eax, eax
sete r14b
test r14b, r14b
je 0x14006864d
mov ecx, dword [rbp - 0x39]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140097b58
mov rdi, rax
cmp rax, rbx
je 0x140068514
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rbx, rdi
mov qword [rbp - 0x29], rbx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
cmp qword [rsi + 0x18], 8
jb 0x140068528
mov r8, qword [rsi]
jmp 0x14006852b
mov r8, rsi
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r13
xor edx, edx
mov r9d, 0xffff
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov dword [r15], eax
test eax, eax
je 0x140068561
cmp eax, 0xea
je 0x1400684de
mov r14b, r13b
test r14b, r14b
je 0x14006864d
mov qword [rbp - 1], 7
mov qword [rbp - 9], r13
mov word [rbp - 0x19], r13w
xor r8d, r8d
lea rdx, [0x1400d2100]
lea rcx, [rbp - 0x19]
call fcn.140005c18
nop
mov esi, dword [rbp - 0x39]
shr rsi, 1
sub rsi, 2
mov rdi, r13
je 0x14006863c
movzx r8d, word [rbx + rdi*2]
test r8w, r8w
je 0x1400685bb
mov edx, 1
lea rcx, [rbp - 0x19]
call fcn.14000e2ec
cmp word [rbx + rdi*2], r13w
je 0x1400685cb
lea rax, [rdi + 1]
cmp rax, rsi
jne 0x140068621
mov r15, qword [r12]
lea r9, [rbp - 0x19]
mov r8, qword [r15 + 8]
mov rdx, r15
call fcn.14003ebc4
mov rdx, qword [r12 + 8]
movabs rcx, 0x555555555555554
sub rcx, rdx
cmp rcx, 1
jb 0x14006862f
lea rcx, [rdx + 1]
mov qword [r12 + 8], rcx
mov qword [r15 + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
mov qword [rbp - 9], r13
lea rax, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rax, qword [rbp - 0x19]
mov word [rax], r13w
inc rdi
cmp rdi, rsi
jb 0x1400685a2
jmp 0x14006863c
lea rcx, str.list_T__too_long
call fcn.140096d3c
nop
cmp qword [rbp - 1], 8
jb 0x14006864d
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14006865d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov al, r14b
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1400b3bf0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006b230
Capabilities:
Delete registry key

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x140122f00]
xor rax, rsp
mov qword [rbp], rax
mov rsi, r9
mov rdi, r8
mov r15d, edx
mov r12, rcx
mov dword [r9], 2
lea eax, [rdx - 2]
xor ebx, ebx
cmp eax, 1
ja 0x14006b3e5
mov qword [rsp + 0x30], rbx
mov r8d, edx
lea rdx, [rbp - 0x20]
call fcn.140066adc
nop
lea r8, [0x1400d995c]
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140026fe4
nop
lea r8, [0x1401231b0]
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1400271dc
mov r14, rax
cmp qword [rsp + 0x30], rbx
je 0x14006b2f5
lea rdx, str.Attempting_to_assign_an_already_valid_handle.
lea rcx, [rsp + 0x40]
call fcn.140005a2c
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140005278
lea rdx, [0x140118428]
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll__CxxThrowException
nop
cmp qword [rax + 0x18], 8
jb 0x14006b2ff
mov r14, qword [rax]
mov edx, r15d
mov rcx, r12
call fcn.140066aac
mov rcx, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsi], eax
cmp qword [rbp - 0x48], 8
jb 0x14006b33c
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov r14d, 7
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x50], rbx
mov word [rbp - 0x60], bx
cmp qword [rbp - 0x28], 8
jb 0x14006b35f
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x30], rbx
mov word [rbp - 0x40], bx
cmp qword [rbp - 8], 8
jb 0x14006b37c
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
cmp dword [rsi], ebx
jne 0x14006b3db
cmp qword [rdi + 0x18], 8
jb 0x14006b38a
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jne 0x14006b3c7
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rsp + 0x40]
call fcn.140005a2c
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140005278
lea rdx, [0x140118428]
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll__CxxThrowException
nop
xor r9d, r9d
mov r8d, 0x100
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov dword [rsi], eax
lea rcx, [rsp + 0x30]
call fcn.140005984
cmp dword [rsi], ebx
sete al
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400b3bf0
add rsp, 0x110
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret