Function at 0x1400a1740
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x260
xor r12d, r12d
mov ebp, r8d
lea r13, [0x140106cb0]
mov r14, r9
mov rbx, rdx
mov r15, rcx
test rdx, rdx
je 0x1400a1970
test r8d, r8d
jne 0x1400a1795
xor r8d, r8d
lea edx, [r12 + 1]
call fcn.140011d90
jmp 0x1400a1c40
mov ecx, dword [rdx + 0x10]
cmp ebp, 4
je 0x1400a18ef
test ecx, ecx
je 0x1400a18c8
sub ecx, 1
je 0x1400a18b0
sub ecx, 1
je 0x1400a183d
cmp ecx, 2
je 0x1400a17c8
mov rsi, r13
jmp 0x1400a18d9
mov rsi, qword [rdx]
cmp byte [rsi + 0x23], r12b
jne 0x1400a17e4
mov rcx, qword [rsi + 0x10]
mov edx, 1
call fcn.140007968
mov rsi, rax
jmp 0x1400a180e
test byte [rsi + 0x21], 1
je 0x1400a17f2
mov rcx, rsi
call fcn.140007810
cmp byte [rsi + 0x23], 3
jb 0x1400a180a
cmp byte [rsi + 0x21], r12b
jl 0x1400a180a
mov rcx, rsi
call fcn.1400a93a0
and byte [rsi + 0x21], 0x7f
mov rsi, qword [rsi + 8]
mov rbx, qword [rbx]
cmp byte [rbx + 0x23], r12b
jne 0x1400a1823
mov rcx, qword [rbx + 0x10]
call fcn.140005740
mov rbx, rax
test byte [rbx + 0x21], 1
je 0x1400a1831
mov rcx, rbx
call fcn.140007810
mov rbx, qword [rbx + 0x10]
shr rbx, 1
jmp 0x1400a1980
movsd xmm3, qword [rdx]
lea r8, str._.17g
movq r9, xmm3
lea rcx, [rsp + 0x60]
mov edx, 0x100
call fcn.1400a5c90
lea rdx, [0x14011610c]
movsxd rbx, eax
lea rcx, [rsp + 0x60]
call fcn.1400d8b8c
cmp rax, rbx
jne 0x1400a18a3
lea ecx, [rbx + 3]
cmp ecx, 0x100
jg 0x1400a18a3
movzx eax, word [rsp + rbx*2 + 0x5e]
sub ax, 0x30
cmp ax, 9
ja 0x1400a18a3
mov dword [rsp + rbx*2 + 0x60], 0x30002e
add ebx, 2
movsxd rax, ebx
mov word [rsp + rax*2 + 0x60], r12w
movsxd rbx, ebx
lea rsi, [rsp + 0x60]
jmp 0x1400a1980
mov rcx, qword [rbx]
lea rdx, [rsp + 0x60]
mov r8d, 0xa
call fcn.1400cf310
mov rsi, rax
jmp 0x1400a18d9
mov rbx, qword [rdx + 8]
mov rsi, qword [rdx]
cmp rbx, 0xffffffffffffffff
jne 0x1400a1980
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], r12w
jne 0x1400a18e0
jmp 0x1400a1980
mov edx, ecx
test ecx, ecx
je 0x1400a1912
sub edx, 1
je 0x1400a1928
sub edx, 1
je 0x1400a1928
cmp edx, 2
jne 0x1400a19ed
mov rcx, qword [rbx]
call fcn.140065620
jmp 0x1400a1926
mov rcx, qword [rbx]
mov r9d, 1
mov edx, r9d
xor r8d, r8d
call fcn.1400a5a40
mov ecx, eax
test ecx, ecx
je 0x1400a19ed
mov ecx, dword [rbx + 0x10]
test ecx, ecx
je 0x1400a1961
sub ecx, 1
je 0x1400a195c
sub ecx, 1
je 0x1400a1955
cmp ecx, 2
je 0x1400a194b
mov rax, r12
jmp 0x1400a1969
mov rcx, qword [rbx]
call fcn.1400656e0
jmp 0x1400a1969
cvttsd2si rax, qword [rbx]
jmp 0x1400a1969
mov rax, qword [rbx]
jmp 0x1400a1969
mov rcx, qword [rbx]
call fcn.1400a6500
mov dword [rsp + 0x298], eax
mov rbx, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x298]
mov rax, qword [0x14012c398]
mov r9, r13
mov rdx, qword [rsp + 0x2b0]
xor r8d, r8d
mov qword [rsp + 0x40], r12
mov ecx, dword [rax + 0xb0]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
or ecx, 0x20006
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], ecx
mov rcx, r14
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x1400a1c1b
cmp ebp, 7
ja case.0x1400a19eb.5
lea rax, [0x140000000]
mov edx, dword [rax + rbp*4 + 0xa1c64]
add rdx, rax
jmp rdx
lea r9, str.Number
mov r8, rbx
xor edx, edx
mov rcx, r15
call fcn.140011de0
jmp 0x1400a1c40
mov r9d, 1
lea eax, [rbx*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rdx, qword [rsp + 0x2b8]
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp case.0x1400a19eb.0
mov r9d, 2
jmp 0x1400a1a0c
lea rcx, [rbx*2 + 4]
call fcn.1400ca1ac
mov r14, rax
test rax, rax
jne 0x1400a1a5e
lea edi, [rax + 0xe]
jmp case.0x1400a19eb.0
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call fcn.1400d8b44
mov dword [r14 + rbx*2], r12d
test rbx, rbx
je 0x1400a1a86
cmp word [r14 + rbx*2 - 2], 0xa
jne 0x1400a1a86
dec rbx
mov word [r14 + rbx*2], r12w
movzx ecx, word [r14]
mov rax, r14
test cx, cx
je 0x1400a1aa9
cmp cx, 0xa
jne 0x1400a1a9c
mov word [rax], r12w
movzx ecx, word [rax + 2]
add rax, 2
test cx, cx
jne 0x1400a1a92
lea rax, [rbx + 2]
test rbx, rbx
jne 0x1400a1ab5
mov rax, r12
mov rdx, qword [rsp + 0x2b8]
add eax, eax
mov rcx, qword [rsp + 0x50]
mov r9d, 7
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, r14
mov edi, eax
call fcn.1400ca198
jmp case.0x1400a19eb.0
lea rax, [rsp + 0x298]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov r9d, 4
jmp 0x1400a1a1c
test bl, 1
jne case.0x1400a19eb.5
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
movsxd rdi, eax
mov rcx, rdi
call fcn.1400ca1ac
mov rbp, rax
test rax, rax
jne 0x1400a1b36
lea edi, [rax + 0xe]
jmp case.0x1400a19eb.0
movsxd rbx, ebx
mov r11d, r12d
test rbx, rbx
jle 0x1400a1bab
mov r9, r12
mov r10, r12
cmp r10, rdi
jge 0x1400a1bab
mov edx, r12d
mov r8d, reloc.WSOCK32.dll_recv
nop word [rax + rax]
movzx ecx, word [rsi + r9*2]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x1400a1b73
lea eax, [rcx - 0x30]
jmp 0x1400a1b8d
lea eax, [rcx - 0x41]
cmp ax, 5
ja 0x1400a1b81
lea eax, [rcx - 0x37]
jmp 0x1400a1b8d
lea eax, [rcx - 0x61]
cmp ax, 5
ja 0x1400a1bdd
lea eax, [rcx - 0x57]
imul eax, r8d
inc r9
add edx, eax
sub r8d, 0xf
jns 0x1400a1b60
mov byte [r10 + rbp], dl
inc r11d
inc r10
cmp r9, rbx
jl 0x1400a1b47
mov rdx, qword [rsp + 0x2b8]
mov r9d, 3
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], r11d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbp
mov edi, eax
call fcn.1400ca198
jmp case.0x1400a19eb.0
mov rcx, rbp
call fcn.1400ca198
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [0x14012c398]
mov edi, 0x57
mov edx, edi
mov rcx, r15
mov dword [rax + 0x64], edi
call fcn.140011590
jmp 0x1400a1c40
mov edi, 0x57
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [0x14012c398]
mov dword [rax + 0x64], edi
test edi, edi
je 0x1400a1c35
mov edx, edi
mov rcx, r15
call fcn.140011590
jmp 0x1400a1c40
mov dword [r15 + 0x10], r12d
mov qword [r15], r13
mov qword [r15 + 8], r12
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret