Function at 0x1400033d8
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x2188
call fcn.14002e920
sub rsp, rax
mov rax, qword [0x1400513c8]
xor rax, rsp
mov qword [rsp + 0x2170], rax
mov r12, r8
mov r15, rdx
mov r14, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x58], r9
xor ebx, ebx
mov word [rsp + 0x30], bx
lea rdx, [rsp + 0x170]
call fcn.1400048d0
test eax, eax
js 0x1400037eb
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x170]
call fcn.1400072b4
test eax, eax
jne 0x14000345a
mov eax, 0x80020009
jmp 0x1400037eb
mov rcx, qword [r14]
cmp word [rcx], 9
jb 0x140003480
cmp word [rcx], 0xa
jbe 0x140003475
cmp word [rcx], 0xd
je 0x140003475
cmp word [rcx], 0x20
jne 0x140003480
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
jmp 0x14000345a
lea rdx, [rsp + 0x170]
mov rcx, r14
call fcn.1400048d0
test eax, eax
js 0x1400037eb
movzx eax, word [rsp + 0x30]
cmp eax, 8
je 0x14000378d
cmp eax, 0x11
je 0x140003615
cmp eax, 0x13
je 0x1400035b9
cmp eax, 0x4008
jne 0x1400037d7
lea rcx, [rsp + 0x170]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add eax, 2
mov qword [rsp + 0x60], rbx
movsxd rcx, eax
test eax, eax
je 0x14000350c
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000380c
lea rdx, [rcx + rcx]
cmp rdx, 0x100
jbe 0x14000350c
lea rcx, [rsp + 0x60]
call fcn.140003850
jmp 0x140003516
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x140003529
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x140003595
lea rsi, [rsp + 0x170]
cmp word [rsp + 0x170], bx
je 0x14000357e
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [rsi]
cmp cx, 0x5c
jne 0x14000356e
cmp word [rax], 0x30
jne 0x14000356e
mov word [rdi], bx
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
mov rsi, rax
jmp 0x140003575
mov word [rdi], cx
add rsi, 2
add rdi, 2
cmp word [rsi], bx
jne 0x140003545
and dword [rdi], 0
mov r8, qword [rsp + 0x60]
mov rdx, r12
mov rcx, r15
call fcn.140006640
mov edi, eax
jmp 0x14000359a
mov edi, InitCommonControls
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x1400037ca
lea rcx, [rsp + 0x60]
call fcn.1400043e4
jmp 0x1400037ca
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x170]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
jns 0x1400035df
jmp 0x1400037eb
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x1400037ca
lea rcx, [rsp + 0x170]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov rdi, rax
mov dword [rsp + 0x38], eax
test al, 1
jne 0x1400036bf
cdq
sub eax, edx
sar eax, 1
movsxd rsi, eax
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x60], rbx
mov rcx, rsi
test eax, eax
jne 0x14000364f
mov rcx, rbx
jmp 0x140003662
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jb 0x140003817
cmp rcx, 0x100
jbe 0x14000367a
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.140003824
jmp 0x140003684
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x14000369f
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jne 0x1400036c9
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x1400036bf
lea rcx, [rsp + 0x60]
call fcn.1400043d8
mov eax, 0x80004005
jmp 0x1400037eb
movsxd r8, esi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r9d, ebx
movsxd r11, edi
test edi, edi
jle 0x140003750
mov r8, rbx
mov eax, r9d
cdq
sub eax, edx
sar eax, 1
movsxd r10, eax
add r10, qword [rsp + 0x60]
movzx edx, word [rsp + r8*2 + 0x170]
cmp dx, 0x30
jb 0x14000372c
cmp dx, 0x39
jbe 0x140003727
cmp dx, 0x40
jbe 0x14000372c
cmp dx, 0x46
jbe 0x140003722
cmp dx, 0x60
jbe 0x14000372c
cmp dx, 0x66
ja 0x14000372c
sub dl, 0x57
jmp 0x14000372e
sub dl, 0x37
jmp 0x14000372e
sub dl, 0x30
jmp 0x14000372e
mov dl, bl
mov ecx, r9d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl dl, cl
or byte [r10], dl
inc r9d
inc r8
cmp r8, r11
jl 0x1400036e0
mov dword [rsp + 0x28], esi
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x1400037ca
lea rcx, [rsp + 0x60]
call fcn.1400043d8
jmp 0x1400037ca
lea rcx, [rsp + 0x170]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x170]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x1400037d7
mov ecx, edi
call fcn.140003a14
jmp 0x1400037eb
mov rdx, qword [rsp + 0x58]
mov rcx, r14
call fcn.1400048d0
test eax, eax
cmovs ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x2170]
xor rcx, rsp
call fcn.14002e470
add rsp, 0x2188
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140002088
nop
mov ecx, 0x80070216
call fcn.140002088
int3