joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401ed4d0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x1b0
mov rax, qword [0x14031eda0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x84], 6
jae 0x1401ed5c2
xor ebx, ebx
lea rcx, str..AndreaFilterRealtek
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x1c0], rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x1401ed5b6
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x40]
lea r9d, [rbx + 0x34]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
lea r8, [rsp + 0x48]
mov edx, 0x222004
mov rcx, rdi
mov dword [rsp + 0x28], 0x34
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x40], 0x34
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1401ed5ad
cmp dword [rsp + 0x40], ebx
je 0x1401ed5ad
cmp dword [rsp + 0x54], ebx
mov eax, 1
cmovne ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x1c0]
mov eax, ebx
jmp 0x1401ed5d5
test byte [0x1403375e8], 4
mov eax, 0
cmovne eax, dword [0x1403375dc]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14022b9b0
add rsp, 0x1b0
pop rbx
ret

Function at 0x1401ed5f0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x1b0
mov rax, qword [0x14031eda0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x84], 6
jae 0x1401ed6e2
xor ebx, ebx
lea rcx, str..AndreaFilterRealtek
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x1c0], rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x1401ed6d6
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x40]
lea r9d, [rbx + 0x34]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
lea r8, [rsp + 0x48]
mov edx, 0x222004
mov rcx, rdi
mov dword [rsp + 0x28], 0x34
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], 0x34
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1401ed6cd
cmp dword [rsp + 0x40], ebx
je 0x1401ed6cd
cmp dword [rsp + 0x54], ebx
mov eax, 1
cmovne ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x1c0]
mov eax, ebx
jmp 0x1401ed6f5
test byte [0x1403375e8], 8
mov eax, 0
cmovne eax, dword [0x1403375e0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14022b9b0
add rsp, 0x1b0
pop rbx
ret
Function at 0x1401ed710
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x1b0
mov rax, qword [0x14031eda0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov edi, ecx
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x84], 6
jae 0x1401ed804
xor ebx, ebx
lea rcx, str..AndreaFilterRealtek
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x1c8], rsi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x54], edi
cmp rax, 0xffffffffffffffff
mov rsi, rax
mov dword [rsp + 0x78], ebx
je 0x1401ed7f8
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x40]
lea r9d, [rbx + 0x34]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x48]
mov edx, 0x222000
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x40], 0x34
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [0x140337718]
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xffff
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x1c8]
xor eax, eax
jmp 0x1401ed820
lea rcx, [0x1403375d0]
mov edx, edi
call fcn.1401ee750
xor ebx, ebx
mov ecx, 0x80000000
test eax, eax
cmovne ecx, ebx
mov eax, ecx
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14022b9b0
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1b0
pop rdi
ret

Function at 0x1401ed850
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x1b0
mov rax, qword [0x14031eda0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov edi, ecx
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x84], 6
jae 0x1401ed944
xor ebx, ebx
lea rcx, str..AndreaFilterRealtek
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x1c8], rsi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x54], edi
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1401ed938
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x40]
lea r9d, [rbx + 0x34]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x48]
mov edx, 0x222000
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x40], 0x34
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [0x140337718]
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xffff
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x1c8]
xor eax, eax
jmp 0x1401ed960
lea rcx, [0x1403375d0]
mov edx, edi
call fcn.1401ee220
xor ebx, ebx
mov ecx, 0x80000000
test eax, eax
cmovne ecx, ebx
mov eax, ecx
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14022b9b0
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1b0
pop rdi
ret
Function at 0x1401ed990
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x1b0
mov rax, qword [0x14031eda0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov edi, ecx
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x84], 6
jae 0x1401eda84
xor ebx, ebx
lea rcx, str..AndreaFilterRealtek
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x1c8], rsi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x54], edi
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1401eda78
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x40]
lea r9d, [rbx + 0x34]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x48]
mov edx, 0x222000
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x40], 0x34
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [0x140337718]
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xffff
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x1c8]
xor eax, eax
jmp 0x1401edaa0
lea rcx, [0x1403375d0]
mov edx, edi
call fcn.1401ee3e0
xor ebx, ebx
mov ecx, 0x80000000
test eax, eax
cmovne ecx, ebx
mov eax, ecx
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14022b9b0
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1b0
pop rdi
ret

Function at 0x1401edad0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x1b0
mov rax, qword [0x14031eda0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov edi, ecx
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x84], 6
jae 0x1401edbc4
xor ebx, ebx
lea rcx, str..AndreaFilterRealtek
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x1c8], rsi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x54], edi
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1401edbb8
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x40]
lea r9d, [rbx + 0x34]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x48]
mov edx, 0x222000
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x40], 0x34
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [0x140337718]
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xffff
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x1c8]
xor eax, eax
jmp 0x1401edbe0
lea rcx, [0x1403375d0]
mov edx, edi
call fcn.1401ee5a0
xor ebx, ebx
mov ecx, 0x80000000
test eax, eax
cmovne ecx, ebx
mov eax, ecx
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14022b9b0
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1b0
pop rdi
ret
Function at 0x1401edfe0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xe0
mov esi, edx
lea rax, [rsp + 0x30]
mov rbx, rcx
lea rdx, str.SoftwareRealtekAEAPO
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401ee208
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x110]
lea r9, [rsp + 0x118]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.CapProperties
xor r8d, r8d
mov qword [rsp + 0x100], rbp
mov dword [rsp + 0x110], 0x44
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ebp, [rdi + 1]
test eax, eax
jne 0x1401ee08e
cmp dword [rsp + 0x110], 0x44
jne 0x1401ee08e
cmp dword [rsp + 0x40], 0xaeaeaeae
jne 0x1401ee08e
test dword [rsp + 0x58], 0xfffffee0
cmove edi, ebp
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1401ee200
lea rcx, [rsp + 0x90]
mov rdx, rbx
mov r8d, 0x44
call fcn.14022e920
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov r8d, 0x44
call fcn.14022e920
or r9d, 0xffffffff
lea rdx, str.LoadFiltersInfo_successful
mov rcx, rbx
or r8d, r9d
mov dword [rsp + 0x20], 0
call fcn.1401eed80
test esi, esi
je 0x1401ee200
mov rax, qword [rbx + 0x48]
test rax, rax
je 0x1401ee200
mov edx, dword [rsp + 0x44]
cmp edx, dword [rsp + 0x94]
je 0x1401ee115
mov r8, qword [rbx + 0x90]
xor ecx, ecx
call rax
mov edx, dword [rsp + 0x48]
cmp edx, dword [rsp + 0x98]
je 0x1401ee12e
mov r8, qword [rbx + 0x90]
mov ecx, ebp
call qword [rbx + 0x48]
mov edx, dword [rsp + 0x4c]
cmp edx, dword [rsp + 0x9c]
je 0x1401ee14a
mov r8, qword [rbx + 0x90]
mov ecx, 2
call qword [rbx + 0x48]
mov edx, dword [rsp + 0x50]
cmp edx, dword [rsp + 0xa0]
je 0x1401ee166
mov r8, qword [rbx + 0x90]
mov ecx, 3
call qword [rbx + 0x48]
mov edx, dword [rsp + 0x54]
cmp edx, dword [rsp + 0xa4]
je 0x1401ee182
mov r8, qword [rbx + 0x90]
mov ecx, 4
call qword [rbx + 0x48]
mov edx, dword [rsp + 0x60]
cmp edx, dword [rsp + 0xb0]
je 0x1401ee19e
mov r8, qword [rbx + 0x90]
mov ecx, 6
call qword [rbx + 0x48]
mov edx, dword [rsp + 0x64]
cmp edx, dword [rsp + 0xb4]
je 0x1401ee1ba
mov r8, qword [rbx + 0x90]
mov ecx, 7
call qword [rbx + 0x48]
mov eax, dword [rsp + 0xb8]
cmp dword [rsp + 0x68], eax
je 0x1401ee1e4
xor edx, edx
mov rcx, rbx
call fcn.1401ef690
test eax, eax
je 0x1401ee1e4
mov r8, qword [rbx + 0x90]
xor edx, edx
lea ecx, [rdx + 8]
call qword [rbx + 0x48]
mov edx, dword [rsp + 0x6c]
cmp edx, dword [rsp + 0xbc]
je 0x1401ee200
mov r8, qword [rbx + 0x90]
mov ecx, 9
call qword [rbx + 0x48]
mov rbp, qword [rsp + 0x100]
add rsp, 0xe0
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401ee220
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
sub rsp, 0xa8
test byte [0x1403375e8], 2
je 0x1401ee3c9
mov rax, qword [0x1403375d0]
lea r8, [r11 - 0x58]
mov qword [r11 + 0x10], rbx
mov qword [r8], rax
mov rax, qword [0x1403375d8]
mov qword [r11 - 8], rdi
mov qword [r8 + 8], rax
mov rax, qword [0x1403375e0]
xor edi, edi
mov qword [r8 + 0x10], rax
mov rax, qword [0x1403375e8]
test edx, edx
mov qword [r8 + 0x18], rax
mov rax, qword [0x1403375f0]
mov ebx, edi
mov qword [r8 + 0x20], rax
mov rax, qword [0x1403375f8]
mov qword [r8 + 0x28], rax
mov rax, qword [0x140337600]
mov qword [r8 + 0x30], rax
mov rax, qword [0x140337608]
mov qword [r8 + 0x38], rax
mov eax, dword [0x140337610]
mov dword [r8 + 0x40], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x58], edx
cmovne eax, edi
cmp dword [0x14033762c], ebx
mov dword [rsp + 0x50], 0xaeaeaeae
mov dword [rsp + 0x5c], eax
jne 0x1401ee2e4
lea rdx, [r11 - 0x58]
lea rcx, [0x1403375d0]
call fcn.1401ee900
mov ebx, eax
jmp 0x1401ee3af
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0xb0]
lea rdx, str.SoftwareRealtekAEAPO
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x102
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1401ee391
mov rcx, qword [rsp + 0xb0]
lea rax, [rsp + 0x50]
lea rdx, str.CapProperties
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0x44
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1401ee391
or r9d, 0xffffffff
lea rdx, str.WriteRegistry_successful
lea rcx, [0x1403375d0]
or r8d, r9d
mov dword [rsp + 0x20], edi
call fcn.1401eed80
jmp 0x1401ee3af
or r9d, 0xffffffff
lea rdx, str.WriteRegistry_failed
lea rcx, [0x1403375d0]
or r8d, r9d
mov dword [rsp + 0x20], edi
call fcn.1401eed80
mov rdi, qword [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa8
ret
xor eax, eax
add rsp, 0xa8
ret
Function at 0x1401ee3e0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
sub rsp, 0xa8
test byte [0x1403375e8], 4
je 0x1401ee589
mov rax, qword [0x1403375d0]
lea r8, [r11 - 0x58]
mov qword [r11 + 0x10], rbx
mov qword [r8], rax
mov rax, qword [0x1403375d8]
mov qword [r11 - 8], rdi
mov qword [r8 + 8], rax
mov rax, qword [0x1403375e0]
xor edi, edi
mov qword [r8 + 0x10], rax
mov rax, qword [0x1403375e8]
test edx, edx
mov qword [r8 + 0x18], rax
mov rax, qword [0x1403375f0]
mov ebx, edi
mov qword [r8 + 0x20], rax
mov rax, qword [0x1403375f8]
mov qword [r8 + 0x28], rax
mov rax, qword [0x140337600]
mov qword [r8 + 0x30], rax
mov rax, qword [0x140337608]
mov qword [r8 + 0x38], rax
mov eax, dword [0x140337610]
mov dword [r8 + 0x40], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x5c], edx
cmovne eax, edi
cmp dword [0x14033762c], ebx
mov dword [rsp + 0x50], 0xaeaeaeae
mov dword [rsp + 0x58], eax
jne 0x1401ee4a4
lea rdx, [r11 - 0x58]
lea rcx, [0x1403375d0]
call fcn.1401ee900
mov ebx, eax
jmp 0x1401ee56f
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0xb0]
lea rdx, str.SoftwareRealtekAEAPO
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x102
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1401ee551
mov rcx, qword [rsp + 0xb0]
lea rax, [rsp + 0x50]
lea rdx, str.CapProperties
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0x44
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1401ee551
or r9d, 0xffffffff
lea rdx, str.WriteRegistry_successful
lea rcx, [0x1403375d0]
or r8d, r9d
mov dword [rsp + 0x20], edi
call fcn.1401eed80
jmp 0x1401ee56f
or r9d, 0xffffffff
lea rdx, str.WriteRegistry_failed
lea rcx, [0x1403375d0]
or r8d, r9d
mov dword [rsp + 0x20], edi
call fcn.1401eed80
mov rdi, qword [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa8
ret
xor eax, eax
add rsp, 0xa8
ret
Function at 0x1401ee5a0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
sub rsp, 0xa8
test byte [0x1403375e8], 8
je 0x1401ee73c
mov rax, qword [0x1403375d0]
lea r8, [r11 - 0x58]
mov qword [r11 + 0x10], rbx
mov qword [r8], rax
mov rax, qword [0x1403375d8]
mov qword [r11 - 8], rdi
mov qword [r8 + 8], rax
mov rax, qword [0x1403375e0]
xor edi, edi
mov qword [r8 + 0x10], rax
mov rax, qword [0x1403375e8]
mov ebx, edi
cmp dword [0x14033762c], ebx
mov qword [r8 + 0x18], rax
mov rax, qword [0x1403375f0]
mov qword [r8 + 0x20], rax
mov rax, qword [0x1403375f8]
mov qword [r8 + 0x28], rax
mov rax, qword [0x140337600]
mov qword [r8 + 0x30], rax
mov rax, qword [0x140337608]
mov qword [r8 + 0x38], rax
mov eax, dword [0x140337610]
mov dword [r8 + 0x40], eax
mov dword [rsp + 0x60], edx
mov dword [rsp + 0x50], 0xaeaeaeae
jne 0x1401ee657
lea rdx, [r11 - 0x58]
lea rcx, [0x1403375d0]
call fcn.1401ee900
mov ebx, eax
jmp 0x1401ee722
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0xb0]
lea rdx, str.SoftwareRealtekAEAPO
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x102
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1401ee704
mov rcx, qword [rsp + 0xb0]
lea rax, [rsp + 0x50]
lea rdx, str.CapProperties
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0x44
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1401ee704
or r9d, 0xffffffff
lea rdx, str.WriteRegistry_successful
lea rcx, [0x1403375d0]
or r8d, r9d
mov dword [rsp + 0x20], edi
call fcn.1401eed80
jmp 0x1401ee722
or r9d, 0xffffffff
lea rdx, str.WriteRegistry_failed
lea rcx, [0x1403375d0]
or r8d, r9d
mov dword [rsp + 0x20], edi
call fcn.1401eed80
mov rdi, qword [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa8
ret
xor eax, eax
add rsp, 0xa8
ret
Function at 0x1401ee750
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
sub rsp, 0xa8
test byte [0x1403375e8], 1
je 0x1401ee8ec
mov rax, qword [0x1403375d0]
lea r8, [r11 - 0x58]
mov qword [r11 + 0x10], rbx
mov qword [r8], rax
mov rax, qword [0x1403375d8]
mov qword [r11 - 8], rdi
mov qword [r8 + 8], rax
mov rax, qword [0x1403375e0]
xor edi, edi
mov qword [r8 + 0x10], rax
mov rax, qword [0x1403375e8]
mov ebx, edi
cmp dword [0x14033762c], ebx
mov qword [r8 + 0x18], rax
mov rax, qword [0x1403375f0]
mov qword [r8 + 0x20], rax
mov rax, qword [0x1403375f8]
mov qword [r8 + 0x28], rax
mov rax, qword [0x140337600]
mov qword [r8 + 0x30], rax
mov rax, qword [0x140337608]
mov qword [r8 + 0x38], rax
mov eax, dword [0x140337610]
mov dword [r8 + 0x40], eax
mov dword [rsp + 0x54], edx
mov dword [rsp + 0x50], 0xaeaeaeae
jne 0x1401ee807
lea rdx, [r11 - 0x58]
lea rcx, [0x1403375d0]
call fcn.1401ee900
mov ebx, eax
jmp 0x1401ee8d2
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0xb0]
lea rdx, str.SoftwareRealtekAEAPO
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x102
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1401ee8b4
mov rcx, qword [rsp + 0xb0]
lea rax, [rsp + 0x50]
lea rdx, str.CapProperties
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0x44
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1401ee8b4
or r9d, 0xffffffff
lea rdx, str.WriteRegistry_successful
lea rcx, [0x1403375d0]
or r8d, r9d
mov dword [rsp + 0x20], edi
call fcn.1401eed80
jmp 0x1401ee8d2
or r9d, 0xffffffff
lea rdx, str.WriteRegistry_failed
lea rcx, [0x1403375d0]
or r8d, r9d
mov dword [rsp + 0x20], edi
call fcn.1401eed80
mov rdi, qword [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa8
ret
xor eax, eax
add rsp, 0xa8
ret
Function at 0x1401ee900
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xe0
mov rax, qword [0x14031eda0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rsi, rdx
or r9d, 0xffffffff
lea rcx, [0x1403375d0]
lea rdx, str.Start_WriteService
or r8d, r9d
xor ebx, ebx
mov dword [rsp + 0x20], 1
call fcn.1401eed80
lea rcx, [0x1403375d0]
call fcn.1401eea30
test rax, rax
mov rdi, rax
jne 0x1401ee97c
lea ecx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x1403375d0]
call fcn.1401eea30
test rax, rax
mov rdi, rax
je 0x1401ee9e5
lea rcx, [rsp + 0x48]
mov rdx, rsi
mov r8d, 0x44
mov dword [rsp + 0x40], 0xae0ae0ae
mov dword [rsp + 0x44], 1
call fcn.14022e920
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x88
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401ee9d1
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
lea rdx, str.WriteService_successful
jne 0x1401ee9ec
lea rdx, str.WriteService_failed
or r9d, 0xffffffff
lea rcx, [0x1403375d0]
mov dword [rsp + 0x20], 0
or r8d, r9d
call fcn.1401eed80
mov eax, ebx
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14022b9b0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1401eea30
Capabilities:
Start service

Disassembly:
push r12
sub rsp, 0x40
xor r12d, r12d
lea rcx, str..pipeAERTAPOProperties
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x1401eeb85
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Cant_open_pipe:
lea rcx, [0x1403375d0]
or r9d, 0xffffffff
mov r8d, eax
mov dword [rsp + 0x20], r12d
call fcn.1401eed80
cmp dword [0x140337630], r12d
je 0x1401eeaba
mov ebx, 1
mov rax, r12
mov dword [0x140337630], ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r12
ret
mov qword [rsp + 0x60], rsi
mov ebx, 1
xor edx, edx
xor ecx, ecx
mov r8d, ebx
mov qword [rsp + 0x68], rdi
mov esi, r12d
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rdi, rax
je 0x1401eeb73
lea r8d, [rbx + 0xf]
lea rdx, str.AERTFilters
mov rcx, rax
mov qword [rsp + 0x58], rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rbp, rax
je 0x1401eeb22
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, rbp
test eax, eax
cmovne esi, ebx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
mov rbp, qword [rsp + 0x58]
je 0x1401eeb73
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x30], r12
lea rcx, str..pipeAERTAPOProperties
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
cmove rax, r12
jmp 0x1401eeb76
mov rax, r12
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r12
ret
Function at 0x1401ef690
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov ecx, dword [rcx + 0x28]
xor ebx, ebx
test ecx, ecx
jne 0x1401ef6b7
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov eax, dword [rdi + 0x18]
test eax, eax
je 0x1401ef74d
add eax, eax
cmp eax, ecx
jne 0x1401ef74d
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareAndrea_ElectronicsAEAudioAPOSettings
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401ef74d
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
lea rdx, str.AEOpts
xor r8d, r8d
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401ef742
mov ecx, dword [rsp + 0x60]
mov eax, 1
not ecx
cmp ecx, dword [rdi + 0x28]
cmove ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret