Function at 0x180001660
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1b8], rbx
mov rax, qword [0x1801878e0]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rbx, r8
mov rsi, rdx
mov qword [rsp + 0x60], rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x80], rdx
lea rdx, [rbp - 0x10]
mov rcx, r8
call fcn.180003400
nop
lea rcx, [rbp + 0x30]
call fcn.1800047d0
nop
lea rdx, [rbp + 0x10]
mov rcx, rbx
call fcn.180003400
nop
mov r8, rax
mov rdx, rsi
lea rcx, [rbp + 0x30]
call fcn.180004fc0
test al, al
sete bl
mov rax, qword [rbp + 0x28]
cmp rax, 0x10
jb 0x180001741
inc rax
mov rcx, qword [rbp + 0x10]
cmp rax, 0x1000
jb 0x18000173c
test cl, 0x1f
je 0x18000170f
call fcn.18008185c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18000171e
call fcn.18008185c
int3
sub rcx, rax
cmp rcx, 8
jae 0x18000172d
call fcn.18008185c
int3
cmp rcx, 0x27
jbe 0x180001739
call fcn.18008185c
int3
mov rcx, rax
call fcn.18005e5ac
test bl, bl
je 0x180001cf6
cmp qword [rsi + 0x18], 0x10
jb 0x180001755
mov rdx, qword [rsi]
jmp 0x180001758
mov rdx, rsi
mov r8d, dword [rsi + 0x10]
lea rcx, [rsp + 0x30]
call fcn.180010920
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdx, qword [rbp - 0x10]
mov r8d, dword [rbp]
lea rcx, [rsp + 0x30]
call fcn.180010920
mov r8, rdi
lea rdx, str.SoftwarexiaoyuReportoffline_
lea rcx, [rbp + 0x10]
call fcn.180002e50
nop
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
cmovae rdx, qword [rbp + 0x10]
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov byte [rsp + 0x38], al
cmp byte [rdx], al
jne 0x1800017df
mov r8d, ebx
jmp 0x1800017ec
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], al
jne 0x1800017e3
lea rcx, [rsp + 0x38]
call fcn.1800023a0
nop
mov qword [rbp - 0x48], 0xffffffff80000001
mov qword [rbp - 0x28], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x30], rbx
mov byte [rbp - 0x40], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x40]
call fcn.1800024d0
mov qword [rbp - 0x20], 0
mov byte [rbp - 0x18], 0
mov dword [rbp - 0x14], 0
mov rax, qword [rsp + 0x50]
cmp rax, 0x10
jb 0x18000188f
inc rax
mov rcx, qword [rsp + 0x38]
cmp rax, 0x1000
jb 0x18000188a
test cl, 0x1f
je 0x18000185d
call fcn.18008185c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18000186c
call fcn.18008185c
int3
sub rcx, rax
cmp rcx, 8
jae 0x18000187b
call fcn.18008185c
int3
cmp rcx, 0x27
jbe 0x180001887
call fcn.18008185c
int3
mov rcx, rax
call fcn.18005e5ac
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
xor r15d, r15d
mov qword [rbp - 0x68], r15
movdqu xmmword [rbp - 0x60], xmm0
xor r13d, r13d
mov qword [rbp - 0x50], r13
xor ecx, ecx
mov dword [rsp + 0x34], ecx
mov rbx, qword [rbp - 0x70]
mov r12, qword [rbp - 0x78]
cmp qword [rbp], rcx
jbe 0x180001a0c
xor r14d, r14d
cmp qword [rbp], r14
jbe 0x1800019ff
lea rdi, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdi, qword [rbp - 0x10]
add rdi, r14
cmp rdi, rbx
jae 0x18000195d
cmp r12, rdi
ja 0x18000195d
sub rdi, r12
cmp rbx, r15
jne 0x180001951
mov rax, r15
sub rax, rbx
cmp rax, 1
jae 0x180001951
sub rbx, r12
mov rax, rbx
not rax
cmp rax, 1
jb 0x1800019e5
lea rdx, [rbx + 1]
sub r15, r12
mov rax, r15
shr rax, 1
mov rcx, rax
not rcx
add rax, r15
xor r8d, r8d
cmp rcx, r15
cmovae r8, rax
cmp r8, rdx
cmovae rdx, r8
lea rcx, [rbp - 0x78]
call fcn.180002900
mov r15, qword [rbp - 0x68]
mov rbx, qword [rbp - 0x70]
mov r12, qword [rbp - 0x78]
mov ecx, dword [rsp + 0x34]
test rbx, rbx
je 0x1800019c7
movzx eax, byte [r12 + rdi]
jmp 0x1800019c5
cmp rbx, r15
jne 0x1800019bd
mov rax, r15
sub rax, rbx
cmp rax, 1
jae 0x1800019bd
sub rbx, r12
mov rax, rbx
not rax
cmp rax, 1
jb 0x1800019f2
lea rdx, [rbx + 1]
sub r15, r12
mov rax, r15
shr rax, 1
mov rcx, rax
not rcx
add rax, r15
xor r8d, r8d
cmp rcx, r15
cmovae r8, rax
cmp r8, rdx
cmovae rdx, r8
lea rcx, [rbp - 0x78]
call fcn.180002900
mov r15, qword [rbp - 0x68]
mov rbx, qword [rbp - 0x70]
mov r12, qword [rbp - 0x78]
mov ecx, dword [rsp + 0x34]
test rbx, rbx
je 0x1800019c7
movzx eax, byte [rdi]
mov byte [rbx], al
inc rbx
mov qword [rbp - 0x70], rbx
inc ecx
mov dword [rsp + 0x34], ecx
inc r14
movsxd rax, ecx
cmp rax, qword [rbp]
jae 0x180001a0c
jmp 0x1800018c5
lea rcx, str.vector_T__too_long
call fcn.18001b220
int3
lea rcx, str.vector_T__too_long
call fcn.18001b220
int3
lea rcx, [0x1800c9e90]
call fcn.18001b244
int3
xor edx, edx
mov dword [rsp + 0x34], edx
mov rdi, qword [rbp - 0x58]
mov r14, qword [rbp - 0x60]
cmp qword [rsi + 0x10], rdx
jbe 0x180001b8b
xor ecx, ecx
mov qword [rsp + 0x58], rcx
nop dword [rax + rax]
cmp qword [rsi + 0x10], rcx
jbe 0x180001b7e
cmp qword [rsi + 0x18], 0x10
jb 0x180001a44
mov rsi, qword [rsi]
add rsi, rcx
cmp rsi, rdi
jae 0x180001ac9
cmp r14, rsi
ja 0x180001ac9
sub rsi, r14
cmp rdi, r13
jne 0x180001abd
mov rax, r13
sub rax, rdi
cmp rax, 1
jae 0x180001abd
sub rdi, r14
mov rax, rdi
not rax
cmp rax, 1
jb 0x180001b64
lea rdx, [rdi + 1]
sub r13, r14
mov rax, r13
shr rax, 1
mov rcx, rax
not rcx
add rax, r13
xor r8d, r8d
cmp rcx, r13
cmovae r8, rax
cmp r8, rdx
cmovae rdx, r8
lea rcx, [rbp - 0x60]
call fcn.180002900
mov r13, qword [rbp - 0x50]
mov rdi, qword [rbp - 0x58]
mov r14, qword [rbp - 0x60]
mov rcx, qword [rsp + 0x58]
mov edx, dword [rsp + 0x34]
test rdi, rdi
je 0x180001b3c
movzx eax, byte [rsi + r14]
jmp 0x180001b3a
cmp rdi, r13
jne 0x180001b32
mov rax, r13
sub rax, rdi
cmp rax, 1
jae 0x180001b32
sub rdi, r14
mov rax, rdi
not rax
cmp rax, 1
jb 0x180001b71
lea rdx, [rdi + 1]
sub r13, r14
mov rax, r13
shr rax, 1
mov rcx, rax
not rcx
add rax, r13
xor r8d, r8d
cmp rcx, r13
cmovae r8, rax
cmp r8, rdx
cmovae rdx, r8
lea rcx, [rbp - 0x60]
call fcn.180002900
mov r13, qword [rbp - 0x50]
mov rdi, qword [rbp - 0x58]
mov r14, qword [rbp - 0x60]
mov rcx, qword [rsp + 0x58]
mov edx, dword [rsp + 0x34]
test rdi, rdi
je 0x180001b3c
movzx eax, byte [rsi]
mov byte [rdi], al
inc rdi
mov qword [rbp - 0x58], rdi
inc edx
mov dword [rsp + 0x34], edx
inc rcx
mov qword [rsp + 0x58], rcx
movsxd rax, edx
mov rsi, qword [rsp + 0x60]
cmp rax, qword [rsi + 0x10]
jae 0x180001b8b
jmp 0x180001a30
lea rcx, str.vector_T__too_long
call fcn.18001b220
int3
lea rcx, str.vector_T__too_long
call fcn.18001b220
int3
lea rcx, [0x1800c9e90]
call fcn.18001b244
int3
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x38], 0
mov r8d, 4
lea rdx, str.code
lea rcx, [rsp + 0x38]
call fcn.1800023a0
lea rcx, [rbp - 0x48]
call fcn.1800141b0
test al, al
je 0x180001bf6
sub rbx, r12
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdx, qword [rsp + 0x38]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r12
mov r9d, 3
xor r8d, r8d
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x180001c14
inc rdx
mov r8d, 1
mov rcx, qword [rsp + 0x38]
call fcn.180001510
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov byte [rsp + 0x38], bl
lea r8d, [rbx + 4]
lea rdx, [0x1800c9e14]
lea rcx, [rsp + 0x38]
call fcn.1800023a0
lea rcx, [rbp - 0x48]
call fcn.1800141b0
test al, al
je 0x180001c78
sub rdi, r14
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdx, qword [rsp + 0x38]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r14
lea r9d, [rbx + 3]
xor r8d, r8d
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x180001c97
inc rdx
mov r8d, 1
mov rcx, qword [rsp + 0x38]
call fcn.180001510
nop
test r14, r14
je 0x180001cb1
sub r13, r14
mov r8d, 1
mov rdx, r13
mov rcx, r14
call fcn.180001510
nop
test r12, r12
je 0x180001ccb
sub r15, r12
mov r8d, 1
mov rdx, r15
mov rcx, r12
call fcn.180001510
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x180001cde
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x20], rbx
lea rcx, [rbp - 0x40]
call fcn.180002120
nop
lea rcx, [rbp + 0x10]
call fcn.180002120
mov rdi, qword [rsp + 0x68]
lea rcx, [rbp + 0x30]
call fcn.180002120
nop
lea rcx, [rbp - 0x10]
call fcn.180002120
nop
mov rcx, rdi
call fcn.180002120
nop
mov rcx, rsi
call fcn.180002120
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.18005ef00
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret