joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140069654
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x103c0
call fcn.14020f0e0
sub rsp, rax
mov rax, qword [0x1403c9cb8]
xor rax, rsp
mov qword [rsp + 0x103b0], rax
cmp qword [rdx + 0x18], 8
mov rax, rdx
mov rbx, rcx
jb 0x140069684
mov rax, qword [rdx]
mov r8d, 0x7fff
lea rdx, [rsp + 0x3b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7ffe
ja 0x1400696f7
xor eax, eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rax
lea rcx, [rsp + 0x3b0]
mov word [rbx], ax
or r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], ax
jne 0x1400696c1
lea rdx, [rsp + 0x3b0]
mov rcx, rbx
call fcn.140018284
mov rax, rbx
mov rcx, qword [rsp + 0x103b0]
xor rcx, rsp
call fcn.14020ed60
add rsp, 0x103c0
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Failed_to_expand_environment_variables
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x20]
call fcn.14006947c
lea rdx, [0x140320d70]
lea rcx, [rsp + 0x20]
call fcn.14021017c
int3

Function at 0x14006a7b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x3e0
mov rax, qword [0x1403c9cb8]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x14006a855
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
jb 0x14006a7f8
mov rdx, qword [rdx]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14006a827
cmp eax, 2
je 0x14006a832
cmp eax, 0xea
je 0x14006a832
jmp 0x14006a87d
cmp dword [rsp + 0x30], 4
jne 0x14006a832
mov al, 1
jmp 0x14006a834
xor al, al
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.14020ed60
mov rbx, qword [rsp + 0x408]
add rsp, 0x3e0
pop rdi
ret
lea r8, str.ORegistryKey.GetValue_failure:_Cannot_get_DWORD_value._The_registry_key_is_closed_or_not_set
mov edx, 0x3a
lea rcx, [rsp + 0x40]
call fcn.14006a0d4
lea rdx, [0x140320d70]
lea rcx, [rsp + 0x40]
call fcn.14021017c
int3
lea rcx, [rdi + 0x10]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
lea r9, str.ORegistryKey.GetValue_failure:_Cannot_get_registry__s_value__s
lea rcx, [rsp + 0x40]
mov r8d, eax
mov edx, 0xf
call fcn.140069c48
lea rdx, [0x140320d70]
lea rcx, [rsp + 0x40]
call fcn.14021017c
int3
Function at 0x14006aab4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x3f0
mov rax, qword [0x1403c9cb8]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
mov rdi, rcx
mov dword [rsp + 0x40], r8d
mov rcx, qword [rcx + 0x30]
mov rbx, rdx
test rcx, rcx
je 0x14006ab3e
cmp qword [rdx + 0x10], 0x3fff
ja 0x14006ab66
cmp qword [rdx + 0x18], 8
jb 0x14006aafb
mov rdx, qword [rdx]
mov r9d, 4
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14006ab8e
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.14020ed60
mov rbx, qword [rsp + 0x418]
add rsp, 0x3f0
pop rdi
ret
lea r8, str.ORegistryKey.SetValue_failure:_Cannot_set_DWORD_value._The_registry_key_is_closed_or_not_set
mov edx, 0x3a
lea rcx, [rsp + 0x50]
call fcn.14006a0d4
lea rdx, [0x140320d70]
lea rcx, [rsp + 0x50]
call fcn.14021017c
int3
lea r8, str.ORegistryKey.SetValue_failure:_Cannot_set_DWORD_value._value_name_is_too_long
mov edx, 0x1d
lea rcx, [rsp + 0x50]
call fcn.140069e0c
lea rdx, [0x140320d70]
lea rcx, [rsp + 0x50]
call fcn.14021017c
int3
lea rcx, [rdi + 0x10]
mov r8d, eax
mov qword [rsp + 0x30], rcx
lea r9, str.ORegistryKey.SetValue_failure:_Cannot_set_DWORD_name___s__value___i__in_registry_key__s
lea rcx, [rsp + 0x40]
mov edx, 0xf
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
call fcn.14006a000
lea rdx, [0x140320d70]
lea rcx, [rsp + 0x50]
call fcn.14021017c
int3
Function at 0x14006af60
Capabilities:
Check mutex on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x468
mov rax, qword [0x1403c9cb8]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rax, qword [rsp + 0x4d8]
mov rdi, rcx
mov r12, qword [rsp + 0x4d0]
mov r15d, dword [rsp + 0x4e0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], r9d
mov qword [rsp + 0x40], r8
test rcx, rcx
jne 0x14006afbb
xor eax, eax
jmp 0x14006b0e0
and qword [rcx], 0
mov r8, rdx
mov ebx, 1
lea rcx, [rsp + 0x50]
mov edx, 0x400
mov dword [rsp + 0x20], ebx
mov r9d, r15d
call fcn.14006caf4
xor ebp, ebp
mov esi, r15d
shr esi, 0x1a
mov r14, rax
not sil
mov byte [rsp + 0x30], bpl
and sil, bl
test r14, r14
je 0x14006b011
mov edx, r15d
mov r8, r14
shr edx, 0x17
mov ecx, 0x120001
and edx, ebx
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov qword [rdi], rax
cmp qword [rdi], rbp
jne 0x14006b08a
test sil, sil
je 0x14006b08a
mov r8d, ebx
lea rdx, [rsp + 0x38]
mov ecx, r15d
xor r13d, r13d
call fcn.14006c674
test eax, eax
je 0x14006b07a
mov rcx, qword [rsp + 0x38]
mov edx, r15d
shr edx, 0x19
mov r8, r14
and edx, ebx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, ebx
lea rdx, [rsp + 0x38]
mov ecx, r15d
mov r13d, eax
call fcn.14006c860
cmp r13d, 5
jne 0x14006b07a
cmp byte [rsp + 0x30], bpl
jne 0x14006b07a
mov byte [rsp + 0x30], bl
jmp 0x14006aff3
cmp qword [rdi], rbp
je 0x14006b08a
cmp r13d, 0xb7
setne bpl
mov rax, qword [rdi]
add rax, rbx
test rax, 0xfffffffffffffffe
jne 0x14006b0af
test sil, sil
je 0x14006b0a7
mov ecx, 0x1631e1
call fcn.1401e41d8
and qword [rdi], 0
xor ebp, ebp
xor bl, bl
mov r13, qword [rsp + 0x40]
test r13, r13
je 0x14006b0d4
movsxd rdx, dword [rsp + 0x34]
lea r8, [0x140292bb2]
test r14, r14
mov rcx, r13
cmovne r8, r14
call fcn.14023ac98
test r12, r12
je 0x14006b0dd
mov dword [r12], ebp
movzx eax, bl
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14020ed60
add rsp, 0x468
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14006c480
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x1403c9cb8]
xor rax, rsp
mov qword [rbp + 0x27], rax
and qword [rbp - 0x41], 0
xor ebx, ebx
and dword [rbp - 0x49], ebx
mov rsi, rcx
test rcx, rcx
jne 0x14006c4cf
mov ecx, 0x15b3c8
call fcn.1401e41d8
xor edi, edi
jmp 0x14006c633
cmp dword [0x1403d29f0], ebx
je 0x14006c4e9
mov eax, dword [0x1403c1b7c]
mov edi, 1
mov dword [rcx], eax
jmp 0x14006c633
and dword [rcx], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x41]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14006c511
mov ecx, 0x15b3c9
jmp 0x14006c61a
mov rcx, qword [rbp - 0x41]
lea rax, [rbp - 0x49]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edi, [r9 + 2]
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14006c53e
mov ecx, 0x15b3ca
jmp 0x14006c61a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14006c553
mov ecx, 0x15b3cb
jmp 0x14006c61a
mov ecx, dword [rbp - 0x49]
xor edx, edx
call fcn.140070918
mov r15, rax
test rax, rax
je 0x14006c615
mov r9d, dword [rbp - 0x49]
mov rbx, rax
mov rcx, qword [rbp - 0x41]
lea rax, [rbp - 0x49]
mov r8, rbx
mov qword [rsp + 0x20], rax
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14006c596
mov ecx, 0x15b3cd
jmp 0x14006c61a
mov edi, 0x44
lea rcx, [rbp - 0x29]
mov r8d, edi
xor edx, edx
call fcn.1402108c0
lea r9, [rbp - 0x39]
mov dword [rbp - 0x39], edi
lea r8, [rbp - 0x29]
xor edx, edx
lea ecx, [rdi - 0x39]
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x14006c5ca
mov ecx, 0x15b3ce
jmp 0x14006c61a
xor r14d, r14d
lea edi, [r14 + 1]
cmp r14d, dword [r15]
jae 0x14006c605
mov r12d, r14d
add r12, r12
mov rcx, qword [r15 + r12*8 + 8]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14006c5fe
mov rdx, qword [r15 + r12*8 + 8]
lea rcx, [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x14006c603
add r14d, edi
jmp 0x14006c5d1
mov dword [rsi], edi
mov dword [0x1403d29f0], edi
mov eax, dword [rsi]
mov dword [0x1403c1b7c], eax
jmp 0x14006c622
mov ecx, 0x15b3cc
call fcn.1401e41d8
xor dil, dil
movzx edi, dil
test rbx, rbx
je 0x14006c633
mov rcx, rbx
call fcn.140070920
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x14006c647
and qword [rbp - 0x41], 0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14020ed60
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14006c7c0
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1403c9cb8]
xor rax, rsp
mov qword [rbp - 8], rax
and dword [rbp - 0x20], 0
lea rax, [rbp - 0x18]
and dword [rbp - 0x10], 0
mov qword [rsp + 0x50], rax
and dword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], r9d
mov r9d, r8d
mov r8d, edx
mov word [rbp - 0xc], 0x500
mov dl, cl
lea rcx, [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14006c845
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp - 0x20], ecx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp - 0x20]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14020ed60
add rsp, 0x80
pop rbp
ret

Function at 0x14006dd50
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0xa58]
sub rsp, 0xb40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1403c9cb8]
xor rax, rsp
mov qword [rbp + 0xa30], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
cmp qword [rdx + 0x10], rsi
jne 0x14006ddb4
lea r8, str.ORegistryKey.DeleteSubKeyTree_failure:_Empty_key_path
lea edx, [rsi + 0x1d]
lea rcx, [rbp - 0x80]
call fcn.14006cdf0
lea rdx, [0x140320d70]
lea rcx, [rbp - 0x80]
call fcn.14021017c
int3
cmp qword [rdx + 0x10], 0xff
jbe 0x14006dded
mov r9, rbx
lea r8, str.ORegistryKey.DeleteSubKeyTree_failure:_The_subkey_name___s__is_too_long
mov edx, 0x1d
lea rcx, [rbp + 0x310]
call fcn.14006d154
lea rdx, [0x140320d70]
lea rcx, [rbp + 0x310]
call fcn.14021017c
int3
lea rax, vtable.RefCounted.0
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], esi
lea rax, vtable.ORegistryKey.0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], si
mov qword [rsp + 0x70], rsi
mov byte [rsp + 0x78], 1
mov dword [rsp + 0x7c], 0x85
mov byte [rsp + 0x28], sil
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov r8, rbx
lea rdx, [rsp + 0x40]
call fcn.14006aa08
test al, al
je 0x14006dea3
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14006de58
mov rdx, qword [rbx]
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x14006dea3
lea rcx, [rdi + 0x10]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
lea r9, str.ORegistryKey.DeleteSubKeyTree_failure:_Cannot_delete_Registry_Key__s_s.
mov r8d, eax
mov edx, 0xf
lea rcx, [rbp + 0x6a0]
call fcn.14006d25c
lea rdx, [0x140320d70]
lea rcx, [rbp + 0x6a0]
call fcn.14021017c
nop
lea rcx, [rsp + 0x40]
call fcn.14000b114
mov rcx, qword [rbp + 0xa30]
xor rcx, rsp
call fcn.14020ed60
mov rbx, qword [rsp + 0xb70]
add rsp, 0xb40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006ded0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x1403c9cb8]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov rdi, rcx
mov bl, r8b
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x14006df42
cmp qword [rdx + 0x10], 0
jne 0x14006df09
test bl, bl
jne 0x14006df6a
cmp qword [rdx + 0x18], 8
jb 0x14006df13
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x14006df21
test bl, bl
jne 0x14006df96
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.14020ed60
mov rbx, qword [rsp + 0x3f0]
add rsp, 0x3d0
pop rdi
ret
lea r8, str.ORegistryKey.DeleteValue_failure:_The_registry_key_is_closed_or_not_set
mov edx, 0x3a
lea rcx, [rsp + 0x30]
call fcn.14006d070
lea rdx, [0x140320d70]
lea rcx, [rsp + 0x30]
call fcn.14021017c
int3
lea r9, [rdi + 0x10]
mov edx, 0x1d
lea r8, str.ORegistryKey.DeleteValue_failure:_Cannot_delete_registry_value_from_Registry_Key__s._The_Registry_value_is_null
lea rcx, [rsp + 0x30]
call fcn.14006dc28
lea rdx, [0x140320d70]
lea rcx, [rsp + 0x30]
call fcn.14021017c
int3
lea rcx, [rdi + 0x10]
mov r8d, eax
mov qword [rsp + 0x20], rcx
lea r9, str.ORegistryKey.DeleteValue_failure:_Cannot_delete_registry_value_from_Registry_Key__s.
lea rcx, [rsp + 0x30]
mov edx, 0xf
call fcn.14006d74c
lea rdx, [0x140320d70]
lea rcx, [rsp + 0x30]
call fcn.14021017c
int3
Function at 0x14006dfcc
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x338]
sub rsp, 0x410
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1403c9cb8]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov rdi, rdx
mov r14, rcx
xor r12d, r12d
cmp qword [rcx + 0x30], r12
jne 0x14006e03e
lea r8, str.ORegistryKey.GetSubKeyNames_failure:_Cannot_get_all_sub_key_names._The_registry_is_closed_or_not_set
lea edx, [r12 + 0x3a]
lea rcx, [rsp + 0x70]
call fcn.14006db44
lea rdx, [0x140320d70]
lea rcx, [rsp + 0x70]
call fcn.14021017c
int3
call fcn.14006e6b0
mov esi, eax
mov dword [rsp + 0x40], r12d
mov rcx, r12
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r12w
mov r15, qword [rdi + 8]
mov rbx, qword [rdi]
cmp rbx, r15
je 0x14006e083
mov rcx, rbx
call fcn.14000c764
add rbx, 0x20
cmp rbx, r15
jne 0x14006e06d
mov rcx, qword [rsp + 0x60]
mov rax, qword [rdi]
mov qword [rdi + 8], rax
test esi, esi
je 0x14006e19c
mov ebx, 0xff
dec esi
mov dword [rsp + 0x40], 0x100
cmp rcx, rbx
jb 0x14006e0c6
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
mov word [rax + 0x1fe], r12w
jmp 0x14006e0d9
xor r8d, r8d
mov rdx, rbx
sub rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.14000c868
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov edx, esi
mov rcx, qword [r14 + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov r8d, eax
test eax, eax
jne 0x14006e16b
mov edx, dword [rsp + 0x40]
cmp rdx, qword [rsp + 0x60]
ja 0x14006e13e
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
mov word [rax + rdx*2], r12w
jmp 0x14006e150
xor r8d, r8d
sub rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14000c868
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140035060
test esi, esi
je 0x14006e19c
mov rcx, qword [rsp + 0x60]
jmp 0x14006e097
lea rax, [r14 + 0x10]
mov qword [rsp + 0x20], rax
lea r9, str.ORegistryKey.GetSubKeyNames_failure:_Cannot_get_all_sub_key_names__for_registry__s
mov edx, 0xf
lea rcx, [rsp + 0x70]
call fcn.14006d558
lea rdx, [0x140320d70]
lea rcx, [rsp + 0x70]
call fcn.14021017c
nop
lea rcx, [rsp + 0x50]
call fcn.14000c764
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.14020ed60
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14006e1d4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x1403c9cb8]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov rdi, rcx
mov rsi, r8
mov rcx, qword [rcx + 0x30]
mov rbx, rdx
test rcx, rcx
je 0x14006e2d8
and dword [rsp + 0x30], 0
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x34], 3
jb 0x14006e229
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x14006e2b4
cmp dword [rsp + 0x34], 3
jne 0x14006e2b4
test eax, eax
jne 0x14006e303
mov edx, dword [rsp + 0x30]
mov r8, rsi
mov rcx, rsi
call fcn.14006dc50
mov rax, qword [rsi + 8]
mov rdx, rbx
sub rax, qword [rsi]
neg rax
sbb rcx, rcx
and rcx, qword [rsi]
cmp qword [rbx + 0x18], 8
jb 0x14006e287
mov rdx, qword [rbx]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14006e337
mov al, 1
jmp 0x14006e2b6
xor al, al
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.14020ed60
mov rbx, qword [rsp + 0x418]
add rsp, 0x3e0
pop rdi
pop rsi
pop rbp
ret
mov r9, rbx
lea r8, str.ORegistryKey.GetValue_failure:_Cannot_get_value._The_tregistry_key_is_closed_or_not_set
mov edx, 0x3a
lea rcx, [rsp + 0x40]
call fcn.14006d83c
lea rdx, [0x140320d70]
lea rcx, [rsp + 0x40]
call fcn.14021017c
int3
lea rax, [rdi + 0x10]
mov r9, rbx
lea r8, str.ORegistryKey.GetValue_failure:_Cannot_get_the_binary_value___s__in_registry_key__s.
mov qword [rsp + 0x20], rax
mov edx, 0x2b
lea rcx, [rsp + 0x40]
call fcn.14006d654
lea rdx, [0x140320d70]
lea rcx, [rsp + 0x40]
call fcn.14021017c
int3
lea rax, [rdi + 0x10]
mov r9, rbx
lea r8, str.ORegistryKey.GetValue_failure:_Cannot_get_the_binary_value___s__in_registry_key__s.
mov qword [rsp + 0x20], rax
mov edx, 0x2b
lea rcx, [rsp + 0x40]
call fcn.14006d654
lea rdx, [0x140320d70]
lea rcx, [rsp + 0x40]
call fcn.14021017c
int3
Function at 0x14006e36c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x338]
sub rsp, 0x410
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1403c9cb8]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov rdi, rdx
mov r14, rcx
xor r12d, r12d
cmp qword [rcx + 0x30], r12
jne 0x14006e3de
lea r8, str.ORegistryKey.GetValueNames_failure:_Cannot_get_all_value_names._The_registry_is_closed_or_not_set
lea edx, [r12 + 0x3a]
lea rcx, [rsp + 0x70]
call fcn.14006d9ac
lea rdx, [0x140320d70]
lea rcx, [rsp + 0x70]
call fcn.14021017c
int3
call fcn.14006e79c
mov esi, eax
mov dword [rsp + 0x40], r12d
mov rcx, r12
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r12w
mov r15, qword [rdi + 8]
mov rbx, qword [rdi]
cmp rbx, r15
je 0x14006e423
mov rcx, rbx
call fcn.14000c764
add rbx, 0x20
cmp rbx, r15
jne 0x14006e40d
mov rcx, qword [rsp + 0x60]
mov rax, qword [rdi]
mov qword [rdi + 8], rax
test esi, esi
je 0x14006e53c
mov ebx, 0x3fff
dec esi
mov dword [rsp + 0x40], 0x4000
cmp rcx, rbx
jb 0x14006e466
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
mov word [rax + 0x7ffe], r12w
jmp 0x14006e479
xor r8d, r8d
mov rdx, rbx
sub rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.14000c868
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov edx, esi
mov rcx, qword [r14 + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r8d, eax
test eax, eax
jne 0x14006e50b
mov edx, dword [rsp + 0x40]
cmp rdx, qword [rsp + 0x60]
ja 0x14006e4de
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
mov word [rax + rdx*2], r12w
jmp 0x14006e4f0
xor r8d, r8d
sub rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14000c868
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140035060
test esi, esi
je 0x14006e53c
mov rcx, qword [rsp + 0x60]
jmp 0x14006e437
lea rax, [r14 + 0x10]
mov qword [rsp + 0x20], rax
lea r9, str.ORegistryKey.GetValueNames_failure:_Cannot_get_all_value_names_for_registry__s
mov edx, 0xf
lea rcx, [rsp + 0x70]
call fcn.14006d458
lea rdx, [0x140320d70]
lea rcx, [rsp + 0x70]
call fcn.14021017c
nop
lea rcx, [rsp + 0x50]
call fcn.14000c764
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.14020ed60
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14006e574
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x1403c9cb8]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
cmp qword [rcx + 0x30], 0
mov r9, r8
mov rbx, rdx
mov rdi, rcx
je 0x14006e61d
cmp qword [rdx + 0x10], 0x3fff
ja 0x14006e645
mov rcx, qword [r8 + 8]
mov eax, 0xffffffff
sub rcx, qword [r8]
cmp rcx, rax
ja 0x14006e671
mov rax, rcx
neg rax
sbb r8, r8
and r8, qword [r9]
cmp qword [rdx + 0x18], 8
jb 0x14006e5dc
mov rdx, qword [rdx]
mov dword [rsp + 0x28], ecx
mov r9d, 3
mov rcx, qword [rdi + 0x30]
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14006e677
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.14020ed60
mov rbx, qword [rsp + 0x3f8]
add rsp, 0x3d0
pop rdi
ret
lea r8, str.ORegistryKey.SetValue_failure:_Registry_key_is_not_initialized
mov edx, 0x3a
lea rcx, [rsp + 0x30]
call fcn.14006cea0
lea rdx, [0x140320d70]
lea rcx, [rsp + 0x30]
call fcn.14021017c
int3
lea r9, [rcx + 0x10]
mov edx, 0x1d
lea rcx, [rsp + 0x30]
lea r8, str.ORegistryKey.SetValue_failure:_Cannot_set_binary_into_registry_key__s._The_value_name_is_too_long
call fcn.14006da90
lea rdx, [0x140320d70]
lea rcx, [rsp + 0x30]
call fcn.14021017c
int3
call fcn.14000c2cc
int3
lea rcx, [rdi + 0x10]
mov r8d, eax
mov qword [rsp + 0x28], rcx
lea r9, str.ORegistryKey.SetValue_failure:_Cannot_set_binary___s__reg_value__s.
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rbx
mov edx, 0xf
call fcn.14006cfa4
lea rdx, [0x140320d70]
lea rcx, [rsp + 0x30]
call fcn.14021017c
int3