joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000fc30
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x60
movzx ebp, cl
lea rcx, str.DisableBTENUMDevice_Start_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, str.remove
lea rbx, str.USB_
mov qword [rsp + 0x30], rax
lea rax, str.BTHMS_BTHBRB
lea r12, str.enable
mov qword [rsp + 0x38], rax
lea rax, str.BTHMS_BTHLE
lea rsi, str.disable
lea rcx, str.Device_instance_PVID__s_n
mov rdx, rbx
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x28], rsi
call fcn.14000dcd0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
lea rax, str.USBClass_E0
not rcx
dec rcx
lea rcx, str.argv2_5_:__s_n
cmove rbx, rax
mov rdx, rbx
mov qword [rsp + 0x48], rbx
call fcn.14000dcd0
lea rdx, str.BTHENUM
lea rax, str.rescan
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rax
test bpl, bpl
je 0x14000fd30
lea rcx, str.__BT_Radio___n
call fcn.14000dcd0
lea rcx, str.cmdDisableEnable_Start_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bpl, bpl
lea r9, [rsp + 0x48]
cmovne rsi, r12
mov r8d, 1
movzx ecx, bpl
mov rdx, rsi
call fcn.140007230
mov ecx, 0x7d0
jmp 0x14000fd86
lea rcx, str.radio_on_off_status_updated_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.__BT_BTHENUM_DEVICES__e_n
call fcn.14000dcd0
lea rcx, str.cmdDisableEnable_Start_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea r9, [rsp + 0x48]
mov r8d, 1
mov rdx, rsi
xor ecx, ecx
call fcn.140007230
lea rcx, str.cmdDisableEnable_____r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x14004173c], 0
jne 0x14000fd8c
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.radio_Rescan_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.DisableBTENUMDevice_End_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea r11, [rsp + 0x60]
mov al, 1
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x14000fea0
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x68
mov rax, qword [0x14003e468]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000ff2e
lea r8, [rsp + 0x38]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x14000ff28
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x44], rax
xor eax, eax
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x80010002
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400187e0
add rsp, 0x68
ret
Function at 0x140010490
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rbp, rcx
mov ecx, 0x1002
mov rsi, rdx
mov eax, 2
mov r12, 0xffffffffffffffff
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.14001a3b4
mov rdi, rax
test rax, rax
jne 0x1400104d9
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x60], 0x2000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140010581
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1400105a1
cmp dword [rsp + 0x68], 7
jne 0x1400105a1
mov ebx, dword [rsp + 0x60]
mov rcx, rdi
call fcn.1400193d8
mov r11d, ebx
mov eax, 2
shr r11, 1
add r11, 2
mul r11
cmovo rax, r12
mov rcx, rax
call fcn.14001a3b4
mov rdi, rax
test rax, rax
je 0x1400105ae
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010510
mov ecx, dword [rsp + 0x60]
xor edx, edx
shr ecx, 1
lea eax, [rcx + 1]
mov word [rdi + rcx*2], dx
mov rcx, rdi
mov word [rdi + rax*2], dx
call fcn.1400100a0
test rax, rax
jne 0x1400105b0
test rdi, rdi
je 0x1400105ae
mov rcx, rdi
call fcn.1400193d8
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1400130a0
Capabilities:
Print debug messages

Disassembly:
push rbx
push rsi
push r12
sub rsp, 0x60
mov rax, qword [0x14003e468]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor esi, esi
mov r12, rcx
lea rdx, str.Enter_EnumerateHostController___n
lea ecx, [rsi + 2]
mov dword [rsp + 0x40], esi
mov ebx, esi
call fcn.1400184c0
lea rcx, str.Enter_EnumerateHostController___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x220408
mov rcx, r12
mov dword [rsp + 0x28], 6
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14001312c
lea rcx, str.Enter_if___DeviceIoControl_sizeof_rootHubName___nBytes__NULL___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x14001324b
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x90], rdi
mov edi, dword [rsp + 0x44]
mov ecx, edi
mov dword [rsp + 0x40], edi
call fcn.140018b58
mov rbp, rax
test rax, rax
jne 0x140013167
lea rcx, str.Enter_if__rootHubNameW__NULL__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x14001323b
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x220408
mov rcx, r12
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400131a6
lea rcx, str.Enter_if___DeviceIoControl_nBytes__nBytes__NULL___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140013206
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 4]
repne scasw ax, word [rdi]
not rcx
lea rcx, [rcx + rcx + 8]
call fcn.140018b58
mov rbx, rax
test rax, rax
je 0x140013206
lea r8, str.._
mov edx, 5
mov rcx, rax
call fcn.140018eac
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 4]
lea r8, [rbp + 4]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
lea rcx, [rbx + 8]
call fcn.140018eac
mov rcx, rbx
call fcn.140012b10
mov esi, eax
mov rcx, rbp
call fcn.140018b18
test rbx, rbx
je 0x14001321b
mov rcx, rbx
call fcn.140018b18
lea rdx, str.Leave_EnumerateHostController___n
mov ecx, 2
call fcn.1400184c0
lea rcx, str.Leave_EnumerateHostController___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, esi
mov rbp, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400187e0
add rsp, 0x60
pop r12
pop rsi
pop rbx
ret
Function at 0x140013770
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
xor esi, esi
lea rdx, str.ForceHCResetOnResume
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rsi
mov rbx, rcx
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, str.Start_to_write_reg_key___2_
cmp eax, 2
mov ecx, 4
sete sil
call fcn.1400184c0
lea r11, [rsp + 0x30]
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400138cf
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
lea rdx, str.ResetKeyAddded
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, str.Start_to_write_reg_key___3_
mov ecx, 4
call fcn.1400184c0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea rdx, str.ResetKeyAddded
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x1400138a4
mov rcx, qword [rsp + 0x30]
lea rdx, str.ForceResetKey
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x60]
lea rdx, str.ForceHCResetOnResume
mov r9d, 4
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140014380
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x40], 0xffffffff
mov dword [rsp + 0x48], 4
test rcx, rcx
jne 0x1400143a7
or eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
lea rax, [rsp + 0x50]
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001443d
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001442a
mov r8d, dword [rsp + 0x40]
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
mov r9, rbx
call fcn.1400184c0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x40], 0xffffffff
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret

Function at 0x140014450
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov r8d, ecx
lea r9, str.ControllerIndex
lea rdx, str.Set_value__d_into_reg__s__n
mov ecx, 2
call fcn.1400184c0
lea r11, [rsp + 0x48]
lea rdx, str.SOFTWAREAtherosVistaAddOn
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400144d6
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, str.ControllerIndex
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret
Function at 0x1400148f0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14003e468]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rcx, str.Enter_function_BOOL_CheckAndRecoverDevice___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x24]
xor ebx, ebx
xor edx, edx
mov r8d, 0x20c
mov dword [rsp + 0x20], ebx
call fcn.14001be30
lea rcx, [rsp + 0x20]
call fcn.140014000
cmp dword [rsp + 0x20], 2
jne 0x140014953
lea rcx, str.Status.configStatus__DeviceNotConfigurate_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, 1
lea rcx, [rsp + 0x20]
call fcn.1400144e0
call fcn.140009140
cmp eax, 0x1e
jne 0x1400149fc
cmp dword [rsp + 0x20], 1
jne 0x1400149fc
lea rcx, str.BTHENUM61118058_486c_4bb0_b4b8_ace4dcadec44_LOCALMFG0000
call fcn.1400147e0
test eax, eax
je 0x1400149a6
lea rcx, str.BTHENUMdd533152_01f4_435c_abfe_984bc21a2a65_LOCALMFG0000
call fcn.1400147e0
test eax, eax
je 0x1400149a6
lea rcx, str.BTHENUMcbecab40_a2c8_4ab3_adc1_de0fe95d8600_LOCALMFG0000
call fcn.1400147e0
test eax, eax
jne 0x1400149fc
lea rcx, str.The_Audio__LwFilter__VirtualBluetoothSupport_dirver_YB__do_disable_enable_driver_to_recover_it_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.Enter_Function_DisableRadioHandler__n_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [0x140041300]
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, 0x5e5d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
lea rcx, str.Enter_Function_DisableRadioHandler__n_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [0x140041300]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5e5d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400187e0
add rsp, 0x240
pop rbx
ret

Function at 0x140014a20
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x58]
lea rdx, str.Software_atherosVistaAddon
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140014a56
xor al, al
add rsp, 0x38
ret
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.HidePBAP
xor r8d, r8d
mov dword [rsp + 0x40], 0xffffffff
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x58]
test eax, eax
je 0x140014ab2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add rsp, 0x38
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x40], 1
setne al
add rsp, 0x38
ret
Function at 0x140016d60
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x14003e468]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor esi, esi
cmp qword [rcx + 0x18], 8
mov rbx, rcx
mov qword [rcx + 0x10], rsi
jb 0x140016d99
mov rax, qword [rcx]
jmp 0x140016d9c
mov rax, rcx
lea rcx, [rsp + 0x40]
mov word [rax], si
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx edx, word [rsp + 0x40]
cmp dx, 9
je 0x140016dc3
cmp dx, 6
je 0x140016dc3
mov edi, dword [0x14003f8d8]
jmp 0x140016dce
mov edi, 0xf013f
mov dword [0x14003f8d8], edi
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x70], si
call fcn.14001be30
mov rcx, qword [0x14003f6c8]
lea rax, [rsp + 0x38]
lea rdx, str.SOFTWAREAtherosVistaAddOn
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x30], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140016e8a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.InstallDir
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x140016e8a
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140016e8a
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x70]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.14000c580
mov eax, 1
jmp 0x140016e8c
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400187e0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140017e20
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x50
mov rax, qword [0x14003e468]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
lea rcx, [0x14003f4b0]
xor r8d, r8d
lea r9d, [rbp + 0x10]
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rdi, rax
test rax, rax
je 0x140017f5b
xor eax, eax
lea r8, [rsp + 0x28]
xor edx, edx
mov qword [rsp + 0x28], rax
mov rcx, rdi
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x28], 0x20
mov esi, ebp
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140017f4b
mov qword [rsp + 0x60], rbx
nop
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x24]
xor r9d, r9d
mov dword [rsp + 0x24], 0xff
mov dword [rsp + 0x20], 0xff
call qword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status]
lea rcx, str.The_status_of_uResult_is__d__n
mov edx, eax
mov ebx, eax
call fcn.14000dcd0
mov edx, dword [rsp + 0x20]
lea rcx, str.The_status_of_uProblem_is__d__n
call fcn.14000dcd0
test ebx, ebx
je 0x140017f34
xor eax, eax
inc esi
lea rcx, str.The_MemberIndex_of_SetupDiEnumDeviceInfo_is__d__n
mov qword [rsp + 0x28], rax
mov edx, esi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], 0x20
call fcn.14000dcd0
lea r8, [rsp + 0x28]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x140017ea0
jmp 0x140017f46
lea rcx, str.This_device_is_3002_UART_dongle._n
mov ebp, 1
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rbx, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rsi, qword [rsp + 0x68]
mov eax, ebp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400187e0
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140017f80
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x14003e468]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rcx, [rsp + 0x22]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], bx
call fcn.14001be30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x140018034
lea rdx, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x20]
lea rcx, str.The_cServPath_is__s__n
call fcn.14000dcd0
lea rdx, str.system32
lea rcx, [rsp + 0x20]
call fcn.140018dc0
test rax, rax
jne 0x140018019
lea rdx, str.System32
lea rcx, [rsp + 0x20]
call fcn.140018dc0
test rax, rax
je 0x14001802b
lea rcx, str.This_adminservice_is_for_MSFT_WU_or_3002_Intel._n
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400187e0
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x1400184c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
mov eax, 0x100f8
call fcn.140021450
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x14003e468]
xor rax, rsp
mov qword [rsp + 0x100e0], rax
mov eax, dword [0x14003ff90]
test eax, eax
je 0x140018692
cmp ecx, eax
jg 0x140018692
test ecx, eax
je 0x140018692
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
cmp dword [0x14003ff94], eax
je 0x140018555
nop word [rax + rax]
xor eax, eax
lock cmpxchg dword [0x14003ff94], edi
cmp dword [0x14003ff94], edi
je 0x140018555
mov ecx, 0x19
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x14003ff94], edi
jne 0x140018530
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
mov rbx, qword [0x14003ff88]
cmp rbx, 0xffffffffffffffff
jne 0x14001857e
lea rcx, [0x14003ff88]
call fcn.1400182f0
mov rbx, rax
jmp 0x1400185ce
movzx eax, word [0x14003ffa0]
cmp word [rsp + 0x58], ax
jne 0x1400185a8
movzx eax, word [0x14003ffa2]
cmp word [rsp + 0x5a], ax
jne 0x1400185a8
movzx eax, word [0x14003ffa6]
cmp word [rsp + 0x5e], ax
je 0x1400185ce
cmp rbx, 0xffffffffffffffff
je 0x1400185b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14003ff88], 0xffffffffffffffff
lea rcx, [0x14003ff88]
call fcn.1400182f0
test rbx, rbx
je 0x14001867e
movzx ecx, word [rsp + 0x66]
movzx edx, word [rsp + 0x64]
movzx r9d, word [rsp + 0x62]
movzx r8d, word [rsp + 0x60]
mov eax, dword [0x14003ff94]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea rdx, str._02d:_02d:_02d__03d__X:
lea rcx, [rsp + 0x70]
call fcn.140018800
movsxd rdi, eax
lea r9, [rsp + 0x10120]
mov qword [rsp + 0x48], r9
lea rcx, [rsp + rdi*2 + 0x70]
mov r8, qword [rsp + 0x10118]
mov edx, 0x8000
call fcn.14001aadc
add eax, edi
cdqe
lea rcx, [rsp + rax*2 + 0x70]
lea rdx, [0x140037bcc]
call fcn.140018800
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx + rcx - 2]
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140018680
xor edi, edi
jmp 0x140018684
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lock cmpxchg dword [0x14003ff94], edi
mov rcx, qword [rsp + 0x100e0]
xor rcx, rsp
call fcn.1400187e0
add rsp, 0x100f8
pop rdi
pop rbx
ret
Function at 0x14001adbb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14003e468]
jne 0x1400187fa
rol rcx, 0x10
test cx, 0xffff
jne 0x1400187f6
repz ret
ror rcx, 0x10
jmp 0x14001ad14
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140040150]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140040248]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001ad99
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140040150]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14001adbb
mov rax, qword [rsp + 0x88]
mov qword [0x140040248], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400401e8], rax
mov rax, qword [0x140040248]
mov qword [0x1400400c0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400401d0], rax
mov dword [0x1400400b0], 0xc0000409
mov dword [0x1400400b4], 1
mov rax, qword [0x14003e468]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14003e470]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140040148], eax
mov ecx, 1
call fcn.140022ccc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14002c8e0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140040148], 0
jne 0x14001ae42
mov ecx, 1
call fcn.140022ccc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140021f18
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x140021f42
call fcn.14001bdb8
and dword [rax], 0
call fcn.14001bd98
mov ebx, 0x16
mov dword [rax], ebx
call fcn.14001bd30
mov eax, ebx
jmp 0x140021f92
test edx, 0xfffffff9
jne 0x140021f25
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140021f6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001bdd8
call fcn.14001bd98
mov eax, dword [rax]
jmp 0x140021f92
test al, 0x10
jne 0x140021f90
test al, 1
je 0x140021f90
test bl, 2
je 0x140021f90
call fcn.14001bdb8
mov dword [rax], 5
call fcn.14001bd98
mov dword [rax], 0xd
jmp 0x140021f62
xor eax, eax
add rsp, 0x20
pop rbx
ret