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

Disassembly:
sub rsp, 0x38
lea rcx, str.Enter_Function_StartCustomThread____n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp qword [0x1400412f8], 0
je case.default.0x140001b86
lea rcx, str.Enter_condition_pSvc__hWorkEvent___NULL__n
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
mov qword [0x1400412f8], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea r8, [0x14000f4b0]
xor r9d, r9d
mov qword [0x140041308], rax
lea rax, [0x140041300]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400412f0], rax
test rax, rax
je 0x140001c07
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov qword [0x1400412f0], 0
mov ecx, dword [0x140041300]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5e5b
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov rcx, qword [0x1400412f8]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140001c72
lea rdx, str.Create_Thread_fails__n
mov ecx, 1
call fcn.1400184c0
mov ecx, dword [0x140041300]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5e5b
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov rcx, qword [0x1400412f8]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140001c34
call fcn.140009140
cmp eax, 0x14
je 0x140001c90
call fcn.140009140
cmp eax, 0x1e
je 0x140001c90
call fcn.140009140
cmp eax, 0x28
jne 0x140001ccd
cmp qword [0x140041310], 0
jne 0x140001ccd
lea rax, [0x140041318]
lea r9, [0x1400412b0]
lea r8, [0x140001820]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140041310], rax
add rsp, 0x38
ret
Function at 0x140001ce0
Capabilities:
Print debug messages
Terminate thread

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x20], 0xfffffffffffffffe
lea rcx, str.Enter_Function_StopCustomThread____n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.140009140
cmp eax, 0x14
je 0x140001d18
call fcn.140009140
cmp eax, 0x1e
je 0x140001d18
call fcn.140009140
cmp eax, 0x28
jne 0x140001d57
cmp qword [0x140041310], 0
je 0x140001d57
lea rcx, str.TerminateThread_pSvc__hTimerThread__0___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edx, edx
mov rcx, qword [0x140041310]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
nop
mov rcx, qword [0x140041310]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140041310], 0
cmp qword [0x140041720], 0
je 0x140001d96
lea rcx, str.TerminateThread_g_hS3S4CheckThread__0___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edx, edx
mov rcx, qword [0x140041720]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
nop
mov rcx, qword [0x140041720]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140041720], 0
mov rcx, qword [0x1400412f0]
test rcx, rcx
je 0x140001e21
mov dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x40], 0x103
jne 0x140001e21
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5e5c
mov ecx, dword [0x140041300]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov edx, 0x2710
mov rcx, qword [0x1400412f0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140001e09
lea rcx, str.TerminateThread_pSvc__hCustomThread__0___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edx, edx
mov rcx, qword [0x1400412f0]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
nop
mov rcx, qword [0x1400412f0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400412f0], 0
mov rcx, qword [0x1400412f8]
test rcx, rcx
je 0x140001e3e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400412f8], 0
mov rcx, qword [0x140041308]
test rcx, rcx
je 0x140001e5b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140041308], 0
add rsp, 0x38
ret
Function at 0x1400020b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov rax, qword [0x14003e468]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov rax, qword [rcx]
movaps xmm0, xmmword [str.SOFTWAREAtherosVistaAddOnSupported]
movaps xmm1, xmmword [0x14002fab0]
mov qword [rbp - 0x80], rax
mov rax, qword [rcx + 8]
lea rcx, [rbp + 0x5c]
movaps xmmword [rbp + 0x10], xmm0
movaps xmm0, xmmword [0x14002fac0]
movaps xmmword [rbp + 0x20], xmm1
mov qword [rbp - 0x78], rax
mov eax, dword [0x14002fae8]
xor edx, edx
movaps xmm1, xmmword [0x14002fad0]
movaps xmmword [rbp + 0x30], xmm0
mov r8d, 0x1bc
mov dword [rbp + 0x58], eax
movsd xmm0, qword [0x14002fae0]
movsd qword [rbp + 0x50], xmm0
movaps xmmword [rbp + 0x40], xmm1
call fcn.14001be30
xor edi, edi
lea rcx, [rbp + 0x222]
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x64], 8
mov word [rbp + 0x220], di
call fcn.14001be30
lea r8d, [rdi + 0x40]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x70], 4
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x1400021f4
lea rax, [rsp + 0x68]
lea r9d, [rdi + 1]
lea rdx, [rbp + 0x10]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400021f4
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 0x1400021fb
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1400022ab
mov qword [rsp + 0x558], rbx
mov ebx, edi
cmp dword [rsp + 0x60], ebx
jbe 0x140002296
nop
lea rcx, [rbp + 0x220]
xor edx, edx
mov r8d, 0x208
call fcn.14001be30
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 + 0x220]
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 0x140002287
lea rdx, [rbp + 0x220]
lea rcx, [rbp - 0x70]
call fcn.140018a90
test eax, eax
jne 0x140002287
cmp dword [rsp + 0x74], 1
je 0x140002291
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140002210
jmp 0x140002296
mov edi, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x558]
mov eax, edi
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.1400187e0
mov rdi, qword [rsp + 0x560]
add rsp, 0x540
pop rbp
ret
Function at 0x140003e70
Capabilities:
Create thread
Print debug messages

Disassembly:
push rbx
sub rsp, 0x30
sub ecx, 4
je 0x140003f21
sub ecx, 3
je 0x140003e95
dec ecx
je 0x140003ea2
cmp ecx, 0xa
je 0x140003ea2
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 [0x140041714], 0
jne 0x140003f6d
lea rcx, str.System_resume_from_S3_S4__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.140009140
cmp eax, 0x14
je 0x140003eda
call fcn.140009140
cmp eax, 0x1e
je 0x140003eda
call fcn.140009140
cmp eax, 0x28
jne 0x140003ee8
xor ebx, ebx
mov dword [0x140041320], ebx
mov dword [0x14004131c], ebx
call fcn.140001410
mov dword [0x140041714], 1
mov dword [0x140041708], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14004170c], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140041728], eax
xor eax, eax
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
lea r8, [0x140001a40]
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 [0x140041720], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.System_enter_S3_S4__n
mov dword [0x140041718], 1
mov dword [0x140041714], ebx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140003f80
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 0x14000407c
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, [0x1400310ac]
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.1400188c4
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 0x1400059b0
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
push rbx
sub rsp, 0x4b0
mov rax, qword [0x14003e468]
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 0x140005b71
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.14001be30
lea rcx, [rsp + 0x292]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x290], di
call fcn.14001be30
lea rdx, [rsp + 0x290]
mov r8d, 0x102
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [0x140032210]
lea rcx, [rsp + 0x80]
mov edx, 0x104
call fcn.140018eac
lea r8, [rsp + 0x290]
lea rcx, [rsp + 0x80]
mov edx, 0x104
call fcn.140018e24
lea r8, [0x140032210]
lea rcx, [rsp + 0x80]
mov edx, 0x104
call fcn.140018e24
lea rdx, [rsp + 0x80]
lea rcx, str.The_szFilename_is:__s_n
call fcn.14000dcd0
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 0x140005b25
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.1400184c0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x140005b69
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.1400187e0
add rsp, 0x4b0
pop rbx
ret
Function at 0x140005b90
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x14003e468]
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 0x140005c34
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.1400187e0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140007230
Capabilities:
Print debug messages

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14003e468]
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 0x1400072be
mov edx, 0xbb8
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1400072b4
lea r8, [rsp + 0x60]
mov r9d, 0x50
mov edx, 0xbb9
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1400072b4
mov edx, 0xbba
lea r8, [rsp + 0x1a0]
mov r9d, 0x50
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x140007302
mov eax, 2
jmp 0x1400073f8
mov edx, 0xbbb
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x1400072df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 2
jmp 0x1400073f8
lea r8, [rsp + 0x60]
mov r9d, 0x50
mov edx, 0xbbc
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1400072b4
mov edx, 0xbbd
jmp 0x14000729a
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, [0x140006db0]
mov qword [rsp + 0x20], rax
call fcn.140010960
mov ebx, eax
test eax, eax
jne 0x1400073e9
lea rcx, str.failcode__EXIT_OK_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [rsp + 0x30], ebx
jne 0x1400073a1
call fcn.14001904c
mov edx, 0xebf3
lea rcx, [rax + 0x30]
call fcn.14000fdc0
mov dword [0x14004173c], 1
jmp 0x1400073e9
cmp dword [rsp + 0x38], 0
jne 0x1400073cc
call fcn.14001904c
mov r8d, dword [rsp + 0x30]
mov edx, 0xecbc
lea rcx, [rax + 0x30]
call fcn.14000fdc0
mov dword [0x14004173c], 0
jmp 0x1400073e9
call fcn.14001904c
mov r8d, dword [rsp + 0x30]
mov edx, 0xecbb
lea rcx, [rax + 0x30]
call fcn.14000fdc0
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.1400187e0
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400075e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x14003e468]
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 0x14000761f
mov eax, 3
jmp 0x14000773e
cmp r9d, ebx
jl 0x140007615
mov rcx, qword [rax]
cmp word [rcx], 0
je 0x140007615
mov qword [rsp + 0x278], rsi
mov rsi, qword [rax + 8]
cmp word [rsi], 0
jne 0x140007649
mov eax, 3
jmp 0x140007736
lea r8, [rsp + 0x40]
xor r9d, r9d
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, 0x104
jae 0x140007734
test eax, eax
je 0x140007734
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140007734
lea rcx, str.newdev.dll
mov qword [rsp + 0x280], rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x14000772c
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 0x14000771b
call fcn.14001904c
lea r9, [rsp + 0x40]
mov r8, rsi
lea rcx, [rax + 0x30]
mov edx, 0xeeae
call fcn.14000fdc0
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 0x14000771b
call fcn.14001904c
mov edx, 0xeeb2
lea rcx, [rax + 0x30]
call fcn.14000fdc0
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.1400187e0
add rsp, 0x260
pop rbx
ret

Function at 0x140008e80
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 0x140008eb3
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 0x140008ef6
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140008ef1
cmp rbx, r11
jae 0x140008ef6
dec edi
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140008ee0
cmp rbx, r11
jb 0x140008efa
xor eax, eax
jmp 0x140008f06
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 0x140008fc0
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 0x140009014
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, [0x140032a18]
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 0x140009064
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 0x140009140
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x14003e468]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call fcn.14001be30
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140009207
cmp dword [rsp + 0x30], 2
jne 0x140009207
cmp dword [rsp + 0x24], 6
jne 0x140009207
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x1400091b9
mov eax, 0xa
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400187e0
add rsp, 0x158
ret
cmp eax, 1
jne 0x1400091db
mov eax, 0x14
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400187e0
add rsp, 0x158
ret
cmp eax, 2
jne 0x1400091fd
mov eax, 0x1e
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400187e0
add rsp, 0x158
ret
cmp eax, 3
mov eax, 0x28
je 0x14000920c
mov eax, 0x29
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400187e0
add rsp, 0x158
ret
Function at 0x140009510
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 [0x14003e468]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
movaps xmm0, xmmword [str.SOFTWAREAtherosVistaAddOnSupportedDevice]
movaps xmm1, xmmword [0x140032ad0]
mov rsi, rcx
lea rcx, [rbp - 0x28]
xor edx, edx
mov r8d, 0x1b0
movaps xmmword [rbp - 0x80], xmm0
movaps xmm0, xmmword [0x140032ae0]
movaps xmmword [rbp - 0x70], xmm1
movaps xmm1, xmmword [0x140032af0]
movaps xmmword [rbp - 0x60], xmm0
movaps xmm0, xmmword [0x140032b00]
movaps xmmword [rbp - 0x50], xmm1
movaps xmmword [rbp - 0x40], xmm0
movsd xmm1, qword [0x140032b10]
movsd qword [rbp - 0x30], xmm1
call fcn.14001be30
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.14001be30
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 0x140009639
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 0x140009640
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14000970a
mov qword [rsp + 0x4c8], rbx
mov ebx, edi
cmp dword [rsp + 0x60], ebx
jbe 0x1400096f5
nop word [rax + rax]
lea rcx, [rbp + 0x190]
xor edx, edx
mov r8d, 0x208
call fcn.14001be30
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 0x1400096d0
lea rcx, [rbp + 0x190]
mov rdx, rsi
call fcn.140018dc0
test rax, rax
jne 0x1400096da
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140009660
jmp 0x1400096f5
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.14000dcd0
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.1400187e0
lea r11, [rsp + 0x4b0]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret