Function at 0x140005aa0
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 [0x1400a3318]
xor rax, rbp
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x28], r9
mov r12, r8
mov qword [rbp + 0x10], r8
mov qword [rbp + 0x20], rdx
mov r13, rcx
mov qword [rbp + 8], rcx
xor r15d, r15d
mov ebx, r15d
mov qword [rbp + 0x18], rbx
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x140005e71
mov rdx, rax
mov rcx, r13
call fcn.14000b420
mov edi, eax
test eax, eax
jns 0x140005b32
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
jmp 0x140005e76
mov edi, r15d
lea rsi, [0x140064a00]
mov rdx, qword [rsi]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x140005b76
inc edi
add rsi, 0x10
cmp edi, 3
jb 0x140005b3c
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov edi, 0x80020009
jmp 0x140005e76
movsxd rax, edi
add rax, rax
lea rcx, [0x140064a00]
movzx r15d, word [rcx + rax*8 + 8]
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140005e62
mov rcx, qword [r13]
cmp word [rcx], 9
jb 0x140005bd4
cmp word [rcx], 0xa
jbe 0x140005bc2
cmp word [rcx], 0xd
je 0x140005bc2
cmp word [rcx], 0x20
jne 0x140005bd4
call qword [sym.imp.USER32.dll_CharNextW]
nop dword [rax + rax]
mov qword [r13], rax
jmp 0x140005ba6
mov rdx, rsi
mov rcx, r13
call fcn.14000b420
mov edi, eax
xor r10d, r10d
test eax, eax
jns 0x140005bfc
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
jmp 0x140005b1e
mov dword [rbp], r10d
cmp r15w, 8
je 0x140005de8
cmp r15w, 0x11
je 0x140005c5a
cmp r15w, 0x13
jne 0x140005fd3
lea r9, [rbp]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
nop dword [rax + rax]
mov eax, dword [rbp]
mov dword [rbp + 8], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov rdx, r12
jmp 0x140005dcd
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rsi + rdi*2], r10w
jne 0x140005c5e
test dil, 1
jne 0x140005e13
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [rbp + 8], eax
movsxd r15, eax
cmp r15, 0x400
ja 0x140005cbd
mov rcx, r15
call fcn.140010600
xor r10d, r10d
test al, al
je 0x140005cbd
lea rax, [r15 + 0xf]
cmp rax, r15
ja 0x140005caa
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14005fe20
sub rsp, rax
lea r12, [rsp + 0x30]
jmp 0x140005ced
lea rcx, [r15 + 0x10]
cmp rcx, r15
jae 0x140005ccb
mov r12, r10
jmp 0x140005ced
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
xor r10d, r10d
test rax, rax
je 0x140005cc6
mov qword [rax], r10
mov rbx, rax
mov qword [rbp + 0x18], rax
lea r12, [rax + 0x10]
test r12, r12
jne 0x140005d38
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
nop
jmp 0x140005d29
mov rcx, rbx
mov rbx, qword [rbx]
mov qword [rbp + 0x18], rbx
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
test rbx, rbx
jne 0x140005d13
mov eax, 0x80004005
jmp 0x140006061
mov r8, r15
xor edx, edx
mov rcx, r12
call sub.msvcrt.dll_memset
xor r15d, r15d
mov r10d, r15d
movsxd r11, edi
test edi, edi
jle 0x140005db7
mov r9d, r15d
movzx eax, word [rsi + r9*2]
cmp eax, 0x30
jb 0x140005d8a
cmp eax, 0x39
jbe 0x140005d84
cmp eax, 0x40
jbe 0x140005d8a
cmp eax, 0x46
jbe 0x140005d7e
cmp eax, 0x60
jbe 0x140005d8a
cmp eax, 0x66
ja 0x140005d8a
lea r8d, [rax - 0x57]
jmp 0x140005d8d
lea r8d, [rax - 0x37]
jmp 0x140005d8d
lea r8d, [rax - 0x30]
jmp 0x140005d8d
mov r8d, r15d
mov edx, r10d
shr rdx, 1
mov ecx, r10d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl r8b, cl
or byte [rdx + r12], r8b
inc r10d
inc r9
cmp r9, r11
jl 0x140005d55
mov eax, dword [rbp + 8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
mov r9d, 3
mov rdx, qword [rbp + 0x10]
xor r8d, r8d
mov rcx, qword [rbp + 0x20]
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
jmp 0x140005fd3
mov rcx, rsi
mov r15, r10
or rdi, 0xffffffffffffffff
cmp byte [rbp + 0x90], r10b
je 0x140005f86
mov rax, rdi
inc rax
cmp word [rsi + rax*2], r10w
jne 0x140005e02
cmp eax, 0xffe
jle 0x140005e38
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov edi, 0x80004005
jmp 0x140005e76
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov r15, rax
xor eax, eax
test r15, r15
jne 0x140005e7d
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov edi, 0x8007000e
mov eax, edi
jmp 0x140006061
mov qword [rbp + 0x30], rax
lea rdx, [0x140069830]
mov rcx, qword [r13 + 8]
call fcn.14000f884
mov r13, rax
xor r10d, r10d
mov rcx, rsi
test rax, rax
je 0x140005f82
mov rdx, rax
call fcn.14000f930
mov r12, rax
xor r10d, r10d
test rax, rax
je 0x140005f7b
cmp rax, qword [rbp + 0x28]
je 0x140005edf
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharPrevW]
nop dword [rax + rax]
xor r10d, r10d
cmp word [rax], 0x22
je 0x140005f7b
mov word [r15], r10w
mov r8, r12
sub r8, rsi
sar r8, 1
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcpynW]
nop dword [rax + rax]
lea r8, [0x140069840]
mov edx, 0x1000
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
mov r8, r13
mov edx, 0x1000
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
lea r8, [0x140069840]
mov edx, 0x1000
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
mov rax, rdi
xor ecx, ecx
inc rax
cmp word [r13 + rax*2], cx
jne 0x140005f50
lea r8, [r12 + rax*2]
mov edx, 0x1000
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
mov rcx, r15
xor r10d, r10d
jmp 0x140005f7e
mov rcx, rsi
mov r12, qword [rbp + 0x10]
mov r13, qword [rbp + 8]
inc rdi
cmp word [rcx + rdi*2], r10w
jne 0x140005f86
lea eax, [rdi*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, r12
mov rcx, qword [rbp + 0x20]
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test r15, r15
je 0x140005fd3
mov rcx, r15
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rdx, qword [rbp + 0x28]
mov rcx, r13
call fcn.14000b420
mov edi, eax
mov rcx, rsi
test eax, eax
jns 0x140006026
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
nop
jmp 0x14000601c
mov rcx, rbx
mov rbx, qword [rbx]
mov qword [rbp + 0x18], rbx
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
test rbx, rbx
jne 0x140006006
jmp 0x140005e76
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
nop
jmp 0x14000605a
mov rcx, rbx
mov rbx, qword [rbx]
mov qword [rbp + 0x18], rbx
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
test rbx, rbx
jne 0x140006044
xor eax, eax
mov rcx, qword [rbp + 0x38]
xor rcx, rbp
call fcn.140002290
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