Function at 0x140004950
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x2308
call fcn.140016660
sub rsp, rax
mov rax, qword [0x1400208c0]
xor rax, rsp
mov qword [rsp + 0x22f0], rax
xor eax, eax
mov word [rsp + 0x40], ax
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x7c], 0
lea rdx, [rsp + 0x2f0]
mov rcx, qword [rsp + 0x2310]
call fcn.14000c710
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x1400049c3
mov eax, dword [rsp + 0x30]
jmp 0x140004eee
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x2f0]
call fcn.1400118d0
test eax, eax
jne 0x1400049f0
mov edx, 0x20f
mov rcx, qword [rsp + 0x2310]
call fcn.140009c00
jmp 0x140004eee
mov rcx, qword [rsp + 0x2310]
call fcn.1400105c0
lea rdx, [rsp + 0x2f0]
mov rcx, qword [rsp + 0x2310]
call fcn.14000c710
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140004a26
mov eax, dword [rsp + 0x30]
jmp 0x140004eee
movzx eax, word [rsp + 0x40]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 8
je 0x140004a5b
cmp dword [rsp + 0x50], 0x11
je 0x140004cc2
cmp dword [rsp + 0x50], 0x13
je 0x140004c0f
cmp dword [rsp + 0x50], 0x4008
je 0x140004a87
jmp 0x140004eac
mov r9d, 1
lea r8, [rsp + 0x2f0]
mov rdx, qword [rsp + 0x2320]
mov rcx, qword [rsp + 0x2318]
call fcn.140010250
mov dword [rsp + 0x38], eax
jmp 0x140004eac
lea rcx, [rsp + 0x2f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add rax, 2
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x1e0]
call fcn.1400022a0
nop
movsxd rax, dword [rsp + 0x54]
mov rdx, rax
lea rcx, [rsp + 0x1e0]
call fcn.1400051c0
nop
jmp 0x140004ac3
lea rcx, [rsp + 0x1e0]
call fcn.140003db0
test rax, rax
je 0x140004bf5
lea rcx, [rsp + 0x1e0]
call fcn.140003db0
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x2f0]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x54], 0
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
test eax, eax
je 0x140004ba8
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x140004b6d
mov rax, qword [rsp + 0x88]
movzx eax, word [rax]
cmp eax, 0x30
jne 0x140004b6d
xor eax, eax
mov rcx, qword [rsp + 0x48]
mov word [rcx], ax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [rsp + 0x60], rax
jmp 0x140004b99
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
movzx ecx, word [rcx]
mov word [rax], cx
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x60]
add rax, 2
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
jmp 0x140004b00
xor eax, eax
mov rcx, qword [rsp + 0x48]
mov word [rcx], ax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
xor eax, eax
mov rcx, qword [rsp + 0x48]
mov word [rcx], ax
lea rcx, [rsp + 0x1e0]
call fcn.140003db0
mov r8, rax
mov rdx, qword [rsp + 0x2320]
mov rcx, qword [rsp + 0x2318]
call fcn.140010120
mov dword [rsp + 0x38], eax
jmp 0x140004bfd
mov dword [rsp + 0x38], 0xe
lea rcx, [rsp + 0x1e0]
call fcn.140003850
jmp 0x140004eac
call fcn.1400119a0
mov dword [rsp + 0x98], eax
lea rcx, [rsp + 0x80]
call fcn.1400022a0
nop
mov edx, 0x400
lea rcx, [rsp + 0x2f0]
call fcn.14000c9d0
mov qword [rsp + 0xa0], rax
lea r9, [rsp + 0x6c]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140004c84
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x80]
call fcn.140003160
mov eax, dword [rsp + 0x68]
jmp 0x140004eee
mov r8d, dword [rsp + 0x6c]
mov rdx, qword [rsp + 0x2320]
mov rcx, qword [rsp + 0x2318]
call fcn.140010010
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x80]
call fcn.140003160
jmp 0x140004eac
lea rcx, [rsp + 0x2f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
and eax, 1
test eax, eax
je 0x140004ce9
mov eax, 0x80004005
jmp 0x140004eee
mov eax, dword [rsp + 0x58]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x5c], eax
lea rcx, [rsp + 0xd0]
call fcn.1400022a0
nop
movsxd rax, dword [rsp + 0x5c]
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.140005190
nop
jmp 0x140004d1c
lea rcx, [rsp + 0xd0]
call fcn.140003db0
test rax, rax
jne 0x140004d4c
mov dword [rsp + 0x70], 0x80004005
lea rcx, [rsp + 0xd0]
call fcn.140003850
mov eax, dword [rsp + 0x70]
jmp 0x140004eee
movsxd rax, dword [rsp + 0x5c]
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0xd0]
call fcn.140003db0
mov rcx, qword [rsp + 0xa8]
mov r8, rcx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x3c], 0
jmp 0x140004d8f
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x3c], eax
jge 0x140004e2d
mov eax, dword [rsp + 0x3c]
and eax, 1
mov ecx, 1
sub ecx, eax
mov eax, ecx
shl eax, 2
mov dword [rsp + 0x74], eax
movsxd rcx, dword [rsp + 0x3c]
movzx ecx, word [rsp + rcx*2 + 0x2f0]
call fcn.140007140
movzx eax, al
mov ecx, dword [rsp + 0x74]
shl eax, cl
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x3c]
cdq
sub eax, edx
sar eax, 1
cdqe
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0xd0]
call fcn.140003db0
mov rcx, qword [rsp + 0xb0]
add rax, rcx
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax]
mov byte [rsp + 0x34], al
movzx eax, byte [rsp + 0x34]
or eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x90]
mov byte [rcx], al
jmp 0x140004d85
lea rcx, [rsp + 0xd0]
call fcn.140003db0
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0x2318]
call fcn.140003db0
mov qword [rsp + 0xc0], rax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x2320]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0xd0]
call fcn.140003850
jmp 0x140004eac
cmp dword [rsp + 0x38], 0
je 0x140004ec6
mov dword [rsp + 0x7c], 0x204
mov ecx, dword [rsp + 0x38]
call fcn.140005c90
jmp 0x140004eee
mov rdx, qword [rsp + 0x2328]
mov rcx, qword [rsp + 0x2310]
call fcn.14000c710
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140004eec
mov eax, dword [rsp + 0x30]
jmp 0x140004eee
xor eax, eax
mov rcx, qword [rsp + 0x22f0]
xor rcx, rsp
call fcn.140015df0
add rsp, 0x2308
ret