Function at 0x14002edc0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14012a210]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edx, edx
lea r8, str.GlobalStopDisableUsbThreadEvent
mov rsi, rcx
xor dil, dil
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbx, rax
test rax, rax
je 0x14002ee1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
lea rax, [rbp + 0x37]
mov qword [rsp + 0x40], rbx
lea rdx, str.SOFTWAREPoliciesMicrosoftWindowsRemovableStorageDevices53f5630d_b6bf_11d0_94f2_00a0c91efb8b
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 6
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], ebx
mov dword [rsi], ebx
mov dword [rbp + 0x3f], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002efa7
mov rcx, qword [rbp + 0x37]
lea rax, [rbp + 0x3f]
mov dword [rsp + 0x28], 4
lea r9d, [rbx + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Deny_Execute
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x37]
test eax, eax
je 0x14002eea0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14002efa7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x37]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREPoliciesMicrosoftWindowsRemovableStorageDevices53f5630d_b6bf_11d0_94f2_00a0c91efb8b
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 6
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], ebx
mov dword [rbp + 0x3f], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002efa7
mov rcx, qword [rbp + 0x37]
lea rax, [rbp + 0x3f]
mov dword [rsp + 0x28], 4
lea rdx, str.Deny_Write
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x37]
test eax, eax
jne 0x14002ee95
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x37]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREPoliciesMicrosoftWindowsRemovableStorageDevices53f5630d_b6bf_11d0_94f2_00a0c91efb8b
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 6
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], ebx
mov dword [rbp + 0x3f], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002efa7
mov rcx, qword [rbp + 0x37]
lea rax, [rbp + 0x3f]
mov dword [rsp + 0x28], 4
lea rdx, str.Deny_Read
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x37]
test eax, eax
jne 0x14002ee95
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dil, 1
mov r8d, 3
mov qword [rbp + 0x17], rbx
lea rdx, [0x140104b98]
mov qword [rbp + 0x27], rbx
lea rcx, [rbp + 0x17]
mov qword [rbp + 0x2f], 7
call fcn.140011160
mov r9b, 1
lea rdx, [rbp + 0x17]
xor r8d, r8d
call fcn.14002f220
movzx eax, dil
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400a5460
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret