joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016880
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
test edx, edx
jne 0x1400168c8
mov r9, qword [rcx + 0x10]
test r9, r9
je 0x1400168c8
mov qword [rsp + 0x28], rdi
lea r8, [0x140016f30]
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
test rax, rax
je 0x1400168c4
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x10], rdi
cmp dword [rbx + 0x27c], edi
je 0x140016970
mov rcx, qword [rbx + 0x288]
mov dword [rbx + 0x27c], edi
test rcx, rcx
je 0x140016921
mov rax, qword [rbx + 0x280]
test rax, rax
je 0x140016902
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rcx, qword [rbx + 0x288]
mov edx, 0x9c4
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x288]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x288], rdi
mov rcx, qword [rbx + 0x280]
test rcx, rcx
je 0x14001693a
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x280], rdi
mov rcx, qword [rbx + 0x274]
test rcx, rcx
je 0x140016952
call fcn.14003fd8c
mov qword [rbx + 0x274], rdi
mov rcx, qword [rbx + 0x220]
cmp rcx, 0xffffffffffffffff
je 0x140016970
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x220], 0xffffffffffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400183b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x48], rax
test ecx, ecx
je 0x14001855e
call fcn.1400221e0
test eax, eax
jne 0x14001855e
lea rcx, str.F005D60E_B43A_46CF_BAD3_6ACB1D314511
call fcn.140018580
test eax, eax
jne 0x14001840c
lea rcx, str.FB19AA08_04A2_4810_8846_DF71A3DA56DB
call fcn.140018580
test eax, eax
jne 0x14001840c
lea rcx, str.FD278210_3175_4909_B46A_DF2CA8C20D46
call fcn.140018580
test eax, eax
je 0x14001855e
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rbx
mov ebx, 1
mov qword [rsp + 0x30], 0
mov r9d, 0x20019
mov dword [0x140069394], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetControlintelliGo
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018559
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x38], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SW_ModeType
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400184a1
mov eax, dword [0x140069390]
cmp dword [rsp + 0x3c], ebx
cmove eax, ebx
mov dword [0x140069390], eax
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x3c], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.onBoardMicSupportFunc
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140018501
mov eax, dword [rsp + 0x38]
cmp eax, ebx
jne 0x1400184eb
mov dword [0x14006938c], ebx
jmp 0x140018501
cmp eax, 2
je 0x1400184fb
cmp eax, 3
jne 0x140018501
mov dword [0x140069384], ebx
mov dword [0x140069388], ebx
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x3c], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Audio_Architecture_Ver
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14001854e
mov eax, dword [0x140069380]
cmp dword [rsp + 0x38], ebx
cmove eax, ebx
mov dword [0x140069380], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbx, qword [rsp + 0x50]
mov eax, dword [0x140069394]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140032e60
add rsp, 0x58
ret
Function at 0x140018580
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x680
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov rbx, rcx
xor edi, edi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
xor edx, edx
mov r8d, 0x208
call fcn.140034ac0
lea r9, str.SOFTWAREClassesAudioEngineAudioProcessingObjects
mov qword [rsp + 0x20], rbx
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.140009eb0
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400186bc
xor edx, edx
lea rcx, [rsp + 0x460]
mov r8d, 0x208
call fcn.140034ac0
xor edx, edx
lea rcx, [rsp + 0x250]
mov r8d, 0x208
call fcn.140034ac0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
lea rax, [rsp + 0x250]
mov dword [rsp + 0x38], 0x208
mov ebx, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x3c], ebx
lea rdx, str.FriendlyName
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400186b1
lea r8, [rsp + 0x250]
mov edx, 0x104
lea rcx, [rsp + 0x460]
call fcn.140036978
lea r8d, [rdi + 9]
lea rdx, str.Intelligo
lea rcx, [rsp + 0x460]
call fcn.1400404fc
test eax, eax
cmove edi, ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140032e60
mov rbx, qword [rsp + 0x698]
add rsp, 0x680
pop rdi
ret
Function at 0x140019920
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
push r12
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor ebx, ebx
mov r15, r9
cmp dword [0x140069390], ebx
mov rdi, r8
mov r12, rcx
mov qword [rsp + 0x38], rbx
jne 0x140019a30
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x208
call fcn.140034ac0
lea rax, str.Capture
mov qword [rsp + 0x28], rdi
lea r9, str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudio
mov qword [rsp + 0x20], rax
lea r8, str._s_s_sFxProperties
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.140009eb0
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140019b41
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x48], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_5
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
cmove ebx, dword [rsp + 0x40]
test r15, r15
je 0x140019a1b
cmp ebx, 2
ja 0x140019a1b
mov dword [r15], ebx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ebx, 1
jmp 0x140019b41
mov qword [rsp + 0x298], rsi
mov rsi, rbx
mov qword [rsp + 0x290], r14
mov r14, rbx
mov qword [rsp + 0x30], rbx
mov rdi, rbx
mov qword [rsp + 0x40], rbx
test r12, r12
jne 0x140019a85
lea r9, [rsp + 0x40]
xor ecx, ecx
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
call fcn.140019ff0
mov rsi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
test eax, eax
je 0x140019b07
test r12, r12
mov qword [rsp + 0x30], rbx
mov rcx, rdi
lea r8, [rsp + 0x30]
cmovne rcx, r12
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x30]
test eax, eax
js 0x140019afc
test rcx, rcx
je 0x140019aea
xor eax, eax
lea r8, [rsp + 0x50]
mov qword [rsp + 0x50], rax
lea rdx, [0x140056170]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
js 0x140019ae5
mov ebx, dword [rsp + 0x58]
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_PropVariantClear]
mov rcx, qword [rsp + 0x30]
test r15, r15
je 0x140019af7
cmp ebx, 2
ja 0x140019af7
mov dword [r15], ebx
mov ebx, 1
test rcx, rcx
je 0x140019b07
mov rax, qword [rcx]
call qword [rax + 0x10]
test rdi, rdi
je 0x140019b15
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
test r14, r14
je 0x140019b23
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0x10]
mov r14, qword [rsp + 0x290]
test rsi, rsi
je 0x140019b39
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 0x10]
mov rsi, qword [rsp + 0x298]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140032e60
add rsp, 0x2a0
pop r15
pop r12
pop rdi
pop rbx
pop rbp
ret
Function at 0x140019b70
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rdi
push r12
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor ebx, ebx
mov r12d, r9d
cmp dword [0x140069390], ebx
mov rdi, r8
mov rax, rdx
mov qword [rsp + 0x40], rbx
mov r15, rcx
jne 0x140019c67
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call fcn.140034ac0
lea rax, str.Capture
mov qword [rsp + 0x28], rdi
lea r9, str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudio
mov qword [rsp + 0x20], rax
lea r8, str._s_s_sFxProperties
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140009eb0
lea rax, [rsp + 0x40]
xor r8d, r8d
lea r9d, [rbx + 2]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140019d71
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea r9d, [rbx + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.e3c9c164_ad30_4aee_863e_01e4b0847f62_5
mov dword [rsp + 0x38], r12d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ebx, 1
jmp 0x140019d71
mov qword [rsp + 0x288], rsi
mov rsi, rbx
mov qword [rsp + 0x280], r14
mov r14, rbx
mov qword [rsp + 0x38], rbx
mov rdi, rbx
mov qword [rsp + 0x30], rbx
test r15, r15
jne 0x140019cb9
lea r9, [rsp + 0x30]
mov rcx, rax
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
call fcn.140019ff0
mov rsi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
test eax, eax
je 0x140019d37
test r15, r15
mov qword [rsp + 0x38], rbx
mov rcx, rdi
lea r8, [rsp + 0x38]
cmovne rcx, r15
mov r15d, 1
mov edx, r15d
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
js 0x140019d27
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140019d1b
mov eax, 0x13
mov dword [rsp + 0x50], r12d
mov word [rsp + 0x48], ax
lea r8, [rsp + 0x48]
mov rax, qword [rcx]
lea rdx, [0x140056170]
call qword [rax + 0x30]
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_PropVariantClear]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x38]
test eax, eax
cmovns ebx, r15d
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140019d37
mov rax, qword [rcx]
call qword [rax + 0x10]
test rdi, rdi
je 0x140019d45
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
test r14, r14
je 0x140019d53
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0x10]
mov r14, qword [rsp + 0x280]
test rsi, rsi
je 0x140019d69
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 0x10]
mov rsi, qword [rsp + 0x288]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140032e60
add rsp, 0x290
pop r15
pop r12
pop rdi
pop rbx
pop rbp
ret
Function at 0x14001a200
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, r8
mov ebp, edx
mov rbx, rcx
xor edi, edi
xor edx, edx
mov qword [rsp + 0x30], rdi
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.140034ac0
lea rcx, str.Capture
mov qword [rsp + 0x28], rbx
test ebp, ebp
lea rax, str.Render
lea r9, str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudio
mov edx, 0x104
cmovne rax, rcx
lea r8, str._s_s_sProperties
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140009eb0
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001a340
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x40]
xor r8d, r8d
test ebp, ebp
je 0x14001a2f4
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x28], rax
lea rdx, str.7840c7e1_1d49_471d_b266_9dad6c084569_1
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14001a335
test rsi, rsi
je 0x14001a330
cmp dword [rsp + 0x3c], 1
jmp 0x14001a32a
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x3c], 4
mov qword [rsp + 0x28], rax
lea rdx, str.7840c7e1_1d49_471d_b266_9dad6c084569_0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14001a335
test rsi, rsi
je 0x14001a330
cmp dword [rsp + 0x38], edi
sete dil
mov dword [rsi], edi
mov edi, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140032e60
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001a370
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
test ecx, ecx
je 0x14001a3e5
cmp qword [0x1400693a0], rbx
jne 0x14001a3a9
mov qword [rsp + 0x28], rbx
lea r8, [0x14001a450]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [0x1400693a0], rax
cmp qword [0x140069398], rbx
jne 0x14001a43b
mov qword [rsp + 0x28], rbx
lea r8, [0x14001c670]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [0x140069398], rax
mov eax, 1
add rsp, 0x30
pop rbx
ret
mov rcx, qword [0x140069398]
test rcx, rcx
je 0x14001a410
mov edx, 0x9c4
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [0x140069398]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [0x140069398], rbx
mov rcx, qword [0x1400693a0]
test rcx, rcx
je 0x14001a43b
mov edx, 0x9c4
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [0x1400693a0]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [0x1400693a0], rbx
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x14001d480
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp dword [0x140069628], 0
je 0x14001d52b
cmp dword [0x140069614], ecx
je 0x14001d52b
cmp dword [0x1400691a4], 0
je 0x14001d4af
cmp dword [0x140067974], 0
je 0x14001d52b
lea eax, [rcx - 2]
mov dword [0x140069614], ecx
cmp eax, 1
ja 0x14001d51a
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
mov rcx, qword [0x1400693f8]
mov qword [0x140069608], rax
test rcx, rcx
je 0x14001d4ed
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
xor edx, edx
xor r8d, r8d
lea ecx, [rdx + 1]
add rsp, 0x38
jmp fcn.14001cba0
xor eax, eax
lea r8, [0x14001d960]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
test rax, rax
je 0x14001d51a
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor edx, edx
xor r8d, r8d
lea ecx, [rdx + 1]
add rsp, 0x38
jmp fcn.14001cba0
xor eax, eax
add rsp, 0x38
ret

Function at 0x14001e920
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x30], rbx
call fcn.140027750
test eax, eax
je 0x14001e9c4
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x60], rdi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.APanelOLED
mov dword [rsp + 0x38], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14001e994
mov ebx, dword [rsp + 0x3c]
lea edi, [rax + 1]
jmp 0x14001e996
mov edi, ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
mov rdi, qword [rsp + 0x60]
je 0x14001e9c4
cmp ebx, 1
jne 0x14001e9c4
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140032e60
add rsp, 0x50
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140032e60
add rsp, 0x50
pop rbx
ret
Function at 0x14001e9e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [0x140069838], 0
je 0x14001eada
xor ebx, ebx
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x30], rbx
call fcn.140027750
test eax, eax
je 0x14001ebd3
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x38], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.HidKeybdLightLevel
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14001ea69
mov edi, dword [rsp + 0x3c]
lea esi, [rbx + 1]
jmp 0x14001ea6f
mov edi, dword [rsp + 0x40]
mov esi, ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
je 0x14001ebd3
mov eax, edi
shr eax, 7
and eax, 1
mov dword [0x140067ad0], eax
mov eax, edi
and eax, 0xf
mov dword [0x140067acc], eax
bt edi, 0x15
jae 0x14001ebab
cmp dword [0x140067ac8], ebx
lea rcx, str.HidKeybdLightLevel
mov dword [0x140067ad0], 1
sete bl
mov dword [0x140067acc], ebx
lea edx, [rbx + 0x80]
call fcn.140027c20
mov eax, 1
jmp 0x14001ebd5
cmp dword [0x140067ac4], 0
je 0x14001ebd3
xor ebx, ebx
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x30], rbx
call fcn.140027750
test eax, eax
je 0x14001ebd3
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x3c], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.KeybdLightLevel
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14001eb45
mov edi, dword [rsp + 0x38]
lea esi, [rbx + 1]
jmp 0x14001eb4b
mov edi, dword [rsp + 0x40]
mov esi, ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
je 0x14001ebd3
mov eax, edi
shr eax, 7
and eax, 1
mov dword [0x140067ad0], eax
mov eax, edi
and eax, 0xf
mov dword [0x140067acc], eax
bt edi, 0x15
jae 0x14001ebab
cmp dword [0x140067ac8], ebx
lea rcx, str.KeybdLightLevel
mov dword [0x140067ad0], 1
sete bl
mov dword [0x140067acc], ebx
lea edx, [rbx + 0x80]
call fcn.140027c20
mov eax, 1
jmp 0x14001ebd5
lea rcx, [0x140067acc]
call fcn.14000b9f0
test eax, eax
je 0x14001ebcc
lea rcx, str.PriorKeybdLightLevel
mov edx, 0x100
call fcn.140027c20
mov eax, 1
jmp 0x14001ebd5
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140032e60
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1400205d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
xor ebx, ebx
mov r9d, 0x20219
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREASUSDeviceLighting
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140020666
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x38], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DCModeSwitch
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14002065b
cmp dword [rsp + 0x3c], 1
cmovbe ebx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140032e60
add rsp, 0x50
pop rbx
ret

Function at 0x140020680
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r15, rdx
mov rsi, rcx
xor edi, edi
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x30], rdi
mov r14, r8
call fcn.140027750
test eax, eax
je 0x140020746
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x38], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.HidKeybdLightLevel
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140020702
mov ebx, dword [rsp + 0x3c]
lea edi, [rax + 1]
jmp 0x140020706
mov ebx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
je 0x140020746
test r15, r15
je 0x140020725
mov eax, ebx
shr eax, 7
and eax, 1
mov dword [r15], eax
test rsi, rsi
je 0x140020731
mov ecx, ebx
and ecx, 0xf
mov dword [rsi], ecx
test r14, r14
je 0x14002073f
shr ebx, 0x15
and ebx, 1
mov dword [r14], ebx
mov eax, 1
jmp 0x140020748
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140032e60
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140021a80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x48], rax
test ecx, ecx
je 0x140021ad3
mov eax, dword [0x1400679a8]
cmp eax, 2
jne 0x140021ac1
lea rdx, [0x140069a60]
lea rcx, [0x14005ac90]
call fcn.140021b80
mov dword [0x1400679a8], eax
cmp eax, 1
jne 0x140021b5d
lea rcx, [0x140069a60]
jmp 0x140021b03
mov eax, dword [0x1400679ac]
cmp eax, 2
jne 0x140021af7
lea rdx, [0x140069c70]
lea rcx, [0x14005aca0]
call fcn.140021b80
mov dword [0x1400679ac], eax
cmp eax, 1
jne 0x140021b5d
lea rcx, [0x140069c70]
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140021b5d
xor r9d, r9d
mov byte [rsp + 0x40], dil
lea r8d, [rdi + 1]
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea eax, [rdi + 1]
jmp 0x140021b5f
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140032e60
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret