Function at 0x14005b380
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
mov qword [rbp + 0x20], r9
xor r13d, r13d
mov qword [rbp + 8], r8
mov ecx, edi
mov qword [rbp + 0x28], rdx
mov r15, r8
mov qword [rbp + 0x30], r13
mov r14, rdx
call qword [sym.imp.msvcrt.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14005b652
mov rdx, rax
mov rcx, r12
call fcn.14005c0b4
mov ebx, eax
mov rcx, rsi
test eax, eax
js 0x14005b79b
lea rdx, [rbp]
call fcn.14005daec
test eax, eax
jne 0x14005b421
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov ebx, 0x80020009
jmp 0x14005b7b5
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14005b649
mov rcx, r12
call fcn.14005d688
mov rdx, rdi
mov rcx, r12
call fcn.14005c0b4
mov ebx, eax
test eax, eax
jns 0x14005b457
mov rcx, rdi
jmp 0x14005b792
movzx eax, word [rbp]
cmp eax, 8
je 0x14005b5e4
cmp eax, 0x11
je 0x14005b4b5
cmp eax, 0x13
jne 0x14005b77d
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 r9d, 4
mov rcx, qword [r14]
xor r8d, r8d
mov dword [rbp], eax
mov rdx, r15
lea rax, [rbp]
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 0x14005b77d
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], r13w
jne 0x14005b4b9
test bl, 1
jne 0x14005b60f
mov eax, ebx
mov ecx, 2
cdq
idiv ecx
movsxd r13, eax
cmp r13, 0x400
ja 0x14005b514
mov rcx, r13
call fcn.14005dbd0
test al, al
je 0x14005b514
lea rax, [r13 + 0xf]
cmp rax, r13
ja 0x14005b501
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140031b10
sub rsp, rax
lea r15, [rsp + 0x30]
jmp 0x14005b523
mov rdx, r13
lea rcx, [rbp + 0x30]
call fcn.14005b7f0
mov r15, rax
test r15, r15
je 0x14005b60f
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 0x14005b5b9
xor r12d, r12d
lea ebx, [rax + 2]
movzx r8d, word [rdi + r9*2]
mov eax, r8d
cmp r8d, 0x30
jl 0x14005b585
cmp eax, 0x39
jle 0x14005b57f
cmp eax, 0x40
jle 0x14005b585
cmp eax, 0x46
jle 0x14005b579
add eax, 0xffffff9f
cmp eax, 5
ja 0x14005b585
sub r8b, 0x57
jmp 0x14005b588
sub r8b, 0x37
jmp 0x14005b588
sub r8b, 0x30
jmp 0x14005b588
mov r8b, r12b
mov eax, r11d
mov ecx, r11d
cdq
and ecx, 1
idiv ebx
shl ecx, 2
inc r11d
movsxd rdx, eax
inc r9
mov eax, 4
sub eax, ecx
mov cl, al
shl r8b, cl
or byte [rdx + r15], r8b
cmp r9, r10
jl 0x14005b54e
mov r12, qword [rbp + 0x18]
mov rdx, qword [rbp + 8]
mov rcx, r14
mov dword [rsp + 0x28], r13d
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
xor r13d, r13d
jmp 0x14005b77d
xor ecx, ecx
or rbx, 0xffffffffffffffff
mov r13, rdi
mov r14d, ecx
cmp byte [rbp + 0x90], cl
je 0x14005b738
mov rax, rbx
inc rax
cmp word [rdi + rax*2], cx
jne 0x14005b5ff
cmp eax, 0xffe
jle 0x14005b62b
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov ebx, 0x80004005
jmp 0x14005b7b5
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
mov r14, rax
xor eax, eax
test r14, r14
jne 0x14005b65c
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov ebx, 0x8007000e
jmp 0x14005b7b5
mov rcx, qword [r12 + 8]
lea rdx, str.Module
mov qword [rbp], rax
call fcn.14005d710
mov r12, rax
test rax, rax
je 0x14005b729
mov rdx, rax
mov rcx, rdi
call fcn.14005d7b4
mov r15, rax
test rax, rax
je 0x14005b725
cmp rax, qword [rbp + 0x20]
je 0x14005b6ac
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 0x14005b725
mov r8, r15
xor r13d, r13d
sub r8, rdi
mov word [r14], r13w
sar r8, 1
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcpynW]
lea r8, [0x1400fd914]
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, [0x1400fd914]
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 0x14005b706
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.14005ae44
mov r12, qword [rbp + 0x18]
xor ecx, ecx
inc rbx
cmp word [r13 + rbx*2], cx
jne 0x14005b738
mov rcx, qword [rbp + 0x28]
lea eax, [rbx*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov rdx, r15
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
xor r13d, r13d
test r14, r14
je 0x14005b77d
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov rdx, qword [rbp + 0x20]
mov rcx, r12
call fcn.14005c0b4
mov ebx, eax
mov rcx, rdi
test eax, eax
jns 0x14005b7a3
call qword [sym.imp.msvcrt.dll_free]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
jmp 0x14005b7b5
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.14005ae44
mov eax, ebx
mov rcx, qword [rbp + 0x38]
xor rcx, rbp
call fcn.1400305f0
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