joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005a50
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
push rbx
sub rsp, 0x4b0
mov rax, qword [0x14004b008]
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.14001c790
xor edx, edx
lea rcx, [rsp + 0x290]
mov r8d, 0x208
call fcn.14001c790
mov r8d, 0x102
lea rdx, [rsp + 0x290]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [0x14003a840]
mov edx, 0x104
lea rcx, [rsp + 0x80]
call fcn.140020ee4
lea r8, [rsp + 0x290]
mov edx, 0x104
lea rcx, [rsp + 0x80]
call fcn.140020f4c
lea r8, [0x14003a840]
mov edx, 0x104
lea rcx, [rsp + 0x80]
call fcn.140020f4c
lea rdx, [rsp + 0x80]
lea rcx, str.The_szFilename_is:__s_n
call fcn.14000db40
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.140018d20
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.140019260
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 [0x14004b008]
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.140019260
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140007450
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14004b008]
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 0x1400074ef
mov edx, 0xbb8
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1400074e5
mov r9d, 0x50
lea r8, [rsp + 0x70]
mov edx, 0xbb9
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1400074e5
mov edx, 0xbba
lea r8, [rsp + 0x1b0]
mov r9d, 0x50
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x140007531
mov eax, 2
jmp 0x140007629
mov edx, 0xbbb
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x14000750e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 2
jmp 0x140007629
mov r9d, 0x50
lea r8, [rsp + 0x70]
mov edx, 0xbbc
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1400074e5
mov edx, 0xbbd
jmp 0x1400074cb
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, [0x140006fd0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call fcn.1400105e0
mov ebx, eax
test eax, eax
jne 0x14000761a
lea rcx, str.failcode__EXIT_OK_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [rbx + 1]
cmp dword [rsp + 0x40], ebx
jne 0x1400075d4
call fcn.140021108
mov rcx, rax
mov edx, 0xebf3
call fcn.14000fc30
mov dword [0x14004d7a0], 1
jmp 0x14000761a
cmp dword [rsp + 0x48], 0
jne 0x1400075fe
call fcn.140021108
mov r8d, dword [rsp + 0x40]
mov rcx, rax
mov edx, 0xecbc
call fcn.14000fc30
mov dword [0x14004d7a0], 0
jmp 0x14000761a
call fcn.140021108
mov r8d, dword [rsp + 0x40]
mov rcx, rax
mov edx, 0xecbb
call fcn.14000fc30
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.140019260
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
Function at 0x140007820
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x14004b008]
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 0x14000785f
mov eax, 3
jmp 0x140007980
cmp r9d, ebx
jl 0x140007855
mov rcx, qword [rax]
cmp word [rcx], 0
je 0x140007855
mov qword [rsp + 0x278], rsi
mov rsi, qword [rax + 8]
cmp word [rsi], 0
jne 0x140007889
mov eax, 3
jmp 0x140007978
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
dec eax
cmp eax, 0x102
ja 0x140007976
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140007976
lea rcx, str.newdev.dll
mov qword [rsp + 0x280], rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x14000796e
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 0x14000795d
mov ecx, 1
call fcn.140021108
mov rcx, rax
lea r9, [rsp + 0x40]
mov r8, rsi
mov edx, 0xeeae
call fcn.14000fc30
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 0x14000795d
mov ecx, 1
call fcn.140021108
mov rcx, rax
mov edx, 0xeeb2
call fcn.14000fc30
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.140019260
add rsp, 0x260
pop rbx
ret

Function at 0x1400091a0
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 0x1400091d3
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 0x14000921a
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140009215
nop
cmp rbx, rcx
jae 0x14000921a
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140009200
cmp rbx, rcx
jb 0x14000921e
xor eax, eax
jmp 0x14000922a
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 0x140009650
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 0x1400096a4
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, [0x14003e3d8]
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 0x1400096f4
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 0x1400097d0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x14004b008]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x11c
call fcn.14001c790
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140009934
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.14000db40
cmp dword [rsp + 0x30], 2
jne 0x140009934
mov eax, dword [rsp + 0x24]
cmp eax, 6
jne 0x1400098d3
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x14000986d
mov eax, 0xa
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140019260
add rsp, 0x158
ret
cmp eax, 1
jne 0x14000988f
mov eax, 0x14
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140019260
add rsp, 0x158
ret
cmp eax, 2
jne 0x1400098b1
mov eax, 0x1e
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140019260
add rsp, 0x158
ret
cmp eax, 3
jne 0x140009934
mov eax, 0x28
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140019260
add rsp, 0x158
ret
cmp eax, 0xa
jne 0x140009934
cmp dword [rsp + 0x2c], 0x3fab
jbe 0x14000990b
lea rcx, str.OS_version_is_OS_WIN10RS4_n
call fcn.14000db40
mov eax, 0x36
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140019260
add rsp, 0x158
ret
lea rcx, str.OS_version_is_OS_WIN10_n
call fcn.14000db40
mov eax, 0x32
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140019260
add rsp, 0x158
ret
mov eax, 0x37
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140019260
add rsp, 0x158
ret
Function at 0x140009c40
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 [0x14004b008]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
movaps xmm0, xmmword [str.SOFTWAREAtherosVistaAddOnSupportedDevice]
mov rsi, rcx
movaps xmm1, xmmword [0x14003e530]
lea rcx, [rbp - 0x28]
movaps xmmword [rbp - 0x80], xmm0
xor edx, edx
movaps xmm0, xmmword [0x14003e540]
mov r8d, 0x1b0
movaps xmmword [rbp - 0x70], xmm1
movaps xmm1, xmmword [0x14003e550]
movaps xmmword [rbp - 0x60], xmm0
movaps xmm0, xmmword [0x14003e560]
movaps xmmword [rbp - 0x50], xmm1
movsd xmm1, qword [0x14003e570]
movaps xmmword [rbp - 0x40], xmm0
movsd qword [rbp - 0x30], xmm1
call fcn.14001c790
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.14001c790
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 0x140009d62
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 0x140009d69
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140009e2a
mov qword [rsp + 0x4c8], rbx
mov ebx, edi
cmp dword [rsp + 0x60], ebx
jbe 0x140009e15
nop dword [rax]
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call fcn.14001c790
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 0x140009df0
mov rdx, rsi
lea rcx, [rbp + 0x190]
call fcn.14001a3e8
test rax, rax
jne 0x140009dfa
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140009d80
jmp 0x140009e15
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.14000db40
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.140019260
lea r11, [rsp + 0x4b0]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140009e50
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 [0x14004b008]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetEnumUSB]
lea rcx, [rbp - 0x3c]
movaps xmm1, xmmword [0x14003e650]
xor edx, edx
mov eax, dword [0x14003e680]
mov r8d, 0x1c4
movaps xmmword [rbp - 0x80], xmm0
movaps xmm0, xmmword [0x14003e660]
movaps xmmword [rbp - 0x70], xmm1
movaps xmm1, xmmword [0x14003e670]
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.14001c790
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.14001c790
mov edi, r14d
call fcn.140009710
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 0x14000a009
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 0x14000a009
mov qword [rsp + 0x4c0], rbx
mov ebx, r14d
cmp dword [rsp + 0x60], ebx
jbe 0x14000a001
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call fcn.14001c790
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 0x140009ff9
lea rcx, [rbp + 0x190]
call fcn.140009c40
test eax, eax
je 0x140009ff9
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x70]
mov r9d, esi
lea rdx, [rbp + 0x190]
call fcn.140009960
mov edi, eax
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140009f81
mov rbx, qword [rsp + 0x4c0]
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x4d0]
mov rsi, qword [rsp + 0x4c8]
test rcx, rcx
je 0x14000a029
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140019260
mov rdi, qword [rsp + 0x4d8]
add rsp, 0x4b0
pop rbp
ret
Function at 0x14000a050
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x290
mov rax, qword [0x14004b008]
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.14001c790
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 0x14000a0e1
or eax, 0xffffffff
jmp 0x14000a1d0
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14000a1d0
mov qword [rsp + 0x2a8], rbx
mov qword [rsp + 0x2b0], rdi
mov edi, ebp
test eax, eax
je 0x14000a1be
nop word [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x208
call fcn.14001c790
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 0x14000a1f1
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 0x14000a1f1
mov rcx, qword [rsp + 0x68]
call fcn.14000a050
mov rcx, qword [rsp + 0x68]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000a1b2
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 0x14000a110
xor eax, eax
mov rbx, qword [rsp + 0x2a8]
mov rdi, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140019260
mov rbp, qword [rsp + 0x2b8]
add rsp, 0x290
pop rsi
ret
or eax, 0xffffffff
jmp 0x14000a1c0
Function at 0x14000b090
Capabilities:
Read .ini file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x10270
call fcn.140030a00
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x102c8], rbx
mov rax, qword [0x14004b008]
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 0x14000b0f2
mov rcx, rbx
call fcn.14000c290
add rbx, 0x20
cmp rbx, rdi
jne 0x14000b0e1
mov rax, qword [r15]
mov qword [r15 + 8], rax
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rsp + 0x260]
call fcn.14001c790
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.14001c790
lea rbp, [rsp + 0x260]
cmp qword [r14 + 0x18], 8
jb 0x14000b132
mov r14, qword [r14]
cmp qword [rsi + 0x18], 8
jb 0x14000b13c
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 0x14000b27c
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 0x14000b247
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r12
mov word [rsp + 0x28], r12w
cmp word [rsp + 0x50], 0
jne 0x14000b1b4
mov r8, r12
jmp 0x14000b1cb
lea rax, [rsp + 0x50]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14000b1c0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.14000c490
nop
lea rdx, [rsp + 0x28]
mov rcx, r15
call fcn.14000c120
nop
mov rax, qword [rsp + 0x40]
cmp rax, 8
jb 0x14000b231
inc rax
mov rcx, qword [rsp + 0x28]
cmp rax, r13
ja 0x14000b276
add rax, rax
cmp rax, 0x1000
jb 0x14000b22c
test cl, 0x1f
jne 0x14000b270
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14000b26a
sub rcx, rax
cmp rcx, 8
jb 0x14000b264
cmp rcx, 0x27
ja 0x14000b25e
mov rcx, rax
call fcn.140019294
or rbx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x50]
call fcn.14001c790
inc rbx
add rbp, 2
inc esi
add rdi, 2
cmp esi, r14d
jae 0x14000b27c
jmp 0x14000b180
call fcn.140022518
int3
call fcn.140022518
int3
call fcn.140022518
int3
call fcn.140022518
int3
call fcn.140022518
int3
mov rcx, qword [rsp + 0x10260]
xor rcx, rsp
call fcn.140019260
mov rbx, qword [rsp + 0x102c8]
add rsp, 0x10270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000db40
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 [0x14004b008]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x800
call fcn.14001c790
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.140020cf8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.140019260
add rsp, 0x848
pop rdi
pop rbx
ret

Function at 0x14000dbe0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
lea rcx, str.Enter_Function_DisableRadioHandler__disable___d_n
mov edx, ebx
call fcn.14000db40
mov r8d, ebx
lea rdx, str.Enter_Function_DisableRadioHandler__disable___d_n
mov ecx, 2
call fcn.140018d20
test ebx, ebx
je case.default.0x14000dc57
call fcn.1400097d0
cmp eax, 0x32
jl case.default.0x14000dc57
lea rcx, str.DisableRadioHandler__dont_send_check_msg__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, str.DisableRadioHandler__dont_send_check_msg_n
mov ecx, 2
call fcn.140018d20
mov dword [0x14004be94], 1
mov ecx, dword [0x14004be70]
mov r8, rbx
xor r9d, r9d
mov edx, 0x5e5d
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_PostThreadMessageW]
idiv esi
fstp qword [rax + rcx*4]
xor edi, 0xfb39861d
out 0xb0, eax
or eax, 0x7d55392f
call 0x1afa3cb1c
cmpsb byte ds:[rsi], byte [rdi]
imul esi, esp, 0x59
lahf
shr dword [rdi + rsi], 0x65
jb 0x14007c889
int3
out 0x32, al
invalid