Function at 0x140009378
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x11a8
call fcn.140011c50
sub rsp, rax
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1400227c0]
xor rax, rbp
mov qword [rbp + 0x1160], rax
mov r13, r8
mov r12, rdx
mov r15, rcx
mov qword [rbp + 0x18], rcx
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x10], r8
mov qword [rbp + 0x28], r9
xor edi, edi
mov word [rbp], di
lea rdx, [rbp + 0x160]
call fcn.14000cde4
test eax, eax
js 0x140009889
lea rdx, [rbp]
lea rcx, [rbp + 0x160]
call fcn.1400103b4
test eax, eax
jne 0x140009401
mov eax, 0x80020009
jmp 0x140009889
mov rcx, qword [r15]
cmp byte [rcx], 0x20
ja 0x140009428
movsx rax, byte [rcx]
movabs rdx, 0x100002600
bt rdx, rax
jae 0x140009428
call qword [sym.imp.USER32.dll_CharNextA]
mov qword [r15], rax
jmp 0x140009401
lea rdx, [rbp + 0x160]
mov rcx, r15
call fcn.14000cde4
test eax, eax
js 0x140009889
movzx eax, word [rbp]
cmp eax, 8
je 0x140009833
cmp eax, 0x11
je 0x1400096d0
cmp eax, 0x13
je 0x140009574
cmp eax, 0x4008
jne 0x140009876
lea rcx, [rbp + 0x160]
call sub.MSVCR110.dll_strlen
add eax, 2
mov qword [rbp + 0x50], rdi
movsxd rcx, eax
test eax, eax
je 0x1400094b7
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jb 0x1400094ad
cmp rcx, 0x100
jbe 0x1400094b7
mov rdx, rcx
lea rcx, [rbp + 0x50]
call fcn.140009aa8
mov rbx, qword [rbp + 0x50]
jmp 0x1400094bf
mov ecx, 0x80070216
call fcn.140001008
lea rbx, [rbp + 0x58]
mov qword [rbp + 0x50], rbx
jmp 0x1400094d3
test rbx, rbx
je 0x140009554
lea rsi, [rbp + 0x160]
cmp byte [rbp + 0x160], dil
je 0x140009538
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [rsi]
cmp cl, 0x5c
jne 0x140009511
cmp byte [rax], 0x30
jne 0x140009511
mov byte [rbx], dil
inc rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rsi, rax
jmp 0x140009533
mov byte [rbx], cl
mov cl, byte [rsi]
call qword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x14000952d
inc rbx
inc rsi
mov al, byte [rsi]
test al, al
je 0x140009538
mov byte [rbx], al
inc rbx
inc rsi
cmp byte [rsi], dil
jne 0x1400094e8
mov word [rbx], 0
mov r8, qword [rbp + 0x50]
mov rdx, r13
mov rcx, r12
call fcn.14000f3e4
mov esi, eax
mov rbx, qword [rbp + 0x50]
jmp 0x140009559
mov esi, SafeArrayDestroy
lea rax, [rbp + 0x58]
cmp rbx, rax
je 0x140009869
lea rcx, [rbp + 0x50]
call fcn.14000b944
jmp 0x140009869
mov rbx, rdi
mov qword [rbp + 0x10], rbx
lea rcx, [rbp + 0x160]
call sub.MSVCR110.dll_strlen
inc eax
movsxd r14, eax
add r14, r14
mov eax, 0x80000000
add rax, r14
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x14000964a
cmp r14d, 0x400
jg 0x1400095e3
movsxd rsi, r14d
mov rcx, rsi
call fcn.140010568
test al, al
je 0x1400095e3
lea rax, [rsi + 0xf]
cmp rax, rsi
ja 0x1400095d0
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140011c50
sub rsp, rax
lea r14, [rsp + 0x30]
jmp 0x140009615
movsxd rsi, r14d
or rax, 0xffffffffffffffff
sub rax, rsi
cmp rax, 0x10
jb 0x1400096c5
lea rcx, [rsi + 0x10]
call qword [sym.imp.MSVCR110.dll_malloc]
test rax, rax
jne 0x14000960b
mov r14, rdi
jmp 0x140009615
mov qword [rax], rdi
mov rbx, rax
lea r14, [rax + 0x10]
shr rsi, 1
test r14, r14
je 0x14000964a
mov word [r14], di
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r14
or r9d, 0xffffffff
lea r8, [rbp + 0x160]
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb rcx, rcx
and rcx, r14
jmp 0x14000964d
mov rcx, rdi
test rcx, rcx
jne 0x14000966f
jmp 0x140009660
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.MSVCR110.dll_free]
test rbx, rbx
jne 0x140009654
mov eax, 0x8007000e
jmp 0x140009889
lea r9, [rbp]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [rbp]
mov dword [rbp + 8], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x1400096bb
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.MSVCR110.dll_free]
test rbx, rbx
jne 0x1400096af
jmp 0x140009869
mov ecx, 0x80070216
call fcn.140001008
nop
lea rcx, [rbp + 0x160]
call sub.MSVCR110.dll_strlen
mov rbx, rax
mov dword [rbp + 8], eax
test al, 1
je 0x1400096f0
mov eax, 0x80004005
jmp 0x140009889
cdq
sub eax, edx
sar eax, 1
movsxd rsi, eax
mov dword [rbp], esi
mov qword [rbp + 0x50], rdi
mov rcx, rsi
test eax, eax
je 0x14000973a
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jb 0x140009730
cmp rcx, 0x100
jbe 0x14000973a
mov rdx, rcx
lea rcx, [rbp + 0x50]
call fcn.140009b00
mov rcx, qword [rbp + 0x50]
jmp 0x140009742
mov ecx, 0x80070216
call fcn.140001008
lea rcx, [rbp + 0x58]
mov qword [rbp + 0x50], rcx
jmp 0x14000975c
test rcx, rcx
jne 0x14000977c
lea rax, [rbp + 0x58]
test rax, rax
je 0x1400096e6
lea rcx, [rbp + 0x50]
call fcn.14000b95c
jmp 0x1400096e6
movsxd r8, esi
xor edx, edx
call sub.MSVCR110.dll_memset
mov r8d, edi
mov r9, rdi
movsxd r11, ebx
test ebx, ebx
jle 0x1400097f9
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
movsxd r10, eax
add r10, qword [rbp + 0x50]
mov dl, byte [rbp + r9 + 0x160]
cmp dl, 0x30
jl 0x1400097d4
cmp dl, 0x39
jle 0x1400097cf
cmp dl, 0x40
jle 0x1400097d4
cmp dl, 0x46
jle 0x1400097ca
lea eax, [rdx - 0x61]
cmp al, 5
ja 0x1400097d4
sub dl, 0x57
jmp 0x1400097d7
sub dl, 0x37
jmp 0x1400097d7
sub dl, 0x30
jmp 0x1400097d7
mov dl, dil
mov ecx, r8d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl dl, cl
or byte [r10], dl
inc r8d
inc r9
cmp r9, r11
jl 0x140009793
mov dword [rsp + 0x28], esi
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea rax, [rbp + 0x58]
cmp qword [rbp + 0x50], rax
je 0x140009869
lea rcx, [rbp + 0x50]
call fcn.14000b95c
jmp 0x140009869
lea rcx, [rbp + 0x160]
call sub.MSVCR110.dll_strlen
inc eax
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x160]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x140009876
mov ecx, esi
call fcn.14000a08c
jmp 0x140009889
mov rdx, qword [rbp + 0x28]
mov rcx, r15
call fcn.14000cde4
test eax, eax
cmovs edi, eax
mov eax, edi
mov rcx, qword [rbp + 0x1160]
xor rcx, rbp
call fcn.140011780
lea rsp, [rbp + 0x1178]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret