joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140042090
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0xd8], rbx
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rcx
xor edi, edi
cmp byte [rcx + 0x428], dil
je 0x140042145
mov rcx, qword [rcx + 0x448]
test rcx, rcx
je 0x1400420dc
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x450]
test rcx, rcx
je 0x1400420f3
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x440]
test rcx, rcx
je 0x14004210c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x440], rdi
mov rcx, qword [rbx + 0x448]
test rcx, rcx
je 0x140042125
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x448], rdi
mov rcx, qword [rbx + 0x450]
test rcx, rcx
je 0x14004213e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x450], rdi
mov byte [rbx + 0x428], dil
lea r8, str.SpatialAudioSoundModeAutoDetect
mov rdx, qword [rbx + 0x390]
mov rcx, 0xffffffff80000002
call fcn.140058280
test eax, eax
jne 0x1400421ec
mov dword [rsp + 0x60], edi
mov qword [rsp + 0x58], rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx + 0x390]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400421ec
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.SpatialAudioSoundModeAutoDetect
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
movdqa xmm0, xmmword [0x1403a9a90]
movdqu xmmword [rsp + 0xa0], xmm0
mov word [rsp + 0x90], di
mov r8d, 0x1f
lea rdx, str.SpatialAudioSoundModeAutoDetect
lea rcx, [rsp + 0x90]
call fcn.14003b160
nop
mov rdx, qword [rbx + 0x390]
movdqa xmm0, xmmword [0x1403a9a90]
movdqu xmmword [rsp + 0x80], xmm0
mov word [rsp + 0x70], di
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140042244
lea rcx, [rsp + 0x70]
call fcn.14003b160
nop
lea rcx, [rbx + 0x398]
lea r9, [rsp + 0x90]
lea r8, [rsp + 0x70]
mov rdx, qword [rbx + 8]
call fcn.14008eb70
nop
lea rcx, [rsp + 0x70]
call fcn.14003b0f0
nop
lea rcx, [rsp + 0x90]
call fcn.14003b0f0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140202880
mov rbx, qword [rsp + 0xd8]
add rsp, 0xc0
pop rdi
ret
Function at 0x1400422c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp byte [rcx + 0x458], 0
movzx ebx, dl
mov rdi, qword [rcx + 0x378]
mov rsi, rcx
je 0x1400423c7
xor eax, eax
movaps xmmword [rsp + 0x60], xmm6
mov dword [rsp + 0x40], eax
lea rdx, [0x140320430]
mov qword [rsp + 0x38], rax
mov r9d, 0x20019
lea rax, [rsp + 0x38]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140042375
lea rax, [rsp + 0x44]
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.FWBypass
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [rsp + 0x40], 0
xorps xmm6, xmm6
movsd qword [rsp + 0x30], xmm6
jne 0x1400423bd
mov r9d, 0xffffffff
mov dword [rsp + 0x20], 0xffffffff
lea r8, [rsp + 0x30]
mov rcx, rdi
lea edx, [r9 + 3]
call fcn.140093bb0
test al, al
je 0x1400423bd
ucomisd xmm6, qword [rsp + 0x30]
jp 0x1400423bd
jne 0x1400423bd
movzx edx, bl
mov rcx, rdi
call fcn.1400944c0
movaps xmm6, xmmword [rsp + 0x60]
xor bl, 1
jmp 0x1400423dd
xor bl, 1
mov r8d, 1
movzx ebx, bl
mov rcx, rdi
mov edx, ebx
call fcn.140094600
mov rcx, qword [rsi + 0x380]
mov r8d, 1
movzx edx, bl
call fcn.140094600
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140202880
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400427b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdx, qword [rcx + 0x390]
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov dword [rsp + 0x38], 1
xor r8d, r8d
mov qword [rsp + 0x30], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140042841
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x3c], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.SpatialAudioSoundModeAutoDetect
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [rsp + 0x38], 1
lea r8, [0x1404675c0]
mov r9d, 3
lea rcx, str.d:jenkinsworkspacemainrel4_dellconsumermainrel4_dellconsumerplatform_vista_sharedhpspatialsurroundpresetselectorwnd.cpp
jne 0x14004288f
lea rax, str.HPSpatialSurroundPresetSelectorWnd::IsAutoSwitchSpatialAudioSM_Auto_detect_ON
mov edx, 0x16a
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call fcn.140039f30
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140202880
add rsp, 0x58
ret
lea rax, str.HPSpatialSurroundPresetSelectorWnd::IsAutoSwitchSpatialAudioSM_Auto_detect_OFF
mov edx, 0x16e
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call fcn.140039f30
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140202880
add rsp, 0x58
ret
Function at 0x140046d50
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rbp + 0x4f], rax
movzx esi, cl
lea rax, vtable.CEndpointList.0
mov qword [rbp - 0x39], rax
xor r14d, r14d
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], r14
call fcn.1400463f0
mov qword [rbp - 0x31], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], r14
mov byte [rbp - 0x21], r14b
movdqa xmm0, xmmword [0x1403a9c60]
movdqu xmmword [rbp + 0x1f], xmm0
movdqa xmm1, xmmword [0x1403a9c70]
movdqu xmmword [rbp + 0x2f], xmm1
mov dword [rbp + 0x3f], 0x1c
mov dword [rbp + 0x43], 0x1d
mov dword [rbp + 0x47], 0x1e
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x49], xmm0
call fcn.140042cc0
mov rbx, rax
mov qword [rbp - 0x49], rax
lea rdi, [rbp + 0x1f]
nop
mov rdx, rdi
lea rcx, [rbp - 0x49]
call fcn.1400430d0
lea r9, [rax + 0x1c]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x49]
call fcn.1400430f0
add rdi, 4
lea rax, [rbp + 0x4b]
cmp rdi, rax
je 0x140046e38
mov rbx, qword [rbp - 0x49]
jmp 0x140046e00
mov byte [rsp + 0x40], 0
mov byte [rsp + 0x38], 1
lea rax, [rbp - 0x49]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 1
mov r9b, 1
mov edx, 2
lea r8d, [rdx + 0xd]
lea rcx, [rbp - 0x39]
call fcn.14007f970
nop
lea rcx, [rbp - 0x49]
call fcn.140042960
mov edx, 0x20
mov rcx, qword [rbp - 0x49]
call fcn.140202ee8
movzx r8d, sil
lea rdx, [rbp - 0x39]
mov ecx, 1
call fcn.140046f80
movzx r8d, sil
lea rdx, [rbp - 0x39]
mov ecx, 2
call fcn.140046f80
movzx r8d, sil
lea rdx, [rbp - 0x39]
mov ecx, 3
call fcn.140046f80
movzx r8d, sil
lea rdx, [rbp - 0x39]
mov ecx, 4
call fcn.140046f80
mov dword [rbp + 0xf], r14d
mov qword [rbp + 7], r14
lea rax, [rbp + 0x17]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 7]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140320430]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x140046f4b
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.FWBypass
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rbp + 7]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
lea rcx, [rbp - 0x39]
call fcn.14007f610
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140202880
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140049900
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
add rcx, 0x518
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14004487d.0]
movabs rcx, 0x8000000000000
test rcx, rax
je 0x140049944
lea rdx, str.SOFTWAREWaves_AudioNextGen
jmp 0x140049963
movabs rcx, 0x8000000000
lea rdx, str.SOFTWAREWaves_AudioDellOptimizer
test rcx, rax
lea rax, [0x14031b7bc]
cmove rdx, rax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x48], 1
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x40], 0
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400499da
lea rax, [rsp + 0x4c]
mov dword [rsp + 0x4c], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.NoiseRider
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [rsp + 0x48]
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
ucomisd xmm0, qword [rbx + 0x1f8]
jp 0x140049a07
jne 0x140049a07
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140202880
add rsp, 0x60
pop rbx
ret
movsd qword [rsp + 0x30], xmm0
lea rax, str.CNoiseRiderNotifier::LoadRenderNoiseRiderActiveState._RenderNoiseRiderActive___g
mov qword [rsp + 0x28], rax
lea r8, [0x1404675c0]
mov r9d, 2
mov qword [rsp + 0x20], 0
mov edx, 0x29b
movsd qword [rbx + 0x1f8], xmm0
lea rcx, str.d:jenkinsworkspacemainrel4_dellconsumermainrel4_dellconsumerplatform_vista_shared_noiseridernotifier.cpp
call fcn.140039f30
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140202880
add rsp, 0x60
pop rbx
ret
Function at 0x14004d600
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1098
call fcn.140203440
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rsp + 0x1080], rax
xor eax, eax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x140320430]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14004d6a0
mov dword [rsp + 0x44], 4
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.Debug
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14004d6d1
mov dword [0x1404602b8], eax
cmp qword [0x14044da00], 0
jne 0x14004d6d1
mov r8d, VariantTimeToDosDateTime
lea rdx, str.WavesSysSvc
lea rcx, [0x14044d9f0]
call fcn.14003b160
mov edx, 6
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
lea rcx, [rsp + 0x50]
call fcn.14004d9b0
nop
lea rcx, [rsp + 0x50]
call fcn.14006de70
nop
lea rcx, [rsp + 0x50]
call fcn.14004e3e0
xor eax, eax
mov rcx, qword [rsp + 0x1080]
xor rcx, rsp
call fcn.140202880
add rsp, 0x1098
ret
Function at 0x140050040
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor edi, edi
mov dword [rsp + 0x28], 0x20019
lea r8, [0x140320430]
mov dword [rsp + 0x40], edi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov sil, 2
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x20], edi
call fcn.140056c20
test eax, eax
jne 0x1400500db
mov rbx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x44], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.MaxxAudioGUIType
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400500db
cmp dword [rsp + 0x48], 4
je 0x140050140
mov dword [rsp + 0x28], 0x20019
lea r8, str.SoftwareConexant
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x20], edi
call fcn.140056c20
mov rbx, qword [rsp + 0x50]
test eax, eax
jne 0x140050159
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.MaxxAudioGUIType
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140050159
cmp dword [rsp + 0x44], 4
jne 0x140050159
movzx edi, byte [rsp + 0x40]
test rbx, rbx
je 0x140050153
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
movzx eax, dil
jmp 0x14005016b
test rbx, rbx
je 0x140050167
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
movzx eax, sil
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140202880
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140050190
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ebx, ebx
mov dword [rsp + 0x28], 0x20019
lea r8, [0x140320430]
mov dword [rsp + 0x40], ebx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x20], ebx
call fcn.140056c20
test eax, eax
jne 0x140050223
mov rdi, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x44], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.MaxxAudioGUIType
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140050223
cmp dword [rsp + 0x48], 4
je 0x140050288
mov dword [rsp + 0x28], 0x20019
lea r8, str.SoftwareConexant
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x20], ebx
call fcn.140056c20
mov rdi, qword [rsp + 0x50]
test eax, eax
jne 0x1400502a6
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.MaxxAudioGUIType
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400502a6
cmp dword [rsp + 0x44], 4
jne 0x1400502a6
mov ebx, dword [rsp + 0x40]
shr ebx, 0x10
shr bx, 8
test rdi, rdi
je 0x1400502a1
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
movzx eax, bx
jmp 0x1400502b6
test rdi, rdi
je 0x1400502b4
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140202880
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x140056ed0
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
mov rsi, r9
mov rbp, r8
mov edi, 0x80004005
test r8, r8
jne 0x140056f07
call qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegDeleteKeyW]
mov edi, eax
jmp 0x140056f9b
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
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.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test rsi, rsi
jne 0x140056f57
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140056f9b
mov rdx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
jmp 0x140056f8e
cmp qword [rsp + 0x50], rbx
je 0x140056f9b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
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.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov edi, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140202880
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140056fc0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x68
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
mov rdx, qword [rsp + 0xc0]
xor r15d, r15d
mov dword [rsp + 0x30], r15d
xor eax, eax
mov qword [rcx], rax
call fcn.14003be10
mov ebp, 1
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14005711f
mov dword [rsp + 0x50], r15d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x54]
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov edi, dword [rsp + 0x50]
test edi, edi
je 0x140057114
shr edi, 1
lea edx, [rdi + 1]
test edx, edx
js 0x14005713c
mov rax, qword [rsi]
sub ebp, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, edx
or ebp, ecx
jge 0x1400570a0
mov rcx, rsi
call fcn.14003b630
mov rbx, qword [rsi]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x54]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400570d0
test rax, rax
je 0x1400570e4
mov word [rbx + rdi*2], r15w
mov rcx, qword [rsi]
test rcx, rcx
jne 0x1400570f1
mov eax, r15d
jmp 0x1400570fe
movsxd rdx, dword [rcx - 0xc]
call fcn.140238660
test eax, eax
js 0x140057147
mov rcx, qword [rsi]
cmp eax, dword [rcx - 0xc]
jg 0x140057147
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rsi]
mov word [rax + rcx*2], r15w
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rax, rsi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140202880
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80070057
call fcn.140039950
int3
mov ecx, 0x80070057
call fcn.140039950
int3
Function at 0x140057160
Capabilities:
Delete registry key
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ebx, ebx
mov dword [rsp + 0x58], r9d
mov rsi, r8
mov edi, 0x80004005
test r8, r8
jne 0x140057195
call qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegDeleteKeyW]
mov edi, eax
jmp 0x14005720e
mov eax, dword [rsp + 0xb0]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x40], r8
or eax, 0x2001f
lea r8, [rsp + 0x50]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x38], r8
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14005720e
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov edi, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140202880
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret

Function at 0x140057230
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], r9d
lea rax, [rsp + 0x30]
mov r9d, dword [rsp + 0x80]
mov rbx, r8
or r9d, 0x20019
mov qword [rsp + 0x30], 0
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400572ba
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x3c], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140202880
add rsp, 0x50
pop rbx
ret