Function at 0x14000684c
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.14001b970
sub rsp, rax
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x140041480]
xor rax, rbp
mov qword [rbp + 0x1150], rax
mov r15, r8
mov r14, rdx
mov r13, rcx
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x10], r8
mov qword [rbp + 0x28], r9
xor edi, edi
mov word [rbp], di
lea rdx, [rbp + 0x150]
call fcn.14000384c
test eax, eax
js 0x140006d5a
lea rdx, [rbp]
lea rcx, [rbp + 0x150]
call fcn.1400036f4
test eax, eax
jne 0x1400068d5
mov eax, 0x80020009
jmp 0x140006d5a
mov rcx, qword [r13]
cmp byte [rcx], 9
jl 0x1400068f9
cmp byte [rcx], 0xa
jle 0x1400068ed
cmp byte [rcx], 0xd
je 0x1400068ed
cmp byte [rcx], 0x20
jne 0x1400068f9
call qword [sym.imp.USER32.dll_CharNextA]
mov qword [r13], rax
jmp 0x1400068d5
lea rdx, [rbp + 0x150]
mov rcx, r13
call fcn.14000384c
test eax, eax
js 0x140006d5a
movzx eax, word [rbp]
cmp eax, 8
je 0x140006d04
cmp eax, 0x11
je 0x140006ba2
cmp eax, 0x13
je 0x140006a46
cmp eax, 0x4008
jne 0x140006d47
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov qword [rbp + 0x40], rdi
movsxd rcx, eax
test eax, eax
je 0x140006989
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jae 0x14000696e
mov ecx, 0x80070216
call fcn.140003000
cmp rcx, 0x100
jbe 0x140006989
mov rdx, rcx
lea rcx, [rbp + 0x40]
call fcn.140010780
mov rbx, qword [rbp + 0x40]
jmp 0x140006991
lea rbx, [rbp + 0x48]
mov qword [rbp + 0x40], rbx
jmp 0x1400069a5
test rbx, rbx
je 0x140006a26
lea rsi, [rbp + 0x150]
cmp byte [rbp + 0x150], dil
je 0x140006a0a
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [rsi]
cmp cl, 0x5c
jne 0x1400069e3
cmp byte [rax], 0x30
jne 0x1400069e3
mov byte [rbx], dil
inc rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rsi, rax
jmp 0x140006a05
mov byte [rbx], cl
mov cl, byte [rsi]
call qword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x1400069ff
inc rbx
inc rsi
mov al, byte [rsi]
test al, al
je 0x140006a0a
mov byte [rbx], al
inc rbx
inc rsi
cmp byte [rsi], dil
jne 0x1400069ba
mov word [rbx], 0
mov r8, qword [rbp + 0x40]
mov rdx, r15
mov rcx, r14
call fcn.140003570
mov esi, eax
mov rbx, qword [rbp + 0x40]
jmp 0x140006a2b
mov esi, 0xe
lea rax, [rbp + 0x48]
cmp rbx, rax
je 0x140006d3a
lea rcx, [rbp + 0x40]
call fcn.140003cc4
jmp 0x140006d3a
mov rbx, rdi
mov qword [rbp + 0x10], rbx
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
movsxd r12, eax
add r12, r12
mov eax, 0x80000000
add rax, r12
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x140006b1d
cmp r12d, 0x400
jg 0x140006ab6
movsxd rsi, r12d
mov rcx, rsi
call fcn.140003e20
test al, al
je 0x140006ab6
lea rax, [rsi + 0xf]
cmp rax, rsi
ja 0x140006aa3
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14001b970
sub rsp, rax
lea r12, [rsp + 0x30]
jmp 0x140006ae7
movsxd rsi, r12d
or rax, 0xffffffffffffffff
sub rax, rsi
cmp rax, 0x10
jb 0x140006b97
lea rcx, [rsi + 0x10]
call fcn.14001b278
test rax, rax
jne 0x140006add
mov r12, rdi
jmp 0x140006ae7
mov qword [rax], rdi
mov rbx, rax
lea r12, [rax + 0x10]
shr rsi, 1
test r12, r12
je 0x140006b1d
mov word [r12], di
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r12
or r9d, 0xffffffff
lea r8, [rbp + 0x150]
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb rcx, rcx
and rcx, r12
jmp 0x140006b20
mov rcx, rdi
test rcx, rcx
jne 0x140006b41
jmp 0x140006b32
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.14001b330
test rbx, rbx
jne 0x140006b27
mov eax, 0x8007000e
jmp 0x140006d5a
lea r9, [rbp]
xor r8d, r8d
xor edx, edx
call qword [0x140031480]
mov r11d, dword [rbp]
mov dword [rbp + 8], r11d
mov dword [rsp + 0x28], 4
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x140006b8d
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.14001b330
test rbx, rbx
jne 0x140006b82
jmp 0x140006d3a
mov ecx, 0x80070216
call fcn.140003000
nop
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov dword [rbp + 8], eax
test al, 1
je 0x140006bc2
mov eax, 0x80004005
jmp 0x140006d5a
cdq
sub eax, edx
sar eax, 1
movsxd rsi, eax
mov dword [rbp], esi
mov qword [rbp + 0x40], rdi
mov rcx, rsi
test eax, eax
je 0x140006c0c
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jb 0x140006c02
cmp rcx, 0x100
jbe 0x140006c0c
mov rdx, rcx
lea rcx, [rbp + 0x40]
call fcn.140010780
mov rcx, qword [rbp + 0x40]
jmp 0x140006c14
mov ecx, 0x80070216
call fcn.140003000
lea rcx, [rbp + 0x48]
mov qword [rbp + 0x40], rcx
jmp 0x140006c2e
test rcx, rcx
jne 0x140006c4e
lea rax, [rbp + 0x48]
test rax, rax
je 0x140006bb8
lea rcx, [rbp + 0x40]
call fcn.140003cc4
jmp 0x140006bb8
movsxd r8, esi
xor edx, edx
call fcn.14001b7c0
mov r11d, edi
mov r8, rdi
movsxd r10, ebx
test ebx, ebx
jle 0x140006ccb
mov eax, r11d
cdq
sub eax, edx
sar eax, 1
movsxd r9, eax
add r9, qword [rbp + 0x40]
mov dl, byte [rbp + r8 + 0x150]
cmp dl, 0x30
jl 0x140006ca6
cmp dl, 0x39
jle 0x140006ca1
cmp dl, 0x40
jle 0x140006ca6
cmp dl, 0x46
jle 0x140006c9c
lea eax, [rdx - 0x61]
cmp al, 5
ja 0x140006ca6
sub dl, 0x57
jmp 0x140006ca9
sub dl, 0x37
jmp 0x140006ca9
sub dl, 0x30
jmp 0x140006ca9
mov dl, dil
mov ecx, r11d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl dl, cl
or byte [r9], dl
inc r11d
inc r8
cmp r8, r10
jl 0x140006c65
mov dword [rsp + 0x28], esi
mov rax, qword [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea rax, [rbp + 0x48]
cmp qword [rbp + 0x40], rax
je 0x140006d3a
lea rcx, [rbp + 0x40]
call fcn.140003cc4
jmp 0x140006d3a
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x150]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x140006d47
mov ecx, esi
call fcn.140003040
jmp 0x140006d5a
mov rdx, qword [rbp + 0x28]
mov rcx, r13
call fcn.14000384c
test eax, eax
cmovs edi, eax
mov eax, edi
mov rcx, qword [rbp + 0x1150]
xor rcx, rbp
call fcn.14001b940
lea rsp, [rbp + 0x1168]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret