Function at 0x1400041a0
Capabilities:
Print debug messages
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
push rbp
push rbx
lea rbp, [r11 - 0x3e8]
sub rsp, 0x4d8
mov rax, qword [0x14004d010]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rax, qword [0x140042d70]
mov rbx, rcx
cmp rax, qword [rcx + 0x20]
jne 0x14000435a
mov rax, qword [0x140042d78]
cmp rax, qword [rcx + 0x28]
jne 0x14000435a
movups xmm0, xmmword [str.SOFTWAREAtherosVistaAddOn]
mov qword [r11 + 0x18], rdi
xor edx, edx
movups xmm1, xmmword [0x14003c468]
mov r8d, 0x1d0
mov qword [r11 - 0x18], r14
movaps xmmword [rbp + 0x1b0], xmm0
movups xmm0, xmmword [0x14003c478]
movzx r14d, byte [rcx + 0x41]
lea rcx, [rbp + 0x1e8]
movaps xmmword [rbp + 0x1c0], xmm1
movsd xmm1, qword [0x14003c488]
movaps xmmword [rbp + 0x1d0], xmm0
movsd qword [rbp + 0x1e0], xmm1
call fcn.14001b960
movzx ecx, byte [rbx + 0x42]
sub ecx, 0x8f
je 0x14000468c
cmp ecx, 3
jne 0x14000434a
mov qword [rsp + 0x4f8], rsi
lea rdi, [rbx + 0x45]
movzx esi, byte [rbx + 0x43]
cmp sil, 8
jne 0x1400042bc
movzx ebx, byte [rdi]
lea rcx, str.the_value_of_radio_query_return_status_is__d_n
mov edx, ebx
call fcn.14000db40
test bl, bl
je 0x14000429b
mov dword [0x1400504a0], 1
lea rcx, str.g_RadioStatus__RadioStatus_ON_r_n
jmp 0x1400042ac
mov dword [0x1400504a0], 2
lea rcx, str.g_RadioStatus__RadioStatus_OFF_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [0x140050278], 1
cmp sil, 3
jne 0x140004373
xor edx, edx
lea rcx, [0x1400503a1]
mov r8d, 0xff
call fcn.14001b960
mov r8, r14
mov byte [0x1400503a0], 2
sub r8, 3
je 0x14000432b
test rdi, rdi
jne 0x140004301
call fcn.140021ad8
mov dword [rax], 0x16
call fcn.140021988
jmp 0x14000432b
cmp r8, 0x100
jbe 0x14000431c
call fcn.140021ad8
mov dword [rax], 0x22
call fcn.140021988
jmp 0x14000432b
mov rdx, rdi
lea rcx, [0x1400503a1]
call fcn.14001bb50
lea eax, [r14 - 2]
mov dword [0x140050270], eax
lea rcx, str.recevied_general_data_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rsi, qword [rsp + 0x4f8]
mov rdi, qword [rsp + 0x500]
mov r14, qword [rsp + 0x4d0]
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140019b40
add rsp, 0x4d8
pop rbx
pop rbp
ret
cmp sil, 5
jne 0x1400043f4
xor edx, edx
lea rcx, [0x140050171]
mov r8d, 0xff
call fcn.14001b960
mov r8, r14
mov byte [0x140050170], 4
sub r8, 3
je 0x1400043de
test rdi, rdi
jne 0x1400043b4
call fcn.140021ad8
mov dword [rax], 0x16
call fcn.140021988
jmp 0x1400043de
cmp r8, 0x100
jbe 0x1400043cf
call fcn.140021ad8
mov dword [rax], 0x22
call fcn.140021988
jmp 0x1400043de
mov rdx, rdi
lea rcx, [0x140050171]
call fcn.14001bb50
lea eax, [r14 - 2]
mov dword [0x140050394], eax
lea rcx, str.recevied_EIR_data_r_n
jmp 0x14000433c
cmp sil, 7
jne 0x140004475
xor edx, edx
lea rcx, [0x140050281]
mov r8d, 0xff
call fcn.14001b960
mov r8, r14
mov byte [0x140050280], 6
sub r8, 3
je 0x14000445f
test rdi, rdi
jne 0x140004435
call fcn.140021ad8
mov dword [rax], 0x16
call fcn.140021988
jmp 0x14000445f
cmp r8, 0x100
jbe 0x140004450
call fcn.140021ad8
mov dword [rax], 0x22
call fcn.140021988
jmp 0x14000445f
mov rdx, rdi
lea rcx, [0x140050281]
call fcn.14001bb50
lea eax, [r14 - 2]
mov dword [0x14005027c], eax
lea rcx, str.recevied_local_name_r_n
jmp 0x14000433c
test sil, sil
jne 0x140004342
lea rcx, str.Unlocked_radio_operator____r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edi, edi
mov dword [0x140050168], edi
call fcn.1400191b0
test eax, eax
je 0x1400044a3
call fcn.14000e4b0
jmp 0x140004521
xor edx, edx
mov qword [rsp + 0x58], rdi
mov r8d, 0x1ff
mov dword [rsp + 0x50], edi
lea rcx, [rbp - 0x5f]
call fcn.14001b960
xorps xmm0, xmm0
lea rcx, [rsp + 0x58]
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
call fcn.140018ee0
test eax, eax
je 0x140004521
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rdi
lea r8, [rbp - 0x60]
mov qword [rsp + 0x30], rax
mov r9d, 0x200
lea rax, [rsp + 0x78]
mov dword [rsp + 0x28], 0x20
mov edx, 0x9c402644
mov qword [rsp + 0x20], rax
mov byte [rbp - 0x60], 6
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [str.SOFTWAREAtherosVistaAddOn]
xor edx, edx
mov r8d, 0x1d0
movups xmm1, xmmword [0x14003c468]
lea rcx, [rbp - 0x28]
movaps xmmword [rbp - 0x60], xmm0
movups xmm0, xmmword [0x14003c478]
movaps xmmword [rbp - 0x50], xmm1
movsd xmm1, qword [0x14003c488]
movaps xmmword [rbp - 0x40], xmm0
movsd qword [rbp - 0x30], xmm1
call fcn.14001b960
lea rax, [rsp + 0x68]
mov dword [rsp + 0x50], edi
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x60], 4
lea rdx, [rbp - 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400045cb
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.SwitchRadio
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [rsp + 0x50]
lea rcx, str.The_value_of_SwitchRadio_is__d
call fcn.14000db40
cmp dword [rsp + 0x50], edi
je 0x140004673
lea rax, [rsp + 0x70]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x1b0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000465d
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea rdx, str.SwitchRadio
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x58], 2
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.In_condition__commandID__HCI_SUBCMD_RADIO_OFF__radio_on_off_status_updated_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.140001d70
cmp eax, 1
je 0x140004673
lea rcx, str.WM_TURN_RADIO_OFF
call fcn.140001e70
mov rcx, qword [0x140050388]
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor ecx, ecx
call fcn.14000dbe0
jmp 0x140004342
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x208
call fcn.14001b960
mov r8d, dword [rbx + 0x43]
cmp r8d, 0x99999999
jne 0x1400046d6
movzx ecx, byte [rbx + 0x4c]
lea rdx, str._d._d._d._d
movzx eax, byte [rbx + 0x4f]
movzx r9d, byte [rbx + 0x4d]
movzx r8d, byte [rbx + 0x4e]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rcx, [rbp - 0x60]
call fcn.1400064d0
jmp 0x140004710
movzx edx, r8b
mov eax, r8d
shr eax, 8
movzx ecx, al
mov eax, r8d
shr eax, 0x10
movzx r9d, al
mov eax, dword [rbx + 0x47]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edx
lea rdx, str._d._d._d._d._d
mov dword [rsp + 0x20], ecx
lea rcx, [rbp - 0x60]
shr r8d, 0x18
call fcn.1400064d0
lea rcx, [rbp - 0x60]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140004720
lea eax, [rax*2 + 2]
xor edi, edi
mov dword [rsp + 0x58], eax
lea rdx, str.SoftwareAtherosVistaAddOn
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x68]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000434a
mov eax, dword [rsp + 0x58]
lea r9d, [rdi + 1]
mov rcx, qword [rsp + 0x68]
lea rdx, str.Firmware
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000434a