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

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x190]
sub rsp, 0x290
movups xmm3, xmmword [str.__SB_YK_gyv]
xor edi, edi
mov eax, dword [0x140100280]
movsd xmm0, qword [0x140100278]
cmp word [0x140100282], di
mov ebx, dword [reloc.WS2_32.dll_accept]
movups xmmword [rsp + 0x60], xmm3
mov dword [rsp + 0x78], eax
movsd qword [rsp + 0x70], xmm0
je 0x140046aa9
mov r8d, edi
cmp ebx, 2
jl 0x140046a62
movdqa xmm2, xmmword [0x140100610]
mov r8d, 8
movdqa xmm4, xmmword [0x1401006c0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140100640]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movq xmm1, xmm3
movdqa xmm3, xmmword [0x140100630]
paddw xmm2, xmmword [0x140100650]
movdqa xmm0, xmm3
xorps xmm2, xmm1
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movq qword [rsp + 0x60], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140100640]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x68]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x140100650]
xorps xmm2, xmm0
movq qword [rsp + 0x68], xmm2
movsxd rax, r8d
lea r9, [rsp + 0x60]
lea r9, [r9 + rax*2]
nop
mov eax, 0xa0a0a0a1
lea r9, [r9 + 2]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub ax, dx
movzx eax, ax
imul ecx, eax, 0x33
add cx, r8w
inc r8d
xor word [r9 - 2], cx
cmp r8d, 0xe
jl 0x140046a70
lea rax, [rbp + 0x1c0]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140046dd1
cmp word [0x140100362], di
movsd xmm0, qword [0x140100358]
mov eax, dword [0x140100360]
movaps xmmword [rsp + 0x280], xmm7
movups xmm7, xmmword [str.aQXSZZHwSZWQ_]
mov dword [rbp + 0x1b0], 4
movsd qword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm7
mov dword [rsp + 0x58], eax
je 0x140046c64
mov ecx, edi
cmp ebx, 2
jl 0x140046c17
movdqa xmm2, xmmword [0x140100610]
mov ecx, 8
movdqa xmm4, xmmword [0x1401006c0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140100640]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, qword [0x140100650]
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm1, xmm7
paddw xmm3, xmm2
movdqa xmm2, xmmword [0x140100630]
xorps xmm3, xmm1
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movq qword [rsp + 0x40], xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140100640]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, qword [0x140100650]
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x48]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rsp + 0x48], xmm3
movsxd rax, ecx
lea r8, [rsp + 0x40]
lea r8, [r8 + rax*2]
nop dword [rax]
nop word [rax + rax]
mov eax, 0xa0a0a0a1
lea r8, [r8 + 2]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub ax, dx
movzx eax, ax
imul edx, eax, 0x33
add dx, cx
inc ecx
xor word [r8 - 2], dx
cmp ecx, 0xe
jl 0x140046c30
mov rcx, qword [rbp + 0x1c0]
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x1b8]
lea rax, reloc.WS2_32.dll_accept
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movaps xmm7, xmmword [rsp + 0x280]
test eax, eax
jne 0x140046cad
cmp dword [rbp + 0x1b8], 4
je 0x140046cb4
mov byte [reloc.WS2_32.dll_accept], dil
movzx eax, word [0x140100210]
lea r9, [rbp + 0x1b8]
movups xmm0, xmmword [0x140100200]
xor ax, 0x3b
mov dword [rbp + 0x1b0], reloc.WS2_32.dll_sendto
mov word [rsp + 0x50], ax
lea rdx, [rsp + 0x40]
movups xmmword [rsp + 0x40], xmm0
xor word [rsp + 0x42], 0x34
lea rax, [rbp + 0x1b0]
xor word [rsp + 0x44], 0x35
mov ecx, Ordinal_79
xor word [rsp + 0x46], 0x36
xor r8d, r8d
xor word [rsp + 0x48], 0x37
xor word [rsp + 0x4a], 0x38
xor word [rsp + 0x4c], 0x39
xor word [rsp + 0x4e], 0x3a
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov word [rsp + 0x40], cx
mov rcx, qword [rbp + 0x1c0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140046dbd
cmp dword [rbp + 0x1b8], 3
jne 0x140046dbd
mov rax, rdi
movq xmm1, qword [rsp + rax + 0x60]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
movdqu xmmword [rbp + rax*2 - 0x80], xmm1
add rax, 8
cmp rax, 0x10
jl 0x140046d50
mov ecx, reloc.WS2_32.dll_recv
movzx eax, byte [rsp + rcx + 0x60]
mov word [rbp + rcx*2 - 0x80], ax
inc rcx
cmp rcx, 0x14
jl 0x140046d72
mov qword [rsp + 0x38], rdi
lea rax, [0x14029c150]
mov qword [rsp + 0x30], rdi
lea r8, [rbp - 0x80]
mov dword [rsp + 0x28], 0x100
mov r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov word [rbp - 0x58], di
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x140046dc4
mov byte [0x14029c150], dil
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x290
pop rdi
pop rbx
pop rbp
ret