Function at 0x140002050
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1198
call fcn.14003ee70
sub rsp, rax
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14007a8d0]
xor rax, rbp
mov qword [rbp + 0x1150], rax
mov r15, r8
mov qword [rbp + 8], r8
mov r13, rdx
mov qword [rbp + 0x10], rdx
mov r14, rcx
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x18], r8
mov qword [rbp + 0x30], r9
xor r12d, r12d
mov word [rbp], r12w
lea rdx, [rbp + 0x150]
call fcn.140004e20
test eax, eax
js 0x140002585
lea rdx, [rbp]
lea rcx, [rbp + 0x150]
call fcn.140007e50
test eax, eax
jne 0x1400020e3
mov eax, 0x80020009
jmp 0x140002585
movabs rbx, 0x100002600
nop dword [rax]
mov rcx, qword [r14]
movzx eax, byte [rcx]
cmp al, 0x20
ja 0x14000210b
bt rbx, rax
jae 0x14000210b
call qword [sym.imp.USER32.dll_CharNextA]
mov qword [r14], rax
jmp 0x1400020f0
lea rdx, [rbp + 0x150]
mov rcx, r14
call fcn.140004e20
test eax, eax
js 0x140002585
movzx eax, word [rbp]
cmp eax, 8
je 0x140002520
cmp eax, 0x11
je 0x1400023ca
cmp eax, 0x13
je 0x14000226f
cmp eax, 0x4008
jne 0x140002570
lea rcx, [rbp + 0x150]
or rdi, 0xffffffffffffffff
mov rax, rdi
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], r12b
jne 0x140002160
add eax, 2
mov qword [rbp + 0x40], r12
movsxd rcx, eax
test eax, eax
je 0x1400021aa
xor edx, edx
mov rax, rdi
div rcx
cmp rax, 1
jae 0x14000218f
mov ecx, 0x80070216
call fcn.140003630
cmp rcx, 0x100
jbe 0x1400021aa
mov rdx, rcx
lea rcx, [rbp + 0x40]
call fcn.1400025b0
mov rbx, qword [rbp + 0x40]
jmp 0x1400021b2
lea rbx, [rbp + 0x48]
mov qword [rbp + 0x40], rbx
jmp 0x1400021c7
test rbx, rbx
je 0x14000224f
lea rdi, [rbp + 0x150]
cmp byte [rbp + 0x150], 0
je 0x140002233
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextA]
movzx ecx, byte [rdi]
cmp cl, 0x5c
jne 0x14000220a
cmp byte [rax], 0x30
jne 0x14000220a
mov byte [rbx], 0
inc rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rdi, rax
jmp 0x14000222e
mov byte [rbx], cl
movzx ecx, byte [rdi]
call qword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x140002228
inc rbx
inc rdi
movzx eax, byte [rdi]
test al, al
je 0x140002233
mov byte [rbx], al
inc rbx
inc rdi
cmp byte [rdi], 0
jne 0x1400021e0
mov word [rbx], 0
mov r8, qword [rbp + 0x40]
mov rdx, r15
mov rcx, r13
call fcn.140006f80
mov edi, eax
mov rbx, qword [rbp + 0x40]
jmp 0x140002254
mov edi, 0xe
lea rax, [rbp + 0x48]
cmp rbx, rax
je 0x140002563
lea rcx, [rbp + 0x40]
call fcn.140004180
jmp 0x140002563
mov rbx, r12
mov qword [rbp + 0x10], rbx
lea rcx, [rbp + 0x150]
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x140002284
inc eax
movsxd r15, eax
add r15, r15
mov eax, 0x80000000
add rax, r15
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x1400023a2
cmp r15d, 0x400
jg 0x1400022e9
movsxd rsi, r15d
mov rcx, rsi
call fcn.1400080c0
test al, al
je 0x1400022e9
lea rax, [rsi + 0xf]
cmp rax, rsi
ja 0x1400022d6
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14003ee70
sub rsp, rax
lea rcx, [rsp + 0x30]
jmp 0x140002316
movsxd rsi, r15d
sub rdi, rsi
cmp rdi, 0x10
jb 0x140002397
lea rcx, [rsi + 0x10]
call fcn.14003d1c4
test rax, rax
jne 0x14000230c
mov rcx, r12
jmp 0x140002316
mov qword [rax], r12
mov rbx, rax
lea rcx, [rax + 0x10]
shr rsi, 1
mov r9d, 3
mov r8d, esi
lea rdx, [rbp + 0x150]
call fcn.1400026b0
test rax, rax
je 0x1400023a2
lea r9, [rbp]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edi, eax
test eax, eax
jns 0x140002367
test rbx, rbx
je 0x140002360
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.14003d184
test rbx, rbx
jne 0x140002350
mov eax, edi
jmp 0x140002585
mov r8d, dword [rbp]
mov rdx, qword [rbp + 8]
mov rcx, r13
call fcn.140006f40
mov edi, eax
test rbx, rbx
je 0x140002563
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.14003d184
test rbx, rbx
jne 0x140002382
jmp 0x140002563
mov ecx, 0x80070216
call fcn.140003630
nop
test rbx, rbx
je 0x1400023c0
nop word [rax + rax]
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.14003d184
test rbx, rbx
jne 0x1400023b0
mov eax, 0x8007000e
jmp 0x140002585
lea rax, [rbp + 0x150]
or rdi, 0xffffffffffffffff
mov rbx, rdi
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], r12b
jne 0x1400023e0
mov dword [rbp], ebx
test bl, 1
jne 0x140002482
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
movsxd rsi, eax
mov dword [rbp + 4], esi
mov qword [rbp + 0x40], r12
mov rcx, rsi
test eax, eax
je 0x140002440
xor edx, edx
mov rax, rdi
div rcx
cmp rax, 1
jae 0x140002425
mov ecx, 0x80070216
call fcn.140003630
cmp rcx, 0x100
jbe 0x140002440
mov rdx, rcx
lea rcx, [rbp + 0x40]
call fcn.1400025b0
mov rcx, qword [rbp + 0x40]
jmp 0x140002448
lea rcx, [rbp + 0x48]
mov qword [rbp + 0x40], rcx
jmp 0x14000246b
test rcx, rcx
jne 0x14000248c
lea rax, [rbp + 0x48]
test rax, rax
je 0x140002482
lea rcx, [rbp + 0x40]
call fcn.140004180
mov eax, 0x80004005
jmp 0x140002585
movsxd r8, esi
xor edx, edx
call fcn.14003efe0
mov edi, r12d
mov r15, r12
movsxd r13, ebx
test ebx, ebx
jle 0x1400024e2
mov eax, edi
cdq
sub eax, edx
sar eax, 1
movsxd rbx, eax
add rbx, qword [rbp + 0x40]
movzx ecx, byte [rbp + r15 + 0x150]
call fcn.140003790
movzx edx, al
mov ecx, edi
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
movzx ecx, al
shl dl, cl
or byte [rbx], dl
inc edi
inc r15
cmp r15, r13
jl 0x1400024a3
mov dword [rsp + 0x28], esi
mov rax, qword [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x10]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea rax, [rbp + 0x48]
cmp qword [rbp + 0x40], rax
je 0x140002563
lea rcx, [rbp + 0x40]
call fcn.140004180
jmp 0x140002563
lea rax, [rbp + 0x150]
or rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], r12b
jne 0x140002530
inc edi
mov dword [rsp + 0x28], edi
lea rax, [rbp + 0x150]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x140002570
mov ecx, edi
call fcn.140002730
jmp 0x140002585
mov rdx, qword [rbp + 0x30]
mov rcx, r14
call fcn.140004e20
test eax, eax
cmovs r12d, eax
mov eax, r12d
mov rcx, qword [rbp + 0x1150]
xor rcx, rbp
call fcn.14003eed0
lea rsp, [rbp + 0x1168]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret