Function at 0x1400994d0
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 esi, r8d
lea r13, [0x1400fcb50]
mov rbp, r9
mov rbx, rdx
mov r15, rcx
test rdx, rdx
je 0x1400996b0
test r8d, r8d
jne 0x140099525
xor r8d, r8d
lea edx, [r12 + 1]
call fcn.140011bd0
jmp 0x14009995d
mov ecx, dword [rdx + 0x10]
cmp esi, 4
je 0x14009962f
test ecx, ecx
je 0x140099600
sub ecx, 1
je 0x1400995e8
sub ecx, 1
je 0x1400995cd
cmp ecx, 2
je 0x140099558
mov r14, r13
jmp 0x140099611
mov rdi, qword [rdx]
cmp byte [rdi + 0x23], r12b
jne 0x140099574
mov rcx, qword [rdi + 0x10]
mov edx, 1
call fcn.1400079d4
mov r14, rax
jmp 0x14009959e
test byte [rdi + 0x21], 1
je 0x140099582
mov rcx, rdi
call fcn.140007840
cmp byte [rdi + 0x23], 3
jne 0x14009959a
cmp byte [rdi + 0x21], r12b
jl 0x14009959a
mov rcx, rdi
call fcn.1400a0ce0
and byte [rdi + 0x21], 0x7f
mov r14, qword [rdi + 8]
mov rbx, qword [rbx]
cmp byte [rbx + 0x23], r12b
jne 0x1400995b3
mov rcx, qword [rbx + 0x10]
call fcn.140005680
mov rbx, rax
test byte [rbx + 0x21], 1
je 0x1400995c1
mov rcx, rbx
call fcn.140007840
mov rbx, qword [rbx + 0x10]
shr rbx, 1
jmp 0x1400996c0
movsd xmm0, qword [rbx]
lea rdx, [rsp + 0x60]
call fcn.1400a0440
movsxd rbx, eax
lea r14, [rsp + 0x60]
jmp 0x1400996c0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x60]
mov r8d, 0xa
call fcn.1400c6dc8
mov r14, rax
jmp 0x140099611
mov rbx, qword [rdx + 8]
mov r14, qword [rdx]
cmp rbx, 0xffffffffffffffff
jne 0x1400996c0
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [r14 + rbx*2], r12w
jne 0x140099620
jmp 0x1400996c0
mov edx, ecx
test ecx, ecx
je 0x140099652
sub edx, 1
je 0x140099668
sub edx, 1
je 0x140099668
cmp edx, 2
jne 0x14009972d
mov rcx, qword [rbx]
call fcn.140062ee0
jmp 0x140099666
mov rcx, qword [rbx]
mov r9d, 1
mov edx, r9d
xor r8d, r8d
call fcn.14009d430
mov ecx, eax
test ecx, ecx
je 0x14009972d
mov ecx, dword [rbx + 0x10]
test ecx, ecx
je 0x1400996a1
sub ecx, 1
je 0x14009969c
sub ecx, 1
je 0x140099695
cmp ecx, 2
je 0x14009968b
mov rax, r12
jmp 0x1400996a9
mov rcx, qword [rbx]
call fcn.140062fa0
jmp 0x1400996a9
cvttsd2si rax, qword [rbx]
jmp 0x1400996a9
mov rax, qword [rbx]
jmp 0x1400996a9
mov rcx, qword [rbx]
call fcn.14009def0
mov dword [rsp + 0x298], eax
mov rbx, qword [rsp + 0x298]
mov r14, qword [rsp + 0x298]
mov rax, qword [0x14011f188]
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, rbp
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x140099938
cmp esi, 7
ja case.0x14009972b.5
lea rax, [0x140000000]
mov edx, dword [rax + rsi*4 + 0x99980]
add rdx, rax
jmp rdx
lea r9, str.Number
mov r8, rbx
xor edx, edx
mov rcx, r15
call fcn.140011c20
jmp 0x14009995d
mov r9d, 1
lea eax, [rbx*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
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.0x14009972b.0
mov r9d, 2
jmp 0x14009974c
lea rcx, [rbx*2 + 4]
call fcn.1400c1588
mov rsi, rax
test rax, rax
jne 0x14009979e
lea edi, [rax + 0xe]
jmp case.0x14009972b.0
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call fcn.1400d02a4
mov dword [rsi + rbx*2], r12d
test rbx, rbx
je 0x1400997c5
cmp word [rsi + rbx*2 - 2], 0xa
jne 0x1400997c5
dec rbx
mov word [rsi + rbx*2], r12w
movzx ecx, word [rsi]
mov rax, rsi
test cx, cx
je 0x1400997e7
cmp cx, 0xa
jne 0x1400997da
mov word [rax], r12w
movzx ecx, word [rax + 2]
add rax, 2
test cx, cx
jne 0x1400997d0
test rbx, rbx
je 0x1400997f2
add rbx, 2
jmp 0x1400997f5
mov rbx, r12
lea eax, [rbx + rbx]
mov r9d, 7
mov dword [rsp + 0x28], eax
mov rdx, qword [rsp + 0x2b8]
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rsi
mov edi, eax
call fcn.1400c1574
jmp case.0x14009972b.0
lea rax, [rsp + 0x298]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov r9d, 4
jmp 0x14009975c
test bl, 1
jne case.0x14009972b.5
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
movsxd rdi, eax
mov rcx, rdi
call fcn.1400c1588
mov rsi, rax
test rax, rax
jne 0x140099877
lea edi, [rax + 0xe]
jmp case.0x14009972b.0
movsxd rbx, ebx
mov r11d, r12d
test rbx, rbx
jle 0x1400998ea
mov r9, r12
mov r10, r12
cmp r10, rdi
jge 0x1400998ea
mov r8d, r12d
mov edx, reloc.WSOCK32.dll_recv
nop word [rax + rax]
movzx ecx, word [r14 + r9*2]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x1400998b3
lea eax, [rcx - 0x30]
jmp 0x1400998cd
lea eax, [rcx - 0x41]
cmp ax, 5
ja 0x1400998c1
lea eax, [rcx - 0x37]
jmp 0x1400998cd
lea eax, [rcx - 0x61]
cmp ax, 5
ja 0x1400998fa
lea eax, [rcx - 0x57]
imul eax, edx
inc r9
add r8d, eax
sub edx, 0xf
jns 0x1400998a0
mov byte [r10 + rsi], r8b
inc r11d
inc r10
cmp r9, rbx
jl 0x140099888
mov dword [rsp + 0x28], r11d
mov r9d, 3
jmp 0x140099802
mov rcx, rsi
call fcn.1400c1574
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [0x14011f188]
mov edi, 0x57
mov edx, edi
mov rcx, r15
mov dword [rax + 0x64], edi
call fcn.140011360
jmp 0x14009995d
mov edi, 0x57
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [0x14011f188]
mov dword [rax + 0x64], edi
test edi, edi
je 0x140099952
mov edx, edi
mov rcx, r15
call fcn.140011360
jmp 0x14009995d
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