joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004690
Capabilities:
Create thread
Print debug messages

Disassembly:
push rbx
sub rsp, 0x30
sub ecx, 4
je 0x140004741
sub ecx, 3
je 0x1400046b5
dec ecx
je 0x1400046c2
cmp ecx, 0xa
je 0x1400046c2
xor eax, eax
add rsp, 0x30
pop rbx
ret
lea rcx, str.Enter_case_PBT_APMRESUMESUSPEND__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x140043714], 0
jne 0x14000478d
lea rcx, str.System_resume_from_S3_S4__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.1400099f0
cmp eax, 0x14
je 0x1400046fa
call fcn.1400099f0
cmp eax, 0x1e
je 0x1400046fa
call fcn.1400099f0
cmp eax, 0x28
jne 0x140004708
xor ebx, ebx
mov dword [0x140043320], ebx
mov dword [0x14004331c], ebx
call fcn.140001b00
mov dword [0x140043714], 1
mov dword [0x140043708], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14004370c], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140043728], eax
xor eax, eax
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
lea r8, [0x140002170]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov qword [0x140043720], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.System_enter_S3_S4__n
mov dword [0x140043718], 1
mov dword [0x140043714], ebx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x1400047a0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r12
sub rsp, 0x50
mov r12, rcx
mov r8d, 0x208
xor ecx, ecx
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x40]
xor ebx, ebx
mov rcx, rsi
mov dword [rsp + 0x40], ebx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebp, eax
test eax, eax
je 0x14000489c
lea ecx, [rbx + 2]
mov edx, ebp
mov qword [rsp + 0x80], rdi
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]
mov r8d, ebp
mov r9, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x48]
lea rdx, [0x140032bcc]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov r11, qword [rsp + 0x48]
mov rcx, r12
movzx edx, word [r11 + 0x16]
movzx r8d, word [r11 + 0x10]
movzx eax, word [r11 + 0x14]
movzx r9d, word [r11 + 0x12]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r8d
lea r8, str._d._d._d._d
mov edx, 0x104
call fcn.140019734
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rdi, qword [rsp + 0x80]
mov eax, 1
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r12
pop rsi
pop rbp
ret
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r12
pop rsi
pop rbp
ret
Function at 0x1400062c0
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
push rbx
sub rsp, 0x4b0
mov rax, qword [0x140040468]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x140006481
mov qword [rsp + 0x4c0], rdi
lea rcx, [rsp + 0x82]
xor edi, edi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x80], di
call fcn.14001cc90
lea rcx, [rsp + 0x292]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x290], di
call fcn.14001cc90
lea rdx, [rsp + 0x290]
mov r8d, 0x102
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [0x14002fef8]
lea rcx, [rsp + 0x80]
mov edx, 0x104
call fcn.140019d1c
lea r8, [rsp + 0x290]
lea rcx, [rsp + 0x80]
mov edx, 0x104
call fcn.140019c94
lea r8, [0x14002fef8]
lea rcx, [rsp + 0x80]
mov edx, 0x104
call fcn.140019c94
lea rdx, [rsp + 0x80]
lea rcx, str.The_szFilename_is:__s_n
call fcn.14000e580
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x80]
lea r8, str.AtherosSvc
lea rdx, str.AtherosSvc
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edi
mov r9d, 0xf01ff
mov rcx, rbx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x140006435
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Install_service_failed_error_code___d_n
lea ecx, [rdi + 1]
mov r8d, eax
call fcn.140019330
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x140006479
lea rax, str.Atheros_BT_Stack_Service_Agent
lea r8, [rsp + 0x70]
mov edx, 1
mov rcx, rdi
mov qword [rsp + 0x70], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov rdi, qword [rsp + 0x4c0]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.140019650
add rsp, 0x4b0
pop rbx
ret
Function at 0x1400064a0
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140040468]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor eax, eax
xor edi, edi
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
lea rdx, [rsp + 0x40]
mov r8d, 0x104
xor ecx, ecx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, str.AtherosSvc
mov r8d, 0xf01ff
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140006544
lea r8, [rsp + 0x20]
lea edx, [rdi + 1]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140019650
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140007af0
Capabilities:
Print debug messages

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140040468]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, r9
mov edi, r8d
movzx ebx, cl
mov r9d, 0x50
lea r8, [rsp + 0x100]
test cl, cl
je 0x140007b7e
mov edx, 0xbb8
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x140007b74
lea r8, [rsp + 0x60]
mov r9d, 0x50
mov edx, 0xbb9
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x140007b74
mov edx, 0xbba
lea r8, [rsp + 0x1a0]
mov r9d, 0x50
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x140007bc2
mov eax, 2
jmp 0x140007cb8
mov edx, 0xbbb
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x140007b9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 2
jmp 0x140007cb8
lea r8, [rsp + 0x60]
mov r9d, 0x50
mov edx, 0xbbc
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x140007b74
mov edx, 0xbbd
jmp 0x140007b5a
neg bl
mov r9, rsi
mov r8d, edi
sbb eax, eax
mov edx, 2
xor ecx, ecx
add eax, 2
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [0x140007670]
mov qword [rsp + 0x20], rax
call fcn.140011220
mov ebx, eax
test eax, eax
jne 0x140007ca9
lea rcx, str.failcode__EXIT_OK_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [rsp + 0x30], ebx
jne 0x140007c61
call fcn.140019ebc
mov edx, 0xebf3
lea rcx, [rax + 0x30]
call fcn.140010680
mov dword [0x14004373c], 1
jmp 0x140007ca9
cmp dword [rsp + 0x38], 0
jne 0x140007c8c
call fcn.140019ebc
mov r8d, dword [rsp + 0x30]
mov edx, 0xecbc
lea rcx, [rax + 0x30]
call fcn.140010680
mov dword [0x14004373c], 0
jmp 0x140007ca9
call fcn.140019ebc
mov r8d, dword [rsp + 0x30]
mov edx, 0xecbb
lea rcx, [rax + 0x30]
call fcn.140010680
mov ebx, 1
lea rcx, str.cmdDisableEnable_end_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140019650
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret
Function at 0x140007ea0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x140040468]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rsp + 0x290]
mov ebx, 2
mov dword [rsp + 0x30], 0
test rdx, rdx
je 0x140007edf
mov eax, 3
jmp 0x140007ffe
cmp r9d, ebx
jl 0x140007ed5
mov rcx, qword [rax]
cmp word [rcx], 0
je 0x140007ed5
mov qword [rsp + 0x278], rsi
mov rsi, qword [rax + 8]
cmp word [rsi], 0
jne 0x140007f09
mov eax, 3
jmp 0x140007ff6
lea r8, [rsp + 0x40]
xor r9d, r9d
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, 0x104
jae 0x140007ff4
test eax, eax
je 0x140007ff4
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140007ff4
lea rcx, str.newdev.dll
mov qword [rsp + 0x280], rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x140007fec
lea rdx, str.UpdateDriverForPlugAndPlayDevicesW
mov rcx, rax
mov qword [rsp + 0x270], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x140007fdb
call fcn.140019ebc
lea r9, [rsp + 0x40]
mov r8, rsi
lea rcx, [rax + 0x30]
mov edx, 0xeeae
call fcn.140010680
lea r11, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov r9d, 1
mov rdx, rsi
xor ecx, ecx
mov qword [rsp + 0x20], r11
call rbp
test eax, eax
je 0x140007fdb
call fcn.140019ebc
mov edx, 0xeeb2
lea rcx, [rax + 0x30]
call fcn.140010680
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 + 0x280]
mov eax, ebx
mov rsi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140019650
add rsp, 0x260
pop rbx
ret

Function at 0x140009730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
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
jne 0x140009763
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400097a6
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x1400097a1
cmp rbx, r11
jae 0x1400097a6
dec edi
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140009790
cmp rbx, r11
jb 0x1400097aa
xor eax, eax
jmp 0x1400097b6
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140009870
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x50]
lea rdx, str.SOFTWAREAtherosVistaAddOn
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400098c4
lea rcx, str.GetCustomerDefineCod_Failed_open_SOFTWAREAtherosVistaAddOn_registry.__r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or eax, 0xffffffff
add rsp, 0x38
ret
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea rdx, [0x140034508]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140009914
lea rcx, str.GetCustomerDefineCod_Failed_query_Cod.__r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
add rsp, 0x38
ret
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x1400099f0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140040468]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call fcn.14001cc90
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140009ab7
cmp dword [rsp + 0x30], 2
jne 0x140009ab7
cmp dword [rsp + 0x24], 6
jne 0x140009ab7
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x140009a69
mov eax, 0xa
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140019650
add rsp, 0x158
ret
cmp eax, 1
jne 0x140009a8b
mov eax, 0x14
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140019650
add rsp, 0x158
ret
cmp eax, 2
jne 0x140009aad
mov eax, 0x1e
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140019650
add rsp, 0x158
ret
cmp eax, 3
mov eax, 0x28
je 0x140009abc
mov eax, 0x29
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140019650
add rsp, 0x158
ret
Function at 0x140009dc0
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 [0x140040468]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
movaps xmm0, xmmword [str.SOFTWAREAtherosVistaAddOnSupportedDevice]
movaps xmm1, xmmword [0x14002ff80]
mov rsi, rcx
lea rcx, [rbp - 0x28]
xor edx, edx
mov r8d, 0x1b0
movaps xmmword [rbp - 0x80], xmm0
movaps xmm0, xmmword [0x14002ff90]
movaps xmmword [rbp - 0x70], xmm1
movaps xmm1, xmmword [0x14002ffa0]
movaps xmmword [rbp - 0x60], xmm0
movaps xmm0, xmmword [0x14002ffb0]
movaps xmmword [rbp - 0x50], xmm1
movaps xmmword [rbp - 0x40], xmm0
movsd xmm1, qword [0x14002ffc0]
movsd qword [rbp - 0x30], xmm1
call fcn.14001cc90
xor edi, edi
lea rcx, [rbp + 0x192]
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x64], 8
mov word [rbp + 0x190], di
call fcn.14001cc90
lea rax, [rsp + 0x68]
lea r9d, [rdi + 1]
lea rdx, [rbp - 0x80]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x70], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009ee9
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x140009ef0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140009fba
mov qword [rsp + 0x4c8], rbx
mov ebx, edi
cmp dword [rsp + 0x60], ebx
jbe 0x140009fa5
nop word [rax + rax]
lea rcx, [rbp + 0x190]
xor edx, edx
mov r8d, 0x208
call fcn.14001cc90
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x74]
lea r9, [rsp + 0x64]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x78]
lea r8, [rbp + 0x190]
mov qword [rsp + 0x28], rax
mov edx, ebx
mov dword [rsp + 0x64], 0x104
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140009f80
lea rcx, [rbp + 0x190]
mov rdx, rsi
call fcn.140019c30
test rax, rax
jne 0x140009f8a
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140009f10
jmp 0x140009fa5
lea r8, [rbp + 0x190]
lea rcx, str.Find_the_vidpid__the_value_of_the_enum_pidvid_is__s__and_the_value_in_registry_is__s._n
mov rdx, rsi
call fcn.14000e580
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.140019650
lea r11, [rsp + 0x4b0]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140009fe0
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rdi
push rbp
lea rbp, [r11 - 0x3b8]
sub rsp, 0x4b0
mov rax, qword [0x140040468]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetEnumUSB]
movaps xmm1, xmmword [0x140034680]
mov eax, dword [0x1400346b0]
mov qword [r11 + 0x10], rsi
lea rcx, [rbp - 0x3c]
xor edx, edx
movaps xmmword [rbp - 0x80], xmm0
movaps xmm0, xmmword [0x140034690]
movaps xmmword [rbp - 0x70], xmm1
mov r8d, 0x1c4
mov qword [r11 + 0x18], r12
mov dword [rbp - 0x40], eax
movaps xmm1, xmmword [0x1400346a0]
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x50], xmm1
call fcn.14001cc90
xor r12d, r12d
lea rcx, [rbp + 0x192]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x60], r12d
mov dword [rsp + 0x64], 8
mov word [rbp + 0x190], r12w
call fcn.14001cc90
mov edi, r12d
call fcn.140009930
mov esi, eax
lea rax, [rsp + 0x68]
lea rdx, [rbp - 0x80]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a1a8
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14000a1a8
mov qword [rsp + 0x4c0], rbx
mov ebx, r12d
cmp dword [rsp + 0x60], ebx
jbe 0x14000a1a0
nop dword [rax]
lea rcx, [rbp + 0x190]
xor edx, edx
mov r8d, 0x208
call fcn.14001cc90
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9, [rsp + 0x64]
lea r8, [rbp + 0x190]
mov edx, ebx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x64], 0x104
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000a198
lea rcx, [rbp + 0x190]
call fcn.140009dc0
test eax, eax
je 0x14000a198
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x190]
mov r9d, esi
call fcn.140009ae0
mov edi, eax
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x14000a120
mov rbx, qword [rsp + 0x4c0]
mov rcx, qword [rsp + 0x68]
mov r12, qword [rsp + 0x4d0]
mov rsi, qword [rsp + 0x4c8]
test rcx, rcx
je 0x14000a1c8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140019650
mov rdi, qword [rsp + 0x4d8]
add rsp, 0x4b0
pop rbp
ret
Function at 0x14000a1f0
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140040468]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
lea rcx, [rsp + 0x32]
xor edi, edi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], di
call fcn.14001cc90
lea r8d, [rdi + 0x23]
lea rdx, [rsp + 0x30]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
jne 0x14000a28f
lea r8, str.AtherosAtherosServiceConfig.ini
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.140019c94
lea r11, [rsp + 0x30]
lea r8, str.Operation
mov qword [rsp + 0x28], r11
lea rdx, str.operation
lea rcx, str.AthService
mov r9, rbx
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [rdi + 1]
jmp 0x14000a291
mov eax, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140019650
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret

Function at 0x14000a2c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x290
mov rax, qword [0x140040468]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor ebp, ebp
mov rsi, rcx
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x64], 8
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x60], ebp
mov word [rsp + 0x70], bp
call fcn.14001cc90
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14000a356
or eax, 0xffffffff
jmp 0x14000a440
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14000a440
mov qword [rsp + 0x2a8], rbx
mov qword [rsp + 0x2b0], rdi
mov edi, ebp
test eax, eax
je 0x14000a42e
nop dword [rax]
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x208
call fcn.14001cc90
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x64]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x64], 0x104
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000a461
lea rax, [rsp + 0x68]
lea rdx, [rsp + 0x70]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a461
mov rcx, qword [rsp + 0x68]
call fcn.14000a2c0
mov rcx, qword [rsp + 0x68]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000a422
lea rdx, [rsp + 0x70]
xor r9d, r9d
mov r8d, 0x300
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
inc edi
cmp edi, dword [rsp + 0x60]
jb 0x14000a380
xor eax, eax
mov rbx, qword [rsp + 0x2a8]
mov rdi, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140019650
mov rbp, qword [rsp + 0x2b8]
add rsp, 0x290
pop rsi
ret
or eax, 0xffffffff
jmp 0x14000a430
Function at 0x14000b8a0
Capabilities:
Read .ini file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
mov eax, 0x10270
call fcn.1400222d0
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x102b8], rbx
mov rax, qword [0x140040468]
xor rax, rsp
mov qword [rsp + 0x10260], rax
mov rbx, r8
mov rdi, rdx
mov r12, rcx
call fcn.14000c940
xor r13d, r13d
mov word [rsp + 0x260], r13w
xor edx, edx
mov r8d, 0xfffc
lea rcx, [rsp + 0x262]
call fcn.14001cc90
mov word [rsp + 0x50], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.14001cc90
lea rsi, [rsp + 0x260]
cmp qword [rbx + 0x18], 8
jb 0x14000b931
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x14000b93b
mov rdi, qword [rdi]
mov r9, rbx
mov r8d, 0x7fff
lea rdx, [rsp + 0x260]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov rdi, r13
test eax, eax
je 0x14000ba01
lea rbx, [rsp + 0x260]
mov ebp, eax
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rsp + rdi*2 + 0x50], ax
cmp word [rsi], 0
jne 0x14000b9ed
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r13
mov word [rsp + 0x28], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.14000ce60
nop
lea rdx, [rsp + 0x28]
mov rcx, r12
call fcn.14000c850
nop
cmp qword [rsp + 0x40], 8
jb 0x14000b9d7
mov rcx, qword [rsp + 0x28]
call fcn.14001a248
or rdi, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x50]
call fcn.14001cc90
inc rdi
add rsi, 2
add rbx, 2
dec rbp
jne 0x14000b970
mov rcx, qword [rsp + 0x10260]
xor rcx, rsp
call fcn.140019650
mov rbx, qword [rsp + 0x102b8]
add rsp, 0x10270
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret