Function at 0x140011190
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x158]
sub rsp, 0x220
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x1400da880]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor r14d, r14d
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [0x1400ddaf0]
sub rax, rcx
cmp rax, 1
jb 0x140011813
lea r9, [0x1400ddae0]
cmp qword [0x1400ddaf8], 7
cmova r9, qword [0x1400ddae0]
mov qword [rsp + 0x30], 1
lea r12, [0x1400ca2c0]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x50]
call fcn.14000dbe0
nop
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14001123c
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x50]
call fcn.14000df10
movups xmm7, xmmword [rax]
movups xmmword [rbp - 0x60], xmm7
movups xmm6, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm6
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1400112ab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400112a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011819
call fcn.140077c10
movdqa xmm0, xmmword [0x1400cc7a0]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r14w
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400112cc
mov rdx, qword [rbx]
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001181f
mov r8, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140011311
mov r8, qword [rbx]
mov rcx, qword [rbx + 0x10]
cmp rcx, 5
jne 0x14001133f
lea rdx, str.paths
sub r8, rdx
movzx eax, word [rdx]
cmp word [rdx + r8], ax
jne 0x14001133b
add rdx, 2
sub rcx, 1
jne 0x140011325
jmp 0x140011378
mov rcx, qword [rbx + 0x10]
mov r8, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14001134c
mov r8, qword [rbx]
cmp rcx, 7
jne 0x14001160d
lea rdx, str.startup
sub r8, rdx
movzx eax, word [rdx]
cmp word [rdx + r8], ax
jne 0x140011609
add rdx, 2
sub rcx, 1
jne 0x140011360
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
cmp rbx, r14
je 0x140011582
mov r15d, 0x100
lea r13, [0x1400ca2c2]
mov rdi, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400113a2
mov rdi, qword [rbx]
mov rsi, qword [rbx + 0x10]
test rsi, rsi
je 0x140011463
mov r8, r15
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.1400aa380
mov rcx, r12
movzx eax, word [rcx]
cmp ax, r15w
jae 0x14001140b
movzx eax, al
mov byte [rbp + rax - 0x40], 1
add rcx, 2
cmp rcx, r13
jne 0x1400113c0
lea rcx, [rsi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rdi + rax*2]
movzx eax, word [rcx]
cmp ax, r15w
jae 0x140011400
cmp byte [rbp + rax - 0x40], 0
jne 0x14001145b
cmp rcx, rdi
je 0x140011463
sub rcx, 2
jmp 0x1400113f0
lea rcx, [rsi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rdi + rax*2]
nop dword [rax]
nop word [rax + rax]
mov edx, 1
mov rax, r12
movzx r8d, word [rcx]
nop dword [rax]
cmp word [rax], r8w
je 0x14001145b
add rax, 2
sub rdx, 1
jne 0x140011440
cmp rcx, rdi
je 0x140011463
sub rcx, 2
jmp 0x140011430
sub rcx, rdi
sar rcx, 1
jmp 0x14001146a
mov rcx, 0xffffffffffffffff
inc rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xor eax, eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov rax, rsi
cmp rsi, rcx
jb 0x140011879
sub rax, rcx
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400114a8
mov rax, qword [rbx]
lea rdx, [rax + rcx*2]
lea rcx, [rbp - 0x80]
call fcn.14000b460
nop
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400114c3
mov rcx, qword [rbx]
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova rdx, qword [rbp - 0x80]
mov eax, dword [rbx + 0x10]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140011852
lea rdx, str.Added_to_registry:
lea rcx, [0x1400dc4b0]
call fcn.14000aa90
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140011520
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.1400107d0
mov rcx, rax
call fcn.140011900
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x140011575
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011570
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001184c
call fcn.140077c10
add rbx, 0x20
cmp rbx, r14
jne 0x140011395
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
psrldq xmm6, 8
movq rdx, xmm6
cmp rdx, 7
jbe 0x1400115d5
lea rdx, [rdx*2 + 2]
movq rcx, xmm7
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400115d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011846
call fcn.140077c10
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.140077bf0
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rbx + 0x10]
mov r8, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14001161a
mov r8, qword [rbx]
cmp rcx, 9
jne 0x140011649
lea rdx, str.tcp_local
sub r8, rdx
nop word [rax + rax]
movzx eax, word [rdx]
cmp word [rdx + r8], ax
jne 0x140011649
add rdx, 2
sub rcx, 1
jne 0x140011630
jmp 0x1400116c8
mov r8, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140011656
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rdx, 0xa
jne 0x140011686
lea rcx, str.tcp_remote
sub r8, rcx
nop word [rax + rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140011686
add rcx, 2
sub rdx, 1
jne 0x140011670
jmp 0x1400116c8
mov r8, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140011693
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rdx, 3
jne 0x140011582
lea rcx, [0x1400cbce0]
sub r8, rcx
nop dword [rax + rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140011582
add rcx, 2
sub rdx, 1
jne 0x1400116b0
mov rbx, qword [0x1400ddb00]
mov rdi, qword [0x1400ddb08]
cmp rbx, rdi
je 0x140011582
nop
mov r8d, dword [rbx]
lea r9, [rbp + 0xea]
nop word [rax + rax]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x1400116f0
lea r8, [rbp + 0xea]
mov rdx, r9
lea rcx, [rbp - 0x80]
call fcn.140011cb0
nop
mov eax, dword [rbx]
mov dword [rsp + 0x70], eax
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova rdx, qword [rbp - 0x80]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400117ec
lea rdx, str.Added_to_registry:
lea rcx, [0x1400dc4b0]
call fcn.14000aa90
mov rcx, rax
mov edx, dword [rsp + 0x70]
call fcn.140005f20
mov rcx, rax
call fcn.140011900
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x1400117da
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400117d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001187f
call fcn.140077c10
add rbx, 4
cmp rbx, rdi
jne 0x1400116e0
jmp 0x140011582
lea rdx, str.Failed_to_set_DWORD_value_in_registry
lea rcx, [rbp + 0xc0]
call fcn.140001ab0
lea rdx, [0x1400d8398]
lea rcx, [rbp + 0xc0]
call fcn.14007a020
nop
call fcn.140001a90
nop
call fcn.1400850bc
int3
lea rdx, str.Failed_to_create_sub_key
lea rcx, [rbp + 0xc0]
call fcn.140001ab0
lea rdx, [0x1400d8398]
lea rcx, [rbp + 0xc0]
call fcn.14007a020
nop
call fcn.1400850bc
nop
call fcn.1400850bc
nop
lea rdx, str.Failed_to_set_string_value_in_registry
lea rcx, [rbp + 0xc0]
call fcn.140001ab0
lea rdx, [0x1400d8398]
lea rcx, [rbp + 0xc0]
call fcn.14007a020
nop
call fcn.14000a5f0
int3
call fcn.1400850bc
int3