Function at 0x140003924
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 [0x1400153a0]
xor rax, rbp
mov qword [rbp + 0x40], rax
mov r12, rcx
mov qword [rbp + 0x38], rcx
xor r15d, r15d
mov qword [rbp + 0x30], r9
mov ecx, 0x2000
mov qword [rbp + 0x28], r8
mov ebx, r15d
mov qword [rbp + 0x18], rdx
mov r13, r8
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rbp + 8], rax
mov r14, rax
test rax, rax
je 0x140003cdf
mov rdx, rax
mov rcx, r12
call fcn.1400044b0
mov edi, eax
test eax, eax
js 0x140003ab2
mov eax, dword [0x140015c70]
lea ecx, [r15 + 0x13]
lea edx, [rcx - 2]
lea r8d, [r15 + 8]
test al, 1
jne 0x140003a07
or eax, 1
mov word [0x140015c48], r8w
mov dword [0x140015c70], eax
lea rax, [0x14000ff3c]
mov qword [0x140015c40], rax
lea rax, [0x14000ff40]
mov qword [0x140015c50], rax
lea rax, [0x14000ff44]
mov qword [0x140015c60], rax
mov word [0x140015c58], cx
mov word [0x140015c68], dx
mov edi, r15d
lea rsi, [0x140015c40]
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 0x140003a43
inc edi
add rsi, 0x10
movsxd rax, edi
cmp rax, 3
jb 0x140003a11
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov edi, 0x80020009
jmp 0x140003f6a
lea rcx, [0x140015c40]
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 0x140003cd6
mov rcx, qword [r12]
movzx eax, word [rcx]
cmp eax, 0x20
ja 0x140003a95
movabs rdx, 0x100002600
bt rdx, rax
jae 0x140003a95
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov qword [r12], rax
jmp 0x140003a6d
mov rdx, rsi
mov rcx, r12
call fcn.1400044b0
xor r10d, r10d
mov edi, eax
test eax, eax
jns 0x140003ac0
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
jmp 0x140003f6a
movzx eax, r15w
cmp eax, 8
je 0x140003c72
cmp eax, 0x11
je 0x140003b12
cmp eax, 0x13
jne 0x140003f21
lea r9, [rbp + 0x10]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [rbp + 0x10]
mov r9d, 4
mov dword [rbp], eax
mov rdx, r13
lea rax, [rbp]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
jmp 0x140003c5d
or r15, 0xffffffffffffffff
inc r15
cmp word [rsi + r15*2], r10w
jne 0x140003b16
test r15b, 1
jne 0x140003b9a
mov eax, r15d
cdq
sub eax, edx
sar eax, 1
movsxd r13, eax
cmp r13, 0x400
ja 0x140003b6f
mov rcx, r13
call fcn.140004150
xor r10d, r10d
test al, al
je 0x140003b6f
lea rax, [r13 + 0xf]
cmp rax, r13
ja 0x140003b5c
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14000dde0
sub rsp, rax
lea r12, [rsp + 0x30]
jmp 0x140003b95
lea rcx, [r13 + 0x10]
cmp rcx, r13
jae 0x140003b7d
mov r12, r10
jmp 0x140003b95
call qword [sym.imp.msvcrt.dll_malloc]
xor r10d, r10d
test rax, rax
je 0x140003b78
mov qword [rax], r10
lea r12, [rax + 0x10]
mov rbx, rax
test r12, r12
jne 0x140003bb6
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov edi, 0x80004005
jmp 0x140003f65
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 0x140003c49
xor r14d, r14d
movzx r8d, word [rsi + r10*2]
mov eax, r8d
cmp r8d, 0x30
jl 0x140003c0d
cmp eax, 0x39
jle 0x140003c07
cmp eax, 0x40
jle 0x140003c0d
cmp eax, 0x46
jle 0x140003c01
add eax, 0xffffff9f
cmp eax, 5
ja 0x140003c0d
sub r8b, 0x57
jmp 0x140003c10
sub r8b, 0x37
jmp 0x140003c10
sub r8b, 0x30
jmp 0x140003c10
mov r8b, r14b
mov eax, r9d
test r9d, r9d
jns 0x140003c1c
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 0x140003bd6
mov r14, qword [rbp + 8]
mov rdx, qword [rbp + 0x28]
mov r9d, 3
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp + 0x18]
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
jmp 0x140003f21
or r15, 0xffffffffffffffff
mov rcx, rsi
mov r13, r10
cmp byte [rbp + 0xa0], r10b
je 0x140003ede
mov rax, r15
inc rax
cmp word [rsi + rax*2], r10w
jne 0x140003c8c
cmp eax, 0xffe
jle 0x140003cb6
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov edi, 0x80004005
jmp 0x140003f6a
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rbp + 8], rax
mov r13, rax
test rax, rax
jne 0x140003ce9
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov edi, 0x8007000e
jmp 0x140003f6a
mov rdi, qword [r12 + 8]
lea rax, [rdi + 0x10]
mov rcx, rax
mov qword [rbp + 0x20], 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 0x140003d45
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 0x140003e96
mov rcx, qword [rbp]
inc r12d
add rcx, 8
mov qword [rbp], rcx
cmp r12d, dword [rdi + 8]
jl 0x140003d0f
xor eax, eax
mov r12, rax
mov rcx, qword [rbp + 0x20]
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 0x140003edb
mov rdi, rsi
cmp word [r12], r10w
je 0x140003de8
cmp word [rsi], r10w
je 0x140003de5
mov r12, rdi
mov r13, qword [rbp]
cmp word [rdi], r10w
je 0x140003dc9
cmp word [r13], r10w
je 0x140003de8
movzx ecx, word [r13]
movzx eax, word [r12]
cmp eax, ecx
jne 0x140003dc9
mov rcx, r12
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov rcx, r13
mov qword [rbp + 0x20], rax
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov rdx, qword [rbp + 0x20]
sub rax, r13
mov rcx, rdx
sub rcx, r12
xor rax, rcx
test rax, 0xfffffffffffffffe
je 0x140003ebf
xor r10d, r10d
cmp word [r13], r10w
je 0x140003de8
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 0x140003d72
mov rdi, r10
test rdi, rdi
je 0x140003ed7
cmp rdi, qword [rbp + 0x30]
je 0x140003e10
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 0x140003ed7
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, [0x140010268]
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, [0x140010268]
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 0x140003e72
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 0x140003ede
mov rax, qword [rdi]
movsxd rcx, r12d
mov rcx, qword [rax + rcx*8]
mov r12, qword [rcx + 8]
jmp 0x140003d48
add r12, 2
add r13, 2
movzx ecx, word [r13]
movzx eax, word [r12]
cmp eax, ecx
je 0x140003ec4
cmp r12, rdx
jb 0x140003ea9
xor r10d, r10d
cmp word [r12], r10w
jne 0x140003d7f
jmp 0x140003dc9
mov r13, qword [rbp + 8]
mov rcx, rsi
inc r15
cmp word [rcx + r15*2], r10w
jne 0x140003ede
mov rdx, qword [rbp + 0x28]
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 + 0x18]
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test r13, r13
je 0x140003f21
mov rcx, r13
call qword [sym.imp.msvcrt.dll_free]
mov rdx, qword [rbp + 0x30]
mov rcx, qword [rbp + 0x38]
call fcn.1400044b0
xor r13d, r13d
mov edi, eax
mov rcx, rsi
test eax, eax
jns 0x140003f45
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
jmp 0x140003f5f
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov edi, r13d
jmp 0x140003f65
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x140003f59
mov eax, edi
mov rcx, qword [rbp + 0x40]
xor rcx, rbp
call fcn.14000cf30
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