joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400143f0
Capabilities:
Parse pe header

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 r14
sub rsp, 0x20
xor r11d, r11d
lea r8, [0x140000000]
mov r9, rdx
test rdx, rdx
jne 0x140014421
mov r9, r8
not r9
mov rdx, r9
mov rcx, r8
call fcn.140014120
test eax, eax
je 0x140014625
mov edx, 0x40
call fcn.140014120
test eax, eax
je 0x140014625
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140014625
movsxd rax, dword [0x14000003c]
cmp rax, r9
jae 0x140014625
lea rcx, [rax + r8]
mov edx, 0x108
call fcn.140014120
test eax, eax
je 0x140014625
cmp dword [rcx], 0x4550
jne 0x140014625
movzx eax, word [rcx + 0x14]
cmp rax, r9
jae 0x140014625
add rcx, 0x18
mov edx, 0x10b
cmp word [rcx], dx
jne 0x1400144ca
cmp rax, 0x60
jb 0x140014625
mov edx, 0xe0
call fcn.140014120
test eax, eax
je 0x140014625
mov eax, dword [rcx + 0x5c]
add rcx, 0x70
jmp 0x1400144fb
mov edx, 0x20b
cmp word [rcx], dx
jne 0x140014625
cmp rax, 0x70
jb 0x140014625
mov edx, 0xf0
call fcn.140014120
test eax, eax
je 0x140014625
mov eax, dword [rcx + 0x6c]
sub rcx, 0xffffffffffffff80
cmp eax, 2
jbe 0x140014625
mov eax, dword [rcx]
mov edx, dword [rcx + 4]
test rax, rax
je 0x140014625
test rdx, rdx
je 0x140014625
lea rdi, [rax + r8]
test rdi, rdi
je 0x140014625
mov rcx, rdi
call fcn.140014120
test eax, eax
je 0x140014625
mov ebp, 0x10
cmp rdx, rbp
jb 0x140014625
movzx ebx, word [rdi + 0xe]
test rbx, rbx
je 0x140014625
movzx ecx, word [rdi + 0xc]
lea r14d, [rbp - 8]
add rcx, 2
mov rsi, r11
lea rcx, [rdi + rcx*8]
test rbx, rbx
je 0x14001458b
mov rdx, r14
call fcn.140014120
test eax, eax
je 0x140014625
cmp word [rcx], bp
je 0x14001458b
add rcx, r14
inc rsi
cmp rsi, rbx
jb 0x14001456b
cmp rsi, rbx
je 0x140014625
mov ebx, dword [rcx + 4]
test ebx, ebx
jns 0x14001460d
mov esi, 0x7fffffff
mov rdx, rbp
and rbx, rsi
add rbx, rdi
mov rcx, rbx
call fcn.140014120
test eax, eax
je 0x140014625
cmp word [rbx + 0xe], r11w
jne 0x1400145c3
cmp word [rbx + 0xc], r11w
je 0x140014625
lea rcx, [rbx + 0x10]
mov rdx, r14
call fcn.140014120
test eax, eax
je 0x140014625
mov ebx, dword [rcx + 4]
test ebx, ebx
jns 0x14001460d
and rbx, rsi
mov rdx, rbp
add rbx, rdi
mov rcx, rbx
call fcn.140014120
test eax, eax
je 0x140014625
cmp word [rbx + 0xe], r11w
jne 0x1400145fd
cmp word [rbx + 0xc], r11w
je 0x140014625
lea rcx, [rbx + 0x10]
mov rdx, r14
call fcn.140014120
test eax, eax
je 0x140014625
mov ecx, dword [rcx + 4]
mov rdx, rbp
add rcx, rdi
call fcn.140014120
test eax, eax
je 0x140014625
mov r11d, dword [rcx]
add r11, r8
mov rbx, qword [rsp + 0x30]
mov rax, r11
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140014d84
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x270
mov rax, qword [0x140051ad0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, qword [rsp + 0x2a8]
lea rdx, str.UpdateHealthTools
mov rdi, rcx
add rcx, 8
call fcn.1400139d0
lea rcx, [rdi + 0x10]
lea rdx, str.CloudManagedUpdate
call fcn.1400139d0
lea rcx, [rdi + 0x18]
lea rdx, str.UpdateHealthTools
call fcn.1400139d0
mov rdx, rbx
lea rcx, [rdi + 0x20]
call fcn.1400139d0
mov rcx, rdi
mov qword [rdi + 0x70], 0xffffffff80000002
call fcn.140015840
xor r14d, r14d
mov ebx, eax
test eax, eax
js 0x140014e9c
mov rcx, rdi
call fcn.14001577c
mov ebx, eax
test eax, eax
js 0x140014e9c
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rdx, qword [rdi + 0x20]
lea rax, [rsp + 0x40]
mov rcx, qword [rdi + 0x70]
lea r9d, [r14 + 2]
mov qword [rsp + 0x30], rax
lea r8, str.Endpoint
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x140014e8d
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140014e79
lea rdx, [rsp + 0x50]
test rax, rax
jne 0x140014e94
lea rdx, str.settings_win.data.microsoft.com
mov rcx, rdi
call fcn.1400139d0
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14002d710
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140015470
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rdx, qword [rcx + 0x20]
lea rax, [rsp + 0x48]
mov rcx, qword [rcx + 0x70]
xor ebx, ebx
and qword [rsp + 0x48], rbx
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x1400154b4
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140015506
mov rcx, qword [rsp + 0x48]
lea rdx, str.ETag
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test eax, 0xfffffffd
je 0x1400154db
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140015506
mov rcx, qword [rsp + 0x48]
lea rdx, str.RefreshAfter
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test eax, 0xfffffffd
je 0x140015506
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140015516
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140016484
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

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 r12
push r14
push r15
cmp qword [r8 + 0x18], 8
mov rdi, rdx
mov r11, qword [r8 + 0x10]
mov rbx, rcx
mov r10, r8
jb 0x1400164b4
mov r10, qword [r8]
lea rdx, [r11 + r11]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test rdx, rdx
je 0x1400164e7
movzx eax, byte [rcx + r10]
movabs rsi, 0x100000001b3
xor r9, rax
inc rcx
imul r9, rsi
cmp rcx, rdx
jb 0x1400164c9
mov rcx, qword [rbx + 0x30]
mov r15, qword [rbx + 0x18]
and rcx, r9
mov r10, qword [rbx + 8]
mov rax, rcx
add rax, rax
lea r12, [rcx + rcx]
mov rax, qword [r15 + rax*8]
cmp qword [r15 + r12*8], r10
jne 0x14001650f
mov rcx, r10
jmp 0x140016517
mov rcx, qword [r15 + r12*8 + 8]
mov rcx, qword [rcx]
cmp rax, rcx
je 0x1400165d4
cmp qword [r8 + 0x18], 8
lea rcx, [rax + 0x10]
mov rdx, r8
jb 0x140016531
mov rdx, qword [r8]
mov r14, qword [rcx + 0x18]
mov r9, rcx
cmp r14, 8
jb 0x140016541
mov r9, qword [rcx]
mov rbp, qword [rcx + 0x10]
cmp rbp, r11
jne 0x140016572
mov rsi, rbp
test rbp, rbp
je 0x14001656c
sub r9, rdx
movzx ecx, word [rdx + r9]
movzx ebx, word [rdx]
cmp cx, bx
jne 0x140016577
add rdx, 2
sub rsi, 1
jne 0x140016555
xor ecx, ecx
test ecx, ecx
je 0x140016580
mov rax, qword [rax]
jmp 0x140016504
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
jmp 0x14001656e
lea rcx, [rax + 0x10]
cmp r14, 8
jb 0x14001658d
mov rcx, qword [rcx]
cmp qword [r8 + 0x18], 8
jb 0x140016597
mov r8, qword [r8]
cmp r11, rbp
jne 0x1400165c3
test r11, r11
je 0x1400165bd
sub r8, rcx
movzx edx, word [rcx + r8]
movzx r9d, word [rcx]
cmp dx, r9w
jne 0x1400165cb
add rcx, 2
sub r11, 1
jne 0x1400165a4
xor ecx, ecx
test ecx, ecx
je 0x1400165c6
mov rax, r10
mov qword [rdi], rax
jmp 0x1400165d7
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
jmp 0x1400165bf
mov qword [rdi], r10
mov rbx, qword [rsp + 0x20]
mov rax, rdi
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
pop r15
pop r14
pop r12
ret
Function at 0x1400167ac
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push r14
sub rsp, 0x30
and qword [rax + 8], 0
mov r14, r9
lea r9, [rax + 8]
mov rcx, 0xffffffff80000002
xor ebx, ebx
call fcn.14001696c
mov esi, eax
test eax, eax
jns 0x1400167ee
mov ecx, eax
jmp 0x1400168a7
and dword [rsp + 0x60], ebx
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.RacSampleNumber
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x140016831
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x140016861
test rbx, rbx
jne 0x14001686c
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140016865
mov ebx, eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x1400167f2
mov esi, 0x8007000e
mov ecx, esi
jmp 0x1400168a7
mov esi, 0x8000ffff
jmp 0x140016861
cmp dword [rsp + 0x58], 4
je 0x14001687a
mov esi, 0x8007000d
jmp 0x140016861
xor ebp, ebp
cmp dword [rsp + 0x60], 4
je 0x140016893
mov esi, 0x8007000d
mov ecx, esi
mov ebp, esi
call fcn.14000a8c8
jmp 0x140016898
mov eax, dword [rbx]
mov dword [r14], eax
mov ecx, ebp
call fcn.14000a8e8
mov esi, ebp
test ebp, ebp
jns 0x1400168ac
mov ecx, ebp
call fcn.14000a8c8
mov ecx, esi
call fcn.14000a8e8
test rbx, rbx
je 0x1400168cc
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
cmp qword [rsp + 0x50], 0
je 0x1400168df
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, esi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140017088
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov r8, rcx
lea rsi, [rdi + 0x10]
cmp qword [rsi + 0x18], 8
mov r9, rsi
mov r10, qword [rsi + 0x10]
jb 0x1400170bb
mov r9, qword [rsi]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
add r10, r10
je 0x1400170ea
movzx eax, byte [rdx + r9]
movabs r11, 0x100000001b3
xor rcx, rax
inc rdx
imul rcx, r11
cmp rdx, r10
jb 0x1400170cc
mov rdx, qword [r8 + 0x30]
and rdx, rcx
mov rcx, qword [r8 + 0x18]
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rdi
jne 0x140017122
cmp qword [rcx + rdx*8], rdi
jne 0x140017117
mov rax, qword [r8 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r8 + 0x18]
mov rax, qword [r8 + 8]
jmp 0x14001711b
mov rax, qword [rdi + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x14001712f
cmp qword [rcx + rdx*8], rdi
jne 0x14001712f
mov rax, qword [rdi]
mov qword [rcx + rdx*8], rax
mov rax, qword [rdi + 8]
lea rcx, [rsi + 0x20]
mov rbx, qword [rdi]
mov qword [rax], rbx
mov rdx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
dec qword [r8 + 0x10]
call fcn.14000ab60
mov rcx, rsi
call fcn.14000ab60
mov edx, 0x50
mov rcx, rdi
call fcn.14002d738
mov rsi, qword [rsp + 0x38]
mov rax, r14
mov rdi, qword [rsp + 0x40]
mov qword [r14], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r14
ret
Function at 0x1400171f0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
push r14
sub rsp, 0x60
mov qword [r11 - 0x18], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rsi, rcx
xor r14d, r14d
mov qword [r11 + 0x10], r14
mov qword [r11 - 0x28], r14
lea rax, [r11 + 0x10]
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], r14
mov dword [rsp + 0x28], 0x20006
mov dword [r11 - 0x48], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftCloudManagedUpdateuhs_settings
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
je 0x140017295
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea r8, str.SoftwareMicrosoftCloudManagedUpdateuhs_settings
lea rdx, str.Failed_to_create_open_settings_key__s
call fcn.14000a164
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14001736d
mov rax, qword [rsi + 0xe8]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14001736a
lea rax, [rbx + 0x30]
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x1400172b9
mov rdx, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], r14w
jne 0x1400172bd
add ecx, ecx
cmp qword [rax + 0x18], 8
jb 0x1400172d3
mov rax, qword [rax]
lea rdi, [rbx + 0x10]
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400172e4
mov r8, qword [rdi]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
xor edx, edx
lea r9d, [rdx + 1]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegSetKeyValueW]
test eax, eax
je 0x140017331
cmp qword [rdi + 0x18], 8
jb 0x14001730c
mov rdi, qword [rdi]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov r8, rdi
lea rdx, str.Failed_to_write__s
call fcn.14000a164
jmp 0x14001735a
lea r9, [rdi + 0x20]
cmp qword [r9 + 0x18], 8
jb 0x14001733f
mov r9, qword [r9]
cmp qword [rdi + 0x18], 8
jb 0x140017349
mov rdi, qword [rdi]
mov r8, rdi
lea rdx, str.Wrote_value_Name:__s__Value:__s
xor ecx, ecx
call fcn.14000a164
mov rbx, qword [rbx]
cmp rbx, qword [rsi + 0xe8]
jne 0x1400172a8
mov ebx, r14d
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14001737d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14001822c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor edi, edi
mov rbx, rdx
cmp qword [rdx + 0x18], 8
mov qword [rsp + 0x30], rdi
jb 0x14001824a
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001828f
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x14001827b
mov rdx, qword [rbx]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
test eax, eax
jne 0x14001828f
lea edi, [rax + 1]
mov rcx, rbx
call fcn.14000ab60
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x40
pop rdi
ret
Function at 0x140018914
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x30
and qword [r11 + 0x10], 0
xor ebx, ebx
mov rdi, r9
mov rax, r8
mov rsi, rcx
test r8, r8
jne 0x14001894b
mov ecx, 0x80070057
mov ebx, ecx
call fcn.14000a8c8
jmp 0x14001899e
test rdi, rdi
je 0x14001893d
mov byte [rcx], bl
mov r9d, 0x20019
lea rcx, [rsp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001899e
and qword [rsp + 0x28], rbx
xor r9d, r9d
mov rcx, qword [rsp + 0x48]
xor r8d, r8d
and qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14001899e
mov byte [rsi], 1
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400189ae
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, ebx
call fcn.14000a8e8
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140018a98
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x30], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x140051ad0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rdx
mov rbx, rcx
mov qword [r11 - 0x28], rcx
mov qword [r11 - 0x20], rdx
and qword [r11 - 0x38], 0
mov rdx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140018adf
mov rdx, qword [rcx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140018b0e
mov rdx, qword [rdi]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test esi, esi
jne 0x140018b38
test eax, eax
jne 0x140018b38
mov sil, 1
jmp 0x140018b3b
xor sil, sil
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x140018b48
mov r8, qword [rbx]
lea rax, str.exists
lea r9, str.does_not_exist
test sil, sil
cmovne r9, rax
lea rdx, str._s_registry_key__s
xor ecx, ecx
call fcn.14000a164
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140018b7c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
mov rcx, rbx
call fcn.14000ab60
nop
mov rcx, rdi
call fcn.14000ab60
mov al, sil
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002d710
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140018db8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x40
and qword [rsp + 0x30], 0
mov rsi, rdx
cmp qword [rcx + 0x18], 8
mov rdi, r8
mov r14, rcx
mov rdx, rcx
jb 0x140018de1
mov rdx, qword [rcx]
lea rax, [rsp + 0x30]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x140018e17
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x140018e73
cmp qword [rdi + 0x18], 8
mov rcx, rdi
mov rax, qword [rdi + 0x10]
jb 0x140018e28
mov rcx, qword [rdi]
cmp qword [rsi + 0x18], 8
mov rdx, rsi
jb 0x140018e35
mov rdx, qword [rsi]
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x140018e61
xor ebx, ebx
jmp 0x140018e7a
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
je 0x140018e7a
mov ecx, ebx
call fcn.14000a8c8
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140018e8a
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, ebx
call fcn.14000a8e8
mov rcx, r14
call fcn.14000ab60
mov rcx, rsi
call fcn.14000ab60
mov rcx, rdi
call fcn.14000ab60
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x140018ec0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x140051ad0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, r8
mov rbx, rdx
xor esi, esi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], si
mov rdx, r9
lea rcx, [rbp - 0x30]
call fcn.14000cac8
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 2]
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x140018f45
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x140018f96
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
mov eax, dword [rbp - 0x20]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x140018f84
mov ebx, esi
jmp 0x140018f9d
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
je 0x140018f9d
mov ecx, ebx
call fcn.14000a8c8
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140018fac
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, ebx
call fcn.14000a8e8
nop
lea rcx, [rbp - 0x30]
call fcn.14000ab60
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14002d710
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140018fe4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x1080
call fcn.14002ea40
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x140051ad0]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rdx
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov word [rsp + 0x70], r14w
mov dword [rsp + 0x40], 0x1000
mov rdx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140019049
mov rdx, qword [rcx]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x140019088
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
je 0x140019088
mov ecx, ebx
call fcn.14000a8c8
jmp 0x1400190f6
mov r8, rsi
cmp qword [rsi + 0x18], 8
jb 0x140019095
mov r8, qword [rsi]
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400190a2
mov rdx, qword [rdi]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rcx, 0xffffffff80000002
mov r9d, 2
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x1400190d7
mov ebx, r14d
jmp 0x1400190e9
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x14001907f
lea rdx, [rsp + 0x70]
mov rcx, rbp
call fcn.14000cac8
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140019106
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, ebx
call fcn.14000a8e8
nop
mov rcx, rdi
call fcn.14000ab60
nop
mov rcx, rsi
call fcn.14000ab60
mov eax, ebx
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.14002d710
add rsp, 0x1080
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140019148
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x30
and qword [r11 + 0x10], 0
lea rax, [r11 + 0x10]
mov rdi, r8
mov qword [r11 - 0x18], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftCloudManagedUpdateuhs
mov r9d, 2
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x14001919f
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x1400191df
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], r9d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x1400191cd
xor ebx, ebx
jmp 0x1400191e6
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
je 0x1400191e6
mov ecx, ebx
call fcn.14000a8c8
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400191f6
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, ebx
call fcn.14000a8e8
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret