Function at 0x1400048b0
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, 0x22f8
call fcn.140015e30
sub rsp, rax
mov rax, qword [0x140020878]
xor rax, rsp
mov qword [rsp + 0x22e0], rax
xor eax, eax
mov word [rsp + 0x3c], ax
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x70], 0
lea rdx, [rsp + 0x2e0]
mov rcx, qword [rsp + 0x2300]
call fcn.14000c0a0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140004923
mov eax, dword [rsp + 0x30]
jmp 0x140004e28
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x2e0]
call fcn.140011100
test eax, eax
jne 0x140004950
mov edx, 0x20f
mov rcx, qword [rsp + 0x2300]
call fcn.140009710
jmp 0x140004e28
mov rcx, qword [rsp + 0x2300]
call fcn.14000fe60
lea rdx, [rsp + 0x2e0]
mov rcx, qword [rsp + 0x2300]
call fcn.14000c0a0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140004986
mov eax, dword [rsp + 0x30]
jmp 0x140004e28
movzx eax, word [rsp + 0x3c]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 8
je 0x1400049bb
cmp dword [rsp + 0x48], 0x11
je 0x140004c16
cmp dword [rsp + 0x48], 0x13
je 0x140004b6f
cmp dword [rsp + 0x48], 0x4008
je 0x1400049e7
jmp 0x140004de6
mov r9d, 1
lea r8, [rsp + 0x2e0]
mov rdx, qword [rsp + 0x2310]
mov rcx, qword [rsp + 0x2308]
call fcn.14000fb00
mov dword [rsp + 0x34], eax
jmp 0x140004de6
lea rcx, [rsp + 0x2e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add rax, 2
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x1d0]
call fcn.140002260
nop
movsxd rax, dword [rsp + 0x4c]
mov rdx, rax
lea rcx, [rsp + 0x1d0]
call fcn.1400050c0
nop
jmp 0x140004a23
lea rcx, [rsp + 0x1d0]
call fcn.140003d40
test rax, rax
je 0x140004b55
lea rcx, [rsp + 0x1d0]
call fcn.140003d40
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x2e0]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x4c], 0
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
test eax, eax
je 0x140004b08
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x140004acd
mov rax, qword [rsp + 0x80]
movzx eax, word [rax]
cmp eax, 0x30
jne 0x140004acd
xor eax, eax
mov rcx, qword [rsp + 0x40]
mov word [rcx], ax
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [rsp + 0x58], rax
jmp 0x140004af9
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
movzx ecx, word [rcx]
mov word [rax], cx
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x58]
add rax, 2
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
jmp 0x140004a60
xor eax, eax
mov rcx, qword [rsp + 0x40]
mov word [rcx], ax
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
xor eax, eax
mov rcx, qword [rsp + 0x40]
mov word [rcx], ax
lea rcx, [rsp + 0x1d0]
call fcn.140003d40
mov r8, rax
mov rdx, qword [rsp + 0x2310]
mov rcx, qword [rsp + 0x2308]
call fcn.14000f9d0
mov dword [rsp + 0x34], eax
jmp 0x140004b5d
mov dword [rsp + 0x34], 0xe
lea rcx, [rsp + 0x1d0]
call fcn.1400037e0
jmp 0x140004de6
call fcn.1400111d0
mov dword [rsp + 0x90], eax
lea rcx, [rsp + 0x78]
call fcn.140002260
nop
mov edx, 0x400
lea rcx, [rsp + 0x2e0]
call fcn.14000c360
mov qword [rsp + 0x98], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140004bde
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x78]
call fcn.140003100
mov eax, dword [rsp + 0x60]
jmp 0x140004e28
mov r8d, dword [rsp + 0x64]
mov rdx, qword [rsp + 0x2310]
mov rcx, qword [rsp + 0x2308]
call fcn.14000f8c0
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x78]
call fcn.140003100
jmp 0x140004de6
lea rcx, [rsp + 0x2e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
and eax, 1
test eax, eax
je 0x140004c3d
mov eax, 0x80004005
jmp 0x140004e28
mov eax, dword [rsp + 0x50]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0xc0]
call fcn.140002260
nop
movsxd rax, dword [rsp + 0x54]
mov rdx, rax
lea rcx, [rsp + 0xc0]
call fcn.140005090
nop
jmp 0x140004c70
lea rcx, [rsp + 0xc0]
call fcn.140003d40
test rax, rax
jne 0x140004ca0
mov dword [rsp + 0x68], 0x80004005
lea rcx, [rsp + 0xc0]
call fcn.1400037e0
mov eax, dword [rsp + 0x68]
jmp 0x140004e28
movsxd rax, dword [rsp + 0x54]
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0xc0]
call fcn.140003d40
mov rcx, qword [rsp + 0xa0]
mov r8, rcx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x38], 0
jmp 0x140004ce3
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x38], eax
jge 0x140004d74
mov eax, dword [rsp + 0x38]
cdq
sub eax, edx
sar eax, 1
cdqe
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0xc0]
call fcn.140003d40
mov rcx, qword [rsp + 0xa8]
add rax, rcx
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x38]
and eax, 1
mov ecx, 1
sub ecx, eax
mov eax, ecx
shl eax, 2
mov dword [rsp + 0x6c], eax
movsxd rcx, dword [rsp + 0x38]
movzx ecx, word [rsp + rcx*2 + 0x2e0]
call fcn.140006ee0
movzx eax, al
mov ecx, dword [rsp + 0x6c]
shl eax, cl
mov rcx, qword [rsp + 0x88]
movzx ecx, byte [rcx]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov byte [rcx], al
jmp 0x140004cd9
lea rcx, [rsp + 0xc0]
call fcn.140003d40
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0x2308]
call fcn.140003d40
mov ecx, dword [rsp + 0x54]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rcx
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x2310]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0xc0]
call fcn.1400037e0
jmp 0x140004de6
cmp dword [rsp + 0x34], 0
je 0x140004e00
mov dword [rsp + 0x70], 0x204
mov ecx, dword [rsp + 0x34]
call fcn.140005b30
jmp 0x140004e28
mov rdx, qword [rsp + 0x2318]
mov rcx, qword [rsp + 0x2300]
call fcn.14000c0a0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140004e26
mov eax, dword [rsp + 0x30]
jmp 0x140004e28
xor eax, eax
mov rcx, qword [rsp + 0x22e0]
xor rcx, rsp
call fcn.140015420
add rsp, 0x22f8
ret