Function at 0x140003388
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
lea rbp, [rax - 0x3f98]
mov eax, 0x4090
call fcn.14001a620
sub rsp, rax
mov rax, qword [0x14002ff78]
xor rax, rsp
mov qword [rbp + 0x3f80], rax
xor esi, esi
mov rdi, rcx
mov ebx, esi
test edx, edx
je 0x1400036cc
test rcx, rcx
je 0x140003919
xor edx, edx
lea rcx, [rbp + 0x1f80]
mov r8d, 0x2000
call sub.msvcrt.dll_memset
cmp dword [rdi + 0x28], 0xffffffff
mov qword [rsp + 0x58], rsi
je 0x140003919
lea rsi, [rdi + 8]
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x2000
mov ebx, 0x1000
call sub.msvcrt.dll_memset
xor r11d, r11d
mov edx, ebx
cmp qword [rsi - 8], r11
je 0x1400034ea
mov r9, qword [rsi]
lea rax, [rbp + 0x1f80]
mov r10, qword [rsi - 8]
lea rcx, [rbp + 0x1f80]
mov r8, r9
mov qword [rsp + 0x58], r10
sub r8, rax
lea rax, [rdx + 0x7fffeffe]
test rax, rax
je 0x140003464
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140003464
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140003441
test rdx, rdx
lea rax, [rcx - 2]
mov r8d, 0x8007007a
cmovne rax, rcx
mov word [rax], r11w
mov rax, rdx
neg rax
sbb eax, eax
not eax
and eax, r8d
test rdx, rdx
je 0x14000391b
lea rax, [rbp - 0x80]
mov rdx, rbx
sub r9, rax
lea rcx, [rbp - 0x80]
lea rax, [rdx + 0x7fffeffe]
test rax, rax
je 0x1400034c0
movzx eax, word [r9 + rcx]
test ax, ax
je 0x1400034c0
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14000349d
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, r8d
test rdx, rdx
je 0x140003919
jmp 0x1400035cc
lea r8, [rbp + 0x1f80]
lea rax, [rbp - 0x80]
sub r8, rax
lea rcx, [rbp - 0x80]
lea rax, [rdx + 0x7fffeffe]
test rax, rax
je 0x14000351f
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14000351f
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400034fc
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 0x14000391b
lea r8, [rsp + 0x60]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.1400095a4
test eax, eax
js 0x14000391b
mov rax, qword [rsp + 0x60]
lea rcx, [rbp - 0x80]
mov rdx, rbx
lea r9, [0x14001e418]
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.140009610
test eax, eax
js 0x14000391b
lea r8, [rsp + 0x68]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.1400095a4
xor r11d, r11d
mov ebx, eax
test eax, eax
js 0x1400035bf
mov rax, qword [rsp + 0x68]
lea rcx, [rbp - 0x80]
mov r9, qword [rsi]
mov edx, 0x1000
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.140009610
mov ebx, eax
test ebx, ebx
js 0x140003919
mov r10, qword [rsp + 0x58]
test r10, r10
je 0x1400036b8
test byte [rsi + 0x20], 6
je 0x1400035fa
lea rdx, [rbp - 0x80]
mov rcx, r10
call fcn.1400031d8
test eax, 0xfffffffd
jne 0x1400036b8
mov r10, qword [rsp + 0x58]
xor r11d, r11d
test byte [rsi + 0x20], 8
lea rdx, [rbp - 0x80]
mov rcx, r10
je 0x140003625
mov r8, qword [rsi + 8]
call fcn.1400032f8
test eax, 0xfffffffd
je 0x1400036a5
mov ebx, 0x80040201
jmp 0x1400036a5
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
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 0x1400036b8
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x14000369a
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 + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
add rsi, 0x30
cmp dword [rsi + 0x20], 0xffffffff
je 0x140003919
jmp 0x1400033fc
xor edx, edx
mov rcx, rdi
call fcn.140003388
mov eax, 0x80040201
jmp 0x14000391b
test rdi, rdi
je 0x140003919
xor edx, edx
lea rcx, [rbp + 0x1f80]
mov r8d, 0x2000
call sub.msvcrt.dll_memset
cmp dword [rdi + 0x28], 0xffffffff
mov qword [rsp + 0x50], rsi
je 0x140003919
add rdi, 8
mov esi, 0x1000
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x2000
call sub.msvcrt.dll_memset
xor r11d, r11d
mov rdx, rsi
cmp qword [rdi - 8], r11
je 0x1400037ea
mov r8, qword [rdi]
lea rax, [rbp + 0x1f80]
mov r10, qword [rdi - 8]
lea rcx, [rbp + 0x1f80]
mov r9, r8
mov qword [rsp + 0x50], r10
sub r9, rax
lea rax, [rdx + 0x7fffeffe]
test rax, rax
je 0x140003765
movzx eax, word [r9 + rcx]
test ax, ax
je 0x140003765
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140003742
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 0x14000391b
lea rax, [rbp - 0x80]
mov rdx, rsi
sub r8, rax
lea rcx, [rbp - 0x80]
lea rax, [rdx + 0x7fffeffe]
test rax, rax
je 0x1400037bd
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400037bd
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14000379a
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 0x140003919
jmp 0x1400038c3
lea r8, [rbp + 0x1f80]
lea rax, [rbp - 0x80]
sub r8, rax
lea rcx, [rbp - 0x80]
lea rax, [rdx + 0x7fffeffe]
test rax, rax
je 0x14000381f
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14000381f
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400037fc
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 0x14000391b
lea r8, [rsp + 0x68]
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.1400095a4
test eax, eax
js 0x14000391b
mov rax, qword [rsp + 0x68]
lea rcx, [rbp - 0x80]
mov rdx, rsi
lea r9, [0x14001e418]
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.140009610
test eax, eax
js 0x14000391b
lea r8, [rsp + 0x60]
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.1400095a4
mov ebx, eax
test eax, eax
js 0x1400038ba
mov rax, qword [rsp + 0x60]
lea rcx, [rbp - 0x80]
mov r9, qword [rdi]
mov rdx, rsi
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.140009610
mov ebx, eax
test ebx, ebx
js 0x140003919
mov r10, qword [rsp + 0x50]
test r10, r10
je 0x14000390b
test byte [rdi + 0x20], 0xb
jne 0x1400038e8
lea rdx, [rbp - 0x80]
mov rcx, r10
call fcn.1400031d8
test eax, 0xfffffffd
je 0x14000390b
mov ebx, 0x80040201
jmp 0x14000390b
test byte [rdi + 0x20], 8
je 0x14000390b
mov r8, qword [rdi + 8]
lea rdx, [rbp - 0x80]
mov rcx, r10
call fcn.1400032f8
test eax, 0xfffffffd
mov eax, 0x80040201
cmovne ebx, eax
add rdi, 0x30
cmp dword [rdi + 0x20], 0xffffffff
jne 0x140003701
mov eax, ebx
mov rcx, qword [rbp + 0x3f80]
xor rcx, rsp
call fcn.1400196d0
lea r11, [rsp + 0x4090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret