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

Disassembly:
push rbx
sub rsp, 0x30
sub ecx, 4
je 0x14000415e
sub ecx, 3
je 0x1400040e6
sub ecx, 1
je 0x1400040f3
cmp ecx, 0xa
je 0x1400040f3
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 [0x140055698], 0
jne 0x1400041aa
lea rcx, str.System_resume_from_S3_S4__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.140009810
cmp eax, 0x14
jl 0x140004125
xor ebx, ebx
mov dword [0x140053e90], ebx
mov dword [0x140053e8c], ebx
call fcn.140001680
mov dword [0x140055698], 1
mov dword [0x140055568], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140055570], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140055560], eax
xor eax, eax
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
lea r8, [0x140001d20]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov qword [0x140055680], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.System_enter_S3_S4__n
mov dword [0x140055690], 1
mov dword [0x140055698], ebx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x1400041c0
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0x270
mov rax, qword [0x140053008]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbp, rdx
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x208
call fcn.14001d250
test rbp, rbp
je 0x140004315
mov qword [rsp + 0x280], rbx
lea rdx, [rsp + 0x50]
mov r8d, 0x208
mov qword [rsp + 0x290], rsi
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 0x140004311
mov edx, esi
mov qword [rsp + 0x298], 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, [0x140043f5c]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov rdx, qword [rsp + 0x48]
mov rcx, rbp
movzx r8d, word [rdx + 0x10]
movzx eax, word [rdx + 0x14]
movzx r9d, word [rdx + 0x12]
movzx edx, word [rdx + 0x16]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edx
mov edx, 0x104
mov dword [rsp + 0x20], r8d
lea r8, str._d._d._d._d
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 + 0x298]
mov eax, 1
mov rbx, qword [rsp + 0x280]
mov rsi, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140019ce0
add rsp, 0x270
pop rbp
ret
xor eax, eax
jmp 0x1400042e8
xor eax, eax
jmp 0x1400042f8
Function at 0x140005a50
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
push rbx
sub rsp, 0x4b0
mov rax, qword [0x140053008]
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 0x140005c01
xor edx, edx
mov qword [rsp + 0x4c0], rdi
mov r8d, 0x208
lea rcx, [rsp + 0x80]
call fcn.14001d250
xor edx, edx
lea rcx, [rsp + 0x290]
mov r8d, 0x208
call fcn.14001d250
mov r8d, 0x102
lea rdx, [rsp + 0x290]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [0x140041aa0]
mov edx, 0x104
lea rcx, [rsp + 0x80]
call fcn.1400219a4
lea r8, [rsp + 0x290]
mov edx, 0x104
lea rcx, [rsp + 0x80]
call fcn.140021a0c
lea r8, [0x140041aa0]
mov edx, 0x104
lea rcx, [rsp + 0x80]
call fcn.140021a0c
lea rdx, [rsp + 0x80]
lea rcx, str.The_szFilename_is:__s_n
call fcn.14000e220
xor ecx, ecx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x60], rcx
lea r8, str.AtherosSvc
mov qword [rsp + 0x58], rcx
lea rdx, str.AtherosSvc
mov qword [rsp + 0x50], rcx
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
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 0x140005bb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Install_service_failed_error_code___d_n
lea ecx, [rdi + 1]
call fcn.1400197e0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x140005bf9
lea rax, str.Atheros_BT_Stack_Service_Agent
mov edx, 1
lea r8, [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov rcx, rdi
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.140019ce0
add rsp, 0x4b0
pop rbx
ret
Function at 0x140005c20
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140053008]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor eax, eax
xor edi, edi
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
mov qword [rsp + 0x24], rax
mov r8d, 0xf003f
mov qword [rsp + 0x2c], rax
mov qword [rsp + 0x34], rax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, 0xf01ff
lea rdx, str.AtherosSvc
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140005cc4
lea r8, [rsp + 0x20]
mov rcx, rax
lea edx, [rdi + 1]
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.140019ce0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400073a0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140053008]
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 0x14000743f
mov edx, 0xbb8
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x140007435
mov r9d, 0x50
lea r8, [rsp + 0x70]
mov edx, 0xbb9
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x140007435
mov edx, 0xbba
lea r8, [rsp + 0x1b0]
mov r9d, 0x50
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x140007481
mov eax, 2
jmp 0x140007579
mov edx, 0xbbb
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x14000745e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 2
jmp 0x140007579
mov r9d, 0x50
lea r8, [rsp + 0x70]
mov edx, 0xbbc
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x140007435
mov edx, 0xbbd
jmp 0x14000741b
neg bl
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
sbb eax, eax
xor edx, edx
add eax, 2
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x50], rax
lea r9d, [rdx + 1]
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x60], rax
lea r8d, [rdx + 2]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [0x140006f20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call fcn.140010ce0
mov ebx, eax
test eax, eax
jne 0x14000756a
lea rcx, str.failcode__EXIT_OK_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [rbx + 1]
cmp dword [rsp + 0x40], ebx
jne 0x140007524
call fcn.140021bc8
mov rcx, rax
mov edx, 0xebf3
call fcn.140010330
mov dword [0x1400557a0], 1
jmp 0x14000756a
cmp dword [rsp + 0x48], 0
jne 0x14000754e
call fcn.140021bc8
mov r8d, dword [rsp + 0x40]
mov rcx, rax
mov edx, 0xecbc
call fcn.140010330
mov dword [0x1400557a0], 0
jmp 0x14000756a
call fcn.140021bc8
mov r8d, dword [rsp + 0x40]
mov rcx, rax
mov edx, 0xecbb
call fcn.140010330
mov ebx, 1
lea rcx, str.cmdDisableEnable_end_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140019ce0
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
Function at 0x140007770
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x140053008]
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 0x1400077af
mov eax, 3
jmp 0x1400078d0
cmp r9d, ebx
jl 0x1400077a5
mov rcx, qword [rax]
cmp word [rcx], 0
je 0x1400077a5
mov qword [rsp + 0x278], rsi
mov rsi, qword [rax + 8]
cmp word [rsi], 0
jne 0x1400077d9
mov eax, 3
jmp 0x1400078c8
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
dec eax
cmp eax, 0x102
ja 0x1400078c6
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400078c6
lea rcx, str.newdev.dll
mov qword [rsp + 0x280], rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x1400078be
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 0x1400078ad
mov ecx, 1
call fcn.140021bc8
mov rcx, rax
lea r9, [rsp + 0x40]
mov r8, rsi
mov edx, 0xeeae
call fcn.140010330
lea rax, [rsp + 0x30]
mov r9d, 1
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rdx, rsi
xor ecx, ecx
call rbp
test eax, eax
je 0x1400078ad
mov ecx, 1
call fcn.140021bc8
mov rcx, rax
mov edx, 0xeeb2
call fcn.140010330
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.140019ce0
add rsp, 0x260
pop rbx
ret

Function at 0x1400091e0
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 0x140009213
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 0x14000925a
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140009255
nop
cmp rbx, rcx
jae 0x14000925a
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140009240
cmp rbx, rcx
jb 0x14000925e
xor eax, eax
jmp 0x14000926a
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 0x140009690
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x48], 4
lea rdx, str.SOFTWAREAtherosVistaAddOn
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400096e4
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]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400456c8]
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 0x140009734
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 0x140009810
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140053008]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x11c
call fcn.14001d250
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140009974
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.14000e220
cmp dword [rsp + 0x30], 2
jne 0x140009974
mov eax, dword [rsp + 0x24]
cmp eax, 6
jne 0x140009913
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x1400098ad
mov eax, 0xa
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140019ce0
add rsp, 0x158
ret
cmp eax, 1
jne 0x1400098cf
mov eax, 0x14
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140019ce0
add rsp, 0x158
ret
cmp eax, 2
jne 0x1400098f1
mov eax, 0x1e
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140019ce0
add rsp, 0x158
ret
cmp eax, 3
jne 0x140009974
mov eax, 0x28
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140019ce0
add rsp, 0x158
ret
cmp eax, 0xa
jne 0x140009974
cmp dword [rsp + 0x2c], 0x3fab
jbe 0x14000994b
lea rcx, str.OS_version_is_OS_WIN10RS4_n
call fcn.14000e220
mov eax, 0x36
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140019ce0
add rsp, 0x158
ret
lea rcx, str.OS_version_is_OS_WIN10_n
call fcn.14000e220
mov eax, 0x32
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140019ce0
add rsp, 0x158
ret
mov eax, 0x37
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140019ce0
add rsp, 0x158
ret
Function at 0x140009c80
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 [0x140053008]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
movaps xmm0, xmmword [str.SOFTWAREAtherosVistaAddOnSupportedDevice]
mov rsi, rcx
movaps xmm1, xmmword [0x140045820]
lea rcx, [rbp - 0x28]
movaps xmmword [rbp - 0x80], xmm0
xor edx, edx
movaps xmm0, xmmword [0x140045830]
mov r8d, 0x1b0
movaps xmmword [rbp - 0x70], xmm1
movaps xmm1, xmmword [0x140045840]
movaps xmmword [rbp - 0x60], xmm0
movaps xmm0, xmmword [0x140045850]
movaps xmmword [rbp - 0x50], xmm1
movsd xmm1, qword [0x140045860]
movaps xmmword [rbp - 0x40], xmm0
movsd qword [rbp - 0x30], xmm1
call fcn.14001d250
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.14001d250
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 0x140009da2
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 0x140009da9
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140009e6a
mov qword [rsp + 0x4c8], rbx
mov ebx, edi
cmp dword [rsp + 0x60], ebx
jbe 0x140009e55
nop dword [rax]
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call fcn.14001d250
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 0x140009e30
mov rdx, rsi
lea rcx, [rbp + 0x190]
call fcn.14001aea8
test rax, rax
jne 0x140009e3a
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140009dc0
jmp 0x140009e55
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.14000e220
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.140019ce0
lea r11, [rsp + 0x4b0]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140009e90
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 [0x140053008]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetEnumUSB]
lea rcx, [rbp - 0x3c]
movaps xmm1, xmmword [0x140045940]
xor edx, edx
mov eax, dword [0x140045970]
mov r8d, 0x1c4
movaps xmmword [rbp - 0x80], xmm0
movaps xmm0, xmmword [0x140045950]
movaps xmmword [rbp - 0x70], xmm1
movaps xmm1, xmmword [0x140045960]
mov qword [r11 + 0x10], rsi
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x50], xmm1
mov qword [r11 + 0x18], r14
mov dword [rbp - 0x40], eax
call fcn.14001d250
xor r14d, r14d
mov dword [rsp + 0x64], 8
xor edx, edx
mov qword [rsp + 0x68], r14
mov r8d, 0x208
mov dword [rsp + 0x60], r14d
lea rcx, [rbp + 0x190]
call fcn.14001d250
mov edi, r14d
call fcn.140009750
mov esi, eax
lea rdx, [rbp - 0x80]
lea rax, [rsp + 0x68]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a049
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], r14
xor r9d, r9d
mov qword [rsp + 0x50], r14
xor r8d, r8d
mov qword [rsp + 0x48], r14
xor edx, edx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14000a049
mov qword [rsp + 0x4c0], rbx
mov ebx, r14d
cmp dword [rsp + 0x60], ebx
jbe 0x14000a041
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call fcn.14001d250
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x64]
mov qword [rsp + 0x38], r14
lea r8, [rbp + 0x190]
mov qword [rsp + 0x30], r14
mov edx, ebx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x64], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000a039
lea rcx, [rbp + 0x190]
call fcn.140009c80
test eax, eax
je 0x14000a039
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x70]
mov r9d, esi
lea rdx, [rbp + 0x190]
call fcn.1400099a0
mov edi, eax
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140009fc1
mov rbx, qword [rsp + 0x4c0]
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x4d0]
mov rsi, qword [rsp + 0x4c8]
test rcx, rcx
je 0x14000a069
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140019ce0
mov rdi, qword [rsp + 0x4d8]
add rsp, 0x4b0
pop rbp
ret
Function at 0x14000a090
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x290
mov rax, qword [0x140053008]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, rcx
mov dword [rsp + 0x64], 8
xor ebp, ebp
lea rcx, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x68], rbp
mov r8d, 0x208
mov dword [rsp + 0x60], ebp
call fcn.14001d250
mov qword [rsp + 0x58], rbp
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rbp
xor r9d, r9d
mov qword [rsp + 0x48], rbp
xor r8d, r8d
mov qword [rsp + 0x40], rbp
xor edx, edx
mov qword [rsp + 0x38], rbp
mov rcx, rsi
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14000a121
or eax, 0xffffffff
jmp 0x14000a210
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14000a210
mov qword [rsp + 0x2a8], rbx
mov qword [rsp + 0x2b0], rdi
mov edi, ebp
test eax, eax
je 0x14000a1fe
nop word [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x208
call fcn.14001d250
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 0x14000a231
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 0x14000a231
mov rcx, qword [rsp + 0x68]
call fcn.14000a090
mov rcx, qword [rsp + 0x68]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000a1f2
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 0x14000a150
xor eax, eax
mov rbx, qword [rsp + 0x2a8]
mov rdi, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140019ce0
mov rbp, qword [rsp + 0x2b8]
add rsp, 0x290
pop rsi
ret
or eax, 0xffffffff
jmp 0x14000a200
Function at 0x14000b770
Capabilities:
Read .ini file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x10270
call fcn.140037dc0
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x102c8], rbx
mov rax, qword [0x140053008]
xor rax, rsp
mov qword [rsp + 0x10260], rax
mov r14, r8
mov rsi, rdx
mov r15, rcx
mov rdi, qword [rcx + 8]
mov rbx, qword [rcx]
cmp rbx, rdi
je 0x14000b7d2
mov rcx, rbx
call fcn.14000c970
add rbx, 0x20
cmp rbx, rdi
jne 0x14000b7c1
mov rax, qword [r15]
mov qword [r15 + 8], rax
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rsp + 0x260]
call fcn.14001d250
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.14001d250
lea rbp, [rsp + 0x260]
cmp qword [r14 + 0x18], 8
jb 0x14000b812
mov r14, qword [r14]
cmp qword [rsi + 0x18], 8
jb 0x14000b81c
mov rsi, qword [rsi]
mov r9, r14
mov r8d, 0x7fff
lea rdx, [rsp + 0x260]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov r14d, eax
xor r12d, r12d
mov esi, r12d
test eax, eax
je 0x14000b95c
mov ebx, r12d
lea rdi, [rsp + 0x260]
movabs r13, 0x7fffffffffffffff
nop dword [rax]
movzx eax, word [rdi]
mov word [rsp + rbx*2 + 0x50], ax
cmp word [rbp], 0
jne 0x14000b927
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r12
mov word [rsp + 0x28], r12w
cmp word [rsp + 0x50], 0
jne 0x14000b894
mov r8, r12
jmp 0x14000b8ab
lea rax, [rsp + 0x50]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14000b8a0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.14000cb70
nop
lea rdx, [rsp + 0x28]
mov rcx, r15
call fcn.14000c800
nop
mov rax, qword [rsp + 0x40]
cmp rax, 8
jb 0x14000b911
inc rax
mov rcx, qword [rsp + 0x28]
cmp rax, r13
ja 0x14000b956
add rax, rax
cmp rax, 0x1000
jb 0x14000b90c
test cl, 0x1f
jne 0x14000b950
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14000b94a
sub rcx, rax
cmp rcx, 8
jb 0x14000b944
cmp rcx, 0x27
ja 0x14000b93e
mov rcx, rax
call fcn.140019d14
or rbx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x50]
call fcn.14001d250
inc rbx
add rbp, 2
inc esi
add rdi, 2
cmp esi, r14d
jae 0x14000b95c
jmp 0x14000b860
call fcn.140029838
int3
call fcn.140029838
int3
call fcn.140029838
int3
call fcn.140029838
int3
call fcn.140029838
int3
mov rcx, qword [rsp + 0x10260]
xor rcx, rsp
call fcn.140019ce0
mov rbx, qword [rsp + 0x102c8]
add rsp, 0x10270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret