Function at 0x1400036e8
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 [0x1400143a0]
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 0x140003aaa
mov rdx, rax
mov rcx, r12
call fcn.140004258
mov edi, eax
test eax, eax
js 0x140003877
mov eax, dword [0x140014c70]
lea ecx, [r15 + 0x13]
lea edx, [rcx - 2]
lea r8d, [r15 + 8]
test al, 1
jne 0x1400037cb
or eax, 1
mov word [0x140014c48], r8w
mov dword [0x140014c70], eax
lea rax, [0x14000eedc]
mov qword [0x140014c40], rax
lea rax, [0x14000eee0]
mov qword [0x140014c50], rax
lea rax, [0x14000eee4]
mov qword [0x140014c60], rax
mov word [0x140014c58], cx
mov word [0x140014c68], dx
mov edi, r15d
lea rsi, [0x140014c40]
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 0x140003803
inc edi
add rsi, 0x10
cmp edi, 3
jb 0x1400037d5
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov edi, 0x80020009
jmp 0x140003d35
lea rcx, [0x140014c40]
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 0x140003aa1
mov rcx, qword [r12]
movzx eax, word [rcx]
cmp eax, 9
jb 0x14000385a
cmp eax, 0x20
ja 0x14000385a
movabs rdx, 0x1000027ff
bt rdx, rax
jae 0x14000385a
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov qword [r12], rax
jmp 0x14000382d
mov rdx, rsi
mov rcx, r12
call fcn.140004258
xor r10d, r10d
mov edi, eax
test eax, eax
jns 0x140003885
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
jmp 0x140003d35
movzx eax, r15w
cmp eax, 8
je 0x140003a3d
cmp eax, 0x11
je 0x1400038d7
cmp eax, 0x13
jne 0x140003cec
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 0x140003a28
or r15, 0xffffffffffffffff
inc r15
cmp word [rsi + r15*2], r10w
jne 0x1400038db
test r15b, 1
jne 0x140003965
mov eax, r15d
cdq
sub eax, edx
sar eax, 1
movsxd r13, eax
cmp r13d, 0x400
ja 0x140003937
mov rcx, r13
mov rdi, r13
call fcn.140003f10
xor r10d, r10d
test al, al
je 0x140003937
lea rax, [r13 + 0xf]
cmp rax, r13
ja 0x140003924
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14000d4f0
sub rsp, rax
lea r12, [rsp + 0x30]
jmp 0x140003960
lea rcx, [r13 + 0x10]
mov rdi, r13
cmp rcx, r13
jae 0x140003948
mov r12, r10
jmp 0x140003960
call qword [sym.imp.msvcrt.dll_malloc]
xor r10d, r10d
test rax, rax
je 0x140003943
mov qword [rax], r10
lea r12, [rax + 0x10]
mov rbx, rax
test r12, r12
jne 0x140003981
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov edi, 0x80004005
jmp 0x140003d30
mov r8, rdi
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 0x140003a14
xor r14d, r14d
movzx r8d, word [rsi + r10*2]
mov eax, r8d
cmp r8d, 0x30
jb 0x1400039d8
cmp eax, 0x39
jbe 0x1400039d2
cmp eax, 0x40
jbe 0x1400039d8
cmp eax, 0x46
jbe 0x1400039cc
add eax, 0xffffff9f
cmp eax, 5
ja 0x1400039d8
sub r8b, 0x57
jmp 0x1400039db
sub r8b, 0x37
jmp 0x1400039db
sub r8b, 0x30
jmp 0x1400039db
mov r8b, r14b
mov eax, r9d
test r9d, r9d
jns 0x1400039e7
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 0x1400039a1
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 0x140003cec
or r15, 0xffffffffffffffff
mov rcx, rsi
mov r13, r10
cmp byte [rbp + 0xa0], r10b
je 0x140003ca9
mov rax, r15
inc rax
cmp word [rsi + rax*2], r10w
jne 0x140003a57
cmp eax, 0xffe
jle 0x140003a81
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov edi, 0x80004005
jmp 0x140003d35
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rbp + 8], rax
mov r13, rax
test rax, rax
jne 0x140003ab4
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov edi, 0x8007000e
jmp 0x140003d35
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 0x140003b10
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 0x140003c61
mov rcx, qword [rbp]
inc r12d
add rcx, 8
mov qword [rbp], rcx
cmp r12d, dword [rdi + 8]
jl 0x140003ada
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 0x140003ca6
mov rdi, rsi
cmp word [r12], r10w
je 0x140003bb3
cmp word [rsi], r10w
je 0x140003bb0
mov r12, rdi
mov r13, qword [rbp]
cmp word [rdi], r10w
je 0x140003b94
cmp word [r13], r10w
je 0x140003bb3
movzx ecx, word [r13]
movzx eax, word [r12]
cmp eax, ecx
jne 0x140003b94
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 0x140003c8a
xor r10d, r10d
cmp word [r13], r10w
je 0x140003bb3
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 0x140003b3d
mov rdi, r10
test rdi, rdi
je 0x140003ca2
cmp rdi, qword [rbp + 0x30]
je 0x140003bdb
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 0x140003ca2
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, [0x14000f1f8]
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, [0x14000f1f8]
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 0x140003c3d
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 0x140003ca9
mov rax, qword [rdi]
movsxd rcx, r12d
mov rcx, qword [rax + rcx*8]
mov r12, qword [rcx + 8]
jmp 0x140003b13
add r12, 2
add r13, 2
movzx ecx, word [r13]
movzx eax, word [r12]
cmp eax, ecx
je 0x140003c8f
cmp r12, rdx
jb 0x140003c74
xor r10d, r10d
cmp word [r12], r10w
jne 0x140003b4a
jmp 0x140003b94
mov r13, qword [rbp + 8]
mov rcx, rsi
inc r15
cmp word [rcx + r15*2], r10w
jne 0x140003ca9
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 0x140003cec
mov rcx, r13
call qword [sym.imp.msvcrt.dll_free]
mov rdx, qword [rbp + 0x30]
mov rcx, qword [rbp + 0x38]
call fcn.140004258
xor r13d, r13d
mov edi, eax
mov rcx, rsi
test eax, eax
jns 0x140003d10
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
jmp 0x140003d2a
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov edi, r13d
jmp 0x140003d30
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x140003d24
mov eax, edi
mov rcx, qword [rbp + 0x40]
xor rcx, rbp
call fcn.14000c8f0
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