Function at 0x14001203c
Capabilities:
Encode data using xor
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x5b0]
sub rsp, 0x6b0
mov rsi, rcx
lea rcx, [rbp + 0x5e8]
call fcn.140011b38
mov rdx, rax
mov r9d, 9
lea rax, [rsp + 0x50]
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r14d, r14d
test eax, eax
je 0x140012094
lea eax, [r14 + 1]
jmp 0x1400122e3
mov edi, r14d
xor edx, edx
jmp 0x1400122a2
test eax, eax
jne 0x14001229e
movdqa xmm0, xmmword [str.Atfes_wNA]
lea ecx, [rax + 0x25]
movdqa xmm1, xmmword [0x14001c6d0]
movdqu xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x78], 0x4e617c7d
movdqu xmmword [rsp + 0x68], xmm1
mov byte [rsp + 0x7c], 0x12
call fcn.140002534
lea r8, [rsp + 0x58]
mov rdx, rax
sub r8, rax
mov r9d, 0x25
mov cl, byte [r8 + rdx]
xor cl, 0x12
mov byte [rdx], cl
inc rdx
sub r9, 1
jne 0x1400120e8
mov rdx, rax
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rax, [rsp + 0x48]
mov r9d, 9
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xa0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001229e
mov rcx, qword [rsp + 0x48]
lea rax, [rbp + 0x5e8]
mov qword [rsp + 0x28], rax
lea rdx, [0x14001c608]
lea rax, [rbp + 0x1b0]
mov dword [rbp + 0x5e8], 0x400
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400121c0
mov ecx, dword [rbp + 0x5e8]
inc ecx
add rcx, rcx
call fcn.140002460
mov r8d, dword [rbp + 0x5e8]
lea rdx, [rbp + 0x1b0]
mov rcx, rax
mov rbx, rax
call fcn.1400024b0
mov ecx, dword [rbp + 0x5e8]
mov word [rbx + rcx*2], r14w
mov qword [rbp - 0x80], rbx
mov rcx, qword [rsp + 0x48]
lea rax, [rbp + 0x5e8]
mov qword [rsp + 0x28], rax
lea rdx, str.Protocol
lea rax, [rbp + 0x1b0]
mov dword [rbp + 0x5e8], 0x400
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140012236
mov ecx, dword [rbp + 0x5e8]
inc ecx
add rcx, rcx
call fcn.140002460
mov r8d, dword [rbp + 0x5e8]
lea rdx, [rbp + 0x1b0]
mov rcx, rax
mov rbx, rax
call fcn.1400024b0
mov ecx, dword [rbp + 0x5e8]
mov word [rbx + rcx*2], r14w
mov qword [rbp - 0x78], rbx
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x5f8]
mov dword [rbp + 0x5f8], r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PortNumber
mov dword [rsp + 0x40], 4
mov dword [rsp + 0x44], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rbp - 0x70]
lea rdx, [rbp - 0x80]
test eax, eax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElement
cmove ecx, dword [rbp + 0x5f8]
mov dword [rbp - 0x70], ecx
mov rcx, rsi
call fcn.140017798
inc edi
mov edx, edi
mov rcx, qword [rsp + 0x50]
lea r9, [rbp + 0x5f0]
mov qword [rsp + 0x38], r14
lea r8, [rbp - 0x60]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov dword [rbp + 0x5f0], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x14001209e
xor eax, eax
add rsp, 0x6b0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret