Function at 0x1400cb7a0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rbx, r9
mov r11, r8
mov edi, edx
mov r15, rcx
test r8, r8
je 0x1400cba66
lea eax, [rdx + 2]
test eax, 0xfffffffd
je 0x1400cba66
mov rax, qword [0x14012f240]
lea r9, [0x1400f97e4]
xor r12d, r12d
xor r8d, r8d
mov rdx, rbx
mov rcx, r11
mov r10d, dword [rax + 0x110]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
or r10d, 0x20006
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400cbb18
sub edi, 1
je 0x1400cbac4
sub edi, 1
je 0x1400cba9d
sub edi, 1
je 0x1400cb964
sub edi, 1
je 0x1400cb92a
cmp edi, 3
je 0x1400cb866
mov ebx, 0x57
jmp 0x1400cbb0d
mov rsi, qword [rsp + 0xb8]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], r12w
jne 0x1400cb875
lea rcx, [rbx*2 + 4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400cb89f
mov ebx, ntohs
jmp 0x1400cbb0d
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov dword [rdi + rbx*2], r12d
test rbx, rbx
je 0x1400cb8c7
cmp word [rdi + rbx*2 - 2], 0xa
jne 0x1400cb8c7
dec rbx
mov word [rdi + rbx*2], r12w
movzx ecx, word [rdi]
mov rax, rdi
test cx, cx
je 0x1400cb8e9
cmp cx, 0xa
jne 0x1400cb8dc
mov word [rax], r12w
movzx ecx, word [rax + 2]
add rax, 2
test cx, cx
jne 0x1400cb8d2
mov rdx, qword [rsp + 0xb0]
lea eax, [rbx + 2]
mov rcx, qword [rsp + 0x58]
test rbx, rbx
mov r9d, 7
cmove eax, r12d
xor r8d, r8d
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400cbb0d
mov rcx, qword [rsp + 0xb8]
cmp word [rcx], r12w
je 0x1400cb93f
call fcn.140005d80
jmp 0x1400cb942
mov eax, r12d
mov dword [rsp + 0xa0], eax
mov r9d, 4
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x28], 4
jmp 0x1400cbaf0
mov rdi, qword [rsp + 0xb8]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], r12w
jne 0x1400cb973
test bl, 1
je 0x1400cb98c
mov ebx, 0x57
jmp 0x1400cbb0d
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
movsxd r14, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
jne 0x1400cb9b1
mov ebx, ntohs
jmp 0x1400cbb0d
mov esi, r12d
test ebx, ebx
jle 0x1400cba1d
movsxd rbx, ebx
mov r9, r12
mov r11, r12
cmp r11, r14
jge 0x1400cba1d
mov r10d, r12d
mov edx, reloc.WSOCK32.dll_recv
nop
movzx ecx, word [rdi + r9*2]
mov r8d, edx
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x1400cb9e6
lea eax, [rcx - 0x30]
jmp 0x1400cba00
lea eax, [rcx - 0x41]
cmp ax, 5
ja 0x1400cb9f4
lea eax, [rcx - 0x37]
jmp 0x1400cba00
lea eax, [rcx - 0x61]
cmp ax, 5
ja 0x1400cba52
lea eax, [rcx - 0x57]
imul r8d, eax
inc r9
add r10d, r8d
sub edx, 0xf
jns 0x1400cb9d0
mov byte [r11 + rbp], r10b
inc esi
inc r11
cmp r9, rbx
jl 0x1400cb9c1
mov rdx, qword [rsp + 0xb0]
mov r9d, 3
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400cbb0d
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 0x57
mov ecx, ebx
mov rax, qword [0x14012f240]
test ebx, ebx
setne dl
mov dword [rax + 0x40], ecx
mov rcx, r15
call fcn.140063df0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rax, qword [rsp + 0xb8]
mov rbx, 0xffffffffffffffff
nop dword [rax]
cmp word [rax + rbx*2 + 2], r12w
lea rbx, [rbx + 1]
jne 0x1400cbab0
mov r9d, 2
jmp 0x1400cbae5
mov rax, qword [rsp + 0xb8]
mov rbx, 0xffffffffffffffff
cmp word [rax + rbx*2 + 2], r12w
lea rbx, [rbx + 1]
jne 0x1400cbad3
mov r9d, 1
lea ebx, [rbx*2 + 2]
mov dword [rsp + 0x28], ebx
mov rdx, qword [rsp + 0xb0]
xor r8d, r8d
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 0xffffffff
jne 0x1400cba6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x1400cba6d