joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004db30
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movzx eax, byte [rcx + 0x100]
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
test al, al
je 0x14004db7b
mov r8d, 0x16a
lea rdx, str.CRpcClientEventMgr::OnDriverEvent
lea rcx, str._s__d_RETURN_ON_FALSE
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.140026f80
mov ecx, 0x204
mov qword [rsp + 0x38], rbx
call fcn.140066208
xor edx, edx
mov qword [rsp + 0x30], rax
mov r8d, 0x204
mov rcx, rax
mov rbx, rax
call fcn.14006d020
mov r8, rbp
mov edx, 0x100
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rdi + 0x18]
mov dword [rbx + 0x200], esi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
movzx eax, byte [rdi + 0x100]
test al, al
jne 0x14004dbdf
lea rcx, [rdi + 0x98]
lea rdx, [rsp + 0x30]
call fcn.140009180
lea rcx, [rdi + 0x18]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x50]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]

Function at 0x14004dc30
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x20
movzx eax, byte [rcx + 0x108]
mov esi, r8d
mov rdi, rcx
test al, al
je 0x14004dc73
mov r8d, 0x192
lea rdx, str.CRpcClientEventMgr::OnServiceEvent
lea rcx, str._s__d_RETURN_ON_FALSE
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.140026f80
mov ecx, 0x208
mov qword [rsp + 0x30], rbx
call fcn.140066208
xor edx, edx
mov qword [rsp + 0x38], rax
mov r8d, 0x208
mov rcx, rax
mov rbx, rax
call fcn.14006d020
lea r8, [0x140081d58]
mov edx, 0x100
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov dword [rbx + 0x200], esi
lea rcx, [rdi + 0x20]
mov dword [rbx + 0x204], 0
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
movzx eax, byte [rdi + 0x108]
test al, al
jne 0x14004dce5
lea rcx, [rdi + 0xd0]
lea rdx, [rsp + 0x38]
call fcn.140009180
lea rcx, [rdi + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x60]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]

Function at 0x14004dd10
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0xf0], 0
mov rbx, rcx
je 0x14004dd48
cmp edx, 0x3f3
jne 0x14004dd48
mov rax, qword [rcx - 8]
lea rdx, [0x140081d58]
add rcx, 0xfffffffffffffff8
mov r8d, 0x270f
add rsp, 0x20
pop rbx
jmp qword [rax]
cmp edx, 0x3f8
jne 0x14004dd76
call fcn.1400085d0
mov rcx, rax
mov edx, 0x3f8
call fcn.14005ec00
lea rcx, [rbx - 0x10]
mov r8d, 0x20000005
add rsp, 0x20
pop rbx
jmp fcn.14004dc30
add rsp, 0x20
pop rbx
ret
Function at 0x14004fe30
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push rbx
push rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1400bb008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, qword [rsp + 0xd0]
mov rbp, r8
mov r14, qword [rsp + 0xd8]
lea r8, [rsp + 0x50]
mov r15, rdx
xor ebx, ebx
mov rdx, qword [rdx]
mov r13d, r9d
mov qword [rsp + 0x50], rbx
call fcn.140050170
mov r12, qword [rsp + 0x50]
test r12, r12
je 0x14004ffc0
mov rcx, qword [r12]
mov qword [rsp + 0xb0], rdi
mov dword [rsp + 0x58], ebx
test rcx, rcx
jne 0x14004fea9
mov ebx, 0xc0000008
jmp 0x14004ff92
test rbp, rbp
je 0x14004ff8d
test rsi, rsi
je 0x14004ff8d
test r14, r14
je 0x14004ff8d
mov dword [rsp + 0x48], 2
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov dword [rsp + 0x38], ebx
mov r8d, r13d
mov qword [rsp + 0x30], rbx
mov rdx, rbp
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
mov ebx, eax
test eax, eax
js 0x14004ff92
mov ebx, dword [rsp + 0x58]
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 rdi, rax
test rax, rax
jne 0x14004ff28
mov ebx, 0xc0000017
jmp 0x14004ff92
mov rcx, qword [r12]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x48], 2
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov eax, dword [rsp + 0x58]
mov rdx, rbp
mov dword [rsp + 0x38], eax
xor eax, eax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
mov ebx, eax
test eax, eax
js 0x14004ff77
mov eax, dword [rsp + 0x58]
mov qword [rsi], rdi
mov dword [r14], eax
jmp 0x14004ff92
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
jmp 0x14004ff92
mov ebx, 0xc000000d
mov rdx, qword [r15]
not ebx
shr ebx, 0x1f
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
mov rdi, qword [rsp + 0xb0]
sub eax, 1
jg 0x14004ffbc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
jmp 0x14004ffdf
mov rdx, qword [r15]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004ffdd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140065bd0
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x140050b10
Capabilities:
Create thread

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x1400bb008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, r8
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x70], rcx
call fcn.140003520
mov rcx, rax
test rax, rax
je 0x140050d39
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp + 0x808], rax
test rbx, rbx
je 0x140050d12
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140050b80
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp + 0x808]
call fcn.140002f50
mov rax, qword [rbp + 0x808]
cmp dword [rax - 8], 1
jle 0x140050bbf
mov edx, dword [rax - 0x10]
lea rcx, [rbp + 0x808]
call fcn.140002e90
mov rax, qword [rbp + 0x808]
mov qword [rbp + 0x800], rax
mov qword [rbp + 0x818], rsi
mov rdi, rbp
mov esi, 0x5c00
xor r15d, r15d
nop dword [rax + rax]
mov qword [rdi + 8], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi], rax
test rax, rax
je 0x140050cb2
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x60], xmm0
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov ebx, esi
or ebx, 0x220000
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [rax + 3]
mov rcx, qword [rbp + 0x800]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140050c57
mov qword [rsp + 0x40], r15
jmp 0x140050ca9
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], SafeArrayUnaccessData
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x10
lea r8, [rsp + 0x60]
mov edx, ebx
mov rcx, r14
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
test ebx, ebx
cmove rcx, r15
mov qword [rsp + 0x40], rcx
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdi + 0x10], xmm0
add esi, 0xc
add rdi, 0x20
cmp esi, 0x5ef4
jl 0x140050be0
mov qword [rbp + 0x7e8], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rbp + 0x7e0], rax
test rax, rax
je 0x140050d12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rbp
lea r8, [0x140050d50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbp + 0x810], rax
mov rax, rbp
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140065bd0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140003270
int3
Function at 0x1400544f0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rdx, str.CSensorsMgr::WorkThreadLoop
lea rcx, [0x140081b98]
mov r8d, 0x27
call fcn.140026f80
xor ebx, ebx
nop dword [rax + rax]
mov r8d, 0x2d
lea rdx, str.CSensorsMgr::WorkThreadLoop
lea rcx, [0x140081b98]
call fcn.140026f80
mov ecx, 0x2710
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
mov r8d, 0x31
lea rdx, str.CSensorsMgr::WorkThreadLoop
lea rcx, [0x140081b98]
call fcn.140026f80
lea rcx, [rdi - 0x70]
call fcn.1400545b0
test eax, eax
jne 0x140054573
inc ebx
cmp ebx, 5
jl 0x140054520
jmp 0x14005458c
mov r8d, 0x34
lea rdx, str.CSensorsMgr::WorkThreadLoop
lea rcx, [0x140081b98]
call fcn.140026f80
mov r8d, 0x38
lea rdx, str.CSensorsMgr::WorkThreadLoop
lea rcx, [0x140081b98]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140026f80
Function at 0x140058ad0
Capabilities:
Print debug messages

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rbx, rcx
cmp edx, 0x3f4
jne 0x140058b1d
call fcn.140064000
test eax, eax
je 0x140058c27
call fcn.1400589f0
call fcn.1400085d0
mov edx, 0x3f4
mov rcx, rax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.14005ec00
cmp dword [rcx + 0x14], 0
je 0x140058be4
cmp edx, 0x400
jne 0x140058be4
call fcn.140064000
test eax, eax
je 0x140058c27
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
call fcn.140003520
mov rcx, rax
test rax, rax
je 0x140058c32
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdi, str._background
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140004a90
test al, al
jne 0x140058ba1
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], 0
jne 0x140058b86
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140002f50
nop
call fcn.140004830
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140004a00
nop
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.1400633f0
mov dword [rbx + 0x14], 0
call fcn.1400085d0
mov edx, 0x400
mov rcx, rax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.14005ec00
cmp edx, 0x403
jne 0x140058c08
call fcn.1400085d0
mov edx, 0x403
mov rcx, rax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.14005ec00
cmp edx, 0x40b
jne 0x140058c27
call fcn.140059090
call fcn.1400085d0
mov edx, 0x40b
mov rcx, rax
call fcn.14005ec00
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x80004005
call fcn.140003270
int3
Function at 0x140059910
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400bb008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov rdx, qword [rcx + 0x10]
xorps xmm0, xmm0
xor ecx, ecx
movzx ebp, r8w
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14005999f
mov rcx, qword [rdi + 0x10]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rcx
mov edx, 2
xor ecx, ecx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], dx
movzx edx, bp
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140065bd0
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400599c0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x1400bb008]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
mov dword [rsp + 0x20], r8d
mov r9, rdx
lea r8, str._s_failed_w_err_0x_08lx
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140012e80
mov rdx, qword [rdi + 0x10]
xorps xmm0, xmm0
xor ecx, ecx
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140059a72
mov rcx, qword [rdi + 0x10]
lea rax, [rsp + 0x60]
mov r9d, 2
mov qword [rsp + 0x50], rcx
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ecx
lea edx, [r9 - 1]
mov word [rsp + 0x28], r9w
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140065bd0
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rdi
ret
Function at 0x140059d00
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400bb008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov ebx, eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140059d53
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x140059e31
mov eax, dword [rsp + 0x3c]
cmp eax, 1
je 0x140059e2f
cmp eax, 3
jne 0x140059db8
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceStatusEx]
test eax, eax
je 0x140059d48
cmp dword [rsp + 0x3c], 1
je 0x140059e2f
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x2710
ja 0x140059e4c
cmp dword [rsp + 0x3c], 3
je 0x140059d65
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
test eax, eax
je 0x140059d48
cmp dword [rsp + 0x3c], 1
je 0x140059e2f
nop word [rax + rax]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceStatusEx]
test eax, eax
je 0x140059d48
cmp dword [rsp + 0x3c], 1
je 0x140059e2f
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x2710
ja 0x140059e4c
cmp dword [rsp + 0x3c], 1
jne 0x140059de0
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140065bd0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
mov eax, 0x5b4
jmp 0x140059e31
Function at 0x14005ad10
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400bb008]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x38], 0
mov r9d, 0x11
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlPriorityControl
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005ad9b
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
lea rdx, str.ConvertibleSlateMode
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x3c], 4
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x38]
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.140065bd0
add rsp, 0x58
ret

Function at 0x14005adc0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400bb008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], edx
lea rax, [rsp + 0x30]
mov dword [rsp + 0x40], r8d
lea rdx, str.SOFTWARERealtekRealtekEffectsAP
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005ae6c
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.AutoRotationState
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea rdx, str.SensorIndex
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140065bd0
add rsp, 0x58
ret
Function at 0x14005c8ec
Capabilities:
Create thread

Disassembly:
cmp edx, 0x3fc
jne 0x14005caf1
mov r11, rsp
push rdi
sub rsp, 0x70
mov rax, qword [0x1400bb008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [r11 + 0x10], rbx
mov rdi, rcx
mov qword [r11 + 0x18], rsi
call fcn.1400085d0
mov rcx, rax
mov edx, 0x3fc
call fcn.14005ec00
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14005c933
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov ecx, BSTR_UserMarshal
call fcn.140066208
xor edx, edx
mov qword [rsp + 0x58], rax
mov r8d, BSTR_UserMarshal
mov rcx, rax
mov rbx, rax
call fcn.14006d020
xor esi, esi
lea rax, vtable.CWasapiPlayback.0
mov qword [rbx], rax
mov qword [rbx + 0x28], rsi
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0xe8], rsi
mov dword [rbx + 0x60], esi
mov dword [rbx + 0xcc], esi
mov qword [rbx + 8], rsi
mov dword [rbx + 0xf8], 1
mov dword [rbx + 0x110], esi
mov qword [rdi + 0x18], rbx
call fcn.1400083c0
mov rbx, qword [rsp + 0x88]
mov rax, qword [rax + 0x70]
test rax, rax
je 0x14005cad7
mov rdx, qword [rax + 0x10]
mov rax, qword [rax]
test rdx, rdx
je 0x14005c9d0
cmp dword [rdx + 0x140], esi
je 0x14005c9d0
cmp dword [rdx + 0x14c], esi
jge 0x14005c9d0
cmp dword [rdx + 0x16c], 1
je 0x14005c9da
test rax, rax
jne 0x14005c9ab
jmp 0x14005cad7
mov rdx, qword [rdx + 0x1d8]
mov rcx, qword [rdi + 0x18]
mov dword [rsp + 0x20], 1
call fcn.14005f7a0
mov r9, qword [rdi + 0x18]
lea r8, [0x14005fc00]
xor edx, edx
mov qword [rsp + 0x28], rsi
xor ecx, ecx
mov dword [rsp + 0x20], esi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
call fcn.140008300
test dword [rax + 0x18], 0x10000000
je 0x14005ca57
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], esi
lea r8, str.RSA0_R0_L
mov rcx, 0xffffffff80000002
lea rdx, str.SOFTWARERealtekSpkProtection
call fcn.1400418b0
cmp dword [rsp + 0x50], esi
je 0x14005cad7
call fcn.140042850
mov eax, dword [0x1400bf960]
mov dword [rsp + 0x58], 0x10ec0001
mov dword [rsp + 0x50], esi
test eax, eax
jg 0x14005ca8d
mov r8d, 0x2ba
lea rdx, str.CDriverPropertyClient::KsProperty
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140026f80
jmp 0x14005cad7
movups xmm0, xmmword [0x140081130]
movaps xmmword [rsp + 0x40], xmm0
test eax, eax
jle 0x14005caf2
mov rcx, qword [0x1400bf958]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
mov r9d, 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x58]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 0x47]
call fcn.140047fc0
mov rsi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140065bd0
add rsp, 0x70
pop rdi
ret
mov edx, 1
mov ecx, 0xc000008c
call fcn.14002b1f0
int3
Function at 0x14005cd50
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
cmp r8d, 0x16
jne 0x14005cda2
lea r8d, [rdi + 0x4b]
lea rdx, str.CStoreAppMgr::OnDriverEvent
lea rcx, [0x140081b98]
call fcn.140026f80
movzx r8d, byte [0x1400beb10]
lea rdx, str.HasUWPConnected
lea rcx, str._s_m_bHasUWPConnected_d
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140026f80
cmp edi, 0xf
jg 0x14005ceb1
call fcn.140008300
test dword [rax + 0x2a4], 0x20000
jne 0x14005ceb1
mov qword [rsp + 0x30], rbx
call fcn.1400209b0
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x30]
movzx r8d, byte [0x1400beb10]
lea rdx, str.HasUWPConnected
xor ebx, ebx
lea rcx, str._s_m_bHasUWPConnected_d
test eax, eax
sete bl
call fcn.140026f80
cmp byte [0x1400beb10], 0
jne 0x14005ceac
test ebx, ebx
je 0x14005ceac
mov ecx, 0x204
call fcn.140066208
xor edx, edx
mov qword [rsp + 0x48], rax
mov r8d, 0x204
mov rcx, rax
mov rbx, rax
call fcn.14006d020
mov r8, rsi
mov edx, 0x100
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
cmp dword [0x1400bea5c], 0
mov dword [rbx + 0x200], edi
jne 0x14005ce7c
mov r8d, 0x1cf
mov dword [0x1400bea5c], 1
lea rdx, str.CRpcClientEventMgr::EnterStaticEventQueueCS
lea rcx, [0x140081b98]
call fcn.140026f80
lea rcx, [0x1400beae0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
lea rcx, [0x1400beae0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
lea rdx, [rsp + 0x48]
lea rcx, [0x1400bf9e0]
call fcn.140009180
lea rcx, [0x1400beae0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
call fcn.14005cec0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret