Function at 0x140014040
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.140019e10
sub rsp, rax
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14002a520]
xor rax, rbp
mov qword [rbp + 0x1160], rax
mov rsi, r8
mov qword [rbp + 0x10], r8
mov r13, rdx
mov qword [rbp + 0x30], rdx
mov r14, rcx
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x18], r8
mov qword [rbp + 0x38], r9
xor r15d, r15d
mov word [rbp], r15w
lea rdx, [rbp + 0x160]
call fcn.1400160f0
test eax, eax
js 0x1400145a5
lea rdx, [rbp]
lea rcx, [rbp + 0x160]
call fcn.140019380
test eax, eax
jne 0x1400140d3
mov eax, 0x80020009
jmp 0x1400145a5
movabs rbx, 0x100002600
nop dword [rax]
mov rcx, qword [r14]
movzx eax, byte [rcx]
cmp al, 0x20
ja 0x1400140fb
bt rbx, rax
jae 0x1400140fb
call qword [sym.imp.USER32.dll_CharNextA]
mov qword [r14], rax
jmp 0x1400140e0
lea rdx, [rbp + 0x160]
mov rcx, r14
call fcn.1400160f0
test eax, eax
js 0x1400145a5
movzx eax, word [rbp]
cmp eax, 8
je 0x14001453d
cmp eax, 0x11
je 0x1400143df
cmp eax, 0x13
je 0x14001425c
cmp eax, 0x4008
jne 0x140014590
lea rcx, [rbp + 0x160]
or rdi, 0xffffffffffffffff
mov rax, rdi
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], r15b
jne 0x140014150
add eax, 2
mov qword [rbp + 0x50], r15
movsxd rcx, eax
test eax, eax
je 0x140014196
xor edx, edx
mov rax, rdi
div rcx
cmp rax, 1
jae 0x14001417f
mov ecx, 0x80070216
call fcn.140004920
cmp rcx, 0x100
jbe 0x140014196
mov rdx, rcx
lea rcx, [rbp + 0x50]
call fcn.1400040c0
jmp 0x14001419e
lea rax, [rbp + 0x58]
mov qword [rbp + 0x50], rax
jmp 0x1400141af
mov rbx, qword [rbp + 0x50]
test rbx, rbx
je 0x14001423b
lea rdi, [rbp + 0x160]
cmp byte [rbp + 0x160], 0
je 0x140014223
nop dword [rax]
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextA]
movzx ecx, byte [rdi]
cmp cl, 0x5c
jne 0x1400141fa
cmp byte [rax], 0x30
jne 0x1400141fa
mov byte [rbx], 0
inc rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rdi, rax
jmp 0x14001421e
mov byte [rbx], cl
movzx ecx, byte [rdi]
call qword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x140014218
inc rbx
inc rdi
movzx eax, byte [rdi]
test al, al
je 0x140014223
mov byte [rbx], al
inc rbx
inc rdi
cmp byte [rdi], 0
jne 0x1400141d0
mov word [rbx], 0
mov r8, qword [rbp + 0x50]
mov rdx, rsi
mov rcx, r13
call fcn.14000bcf0
mov edi, eax
jmp 0x140014240
mov edi, recv
lea rax, [rbp + 0x58]
cmp qword [rbp + 0x50], rax
je 0x140014583
lea rcx, [rbp + 0x50]
call fcn.140015710
jmp 0x140014583
mov rbx, r15
mov qword [rbp + 8], rbx
lea rcx, [rbp + 0x160]
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x140014271
inc eax
movsxd r12, eax
add r12, r12
mov eax, 0x80000000
add rax, r12
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x1400143b5
cmp r12d, 0x400
jg 0x1400142d6
movsxd rsi, r12d
mov rcx, rsi
call fcn.14000daf0
test al, al
je 0x1400142d6
lea rax, [rsi + 0xf]
cmp rax, rsi
ja 0x1400142c3
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140019e10
sub rsp, rax
lea rcx, [rsp + 0x30]
jmp 0x140014308
movsxd rsi, r12d
sub rdi, rsi
cmp rdi, 0x10
jb 0x1400143aa
lea rcx, [rsi + 0x10]
call qword [sym.imp.MSVCR120.dll_malloc]
test rax, rax
jne 0x1400142fa
mov rcx, r15
jmp 0x140014308
mov qword [rax], r15
mov rbx, rax
mov qword [rbp + 8], rax
lea rcx, [rax + 0x10]
shr rsi, 1
mov r9d, 3
mov r8d, esi
lea rdx, [rbp + 0x160]
call fcn.1400045f0
test rax, rax
je 0x1400143b5
lea r9, [rbp]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edi, eax
test eax, eax
jns 0x14001436c
test rbx, rbx
je 0x140014365
nop word [rax + rax]
mov rcx, rbx
mov rbx, qword [rbx]
mov qword [rbp + 8], rbx
call qword [sym.imp.MSVCR120.dll_free]
test rbx, rbx
jne 0x140014350
mov eax, edi
jmp 0x1400145a5
mov r8d, dword [rbp]
mov rdx, qword [rbp + 0x10]
mov rcx, r13
call fcn.14000bcb0
mov edi, eax
test rbx, rbx
je 0x140014583
nop word [rax + rax]
mov rcx, rbx
mov rbx, qword [rbx]
mov qword [rbp + 8], rbx
call qword [sym.imp.MSVCR120.dll_free]
test rbx, rbx
jne 0x140014390
jmp 0x140014583
mov ecx, 0x80070216
call fcn.140004920
nop
test rbx, rbx
je 0x1400143d5
nop word [rax + rax]
mov rcx, rbx
mov rbx, qword [rbx]
mov qword [rbp + 8], rbx
call qword [sym.imp.MSVCR120.dll_free]
test rbx, rbx
jne 0x1400143c0
mov eax, 0x8007000e
jmp 0x1400145a5
lea rax, [rbp + 0x160]
or rdi, 0xffffffffffffffff
mov rbx, rdi
nop dword [rax]
inc rbx
cmp byte [rax + rbx], r15b
jne 0x1400143f0
mov dword [rbp], ebx
test bl, 1
jne 0x140014496
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
movsxd r12, eax
mov dword [rbp + 8], r12d
mov qword [rbp + 0x50], r15
mov rcx, r12
test eax, eax
jne 0x140014423
mov rcx, r15
jmp 0x14001443b
xor edx, edx
mov rax, rdi
div rcx
cmp rax, 1
jae 0x14001443b
mov ecx, 0x80070216
call fcn.140004920
cmp rcx, 0x100
jbe 0x140014452
mov rdx, rcx
lea rcx, [rbp + 0x50]
call fcn.1400040c0
jmp 0x14001445a
lea rax, [rbp + 0x58]
mov qword [rbp + 0x50], rax
jmp 0x14001447a
mov rcx, qword [rbp + 0x50]
test rcx, rcx
jne 0x1400144a0
lea rax, [rbp + 0x58]
cmp qword [rbp + 0x50], rax
je 0x140014496
lea rcx, [rbp + 0x50]
call fcn.140015710
mov eax, 0x80004005
jmp 0x1400145a5
movsxd r8, r12d
xor edx, edx
call sub.MSVCR120.dll_memset
mov edi, r15d
mov rsi, r15
movsxd r13, ebx
test ebx, ebx
jle 0x1400144fe
nop word [rax + rax]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
movsxd rbx, eax
add rbx, qword [rbp + 0x50]
movzx ecx, byte [rbp + rsi + 0x160]
call fcn.1400154e0
movzx edx, al
mov ecx, edi
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
movzx ecx, al
shl dl, cl
or byte [rbx], dl
inc edi
inc rsi
cmp rsi, r13
jl 0x1400144c0
mov dword [rsp + 0x28], r12d
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea rax, [rbp + 0x58]
cmp qword [rbp + 0x50], rax
je 0x140014583
lea rcx, [rbp + 0x50]
call fcn.140015710
jmp 0x140014583
lea rax, [rbp + 0x160]
or rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], r15b
jne 0x140014550
inc edi
mov dword [rsp + 0x28], edi
lea rax, [rbp + 0x160]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x140014590
mov ecx, edi
call fcn.140004720
jmp 0x1400145a5
mov rdx, qword [rbp + 0x38]
mov rcx, r14
call fcn.1400160f0
test eax, eax
cmovs r15d, eax
mov eax, r15d
mov rcx, qword [rbp + 0x1160]
xor rcx, rbp
call fcn.140019e70
lea rsp, [rbp + 0x1178]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret