Function at 0x1400034a8
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.14001ae80
sub rsp, rax
mov rax, qword [0x14002ef78]
xor rax, rsp
mov qword [rbp + 0x3f70], rax
xor esi, esi
mov rdi, rcx
mov ebx, esi
test edx, edx
je 0x1400037ef
test rcx, rcx
je 0x140003a38
mov r12d, 0x2000
lea rcx, [rbp + 0x1f70]
mov r8d, r12d
xor edx, edx
call sub.msvcrt.dll_memset
cmp dword [rdi + 0x28], 0xffffffff
mov r15d, esi
je 0x140003a38
lea rsi, [rdi + 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 [rsi - 8], r11
je 0x140003615
mov r9, qword [rsi]
lea rax, [rbp + 0x1f70]
mov r15, qword [rsi - 8]
lea rcx, [rbp + 0x1f70]
mov r8, r9
sub r8, rax
lea rax, [rdx + 0x7fffeffe]
test rax, rax
je 0x14000358e
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14000358e
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14000356b
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 0x140003a3a
lea rax, [rsp + 0x70]
mov rdx, r14
sub r9, rax
lea rcx, [rsp + 0x70]
lea rax, [rdx + 0x7fffeffe]
test rax, rax
je 0x1400035e8
movzx eax, word [r9 + rcx]
test ax, ax
je 0x1400035e8
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400035c5
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 0x140003a38
jmp 0x1400036f6
lea r8, [rbp + 0x1f70]
lea rax, [rsp + 0x70]
sub r8, rax
lea rcx, [rsp + 0x70]
lea rax, [rdx + 0x7fffeffe]
test rax, rax
je 0x14000364c
movzx eax, word [r8 + 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 eax, eax
not eax
and eax, 0x8007007a
test rdx, rdx
je 0x140003a3a
lea r8, [rsp + 0x50]
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.1400099bc
test eax, eax
js 0x140003a3a
mov rax, qword [rsp + 0x50]
lea rcx, [rsp + 0x70]
mov rdx, r14
lea r9, [0x14001f418]
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.140009a30
test eax, eax
js 0x140003a3a
lea r8, [rsp + 0x58]
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.1400099bc
xor r11d, r11d
mov ebx, eax
test eax, eax
js 0x1400036ee
mov rax, qword [rsp + 0x58]
lea rcx, [rsp + 0x70]
mov r9, qword [rsi]
mov rdx, r14
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.140009a30
mov ebx, eax
test ebx, ebx
js 0x140003a38
test r15, r15
je 0x1400037dd
test byte [rsi + 0x20], 6
je 0x140003720
lea rdx, [rsp + 0x70]
mov rcx, r15
call fcn.1400032f0
test eax, 0xfffffffd
jne 0x1400037dd
xor r11d, r11d
test byte [rsi + 0x20], 8
lea rdx, [rsp + 0x70]
mov rcx, r15
je 0x14000374a
mov r8, qword [rsi + 8]
call fcn.140003414
test eax, 0xfffffffd
je 0x1400037ca
mov ebx, r13d
jmp 0x1400037ca
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 [rsi + 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 0x1400037dd
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400037bf
call qword [sym.imp.msvcrt.dll_wcslen]
mov rdx, qword [rsi + 8]
mov r9d, 1
xor r8d, r8d
lea ecx, [rax*2 + 2]
mov rax, qword [rsi + 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 rsi, 0x30
cmp dword [rsi + 0x20], 0xffffffff
je 0x140003a38
jmp 0x140003531
xor edx, edx
mov rcx, rdi
call fcn.1400034a8
mov eax, r13d
jmp 0x140003a3a
test rdi, rdi
je 0x140003a38
mov r12d, 0x2000
lea rcx, [rbp + 0x1f70]
mov r8d, r12d
xor edx, edx
call sub.msvcrt.dll_memset
cmp dword [rdi + 0x28], 0xffffffff
je 0x140003a38
add rdi, 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 [rdi - 8], r11
je 0x14000390e
mov r8, qword [rdi]
lea rax, [rbp + 0x1f70]
mov rsi, qword [rdi - 8]
lea rcx, [rbp + 0x1f70]
mov r9, r8
sub r9, rax
lea rax, [rdx + 0x7fffeffe]
test rax, rax
je 0x14000388c
movzx eax, word [r9 + rcx]
test ax, ax
je 0x14000388c
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140003869
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 0x140003a3a
lea rax, [rsp + 0x70]
mov rdx, r14
sub r8, rax
lea rcx, [rsp + 0x70]
lea rax, [rdx + 0x7fffeffe]
test rax, rax
je 0x1400038e4
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400038e4
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400038c1
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 0x140003a38
jmp 0x1400039e6
lea r8, [rbp + 0x1f70]
lea rax, [rsp + 0x70]
sub r8, rax
lea rcx, [rsp + 0x70]
lea rax, [rdx + 0x7fffeffe]
test rax, rax
je 0x140003945
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140003945
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140003922
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 0x140003a3a
lea r8, [rsp + 0x58]
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.1400099bc
test eax, eax
js 0x140003a3a
mov rax, qword [rsp + 0x58]
lea rcx, [rsp + 0x70]
mov rdx, r14
lea r9, [0x14001f418]
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.140009a30
test eax, eax
js 0x140003a3a
lea r8, [rsp + 0x50]
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.1400099bc
mov ebx, eax
test eax, eax
js 0x1400039e2
mov rax, qword [rsp + 0x50]
lea rcx, [rsp + 0x70]
mov r9, qword [rdi]
mov rdx, r14
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.140009a30
mov ebx, eax
test ebx, ebx
js 0x140003a38
test rsi, rsi
je 0x140003a2a
test byte [rdi + 0x20], 0xb
jne 0x140003a0a
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.1400032f0
test eax, 0xfffffffd
je 0x140003a2a
mov ebx, r13d
jmp 0x140003a2a
test byte [rdi + 0x20], 8
je 0x140003a2a
mov r8, qword [rdi + 8]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140003414
test eax, 0xfffffffd
cmovne ebx, r13d
add rdi, 0x30
cmp dword [rdi + 0x20], 0xffffffff
jne 0x14000382f
mov eax, ebx
mov rcx, qword [rbp + 0x3f70]
xor rcx, rsp
call fcn.140019d60
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