Function at 0x14000350c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3fa8]
mov eax, 0x4080
call fcn.14001adf0
sub rsp, rax
mov rax, qword [0x14002ff88]
xor rax, rsp
mov qword [rbp + 0x3f70], rax
xor edi, edi
mov rsi, rcx
mov ebx, edi
test rcx, rcx
je 0x140003a83
lea rcx, [rbp + 0x1f70]
mov r12d, 0x2000
mov r8d, r12d
test edx, edx
je 0x140003853
xor edx, edx
call sub.msvcrt.dll_memset
cmp dword [rsi + 0x28], 0xffffffff
mov r15d, edi
je 0x140003a83
lea rdi, [rsi + 8]
mov r14d, 0x1000
mov r13d, 0x80040201
mov r8, r12
lea rcx, [rsp + 0x70]
xor edx, edx
call sub.msvcrt.dll_memset
xor r11d, r11d
mov rdx, r14
cmp qword [rdi - 8], r11
je 0x140003679
mov r9, qword [rdi]
lea rax, [rbp + 0x1f70]
mov r15, qword [rdi - 8]
lea rcx, [rbp + 0x1f70]
mov r8, r9
sub r8, rax
lea rax, [rdx + 0x7fffeffe]
test rax, rax
je 0x1400035f2
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400035f2
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400035cf
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r11w
mov rax, rdx
neg rax
sbb eax, eax
not eax
and eax, 0x8007007a
test rdx, rdx
je 0x140003a85
lea rax, [rsp + 0x70]
mov rdx, r14
sub r9, rax
lea rcx, [rsp + 0x70]
lea rax, [rdx + 0x7fffeffe]
test rax, rax
je 0x14000364c
movzx eax, word [r9 + rcx]
test ax, ax
je 0x14000364c
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140003629
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r11w
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
test rdx, rdx
je 0x140003a83
jmp 0x14000375a
lea r8, [rbp + 0x1f70]
lea rax, [rsp + 0x70]
sub r8, rax
lea rcx, [rsp + 0x70]
lea rax, [rdx + 0x7fffeffe]
test rax, rax
je 0x1400036b0
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400036b0
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14000368d
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r11w
mov rax, rdx
neg rax
sbb eax, eax
not eax
and eax, 0x8007007a
test rdx, rdx
je 0x140003a85
lea r8, [rsp + 0x50]
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140009a28
test eax, eax
js 0x140003a85
mov rax, qword [rsp + 0x50]
lea rcx, [rsp + 0x70]
mov rdx, r14
lea r9, [0x1400207b8]
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.140009a9c
test eax, eax
js 0x140003a85
lea r8, [rsp + 0x58]
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140009a28
xor r11d, r11d
mov ebx, eax
test eax, eax
js 0x140003752
mov rax, qword [rsp + 0x58]
lea rcx, [rsp + 0x70]
mov r9, qword [rdi]
mov rdx, r14
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.140009a9c
mov ebx, eax
test ebx, ebx
js 0x140003a83
test r15, r15
je 0x140003841
test byte [rdi + 0x20], 6
je 0x140003784
lea rdx, [rsp + 0x70]
mov rcx, r15
call fcn.140003354
test eax, 0xfffffffd
jne 0x140003841
xor r11d, r11d
test byte [rdi + 0x20], 8
lea rdx, [rsp + 0x70]
mov rcx, r15
je 0x1400037ae
mov r8, qword [rdi + 8]
call fcn.140003478
test eax, 0xfffffffd
je 0x14000382e
mov ebx, r13d
jmp 0x14000382e
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r11d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x140003841
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140003823
call qword [sym.imp.msvcrt.dll_wcslen]
mov rdx, qword [rdi + 8]
mov r9d, 1
xor r8d, r8d
lea ecx, [rax*2 + 2]
mov rax, qword [rdi + 0x10]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
add rdi, 0x30
cmp dword [rdi + 0x20], 0xffffffff
je 0x140003a83
jmp 0x140003595
xor edx, edx
mov rcx, rsi
call fcn.14000350c
mov eax, r13d
jmp 0x140003a85
xor edx, edx
call sub.msvcrt.dll_memset
cmp dword [rsi + 0x28], 0xffffffff
je 0x140003a83
add rsi, 8
mov r14d, 0x1000
mov r15d, 0x8007007a
mov r13d, 0x80040201
mov r8, r12
lea rcx, [rsp + 0x70]
xor edx, edx
call sub.msvcrt.dll_memset
xor r11d, r11d
mov rdx, r14
cmp qword [rsi - 8], r11
je 0x140003959
mov r8, qword [rsi]
lea rax, [rbp + 0x1f70]
mov rdi, qword [rsi - 8]
lea rcx, [rbp + 0x1f70]
mov r9, r8
sub r9, rax
lea rax, [rdx + 0x7fffeffe]
test rax, rax
je 0x1400038d7
movzx eax, word [r9 + rcx]
test ax, ax
je 0x1400038d7
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400038b4
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r11w
mov rax, rdx
neg rax
sbb eax, eax
not eax
and eax, r15d
test rdx, rdx
je 0x140003a85
lea rax, [rsp + 0x70]
mov rdx, r14
sub r8, rax
lea rcx, [rsp + 0x70]
lea rax, [rdx + 0x7fffeffe]
test rax, rax
je 0x14000392f
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14000392f
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14000390c
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r11w
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, r15d
test rdx, rdx
je 0x140003a83
jmp 0x140003a31
lea r8, [rbp + 0x1f70]
lea rax, [rsp + 0x70]
sub r8, rax
lea rcx, [rsp + 0x70]
lea rax, [rdx + 0x7fffeffe]
test rax, rax
je 0x140003990
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140003990
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14000396d
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r11w
mov rax, rdx
neg rax
sbb eax, eax
not eax
and eax, r15d
test rdx, rdx
je 0x140003a85
lea r8, [rsp + 0x58]
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140009a28
test eax, eax
js 0x140003a85
mov rax, qword [rsp + 0x58]
lea rcx, [rsp + 0x70]
mov rdx, r14
lea r9, [0x1400207b8]
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.140009a9c
test eax, eax
js 0x140003a85
lea r8, [rsp + 0x50]
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140009a28
mov ebx, eax
test eax, eax
js 0x140003a2d
mov rax, qword [rsp + 0x50]
lea rcx, [rsp + 0x70]
mov r9, qword [rsi]
mov rdx, r14
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.140009a9c
mov ebx, eax
test ebx, ebx
js 0x140003a83
test rdi, rdi
je 0x140003a75
test byte [rsi + 0x20], 0xb
jne 0x140003a55
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140003354
test eax, 0xfffffffd
je 0x140003a75
mov ebx, r13d
jmp 0x140003a75
test byte [rsi + 0x20], 8
je 0x140003a75
mov r8, qword [rsi + 8]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140003478
test eax, 0xfffffffd
cmovne ebx, r13d
add rsi, 0x30
cmp dword [rsi + 0x20], 0xffffffff
jne 0x14000387a
mov eax, ebx
mov rcx, qword [rbp + 0x3f70]
xor rcx, rsp
call fcn.140019e50
lea r11, [rsp + 0x4080]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret