Function at 0x1400047b0
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
lea rbp, [rsp - 0x2088]
mov eax, 0x2188
call fcn.14000a1d0
sub rsp, rax
mov rax, qword [0x14001a360]
xor rax, rsp
mov qword [rbp + 0x2060], rax
mov r13, rdx
mov qword [rsp + 0x48], rdx
mov rbx, r9
lea rdx, [rbp + 0x60]
xor esi, esi
mov r14, r8
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], r8
mov r12, rcx
mov word [rsp + 0x30], si
call fcn.140003950
test eax, eax
js 0x140004b5d
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x60]
call fcn.140003750
test eax, eax
jne 0x140004830
mov eax, 0x80020009
jmp 0x140004b5d
mov rcx, qword [r12]
movzx eax, word [rcx]
cmp eax, 9
jl 0x140004857
cmp eax, 0xa
jle 0x14000484b
cmp eax, 0xd
je 0x14000484b
cmp eax, 0x20
jne 0x140004857
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r12], rax
jmp 0x140004830
lea rdx, [rbp + 0x60]
mov rcx, r12
call fcn.140003950
test eax, eax
js 0x140004b5d
movzx eax, word [rsp + 0x30]
mov qword [rsp + 0x2180], rdi
cmp eax, 8
je 0x140004b0b
cmp eax, 0x11
je 0x1400049bb
cmp eax, 0x13
je 0x140004993
cmp eax, 0x4008
jne 0x140004b43
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x50], rsi
add eax, 2
movsxd rcx, eax
je 0x1400048f5
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400048ea
lea rdx, [rcx + rcx]
cmp rdx, 0x100
jbe 0x1400048f5
lea rcx, [rsp + 0x50]
call fcn.140003c30
mov rbx, qword [rsp + 0x50]
test rbx, rbx
jne 0x1400048ff
lea edi, [rbx + 0xe]
jmp 0x140004966
mov ecx, 0x80070216
call fcn.140003000
int3
lea rbx, [rsp + 0x58]
mov qword [rsp + 0x50], rbx
lea rdi, [rbp + 0x60]
cmp word [rbp + 0x60], si
je 0x14000494d
nop dword [rax]
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [rdi]
cmp cx, 0x5c
jne 0x14000493d
cmp word [rax], 0x30
jne 0x14000493d
mov word [rbx], si
mov rcx, rax
add rbx, 2
call qword [sym.imp.USER32.dll_CharNextW]
mov rdi, rax
jmp 0x140004948
mov word [rbx], cx
add rbx, 2
add rdi, 2
cmp word [rdi], si
jne 0x140004910
mov dword [rbx], esi
mov r8, qword [rsp + 0x50]
mov rdx, r14
mov rcx, r13
call fcn.140003580
mov rbx, qword [rsp + 0x50]
mov edi, eax
lea rax, [rsp + 0x58]
cmp rbx, rax
je 0x14000497a
lea rcx, [rsp + 0x50]
call fcn.140003c20
mov rbx, qword [rsp + 0x38]
test edi, edi
je 0x140004b43
mov ecx, edi
call fcn.1400032c0
jmp 0x140004b55
lea r9, [rsp + 0x30]
lea rcx, [rbp + 0x60]
xor r8d, r8d
xor edx, edx
call qword [0x1400142f0]
mov r8d, dword [rsp + 0x30]
mov rdx, r14
mov rcx, r13
call fcn.140003540
mov edi, eax
jmp 0x14000497f
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdi, eax
test dil, 1
jne 0x140004a26
mov eax, edi
mov qword [rsp + 0x50], rsi
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x30], eax
movsxd rbx, eax
je 0x140004a3b
xor edx, edx
or rax, 0xffffffffffffffff
div rbx
cmp rax, 1
jb 0x140004a30
cmp rbx, 0x100
jbe 0x140004a3b
lea rcx, [rsp + 0x50]
mov rdx, rbx
call fcn.140003c30
mov rcx, qword [rsp + 0x50]
test rcx, rcx
jne 0x140004a45
lea rax, [rsp + 0x58]
test rax, rax
je 0x140004a26
lea rcx, [rsp + 0x50]
call fcn.140003c20
mov eax, 0x80004005
jmp 0x140004b55
mov ecx, 0x80070216
call fcn.140003000
int3
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x50], rcx
mov r8, rbx
xor edx, edx
mov qword [rsp + 0x2178], r15
call fcn.14000a2c0
mov r13d, esi
mov r14, rsi
mov r15, rdi
test edi, edi
jle 0x140004ab4
nop word [rax + rax]
movzx ecx, word [rbp + r14*2 + 0x60]
mov rbx, qword [rsp + 0x50]
mov eax, r13d
cdq
sub eax, edx
sar eax, 1
movsxd rdi, eax
call fcn.140003850
mov ecx, r13d
and ecx, 1
movzx r11d, al
mov eax, 4
shl ecx, 2
inc r14
inc r13d
sub eax, ecx
movzx ecx, al
shl r11b, cl
or byte [rdi + rbx], r11b
cmp r14, r15
jl 0x140004a70
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x50]
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r15, qword [rsp + 0x2178]
mov edi, eax
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x14000497a
lea rcx, [rsp + 0x50]
call fcn.140003c20
jmp 0x14000497a
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [r13]
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
mov rdx, r14
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x14000497f
mov rdx, rbx
mov rcx, r12
call fcn.140003950
test eax, eax
cmovs esi, eax
mov eax, esi
mov rdi, qword [rsp + 0x2180]
mov rcx, qword [rbp + 0x2060]
xor rcx, rsp
call fcn.14000a1a0
add rsp, 0x2188
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret