Function at 0x14003fa40
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 [0x1401543b0]
xor rax, rbp
mov qword [rbp + 0x38], rax
mov r12, rcx
mov qword [rbp + 0x18], rcx
mov edi, 0x2000
mov qword [rbp + 0x28], r9
xor r13d, r13d
mov qword [rbp + 8], r8
mov ecx, edi
mov qword [rbp + 0x20], 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 0x14003fd12
mov rdx, rax
mov rcx, r12
call fcn.140040b24
mov ebx, eax
mov rcx, rsi
test eax, eax
js 0x14003fe5b
lea rdx, [rbp]
call fcn.1400424f4
test eax, eax
jne 0x14003fae1
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov ebx, 0x80020009
jmp 0x14003fe75
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14003fd09
mov rcx, r12
call fcn.1400420a4
mov rdx, rdi
mov rcx, r12
call fcn.140040b24
mov ebx, eax
test eax, eax
jns 0x14003fb17
mov rcx, rdi
jmp 0x14003fe52
movzx eax, word [rbp]
cmp eax, 8
je 0x14003fca4
cmp eax, 0x11
je 0x14003fb75
cmp eax, 0x13
jne 0x14003fe3d
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 0x14003fe3d
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], r13w
jne 0x14003fb79
test bl, 1
jne 0x14003fccf
mov eax, ebx
mov ecx, 2
cdq
idiv ecx
movsxd r13, eax
cmp r13, 0x400
ja 0x14003fbd4
mov rcx, r13
call fcn.140042720
test al, al
je 0x14003fbd4
lea rax, [r13 + 0xf]
cmp rax, r13
ja 0x14003fbc1
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140021440
sub rsp, rax
lea r15, [rsp + 0x30]
jmp 0x14003fbe3
mov rdx, r13
lea rcx, [rbp + 0x30]
call fcn.14003feb0
mov r15, rax
test r15, r15
je 0x14003fccf
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 0x14003fc79
xor r12d, r12d
lea ebx, [rax + 2]
movzx r8d, word [rdi + r9*2]
mov eax, r8d
cmp r8d, 0x30
jl 0x14003fc45
cmp eax, 0x39
jle 0x14003fc3f
cmp eax, 0x40
jle 0x14003fc45
cmp eax, 0x46
jle 0x14003fc39
add eax, 0xffffff9f
cmp eax, 5
ja 0x14003fc45
sub r8b, 0x57
jmp 0x14003fc48
sub r8b, 0x37
jmp 0x14003fc48
sub r8b, 0x30
jmp 0x14003fc48
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 0x14003fc0e
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 0x14003fe3d
xor ecx, ecx
or rbx, 0xffffffffffffffff
mov r13, rdi
mov r14d, ecx
cmp byte [rbp + 0x90], cl
je 0x14003fdf8
mov rax, rbx
inc rax
cmp word [rdi + rax*2], cx
jne 0x14003fcbf
cmp eax, 0xffe
jle 0x14003fceb
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov ebx, 0x80004005
jmp 0x14003fe75
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
mov r14, rax
xor eax, eax
test r14, r14
jne 0x14003fd1c
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov ebx, 0x8007000e
jmp 0x14003fe75
mov rcx, qword [r12 + 8]
lea rdx, str.Module
mov qword [rbp], rax
call fcn.14004212c
mov r12, rax
test rax, rax
je 0x14003fde9
mov rdx, rax
mov rcx, rdi
call fcn.1400421d0
mov r15, rax
test rax, rax
je 0x14003fde5
cmp rax, qword [rbp + 0x28]
je 0x14003fd6c
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 0x14003fde5
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, [0x1400f61f4]
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, [0x1400f61f4]
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 0x14003fdc6
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.14003f444
mov r12, qword [rbp + 0x18]
xor ecx, ecx
inc rbx
cmp word [r13 + rbx*2], cx
jne 0x14003fdf8
mov rcx, qword [rbp + 0x20]
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 0x14003fe3d
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov rdx, qword [rbp + 0x28]
mov rcx, r12
call fcn.140040b24
mov ebx, eax
mov rcx, rdi
test eax, eax
jns 0x14003fe63
call qword [sym.imp.msvcrt.dll_free]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
jmp 0x14003fe75
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.14003f444
mov eax, ebx
mov rcx, qword [rbp + 0x38]
xor rcx, rbp
call fcn.14001ff30
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