Function at 0x14002dc00
Capabilities:
Set registry value

Disassembly:
mov byte [rsp + 0x20], r9b
push rbp
push rbx
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x48]
sub rsp, 0x148
lea rbx, [rcx + 0x40]
xor esi, esi
mov r15, r8
mov r12, rdx
mov rdi, rcx
test rbx, rbx
je 0x14002dc43
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
cmp qword [rdi + 0x10], rsi
jne 0x14002dc68
lea rax, [r12 + 0x18]
mov qword [r12 + 8], rsi
mov qword [r12 + 0x10], 1
mov qword [r12], rax
mov word [rax], si
jmp 0x14002e2a7
mov rax, qword [rdi + 8]
lea rdi, [0x1400359e8]
lea rcx, [rsp + 0x30]
test rax, rax
mov rdx, rdi
cmovne rdx, rax
xor r8d, r8d
call fcn.1400223e0
cmp qword [rsp + 0x30], rsi
jne 0x14002dcb0
lea rax, [r12 + 0x18]
mov qword [r12 + 8], rsi
mov qword [r12 + 0x10], 1
mov qword [r12], rax
mov word [rax], si
jmp 0x14002e297
mov qword [rsp + 0x188], r13
lea rax, [rbp - 0x10]
mov qword [rsp + 0x140], r14
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 1
mov word [rbp - 0x10], si
mov qword [rbp - 0x28], rax
mov r13d, esi
or r14, 0xffffffffffffffff
jmp 0x14002dce3
xor esi, esi
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
mov r8d, r13d
call fcn.140009190
lea rcx, [rbp - 0x28]
mov r9, r14
mov rdx, rax
xor r8d, r8d
call fcn.140005670
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14002dd20
lea rax, [rsp + 0x78]
cmp rcx, rax
je 0x14002dd20
call fcn.140022b00
cmp qword [rbp - 0x20], 0
je 0x14002dfc2
mov rax, qword [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp + 0x28]
test rax, rax
cmovne rcx, rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rbp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rbp + 0x30], rax
call fcn.140022320
lea rax, str.ImagePath
lea r8, [rbp + 0x10]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
lea rdx, [rbp + 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x48]
lea rcx, [rsp + 0x38]
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], 1
mov word [rbp - 0x48], si
mov qword [rbp - 0x60], rax
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x20], rsi
call fcn.140008f60
cmp dword [rbp + 0x80], 0
jge 0x14002ddbe
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14002de3a
jmp 0x14002de35
mov rdi, qword [rbp + 0x10]
test rdi, rdi
je 0x14002de3a
mov r8d, dword [rdi + 8]
lea rdx, [rdi + 0xc]
lea rcx, [rbp - 0x60]
shr r8, 1
call fcn.140003dd0
mov rax, qword [rbp - 0x58]
test rax, rax
je 0x14002de32
mov rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x60]
nop dword [rax]
lea rcx, [rax - 1]
cmp rcx, rax
mov rax, rsi
jae 0x14002de00
lea rax, [r8 + rcx*2]
cmp word [rax], 0
jne 0x14002de32
mov rax, rcx
cmp rcx, rdx
jb 0x14002de12
lea rax, [rdx - 1]
test rdx, rdx
jne 0x14002de1c
mov rax, rsi
jmp 0x14002de29
mov word [r8 + rax*2], si
mov rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x60]
mov qword [rbp - 0x58], rax
test rax, rax
jne 0x14002ddf0
mov rcx, rdi
call fcn.140022b00
mov rdi, qword [rbp - 0x58]
cmp rdi, 0x10
jb 0x14002de57
mov eax, edi
lea ecx, [rax*2 + 2]
call fcn.140022b10
mov rcx, rax
jmp 0x14002de5c
lea rcx, [rsp + 0x78]
lea rax, [rdi + 1]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rax
mov word [rcx], si
mov r8, qword [rbp - 0x58]
test r8, r8
je 0x14002debe
mov rdx, qword [rbp - 0x60]
mov rcx, qword [rsp + 0x60]
add r8, r8
call fcn.140001010
mov r10, qword [rbp - 0x58]
mov rax, qword [rsp + 0x70]
cmp r10, rax
jb 0x14002de9e
lea r10, [rax - 1]
test rax, rax
jne 0x14002dead
mov r10, rsi
mov qword [rsp + 0x68], rsi
jmp 0x14002dec3
mov rax, qword [rsp + 0x60]
mov word [rax + r10*2], si
mov qword [rsp + 0x68], r10
jmp 0x14002dec3
mov r10, qword [rsp + 0x68]
mov rcx, r14
nop word [rax + rax]
inc rcx
cmp word [r15 + rcx*2], 0
jne 0x14002ded0
mov rsi, qword [rsp + 0x60]
cmp r10, rcx
mov r8, rcx
cmovb r8, r10
mov r9, r15
test r8, r8
je 0x14002df21
mov r11, rsi
sub r11, r15
nop dword [rax + rax]
movzx eax, word [r11 + r9]
movzx edx, word [r9]
or ax, 0x20
or dx, 0x20
cmp ax, dx
jb 0x14002df3b
jne 0x14002df34
add r9, 2
dec r8
jne 0x14002df00
xor eax, eax
cdqe
test rax, rax
jne 0x14002df48
cmp r10, rcx
jae 0x14002df40
mov eax, r14d
jmp 0x14002df48
mov eax, 1
jmp 0x14002df23
mov eax, r14d
jmp 0x14002df23
xor eax, eax
cmp r10, rcx
setne al
test eax, eax
sete dil
test rsi, rsi
je 0x14002df65
lea rax, [rsp + 0x78]
cmp rsi, rax
je 0x14002df65
mov rcx, rsi
call fcn.140022b00
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14002df7c
lea rax, [rbp - 0x48]
cmp rcx, rax
je 0x14002df7c
call fcn.140022b00
mov rcx, qword [rsp + 0x50]
test dil, dil
jne 0x14002dfaa
test rcx, rcx
je 0x14002df91
call qword [sym.imp.ntoskrnl.exe_ZwClose]
inc r13d
lea rdi, [0x1400359e8]
cmp r13d, 0x3e8
jl 0x14002dce1
jmp 0x14002dfb5
test rcx, rcx
je 0x14002dfb5
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp qword [rbp - 0x20], 0
jne 0x14002e05b
xor esi, esi
mov edi, esi
nop dword [rax]
nop dword [rax + rax]
lea rdx, str._02d
lea rcx, [rsp + 0x60]
mov r8d, edi
call qword [sym.imp.ntoskrnl.exe_swprintf]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x80]
mov r9b, 1
mov qword [rsp + 0x20], r14
call fcn.1400222f0
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x14002e021
call qword [sym.imp.ntoskrnl.exe_ZwClose]
inc edi
cmp edi, 0x3e8
jl 0x14002dfd0
jmp 0x14002e05b
lea rax, [rsp + 0x60]
mov r8, r14
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14002e030
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x28]
call fcn.140003dd0
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x14002e05b
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rax, qword [rbp - 0x28]
lea rsi, [0x1400359e8]
lea rdx, [rsp + 0x38]
test rax, rax
mov rcx, rsi
cmovne rcx, rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call fcn.140022320
lea rdx, str.ImagePath
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r13, qword [rsp + 0x188]
mov rax, r14
nop
cmp word [r15 + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14002e0b0
mov rcx, qword [rsp + 0x48]
lea eax, [rax*2 + 2]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
movsx eax, byte [rbp + 0x98]
mov edx, 2
xor r15d, r15d
lea rcx, [rsp + 0x78]
mov edi, 1
mov word [rsp + 0x78], r15w
mov word [rsp + 0x78], ax
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x70], rdx
cmp rdx, rdi
ja 0x14002e11d
lea rdi, [rdx - 1]
test rdx, rdx
jne 0x14002e127
mov rdi, r15
jmp 0x14002e131
mov word [rcx + rdi*2], r15w
mov rcx, qword [rsp + 0x60]
test rcx, rcx
lea rdx, str.DriveLetter
mov qword [rsp + 0x68], rdi
cmovne rsi, rcx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
test edi, edi
jne 0x14002e160
inc r14
cmp word [rsi + r14*2], r15w
jne 0x14002e153
mov edi, r14d
mov rcx, qword [rsp + 0x48]
lea eax, [rdi*2 + 2]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x60]
mov r14, qword [rsp + 0x140]
test rcx, rcx
je 0x14002e1aa
lea rax, [rsp + 0x78]
cmp rcx, rax
je 0x14002e1aa
call fcn.140022b00
mov eax, dword [rbp + 0xa0]
lea rdx, str.MMCProfile
lea rcx, [rsp + 0x38]
mov dword [rbp + 0x80], eax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x48]
lea rax, [rbp + 0x80]
lea rdx, [rsp + 0x38]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rdi, qword [rbp - 0x20]
cmp rdi, 0x10
jb 0x14002e212
mov eax, edi
lea ecx, [rax*2 + 2]
call fcn.140022b10
mov rcx, rax
jmp 0x14002e217
lea rcx, [r12 + 0x18]
lea rax, [rdi + 1]
mov qword [r12], rcx
mov qword [r12 + 8], r15
mov qword [r12 + 0x10], rax
mov word [rcx], r15w
mov r8, qword [rbp - 0x20]
test r8, r8
je 0x14002e270
mov rdx, qword [rbp - 0x28]
mov rcx, qword [r12]
add r8, r8
call fcn.140001010
mov rcx, qword [rbp - 0x20]
mov rax, qword [r12 + 0x10]
cmp rcx, rax
jb 0x14002e258
lea rcx, [rax - 1]
test rax, rax
jne 0x14002e262
mov rcx, r15
jmp 0x14002e26b
mov rax, qword [r12]
mov word [rax + rcx*2], r15w
mov qword [r12 + 8], rcx
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002e280
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x14002e297
lea rax, [rbp - 0x10]
cmp rcx, rax
je 0x14002e297
call fcn.140022b00
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14002e2a7
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test rbx, rbx
je 0x14002e2b7
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeReleaseMutex]
mov rax, r12
add rsp, 0x148
pop r15
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret