Function at 0x140171478
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rsi, rcx
lea rdx, str.SYSTEMCurrentControlSetEnumUSBSTOR
mov qword [rbp + 7], rdx
lea rax, str.SYSTEMCurrentControlSetEnumUSB
mov qword [rbp + 0xf], rax
lea rax, str.SYSTEMCurrentControlSetControlusbflags
mov qword [rbp + 0x17], rax
lea rax, str.SYSTEMCurrentControlSetServicesUSBSTOR
mov qword [rbp + 0x1f], rax
lea rax, str.SYSTEMCurrentControlSetServicesUsbHub
mov qword [rbp + 0x27], rax
lea rdi, [rbp + 7]
xor r14d, r14d
mov r15d, 0x1000
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1401715e2
mov rdx, qword [rbp + 0x6f]
mov rcx, rsi
call fcn.140170998
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [0x1410a1040]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rbp - 0x79], r14
mov qword [rbp - 0x71], r14
mov r8d, reloc.WS2_32.dll_socket
lea rdx, str.___Cleaned_USB_key:_
lea rcx, [rsp + 0x30]
call fcn.140159cd4
nop
lea rax, [rsp + 0x30]
cmp qword [rbp - 0x71], 0xf
cmova rax, qword [rsp + 0x30]
mov qword [rbp - 9], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 1], rax
mov qword [rbp - 0x61], r14
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x59], r14
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 0x39], xmm0
movups xmm1, xmmword [rbp - 0x69]
movaps xmmword [rbp - 0x29], xmm1
movsd xmm0, qword [rbp - 0x59]
movsd qword [rbp - 0x19], xmm0
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x39]
mov r8d, 2
lea rdx, [rbp - 0x29]
mov rcx, qword [rbx]
call fcn.14017446c
nop
mov rdx, qword [rbp - 0x71]
cmp rdx, 0xf
jbe 0x1401716a8
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, r15
jb 0x1401716a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401717e0
jmp 0x1401716a3
mov rbx, qword [0x1410a1040]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rbp - 0x79], r14
mov qword [rbp - 0x71], r14
mov r8d, 0x23
lea rdx, str.Failed_to_open_USB_registry_key:_
lea rcx, [rsp + 0x30]
call fcn.140159cd4
nop
lea rax, [rsp + 0x30]
cmp qword [rbp - 0x71], 0xf
cmova rax, qword [rsp + 0x30]
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x61], r14
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x59], r14
movaps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x39], xmm0
movups xmm1, xmmword [rbp - 0x69]
movaps xmmword [rbp - 0x29], xmm1
movsd xmm0, qword [rbp - 0x59]
movsd qword [rbp - 0x19], xmm0
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x39]
mov r8d, 3
lea rdx, [rbp - 0x29]
mov rcx, qword [rbx]
call fcn.14017446c
nop
mov rdx, qword [rbp - 0x71]
cmp rdx, 0xf
jbe 0x1401716a8
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, r15
jb 0x1401716a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401717e6
call fcn.140cd8948
add rdi, 8
lea rax, [rbp + 0x2f]
cmp rdi, rax
je 0x1401716bd
mov rdx, qword [rdi]
jmp 0x1401714d7
lea rax, [rbp + 0x77]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlStorageDevicePolicies
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1401717c3
lea rdx, str.WriteProtect
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [0x1410a1040]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rbp - 0x79], r14
mov qword [rbp - 0x71], r14
mov r8d, 0x26
lea rdx, str.___Cleaned_last_connected_device_info
lea rcx, [rsp + 0x30]
call fcn.140159cd4
nop
lea rax, [rsp + 0x30]
cmp qword [rbp - 0x71], 0xf
cmova rax, qword [rsp + 0x30]
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x61], r14
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x59], r14
movaps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x39], xmm0
movups xmm1, xmmword [rbp - 0x69]
movaps xmmword [rbp - 0x29], xmm1
movsd xmm0, qword [rbp - 0x59]
movsd qword [rbp - 0x19], xmm0
lea r9, [rbp - 0x39]
mov r8d, 2
lea rdx, [rbp - 0x29]
mov rcx, qword [rbx]
call fcn.140162f7c
nop
mov rdx, qword [rbp - 0x71]
cmp rdx, 0xf
jbe 0x1401717c3
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, r15
jb 0x1401717be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401717da
call fcn.140cd8948
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140cf5acc
int3
call fcn.140cf5acc
int3
call fcn.140cf5acc
int3