Function at 0x140003a3c
Capabilities:
Set registry value

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x80
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x80], rbx
mov qword [rbp + 0x88], rsi
mov qword [rbp + 0x90], rdi
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x40], rax
mov r12, rcx
mov qword [rbp + 0x38], rcx
xor r15d, r15d
mov qword [rbp + 0x28], r9
mov ecx, 0x2000
mov qword [rbp + 0x30], r8
mov ebx, r15d
mov qword [rbp + 0x10], rdx
mov r13, r8
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rbp + 8], rax
mov r14, rax
test rax, rax
je 0x140003df7
mov rdx, rax
mov rcx, r12
call fcn.1400045e4
mov edi, eax
test eax, eax
js 0x140003bca
mov eax, dword [0x140016c48]
lea ecx, [r15 + 0x13]
lea edx, [rcx - 2]
lea r8d, [r15 + 8]
test al, 1
jne 0x140003b1f
or eax, 1
mov word [0x140016c58], r8w
mov dword [0x140016c48], eax
lea rax, [0x1400108cc]
mov qword [0x140016c50], rax
lea rax, [0x1400108d0]
mov qword [0x140016c60], rax
lea rax, [0x1400108d4]
mov qword [0x140016c70], rax
mov word [0x140016c68], cx
mov word [0x140016c78], dx
mov edi, r15d
lea rsi, [0x140016c50]
mov rdx, qword [rsi]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
test eax, eax
je 0x140003b5b
inc edi
add rsi, 0x10
movsxd rax, edi
cmp rax, 3
jb 0x140003b29
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov edi, 0x80020009
jmp 0x140004082
lea rcx, [0x140016c50]
movsxd rax, edi
add rax, rax
movzx r15d, word [rcx + rax*8 + 8]
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140003dee
mov rcx, qword [r12]
movzx eax, word [rcx]
cmp eax, 0x20
ja 0x140003bad
movabs rdx, 0x100002600
bt rdx, rax
jae 0x140003bad
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov qword [r12], rax
jmp 0x140003b85
mov rdx, rsi
mov rcx, r12
call fcn.1400045e4
xor r10d, r10d
mov edi, eax
test eax, eax
jns 0x140003bd8
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
jmp 0x140004082
movzx eax, r15w
cmp eax, 8
je 0x140003d8a
cmp eax, 0x11
je 0x140003c2a
cmp eax, 0x13
jne 0x140004039
lea r9, [rbp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [rbp + 0x20]
mov r9d, 4
mov dword [rbp], eax
mov rdx, r13
lea rax, [rbp]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
jmp 0x140003d75
or r15, 0xffffffffffffffff
inc r15
cmp word [rsi + r15*2], r10w
jne 0x140003c2e
test r15b, 1
jne 0x140003cb2
mov eax, r15d
cdq
sub eax, edx
sar eax, 1
movsxd r13, eax
cmp r13, 0x400
ja 0x140003c87
mov rcx, r13
call fcn.140004270
xor r10d, r10d
test al, al
je 0x140003c87
lea rax, [r13 + 0xf]
cmp rax, r13
ja 0x140003c74
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14000e5b0
sub rsp, rax
lea r12, [rsp + 0x30]
jmp 0x140003cad
lea rcx, [r13 + 0x10]
cmp rcx, r13
jae 0x140003c95
mov r12, r10
jmp 0x140003cad
call qword [sym.imp.msvcrt.dll_malloc]
xor r10d, r10d
test rax, rax
je 0x140003c90
mov qword [rax], r10
lea r12, [rax + 0x10]
mov rbx, rax
test r12, r12
jne 0x140003cce
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov edi, 0x80004005
jmp 0x14000407d
mov r8, r13
xor edx, edx
mov rcx, r12
call sub.msvcrt.dll_memset
xor eax, eax
movsxd r11, r15d
mov r9d, eax
mov r10d, eax
test r15d, r15d
jle 0x140003d61
xor r14d, r14d
movzx r8d, word [rsi + r10*2]
mov eax, r8d
cmp r8d, 0x30
jl 0x140003d25
cmp eax, 0x39
jle 0x140003d1f
cmp eax, 0x40
jle 0x140003d25
cmp eax, 0x46
jle 0x140003d19
add eax, 0xffffff9f
cmp eax, 5
ja 0x140003d25
sub r8b, 0x57
jmp 0x140003d28
sub r8b, 0x37
jmp 0x140003d28
sub r8b, 0x30
jmp 0x140003d28
mov r8b, r14b
mov eax, r9d
test r9d, r9d
jns 0x140003d34
lea eax, [r9 + 1]
sar eax, 1
mov ecx, r9d
and ecx, 1
movsxd rdx, eax
shl ecx, 2
mov eax, 4
sub eax, ecx
inc r9d
mov cl, al
inc r10
shl r8b, cl
or byte [rdx + r12], r8b
cmp r10, r11
jl 0x140003cee
mov r14, qword [rbp + 8]
mov rdx, qword [rbp + 0x30]
mov r9d, 3
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp + 0x10]
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
jmp 0x140004039
or r15, 0xffffffffffffffff
mov rcx, rsi
mov r13, r10
cmp byte [rbp + 0xa0], r10b
je 0x140003ff6
mov rax, r15
inc rax
cmp word [rsi + rax*2], r10w
jne 0x140003da4
cmp eax, 0xffe
jle 0x140003dce
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov edi, 0x80004005
jmp 0x140004082
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rbp + 8], rax
mov r13, rax
test rax, rax
jne 0x140003e01
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov edi, 0x8007000e
jmp 0x140004082
mov rdi, qword [r12 + 8]
lea rax, [rdi + 0x10]
mov rcx, rax
mov qword [rbp + 0x18], rax
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
xor eax, eax
mov r12d, eax
cmp dword [rdi + 8], eax
jle 0x140003e5d
mov ecx, eax
mov qword [rbp], rax
mov rax, qword [rdi]
lea rdx, str.Module
mov rcx, qword [rcx + rax]
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
test eax, eax
je 0x140003fae
mov rcx, qword [rbp]
inc r12d
add rcx, 8
mov qword [rbp], rcx
cmp r12d, dword [rdi + 8]
jl 0x140003e27
xor eax, eax
mov r12, rax
mov rcx, qword [rbp + 0x18]
mov qword [rbp], r12
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
xor r10d, r10d
test r12, r12
je 0x140003ff3
mov rdi, rsi
cmp word [r12], r10w
je 0x140003f00
cmp word [rsi], r10w
je 0x140003efd
mov r12, rdi
mov r13, qword [rbp]
cmp word [rdi], r10w
je 0x140003ee1
cmp word [r13], r10w
je 0x140003f00
movzx ecx, word [r13]
movzx eax, word [r12]
cmp eax, ecx
jne 0x140003ee1
mov rcx, r12
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov rcx, r13
mov qword [rbp + 0x18], rax
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov rdx, qword [rbp + 0x18]
sub rax, r13
mov rcx, rdx
sub rcx, r12
xor rax, rcx
test rax, 0xfffffffffffffffe
je 0x140003fd7
xor r10d, r10d
cmp word [r13], r10w
je 0x140003f00
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
xor r10d, r10d
mov rdi, rax
cmp word [rax], r10w
jne 0x140003e8a
mov rdi, r10
test rdi, rdi
je 0x140003fef
cmp rdi, qword [rbp + 0x28]
je 0x140003f28
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharPrevW]
xor r10d, r10d
cmp word [rax], 0x22
je 0x140003fef
mov r13, qword [rbp + 8]
mov r8, rdi
sub r8, rsi
mov rdx, rsi
sar r8, 1
mov rcx, r13
mov word [r13], r10w
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcpynW]
lea r8, [0x140011190]
mov edx, 0x1000
mov rcx, r13
call qword [sym.imp.msvcrt.dll_wcscat_s]
mov r12, qword [rbp]
mov edx, 0x1000
mov r8, r12
mov rcx, r13
call qword [sym.imp.msvcrt.dll_wcscat_s]
lea r8, [0x140011190]
mov edx, 0x1000
mov rcx, r13
call qword [sym.imp.msvcrt.dll_wcscat_s]
mov rax, r15
xor ecx, ecx
inc rax
cmp word [r12 + rax*2], cx
jne 0x140003f8a
lea r8, [rdi + rax*2]
mov edx, 0x1000
mov rcx, r13
call qword [sym.imp.msvcrt.dll_wcscat_s]
mov rcx, r13
xor r10d, r10d
jmp 0x140003ff6
mov rax, qword [rdi]
movsxd rcx, r12d
mov rcx, qword [rax + rcx*8]
mov r12, qword [rcx + 8]
jmp 0x140003e60
add r12, 2
add r13, 2
movzx ecx, word [r13]
movzx eax, word [r12]
cmp eax, ecx
je 0x140003fdc
cmp r12, rdx
jb 0x140003fc1
xor r10d, r10d
cmp word [r12], r10w
jne 0x140003e97
jmp 0x140003ee1
mov r13, qword [rbp + 8]
mov rcx, rsi
inc r15
cmp word [rcx + r15*2], r10w
jne 0x140003ff6
mov rdx, qword [rbp + 0x30]
lea eax, [r15*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rbp + 0x10]
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test r13, r13
je 0x140004039
mov rcx, r13
call qword [sym.imp.msvcrt.dll_free]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x38]
call fcn.1400045e4
xor r13d, r13d
mov edi, eax
mov rcx, rsi
test eax, eax
jns 0x14000405d
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
jmp 0x140004077
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov edi, r13d
jmp 0x14000407d
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x140004071
mov eax, edi
mov rcx, qword [rbp + 0x40]
xor rcx, rbp
call fcn.14000d6c0
mov rbx, qword [rbp + 0x80]
mov rsi, qword [rbp + 0x88]
mov rdi, qword [rbp + 0x90]
lea rsp, [rbp + 0x50]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret