Function at 0x14006d640
Capabilities:
Set registry value

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x70
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], rsi
mov qword [rbp + 0x80], rdi
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x38], rax
mov r12, rcx
mov qword [rbp + 0x18], rcx
mov edi, 0x2000
xor r13d, r13d
mov ecx, edi
mov qword [rbp + 0x20], r9
mov r15, r8
mov qword [rbp + 8], r8
mov r14, rdx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r13
call qword [sym.imp.msvcrt.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14006d912
mov rdx, rax
mov rcx, r12
call fcn.14006ea44
mov rcx, rsi
mov ebx, eax
test eax, eax
js 0x14006da5b
lea rdx, [rbp]
call fcn.14007050c
test eax, eax
jne 0x14006d6e1
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov ebx, 0x80020009
jmp 0x14006da75
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14006d909
mov rcx, r12
call fcn.1400700b4
mov rdx, rdi
mov rcx, r12
call fcn.14006ea44
mov ebx, eax
test eax, eax
jns 0x14006d717
mov rcx, rdi
jmp 0x14006da52
movzx eax, word [rbp]
cmp eax, 8
je 0x14006d8a4
cmp eax, 0x11
je 0x14006d775
cmp eax, 0x13
jne 0x14006da3d
lea r9, [rbp + 0x10]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [rbp + 0x10]
mov rcx, qword [r14]
mov dword [rbp], eax
lea rax, [rbp]
mov r9d, 4
xor r8d, r8d
mov rdx, r15
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
jmp 0x14006da3d
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], r13w
jne 0x14006d779
test bl, 1
jne 0x14006d8cf
mov eax, ebx
mov ecx, 2
cdq
idiv ecx
movsxd r13, eax
cmp r13, 0x400
ja 0x14006d7d4
mov rcx, r13
call fcn.1400707ac
test al, al
je 0x14006d7d4
lea rax, [r13 + 0xf]
cmp rax, r13
ja 0x14006d7c1
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14005efb0
sub rsp, rax
lea r15, [rsp + 0x30]
jmp 0x14006d7e3
lea rcx, [rbp + 0x30]
mov rdx, r13
call fcn.14006dab0
mov r15, rax
test r15, r15
je 0x14006d8cf
mov r8, r13
xor edx, edx
mov rcx, r15
call sub.msvcrt.dll_memset
xor eax, eax
movsxd r10, ebx
mov r11d, eax
mov r9d, eax
test ebx, ebx
jle 0x14006d879
xor r12d, r12d
lea ebx, [rax + 2]
movzx r8d, word [rdi + r9*2]
mov eax, r8d
cmp r8d, 0x30
jl 0x14006d845
cmp eax, 0x39
jle 0x14006d83f
cmp eax, 0x40
jle 0x14006d845
cmp eax, 0x46
jle 0x14006d839
add eax, 0xffffff9f
cmp eax, 5
ja 0x14006d845
sub r8b, 0x57
jmp 0x14006d848
sub r8b, 0x37
jmp 0x14006d848
sub r8b, 0x30
jmp 0x14006d848
mov r8b, r12b
mov eax, r11d
mov ecx, r11d
inc r9
cdq
and ecx, 1
inc r11d
shl ecx, 2
idiv ebx
movsxd rdx, eax
mov eax, 4
sub eax, ecx
mov cl, al
shl r8b, cl
or byte [rdx + r15], r8b
cmp r9, r10
jl 0x14006d80e
mov r12, qword [rbp + 0x18]
mov rdx, qword [rbp + 8]
mov rcx, r14
mov r9d, 3
mov rcx, qword [rcx]
xor r8d, r8d
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
xor r13d, r13d
jmp 0x14006da3d
xor ecx, ecx
or rbx, 0xffffffffffffffff
mov r13, rdi
mov r14d, ecx
cmp byte [rbp + 0x90], cl
je 0x14006d9f8
mov rax, rbx
inc rax
cmp word [rdi + rax*2], cx
jne 0x14006d8bf
cmp eax, 0xffe
jle 0x14006d8eb
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov ebx, 0x80004005
jmp 0x14006da75
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
mov r14, rax
xor eax, eax
test r14, r14
jne 0x14006d91c
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov ebx, 0x8007000e
jmp 0x14006da75
mov rcx, qword [r12 + 8]
lea rdx, [0x14000d8c0]
mov qword [rbp], rax
call fcn.14007013c
mov r12, rax
test rax, rax
je 0x14006d9e9
mov rdx, rax
mov rcx, rdi
call fcn.1400701e0
mov r15, rax
test rax, rax
je 0x14006d9e5
cmp rax, qword [rbp + 0x20]
je 0x14006d96c
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharPrevW]
cmp word [rax], 0x22
je 0x14006d9e5
mov r8, r15
xor r13d, r13d
mov rdx, rdi
sub r8, rdi
mov rcx, r14
mov word [r14], r13w
sar r8, 1
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea r8, [0x14000d9c0]
mov edx, 0x1000
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcscat_s]
mov r8, r12
mov edx, 0x1000
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcscat_s]
lea r8, [0x14000d9c0]
mov edx, 0x1000
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcscat_s]
mov rax, rbx
inc rax
cmp word [r12 + rax*2], r13w
jne 0x14006d9c6
lea r8, [r15 + rax*2]
mov edx, 0x1000
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcscat_s]
mov r13, r14
mov r15, qword [rbp + 8]
lea rcx, [rbp]
call fcn.14006cf00
mov r12, qword [rbp + 0x18]
xor ecx, ecx
inc rbx
cmp word [r13 + rbx*2], cx
jne 0x14006d9f8
mov rcx, qword [rbp + 0x28]
lea eax, [rbx*2 + 2]
mov r9d, 1
mov rcx, qword [rcx]
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x20], r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
xor r13d, r13d
test r14, r14
je 0x14006da3d
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov rdx, qword [rbp + 0x20]
mov rcx, r12
call fcn.14006ea44
mov rcx, rdi
mov ebx, eax
test eax, eax
jns 0x14006da63
call qword [sym.imp.msvcrt.dll_free]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
jmp 0x14006da75
call qword [sym.imp.msvcrt.dll_free]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov ebx, r13d
lea rcx, [rbp + 0x30]
call fcn.14006cf00
mov eax, ebx
mov rcx, qword [rbp + 0x38]
xor rcx, rbp
call fcn.14005dc70
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
mov rdi, qword [rbp + 0x80]
lea rsp, [rbp + 0x40]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret