joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004a70
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x270
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbp, rdx
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x208
call fcn.14001bd50
test rbp, rbp
je 0x140004b99
mov r8d, 0x208
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ebx, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], ebx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x140004b99
mov edx, esi
mov qword [rsp + 0x280], rdi
lea ecx, [rbx + 2]
mov dword [rsp + 0x44], ebx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov r9, rax
mov r8d, esi
mov rbx, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea r9, [rsp + 0x44]
mov rcx, rbx
lea r8, [rsp + 0x48]
lea rdx, [0x1400415b0]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov rdx, qword [rsp + 0x48]
mov rcx, rbp
mov r9d, dword [rdx + 0x10]
mov r8d, dword [rdx + 0x14]
movzx edx, r8w
mov dword [rsp + 0x30], edx
mov edx, 0x104
shr r8d, 0x10
mov dword [rsp + 0x28], r8d
lea r8, str._d._d._d._d
movzx eax, r9w
shr r9d, 0x10
mov dword [rsp + 0x20], eax
call fcn.140001040
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rdi, qword [rsp + 0x280]
mov eax, 1
jmp 0x140004b9b
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400198d0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x140007cf0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, qword [rsp + 0x298]
movzx ebx, cl
lea rcx, str.cmdDisableEnable_Start_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ecx, ecx
lea r8, [rsp + 0x110]
mov r9d, 0x50
test bl, bl
je 0x140007dab
mov edx, 0xbb8
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x140007d85
mov r9d, 0x50
lea r8, [rsp + 0x70]
mov edx, 0xbb9
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x140007d85
mov r9d, 0x50
lea r8, [rsp + 0x1b0]
mov edx, 0xbba
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x140007dfd
mov eax, 2
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400198d0
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
mov edx, 0xbbb
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x140007dc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140007d85
mov r9d, 0x50
lea r8, [rsp + 0x70]
mov edx, 0xbbc
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x140007d85
mov r9d, 0x50
lea r8, [rsp + 0x1b0]
mov edx, 0xbbd
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x140007d85
xor edx, edx
mov dword [rsp + 0x48], 0
mov eax, ebx
mov dword [rsp + 0x40], 0
xor eax, 1
inc eax
mov dword [rsp + 0x44], eax
lea r9d, [rdx + 1]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
lea r8d, [rdx + 2]
lea rax, [rsp + 0x110]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [0x140007850]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call fcn.140010520
mov ebx, eax
test eax, eax
jne 0x140007f0e
lea rcx, str.failcode__EXIT_OK_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [rbx + 1]
cmp dword [rsp + 0x40], ebx
jne 0x140007eb6
call fcn.140025d28
mov rcx, rax
mov edx, 0xebf3
call fcn.14000fcf0
lea rcx, str.cmdDisableEnable_end_n
mov dword [0x14005539c], 1
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, ebx
jmp 0x140007d8a
cmp dword [rsp + 0x48], 0
jne 0x140007ef2
call fcn.140025d28
mov r8d, dword [rsp + 0x40]
mov rcx, rax
mov edx, 0xecbc
call fcn.14000fcf0
lea rcx, str.cmdDisableEnable_end_n
mov dword [0x14005539c], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, ebx
jmp 0x140007d8a
call fcn.140025d28
mov r8d, dword [rsp + 0x40]
mov rcx, rax
mov edx, 0xecbb
call fcn.14000fcf0
mov ebx, 1
lea rcx, str.cmdDisableEnable_end_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, ebx
jmp 0x140007d8a
Function at 0x1400081d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x260
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rsp + 0x290]
mov ebx, 2
mov dword [rsp + 0x30], 0
test rdx, rdx
jne 0x14000831e
cmp r9d, ebx
jl 0x14000831e
mov rcx, qword [rax]
cmp word [rcx], dx
je 0x14000831e
mov rsi, qword [rax + 8]
cmp word [rsi], dx
je 0x14000831e
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
dec eax
cmp eax, 0x102
ja 0x14000831a
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000831a
lea rcx, str.newdev.dll
mov qword [rsp + 0x278], rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x14000830e
lea rdx, str.UpdateDriverForPlugAndPlayDevicesW
mov qword [rsp + 0x270], rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x1400082fd
lea ecx, [rbx - 1]
call fcn.140025d28
mov rcx, rax
lea r9, [rsp + 0x40]
mov r8, rsi
mov edx, 0xeeae
call fcn.14000fcf0
lea rax, [rsp + 0x30]
mov rdx, rsi
lea r9d, [rbx - 1]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor ecx, ecx
call rbp
test eax, eax
je 0x1400082fd
lea ecx, [rbx - 1]
call fcn.140025d28
mov rcx, rax
mov edx, 0xeeb2
call fcn.14000fcf0
xor ebx, ebx
cmp dword [rsp + 0x30], ebx
setne bl
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbp, qword [rsp + 0x270]
mov rdi, qword [rsp + 0x278]
mov eax, ebx
jmp 0x140008323
mov eax, ebx
jmp 0x140008323
mov eax, 3
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400198d0
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rsi
ret

Function at 0x140009b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140009bd5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140009bd5
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140009bc5
nop
cmp rbx, rcx
jae 0x140009bd5
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140009bb0
cmp rbx, rcx
jae 0x140009bd5
cmp word [rbx], 0
je 0x140009bd5
mov rax, rbx
jmp 0x140009bd7
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140009f30
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.14001bd50
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14000a094
mov r9d, dword [rsp + 0x2c]
lea rcx, str.OS_version_is__d_.__d_.__d_n
mov r8d, dword [rsp + 0x28]
mov edx, dword [rsp + 0x24]
call fcn.14000db70
cmp dword [rsp + 0x30], 2
jne 0x14000a094
mov eax, dword [rsp + 0x24]
cmp eax, 6
jne 0x14000a033
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x140009fcd
mov eax, 0xa
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400198d0
add rsp, 0x158
ret
cmp eax, 1
jne 0x140009fef
mov eax, 0x14
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400198d0
add rsp, 0x158
ret
cmp eax, 2
jne 0x14000a011
mov eax, 0x1e
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400198d0
add rsp, 0x158
ret
cmp eax, 3
jne 0x14000a094
mov eax, 0x28
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400198d0
add rsp, 0x158
ret
cmp eax, 0xa
jne 0x14000a094
cmp dword [rsp + 0x2c], 0x3fab
jbe 0x14000a06b
lea rcx, str.OS_version_is_OS_WIN10RS4_n
call fcn.14000db70
mov eax, 0x36
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400198d0
add rsp, 0x158
ret
lea rcx, str.OS_version_is_OS_WIN10_n
call fcn.14000db70
mov eax, 0x32
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400198d0
add rsp, 0x158
ret
mov eax, 0x37
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400198d0
add rsp, 0x158
ret
Function at 0x14000a3a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
movaps xmm0, xmmword [str.SOFTWAREAtherosVistaAddOnSupportedDevice]
mov rsi, rcx
movaps xmm1, xmmword [0x1400454d0]
lea rcx, [rbp - 0x28]
movaps xmmword [rbp - 0x80], xmm0
xor edx, edx
movaps xmm0, xmmword [0x1400454e0]
mov r8d, 0x1b0
movaps xmmword [rbp - 0x70], xmm1
movaps xmm1, xmmword [0x1400454f0]
movaps xmmword [rbp - 0x60], xmm0
movaps xmm0, xmmword [0x140045500]
movaps xmmword [rbp - 0x50], xmm1
movsd xmm1, qword [0x140045510]
movaps xmmword [rbp - 0x40], xmm0
movsd qword [rbp - 0x30], xmm1
call fcn.14001bd50
xor edi, edi
mov dword [rsp + 0x64], 8
xor edx, edx
mov dword [rsp + 0x60], edi
mov r8d, 0x208
lea rcx, [rbp + 0x190]
call fcn.14001bd50
lea rax, [rsp + 0x68]
mov dword [rsp + 0x70], 4
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a4c2
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rdi
xor r9d, r9d
mov qword [rsp + 0x50], rdi
xor r8d, r8d
mov qword [rsp + 0x48], rdi
xor edx, edx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14000a4c9
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14000a58a
mov qword [rsp + 0x4c8], rbx
mov ebx, edi
cmp dword [rsp + 0x60], ebx
jbe 0x14000a575
nop dword [rax]
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call fcn.14001bd50
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x64]
lea rax, [rsp + 0x74]
mov dword [rsp + 0x64], 0x104
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x190]
lea rax, [rsp + 0x78]
mov edx, ebx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14000a550
mov rdx, rsi
lea rcx, [rbp + 0x190]
call fcn.14001b57c
test rax, rax
jne 0x14000a55a
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x14000a4e0
jmp 0x14000a575
lea r8, [rbp + 0x190]
mov rdx, rsi
lea rcx, str.Find_the_vidpid__the_value_of_the_enum_pidvid_is__s__and_the_value_in_registry_is__s._n
call fcn.14000db70
mov edi, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x4c8]
mov eax, edi
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.1400198d0
lea r11, [rsp + 0x4b0]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000a8c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor ebp, ebp
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rbp
xor r9d, r9d
mov qword [rsp + 0x50], rbp
xor r8d, r8d
mov qword [rsp + 0x48], rbp
xor edx, edx
mov qword [rsp + 0x40], rbp
mov rsi, rcx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x60], ebp
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14000a9fe
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14000a9fa
mov edi, ebp
nop dword [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x208
call fcn.14001bd50
mov qword [rsp + 0x38], rbp
lea r9, [rsp + 0x64]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x64], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000a9fe
lea rax, [rsp + 0x68]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a9fe
mov rcx, qword [rsp + 0x68]
call fcn.14000a8c0
mov rcx, qword [rsp + 0x68]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000a9ee
xor r9d, r9d
lea rdx, [rsp + 0x70]
mov r8d, 0x300
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
inc edi
cmp edi, dword [rsp + 0x60]
jb 0x14000a950
xor eax, eax
jmp 0x14000aa03
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400198d0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000bab0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x10260
call fcn.1400364c0
sub rsp, rax
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rsp + 0x10250], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
call fcn.14000d240
mov rax, qword [rsi]
mov qword [rsi + 8], rax
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rsp + 0x250]
call fcn.14001bd50
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.14001bd50
lea r14, [rsp + 0x250]
cmp qword [rdi + 0x18], 8
jb 0x14000bb30
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 8
jb 0x14000bb3a
mov rbx, qword [rbx]
mov r9, rdi
mov r8d, 0x7fff
lea rdx, [rsp + 0x250]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov ebp, eax
xor r15d, r15d
mov edi, r15d
test eax, eax
je 0x14000bc6d
mov ebx, r15d
nop word [rax + rax]
movzx edx, word [r14]
mov eax, edi
movzx ecx, word [rsp + rax*2 + 0x250]
mov word [rsp + rbx*2 + 0x40], cx
test dx, dx
jne 0x14000bc5c
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r15w
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14000bbb0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14000c9b0
nop
mov rdx, qword [rsi + 8]
cmp rdx, qword [rsi + 0x10]
je 0x14000bbf8
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rdx + 0x10], xmm1
mov edx, 7
mov word [rsp + 0x20], r15w
add qword [rsi + 8], 0x20
jmp 0x14000bc0a
lea r8, [rsp + 0x20]
mov rcx, rsi
call fcn.14000cb50
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14000bc43
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bc3e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000bc94
call fcn.1400198f4
mov rbx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x40]
call fcn.14001bd50
inc rbx
add r14, 2
inc edi
cmp edi, ebp
jb 0x14000bb70
mov rcx, qword [rsp + 0x10250]
xor rcx, rsp
call fcn.1400198d0
mov rbx, qword [rsp + 0x102a8]
add rsp, 0x10260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14002589c
int3
Function at 0x14000db70
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x848
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x800
call fcn.14001bd50
lea rdi, [rsp + 0x868]
call fcn.140001030
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x7fffffff
mov rcx, qword [rax]
call fcn.140024e4c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.1400198d0
add rsp, 0x848
pop rdi
pop rbx
ret
Function at 0x14000dc10
Capabilities:
Query or enumerate registry value
Query service status
Start service
Stop service

Disassembly:
push rsi
sub rsp, 0x280
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rsp + 0x270], rax
movups xmm0, xmmword [str.SOFTWAREAtherosVistaAddOn]
mov esi, ecx
xor edx, edx
movups xmm1, xmmword [0x1400418d8]
lea rcx, [rsp + 0x98]
mov r8d, 0x1d0
movaps xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [0x1400418e8]
movaps xmmword [rsp + 0x70], xmm1
movsd xmm1, qword [0x1400418f8]
movaps xmmword [rsp + 0x80], xmm0
movsd qword [rsp + 0x90], xmm1
call fcn.14001bd50
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], 0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x34], 4
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000de38
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rdx, str.ControlBthServ
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x14000dcf7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000de38
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x30], 1
jne 0x14000de38
mov r8d, esi
mov qword [rsp + 0x2a0], rdi
lea rdx, str.StartBthService___d___n
mov ecx, 1
call fcn.1400194a0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14000dd50
lea rdx, str.Open_Service_manager_error__n
lea ecx, [rax + 1]
call fcn.1400194a0
jmp 0x14000de30
mov r8d, 0x34
mov qword [rsp + 0x298], rbx
lea rdx, str.BthServ
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14000dd93
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Open_BthServ_Service_error:__d___n
lea ecx, [rbx + 1]
call fcn.1400194a0
jmp 0x14000de1f
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14000ddb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Get_Service_state_error:__d___n
jmp 0x14000de09
test esi, esi
jne 0x14000dde3
cmp dword [rsp + 0x44], 4
jne 0x14000de16
lea r8, [rsp + 0x40]
mov rcx, rbx
lea edx, [rsi + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14000de16
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.stop_service_error:__d___n
jmp 0x14000de09
cmp dword [rsp + 0x44], 1
jne 0x14000de16
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14000de16
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.start_service_error:__d___n
mov r8d, eax
mov ecx, 1
call fcn.1400194a0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x298]
mov rdi, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400198d0
add rsp, 0x280
pop rsi
ret
Function at 0x14000e3d0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [str..ATHAMPFL]
lea rcx, [rsp + 0x50]
movzx eax, word [0x140046638]
movsd xmm1, qword [0x140046630]
xor edi, edi
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
movups xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x68], ax
movsd qword [rsp + 0x60], xmm1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000e45d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ath_l2cap_disconnect_all__INVALID_HANDLE_VALUE_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14000e4b7
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x48]
mov dword [rsp + 0x28], edi
mov r9d, 8
mov edx, 0x2a0508
mov qword [rsp + 0x20], rdi
mov rcx, rbx
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x48], edi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14000e4ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ath_l2cap_disconnect_all__error__x_n
call fcn.14000db70
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400198d0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x14000e4e0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [str..ATHAMPFL]
lea rcx, [rsp + 0x48]
movzx eax, word [0x140046638]
movsd xmm1, qword [0x140046630]
xor edi, edi
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
movups xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x60], ax
movsd qword [rsp + 0x58], xmm1
mov dword [rsp + 0x40], edi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000e56e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ath_fake_disconnect_event__INVALID_HANDLE_VALUE_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14000e5c9
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov edx, 0x2a0518
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14000e5b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ath_fake_disconnect_event__error__x_n
call fcn.14000db70
jmp 0x14000e5c0
lea rcx, str.ath_fake_disconnect_event_success__n
call fcn.14000db70
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400198d0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x14000fb60
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx ebx, cl
lea rcx, str.DisableBTENUMDevice_Start_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.DisableBTENUMDevice_Start_n
mov ecx, 2
call fcn.1400194a0
cmp word [0x1400554c0], 0
lea rax, str.enable
mov qword [rsp + 0x30], rax
lea rdx, [0x1400554c0]
lea rax, str.disable
mov qword [rsp + 0x38], rax
lea rcx, str.argv2_5_:__s_n
lea rax, str.remove
mov qword [rsp + 0x40], rax
lea rax, str.BTHMS_BTHBRB
mov qword [rsp + 0x48], rax
lea rax, str.BTHMS_BTHLE
mov qword [rsp + 0x50], rax
lea rax, str.USBClass_E0
cmove rdx, rax
mov qword [rsp + 0x58], rdx
call fcn.14000db70
lea rax, str.BTHENUM
mov qword [rsp + 0x60], rax
lea rax, str.rescan
mov qword [rsp + 0x68], rax
test bl, bl
je 0x14000fc65
lea rcx, str.DisableBTENUMDevice__Enable_device_n
call fcn.14000db70
lea rdx, str.DisableBTENUMDevice__Enable_device_n
mov ecx, 2
call fcn.1400194a0
lea rax, [rsp + 0x58]
movzx ecx, bl
mov qword [rsp + 0x28], rax
call fcn.140007cf0
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.radio_Rescan_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14000fcb2
lea rcx, str.DisableBTENUMDevice__Disable_device_n
call fcn.14000db70
lea rdx, str.DisableBTENUMDevice__Disable_device_n
mov ecx, 2
call fcn.1400194a0
lea rax, [rsp + 0x58]
xor ecx, ecx
mov qword [rsp + 0x28], rax
call fcn.140007cf0
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x14005539c], 0
jne 0x14000fcb2
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.DisableBTENUMDevice_End_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.DisableBTENUMDevice_End_n
mov ecx, 2
call fcn.1400194a0
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400198d0
add rsp, 0x80
pop rbx
ret