Function at 0x140002fb4
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2190
call fcn.1400142a0
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x140052108]
xor rax, rsp
mov qword [rsp + 0x2180], rax
mov r13, r8
mov r12, rdx
mov r14, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x50], r9
xor ebx, ebx
mov word [rsp + 0x60], bx
lea rdx, [rsp + 0x180]
call fcn.140006a00
test eax, eax
js 0x1400033e3
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x180]
call fcn.140009ec0
test eax, eax
jne 0x140003041
mov eax, 0x80020009
jmp 0x1400033e3
mov rcx, qword [r14]
cmp word [rcx], 9
jb 0x140003067
cmp word [rcx], 0xa
jbe 0x14000305c
cmp word [rcx], 0xd
je 0x14000305c
cmp word [rcx], 0x20
jne 0x140003067
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
jmp 0x140003041
lea rdx, [rsp + 0x180]
mov rcx, r14
call fcn.140006a00
test eax, eax
js 0x1400033e3
movzx eax, word [rsp + 0x60]
cmp eax, 8
je 0x140003385
cmp eax, 0x11
je 0x1400031f9
cmp eax, 0x13
je 0x1400031b9
cmp eax, 0x4008
jne 0x1400033cf
lea rcx, [rsp + 0x180]
call fcn.140019654
lea edi, [rax + 2]
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x70]
call fcn.140016010
mov qword [rsp + 0x70], rbx
movsxd rcx, edi
test edi, edi
je 0x140003109
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140003406
lea rdx, [rcx + rcx]
cmp rdx, 0x100
jbe 0x140003109
lea rcx, [rsp + 0x70]
call fcn.140003420
mov rdi, qword [rsp + 0x70]
jmp 0x140003113
lea rdi, [rsp + 0x78]
mov qword [rsp + 0x70], rdi
jmp 0x14000312b
test rdi, rdi
je 0x140003197
lea rsi, [rsp + 0x180]
cmp word [rsp + 0x180], bx
je 0x14000317b
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [rsi]
cmp cx, 0x5c
jne 0x14000316b
cmp word [rax], 0x30
jne 0x14000316b
mov word [rdi], bx
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
mov rsi, rax
jmp 0x140003172
mov word [rdi], cx
add rsi, 2
add rdi, 2
cmp word [rsi], bx
jne 0x140003142
and dword [rdi], 0
mov r8, qword [rsp + 0x70]
mov rdx, r13
mov rcx, r12
call fcn.140009084
mov esi, eax
mov rdi, qword [rsp + 0x70]
jmp 0x14000319c
mov esi, 0xe
lea rax, [rsp + 0x78]
cmp rdi, rax
je 0x1400033c2
lea rcx, [rsp + 0x70]
call fcn.140005008
jmp 0x1400033c2
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x180]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x1400033e3
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov r9d, 4
jmp 0x1400033ab
lea rcx, [rsp + 0x180]
call fcn.140019654
mov rsi, rax
mov dword [rsp + 0x68], eax
test al, 1
jne 0x1400032b5
cdq
sub eax, edx
sar eax, 1
movsxd r15, eax
mov dword [rsp + 0x60], r15d
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x70]
call fcn.140016010
mov qword [rsp + 0x70], rbx
mov rdi, r15
mov qword [rsp + 0x48], r15
test r15d, r15d
je 0x140003276
xor edx, edx
or rax, 0xffffffffffffffff
div rdi
cmp rax, 1
jb 0x140003411
cmp rdi, 0x100
jbe 0x140003276
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140003420
mov rcx, qword [rsp + 0x70]
jmp 0x140003280
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x70], rcx
jmp 0x1400032a6
test rcx, rcx
jne 0x1400032bf
lea rcx, [rsp + 0x70]
call fcn.140005008
mov eax, 0x80004005
jmp 0x1400033e3
mov r8, rdi
xor edx, edx
call fcn.140016010
mov r9d, ebx
movsxd r11, esi
test esi, esi
jle 0x140003346
mov r8, rbx
mov eax, r9d
cdq
sub eax, edx
sar eax, 1
movsxd r10, eax
add r10, qword [rsp + 0x70]
movzx edx, word [rsp + r8*2 + 0x180]
cmp dx, 0x30
jb 0x140003322
cmp dx, 0x39
jbe 0x14000331d
cmp dx, 0x40
jbe 0x140003322
cmp dx, 0x46
jbe 0x140003318
cmp dx, 0x60
jbe 0x140003322
cmp dx, 0x66
ja 0x140003322
sub dl, 0x57
jmp 0x140003324
sub dl, 0x37
jmp 0x140003324
sub dl, 0x30
jmp 0x140003324
mov dl, bl
mov ecx, r9d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl dl, cl
or byte [r10], dl
inc r9d
inc r8
cmp r8, r11
jl 0x1400032d6
mov dword [rsp + 0x28], r15d
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400033c2
lea rcx, [rsp + 0x70]
call fcn.140005008
jmp 0x1400033c2
lea rcx, [rsp + 0x180]
call fcn.140019654
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x180]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x1400033cf
mov ecx, esi
call fcn.140003930
jmp 0x1400033e3
mov rdx, qword [rsp + 0x50]
mov rcx, r14
call fcn.140006a00
test eax, eax
cmovs ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x2180]
xor rcx, rsp
call fcn.140013e00
add rsp, 0x2190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140004454
nop
mov ecx, 0x80070216
call fcn.140004454
int3